opencv
brew install opencvAlso known as: opencv@5
Open source computer vision library
License: Apache-2.0
Development: Pull requests
Formula JSON API: /api/formula/opencv.json
Formula code: opencv.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 5.1.0 |
| head | ⚡️ | HEAD |
Other versions:
| opencv@4 | 4.14.0 | Open source computer vision library |
Depends on:
| abseil | 20260817.0 | C++ Common Libraries |
| ceres-solver | 2.2.0 | C++ library for large-scale optimization |
| eigen | 5.0.1 | C++ template library for linear algebra |
| ffmpeg | 9.0.2 | Play, record, convert, and stream select audio and video codecs |
| freetype | 2.15.0 | Software library to render fonts |
| gflags | 2.3.1 | Library for processing command-line flags |
| glog | 0.7.1 | Application-level logging library |
| harfbuzz | 15.1.0 | OpenType text shaping engine |
| jpeg-turbo | 3.2.1 | JPEG image codec that aids compression and decompression |
| jsoncpp | 1.9.8 | Library for interacting with JSON |
| libavif | 1.4.2 | Library for encoding and decoding .avif files |
| libpng | 1.6.59 | Library for manipulating PNG images |
| libtiff | 4.7.2 | TIFF library and utilities |
| numpy | 2.5.5 | Package for scientific computing with Python |
| openblas | 0.3.34 | Optimized BLAS library |
| openexr | 3.5.4 | High dynamic-range image file format |
| openjpeg | 2.5.4 | Library for JPEG-2000 image manipulation |
| openvino | 2026.4.1 | Open Visual Inference And Optimization toolkit for AI inference |
| protobuf | 36.2 | Protocol buffers (Google's data interchange format) |
| python@3.15 | 3.15.2 | Interpreted, interactive, object-oriented programming language |
| tbb | 2023.2.0 | Rich and complete approach to parallelism in C++ |
| tesseract | 5.5.4 | OCR (Optical Character Recognition) engine |
| vtk | 9.7.2 | Toolkit for 3D computer graphics, image processing, and visualization |
| webp | 1.6.0 | Image format providing lossless and lossy compression for web images |
| glew | 2.3.1 | OpenGL Extension Wrangler Library |
| imath | 3.2.3 | Library of 2D and 3D vector, matrix, and math operations |
| libarchive | 3.8.11 | Multi-format archive and compression library |
Depends on when building from source:
| cmake | 4.5.0 | Cross-platform make |
| pkgconf | 3.0.11 | Package compiler and linker metadata toolkit |
| python-setuptools | 84.2.1 | Easily download, build, install, upgrade, and uninstall Python packages |
Binaries:
opencv_annotation,
opencv_model_diagnostics,
opencv_version,
opencv_visualisation,
opencv_waldboost_detector,
setup_vars_opencv5.sh
GitHub Packages downloads:
| Last 30 days | 43,104 |
|---|---|
| Downloads | 3,273,377 |
| Analytics install events (30 days) | 3,883 |
| Downloads / install events (30 days) | 11.1× |
Source: GitHub Packages, fetched 2026-11-19T00:57:16Z. Analytics dates: 2026-10-20 to 2026-11-19. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 3,871 | 11,322 | 72,232 |
Installs (--HEAD) | 12 | 23 | 117 |
| Installs on Request | 3,394 | 10,371 | 67,029 |
Installs on Request (--HEAD) | 12 | 23 | 117 |
| Build Errors | 4 |