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:

Apple Silicon sonoma
Intel sonoma
64-bit linux

Current versions:

stable 4.9.0

Other versions:

opencv@3 3.4.20 Open source computer vision library

Revision: 8

Depends on:

ceres-solver 2.2.0 C++ library for large-scale optimization
eigen 3.4.0 C++ template library for linear algebra
ffmpeg@6 6.1.1 Play, record, convert, and stream audio and video
glog 0.6.0 Application-level logging library
harfbuzz 8.4.0 OpenType text shaping engine
jpeg-turbo 3.0.3 JPEG image codec that aids compression and decompression
libpng 1.6.43 Library for manipulating PNG images
libtiff 4.6.0 TIFF library and utilities
numpy 1.26.4 Package for scientific computing with Python
openblas 0.3.27 Optimized BLAS library
openexr 3.2.4 High dynamic-range image file format
openjpeg 2.5.2 Library for JPEG-2000 image manipulation
openvino 2024.1.0 Open Visual Inference And Optimization toolkit for AI inference
protobuf 26.1 Protocol buffers (Google's data interchange format)
python@3.12 3.12.3 Interpreted, interactive, object-oriented programming language
tbb 2021.12.0 Rich and complete approach to parallelism in C++
vtk 9.3.0 Toolkit for 3D computer graphics, image processing, and visualization
webp 1.4.0 Image format providing lossless and lossy compression for web images

Depends on when building from source:

cmake 3.29.3 Cross-platform make
pkg-config 0.29.2 Manage compile and link flags for libraries
python-setuptools 69.5.1 Easily download, build, install, upgrade, and uninstall Python packages


Installs (30 days)
opencv 11,656
opencv --HEAD 20
Installs on Request (30 days)
opencv 11,194
opencv --HEAD 20
Build Errors (30 days)
opencv 38
Installs (90 days)
opencv 38,804
opencv --HEAD 64
Installs on Request (90 days)
opencv 36,853
opencv --HEAD 64
Installs (365 days)
opencv 140,984
opencv --HEAD 211
Installs on Request (365 days)
opencv 132,128
opencv --HEAD 211
Fork me on GitHub