Install command:
brew install opencv

Also known as: opencv@4

Formerly known as: opencv3

Open source computer vision library

License: Apache-2.0

Formula JSON API: /api/formula/opencv.json

Formula code: opencv.rb on GitHub

Bottle (binary package) installation support provided for:

Intel ventura
big sur
64-bit linux
Apple Silicon ventura
big sur

Current versions:

stable 4.7.0

Other versions:

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

Revision: 4

Depends on:

ceres-solver 2.1.0 C++ library for large-scale optimization
eigen 3.4.0 C++ template library for linear algebra
ffmpeg 6.0 Play, record, convert, and stream audio and video
glog 0.6.0 Application-level logging library
harfbuzz 7.3.0 OpenType text shaping engine
jpeg-turbo JPEG image codec that aids compression and decompression
libpng 1.6.39 Library for manipulating PNG images
libtiff 4.5.0 TIFF library and utilities
numpy 1.24.3 Package for scientific computing with Python
openblas 0.3.23 Optimized BLAS library
openexr 3.1.7 High dynamic-range image file format
openjpeg 2.5.0 Library for JPEG-2000 image manipulation
protobuf 21.12 Protocol buffers (Google's data interchange format)
python@3.11 3.11.3 Interpreted, interactive, object-oriented programming language
tbb 2021.9.0 Rich and complete approach to parallelism in C++
vtk 9.2.6 Toolkit for 3D computer graphics, image processing, and visualization
webp 1.3.0 Image format providing lossless and lossy compression for web images

Depends on when building from source:

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


Installs (30 days)
opencv 4,270
Installs on Request (30 days)
opencv 3,348
Build Errors (30 days)
opencv 199

Analytics (macOS):

Installs (90 days)
opencv 1,026
Installs on Request (90 days)
opencv 1,015
Installs (365 days)
opencv 128,601
opencv --with-java 8
opencv --with-contrib --with-java 5
Installs on Request (365 days)
opencv 124,485
opencv --with-java 8

Analytics (Linux):

Installs (90 days)
opencv 0
Installs on Request (90 days)
opencv 0
Installs (365 days)
opencv 462
Installs on Request (365 days)
opencv 404
Fork me on GitHub