O'Reilly logo

Computer Vision with Python 3 by Saurabh Kapur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

macOS

The following steps will install OpenCV on macOS:

  1. The first step is to install Xcode on your system. You can install Xcode from the App Store for free. Install the open Terminal and execute this command to accept the license:
        sudo xcodebuild –license
  1. Now, type agree at the end of the document. Then, you need to install command-line tools using Xcode by executing this command:
        sudo xcode-select –install
  1. The next step is to install OpenCV using the homebrew command. To install using homebrew, execute these commands:
        brew tap homebrew/science        brew install opencv3 --with-contrib --with-python3 --without-python
  1. Now, the final step is to link OpenCV and Python. For doing this, first you need to change the filename in /usr/local/opt/opencv3/lib/python3.5/site-packages/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required