Reproduced in: http://blog.csdn.net/sanwandoujiang/article/details/51159983
- Installing the OPENCV2 on the MACOSX
install opencv
- Installing the OPENCV3 on the MACOSX
install opencv3
Of course we can also have different options, such as the ability to install additional modules contrib Cuda, etc.
for beginnersbrew install opencv3 --with-contrib # For intermediate and advanced users. brew install opencv3 --with-contrib --with-cuda --with-ffmpeg --with-tbb --with-qt5
- Installing the OPENCV2 on the MACOSX
install opencv
- Installing the OPENCV3 on the MACOSX
install opencv3
Of course we can also have different options, such as the ability to install additional modules contrib Cuda, etc.
for beginnersbrew install opencv3 --with-contrib # For intermediate and advanced users. brew install opencv3 --with-contrib --with-cuda --with-ffmpeg --with-tbb --with-qt5
- Installing the OPENCV2 on the MACOSX
install opencv
- Installing the OPENCV3 on the MACOSX
install opencv3
Of course we can also have different options, such as the ability to install additional modules contrib Cuda, etc.
for beginnersbrew install opencv3 --with-contrib # For intermediate and advanced users. brew install opencv3 --with-contrib --with-cuda --with-ffmpeg --with-tbb --with-qt5
The result of installation is complete:
Opencv3 and OpenCV install many of the same files.
Generally there is no consequences of this. If You build your
Own software and it requires this formula, you'll need to the add to your
Build variables:
Ldflags:-l/usr/local/opt/opencv3/lib
Cppflags:-i/usr/local/opt/opencv3/include
Pkg_config_path:/usr/local/opt/opencv3/lib/pkgconfig
If you need Python to find bindings for this keg-only formula, run:
Echo/usr/local/opt/opencv3/lib/python2.7/site-packages >>/usr/local/lib/python2.7/site-packages/ Opencv3.pth
Mkdir-p/users/zhaoliang/library/python/2.7/lib/python/site-packages
echo ' Import site; Site.addsitedir ("/usr/local/lib/python2.7/site-packages") ' >>/users/zhaoliang/library/python/2.7/lib/ Python/site-packages/homebrew.pth
==> Summary
?? /usr/local/cellar/opencv3/3.1.0_4:486 files, 133.6M, built in minutes seconds
Zhaoliangdemacbook-pro:downloads zhaoliang$
Install Opencv3 on Mac