Install Opencv3 on Mac

Source: Internet
Author: User

Reproduced in: http://blog.csdn.net/sanwandoujiang/article/details/51159983

    1. Installing the OPENCV2 on the MACOSX
install opencv
    • 1
    • 2
    1. Installing the OPENCV3 on the MACOSX
install opencv3
    • 1
    • 2

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
    1. Installing the OPENCV2 on the MACOSX
install opencv
    • 1
    • 2
    1. Installing the OPENCV3 on the MACOSX
install opencv3
    • 1
    • 2

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
    1. Installing the OPENCV2 on the MACOSX
install opencv
    • 1
    • 2
    1. Installing the OPENCV3 on the MACOSX
install opencv3
    • 1
    • 2

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.