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)

/api/bottle/opencv.json (Bottle 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.3

Other versions:

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

Revision: 2

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.5.0 Application-level logging library
harfbuzz 2.8.2 OpenType text shaping engine
jpeg 9d Image manipulation library
libpng 1.6.37 Library for manipulating PNG images
libtiff 4.3.0 TIFF library and utilities
numpy 1.21.1 Package for scientific computing with Python
openblas 0.3.17 Optimized BLAS library
openexr 3.1.1 High dynamic-range image file format
protobuf 3.17.3 Protocol buffers (Google's data interchange format)
python@3.9 3.9.6 Interpreted, interactive, object-oriented programming language
tbb 2021.3.0 Rich and complete approach to parallelism in C++
vtk 9.0.3 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.21.1 Cross-platform make
pkg-config 0.29.2 Manage compile and link flags for libraries


Installs (30 days)
opencv 19,477
Installs on Request (30 days)
opencv 18,427
Build Errors (30 days)
opencv 148
Installs (90 days)
opencv 51,841
Installs on Request (90 days)
opencv 49,180
Installs (365 days)
opencv 226,107
opencv --with-java 9
openCV 3
OpenCV 3
Installs on Request (365 days)
opencv 213,678
opencv --with-java 9
openCV 3
OpenCV 3
Fork me on GitHub