LoginSignup
0
0

More than 5 years have passed since last update.

macOSでChainerCV使ってみる

Posted at
brew install pyenv
CFLAGS="-I$(brew --prefix readline)/include \ 
  -I$(brew --prefix openssl)/include \
  -I$(xcrun --show-sdk-path)/usr/include" \
   LDFLAGS="-L$(brew --prefix readline)/lib \
  -L$(brew --prefix openssl)/lib" \
   PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \
   pyenv install 3.6.6

vi ~/.zshrc
source ~/.zshrc

pyenv shell 3.6.6

pip install numpy chainercv matplotlib opencv-python

このページから1つ目のサンプルと画像をダウンロードする。
https://chainercv.readthedocs.io/en/latest/tutorial/detection.html

最初の行に以下を追記して実行

import matplotlib as mpl
mpl.use('TkAgg')

実行された

Screen Shot 2019-04-21 at 17.09.27.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0