-
Notifications
You must be signed in to change notification settings - Fork 15
OpenCV installation
Paul Zabelin edited this page Sep 9, 2020
·
2 revisions
brew install opencv
brings a lot of dependencies that often are not necessary.
Unfortunately maintainers of opencv brew formular has not declared dependencies as optional.
Since macOS test is only using small part of the library it is possible to install OpenCV without most of dependencies.
brew deps opencv --1
will show list of immediate dependencies.
To figure out which dependencies are necessary:
- Install OpenCV without any dependency.
- Run
OpenCV Tests
in Xcode. - Notice which dependency is required.
- Install missing dependency.
- Repeat from step 2.
Update list of necessary dependencies in Example/OpenCV-OSX-Tests/install-opencv.sh
including dependencies
Example/OpenCV-OSX-Tests/uninstall-opencv.sh
Installation | Time | Command |
---|---|---|
Full | 5 minutes | brew install opencv |
Minimal | 2 minutes | install-opencv.sh |
Cache | 30 seconds |
actions/cache +install-opencv.sh
|