Install command:
brew install opencv

Also known as: opencv@4

Formerly known as: opencv3

Open source computer vision library

License: Apache-2.0

/api/formula/opencv.json (JSON API)

Formula code on GitHub

Bottle (binary package) installation support provided for macOS releases:

Intel big sur
Apple Silicon big sur

Current versions:

stable 4.5.2

Other versions:

opencv@3 3.4.14 Open source computer vision library
opencv@2 Open source computer vision library

Depends on:

ceres-solver 2.0.0 C++ library for large-scale optimization
eigen 3.3.9 C++ template library for linear algebra
ffmpeg 4.4 Play, record, convert, and stream audio and video
glog 0.4.0 Application-level logging library
harfbuzz 2.8.0 OpenType text shaping engine
jpeg 9d Image manipulation library
libpng 1.6.37 Library for manipulating PNG images
libtiff 4.2.0 TIFF library and utilities
numpy 1.20.2 Package for scientific computing with Python
openblas 0.3.13 Optimized BLAS library
openexr 2.5.5 High dynamic-range image file format
protobuf 3.15.8 Protocol buffers (Google's data interchange format)
python@3.9 3.9.4 Interpreted, interactive, object-oriented programming language
tbb 2020_U3 Rich and complete approach to parallelism in C++
vtk 9.0.1 Toolkit for 3D computer graphics, image processing, and visualization
webp 1.2.0 Image format providing lossless and lossy compression for web images

Depends on when building from source:

cmake 3.20.1 Cross-platform make
pkg-config 0.29.2 Manage compile and link flags for libraries


Installs (30 days)
opencv 15,998
Installs on Request (30 days)
opencv 15,358
Build Errors (30 days)
opencv 61
Installs (90 days)
opencv 45,724
OpenCV 2
Installs on Request (90 days)
opencv 44,031
OpenCV 2
Installs (365 days)
opencv 228,436
opencv --with-java 9
OpenCV 4
Installs on Request (365 days)
opencv 213,008
opencv --with-java 9
OpenCV 4
Fork me on GitHub