Python関連のインストール
ここを参考に書き直した.
homebrewはあらかじめ導入してある前提. pythonはhomebrewで管理するので付属品ではなく新しく導入しなおす.
Linux/MacのOpenCVは依存関係を適当にやると後でエラーが出る可能性があるので オプションを全部書いておく.
brew tap homebrew/science
brew install python
pip install numpy
brew install cmake automake faac fdk-aac git lame libass libtool libvorbis libvpx\
libvo-aacenc opencore-amr openjpeg opus sdl schroedinger shtool speex texi2html\
theora wget x264 xvid yasm
brew install ffmpeg --with-fdk-aac --with-libvo-aacenc --with-libvorbis --with-libvpx\
--with-openjpeg --with-theora --with-opencore-amr
brew install eigen jasper tbb qt
brew install opencv --with-eigen --with-jasper --with-libtiff --with-qt --with-tbb --with-ffmpeg