# Install opencv with Homebrew, apk, chocolatey, apt, dnf, Nix, pacman, scoop, zypper

Open source computer vision library. Version 4.13.0 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:opencv
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install opencv
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libopencv_aruco
```

  Evidence: Alpine Linux edge package indexes: libopencv_aruco from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libopencv-calib3d-dev
```

  Evidence: Debian stable package indexes: libopencv-calib3d-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install opencv
```

  Evidence: Fedora Rawhide package metadata: opencv from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#opencv
```

  Evidence: nixpkgs package indexes: opencv from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S opencv
```

  Evidence: Arch Linux sync databases: opencv from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libopencv413
```

  Evidence: openSUSE Tumbleweed package metadata: libopencv413 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install OpenCV
```

  Evidence: Chocolatey community package catalog: OpenCV from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'

- Scoop (92%):

```sh
scoop install main/opencv
```

  Evidence: Scoop official bucket manifest trees: bucket/opencv.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:opencv
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/opencv>
- **Version:** 4.13.0
- **Source summary:** Open source computer vision library
- **Homepage:** <https://opencv.org/>
- **Repository:** <https://github.com/opencv/opencv>
- **Upstream docs:** <https://docs.opencv.org/4.x>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/opencv/opencv/archive/refs/tags/4.13.0.tar.gz>
- **Last updated:** 2026-06-22T14:05:42-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- opencv_annotation (cli)
- opencv_interactive-calibration (cli)
- opencv_model_diagnostics (cli)
- opencv_version (cli)
- opencv_visualisation (cli)
- opencv_waldboost_detector (cli)
- setup_vars_opencv4.sh (cli)
- opencv_annotation (alias)
- opencv_interactive-calibration (alias)
- opencv_model_diagnostics (alias)
- opencv_version (alias)
- opencv_visualisation (alias)
- opencv_waldboost_detector (alias)
- setup_vars_opencv4.sh (alias)

## Dependencies

- abseil
- ceres-solver
- eigen
- ffmpeg
- freetype
- gflags
- glew
- glog
- harfbuzz
- imath
- jpeg-turbo
- jsoncpp
- libarchive
- libpng
- libtiff
- numpy
- openblas
- openexr
- openjpeg
- openvino
- protobuf
- python@3.14
- tbb
- tesseract
- vtk
- webp

## Build dependencies

- cmake
- pkgconf
- python-setuptools

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.13.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/opencv/opencv
- Upstream latest detected: 4.13.0 (current)
## Project history and usage

OpenCV, the Open Source Computer Vision Library, is one of the core open-source libraries for image processing, computer vision, and machine-learning-adjacent visual perception. It packages thousands of algorithms and bindings into a cross-platform library used by researchers, robotics teams, embedded developers, companies, students, and hobbyists.

### Project history

OpenCV began inside Intel. The OpenCV anniversary timeline says Gary Bradski proposed a computer-vision library in 1998, Intel open-sourced the code in 1999, and the first public release was unveiled at CVPR in June 2000. The project name followed the OpenGL naming style and reflected a shift from an internal Computer Vision Library concept to an open source library.

Version 1.0 arrived in 2006 with a C API and classic computer-vision capabilities such as image processing, computational geometry, face detection, camera calibration, optical flow, SIFT features, and machine-learning methods. After 2008, development moved through Willow Garage and Itseez, connecting OpenCV to robotics and specialized vision-algorithm work.

OpenCV 2.0 in 2009-2010 made C++ the primary API and added generated Python bindings, with Java bindings added as well. In 2012 the project moved to GitHub and opencv.org, creating a more transparent contribution process; the anniversary timeline says 35 to 50 percent of accepted pull requests in 2013 came from outside the core team.

Intel acquired Itseez in 2016, bringing a core OpenCV development team back into Intel's orbit. OpenCV 3.0, OpenCV 4.0, the DNN module, JavaScript/WebAssembly work, and OpenVINO integration all reflect the library's shift from classic computer vision only toward heterogeneous, deep-learning-aware, edge and embedded deployment.

### Adoption history

OpenCV's own About page describes it as the world's biggest computer vision library, with more than 2500 algorithms, hundreds of thousands of users, and estimated monthly downloads exceeding 40 million. The same page names use by companies, research groups, hobbyists, government bodies such as NASA, and companies including Google, Yahoo, Microsoft, Intel, IBM, Sony, Honda, and Toyota.

The project spread because it gave computer-vision researchers and product developers a permissively licensed, optimized common infrastructure. Instead of each application reimplementing camera calibration, feature detection, object detection, video I/O, image filtering, machine learning, and matrix primitives, developers could depend on a common package that existed in Linux distributions, Homebrew, Chocolatey, Conda-like scientific stacks, mobile builds, and language bindings.

### How it is used

Developers use OpenCV for frame capture, image preprocessing, camera calibration, feature extraction, object detection, tracking, stereo reconstruction, panorama stitching, face/eye detection, DNN inference, and high-level GUI/debug display. The modern documentation describes a modular structure with core, imgproc, imgcodecs, videoio, highgui, video, calib3d, features2d, objdetect, dnn, ml, photo, stitching, and supporting modules.

In package-manager form, OpenCV is often consumed as a library dependency rather than as an end-user CLI. The executables such as `opencv_version`, annotation tools, calibration tools, visualization helpers, and setup scripts are useful, but most downstream value comes from headers, shared libraries, Python bindings, and integrations into robotics, vision, scientific, and AI applications.

### Why package nerds care

OpenCV is package-nerd significant because it is large, modular, ABI-sensitive, and option-heavy. Builds may vary by language bindings, codecs, GUI backends, CUDA/OpenCL/OpenVINO acceleration, contrib modules, platform SIMD, and patent-sensitive algorithm history, so the same package name can imply very different capabilities across ecosystems.

It is also a dependency magnet: robotics frameworks, scientific tools, media applications, embedded vision products, and AI demos all pull it in. That makes versioning, binary size, transitive multimedia dependencies, and Python/C++ ABI compatibility recurring concerns for maintainers.

### Timeline

- 1998: Gary Bradski proposed the library inside Intel.
- 1999: Intel open-sourced the library and the OpenCV name replaced the internal CVL direction.
- 2000-06: The first public release was unveiled at CVPR.
- 2006-10: OpenCV 1.0 was released.
- 2008: Core development moved through Willow Garage and Itseez.
- 2009-2010: OpenCV 2.0 made C++ the primary API and expanded generated language bindings.
- 2012: The project moved to opencv.org and GitHub.
- 2015: OpenCV 3.0 added major interface and acceleration improvements.
- 2016: Intel acquired Itseez, a key contributor to OpenCV and OpenVX.
- 2018: OpenCV 4.0 refined the API around newer C++ standards and added Graph API work.

### Related projects

- OpenCV is related to OpenVINO, OpenVX, ROS and Willow Garage-era robotics software, opencv_contrib, NumPy/Python scientific tooling, CUDA/OpenCL acceleration stacks, and downstream computer-vision frameworks that use it as preprocessing or classical-vision infrastructure.

### Sources

- <https://docs.opencv.org/4.x/d1/dfb/intro.html>
- <https://github.com/opencv/opencv>
- <https://opencv.org/about/>
- <https://opencv.org/anniversary/>
- <https://opencv.org/blog/intel-acquires-itseez/>


## Security Notes

No matching local secret-handling manifest was found for opencv. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** opencv
- **Aliases:** opencv@4
- **Version Scheme:** 0
- **Revision:** 15
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - libopencv-calib3d-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-calib3d-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libopencv-calib3d410 | https://opencv.org
- Debian apt - libopencv-calib3d410 - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-calib3d410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | computer vision Camera Calibration library | https://opencv.org
- Debian apt - libopencv-contrib-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-contrib-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libopencv-contrib410 | https://opencv.org
- Debian apt - libopencv-contrib410 - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-contrib410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | computer vision contrlib library | https://opencv.org
- Debian apt - libopencv-core-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-core-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libopencv-core410 | https://opencv.org
- Debian apt - libopencv-core410 - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-core410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | computer vision core library | https://opencv.org
- Debian apt - libopencv-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for opencv | https://opencv.org
- Debian apt - libopencv-dnn-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-dnn-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libopencv-dnn410 | https://opencv.org
- Debian apt - libopencv-dnn410 - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-dnn410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | computer vision Deep neural network module | https://opencv.org
- Debian apt - libopencv-features2d-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-features2d-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libopencv-features2d410 | https://opencv.org
- Debian apt - libopencv-features2d410 - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-features2d410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | computer vision Feature Detection and Descriptor Extraction library | https://opencv.org
- Debian apt - libopencv-flann-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-flann-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libopencv-flann410 | https://opencv.org
- Debian apt - libopencv-flann410 - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-flann410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | computer vision Clustering and Search in Multi-Dimensional spaces library | https://opencv.org
- Debian apt - libopencv-highgui-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-highgui-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libopencv-highgui410 | https://opencv.org
- Debian apt - libopencv-highgui410 - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-highgui410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | computer vision High-level GUI and Media I/O library | https://opencv.org
- Debian apt - libopencv-imgcodecs-dev - 4.10.0+dfsg-5: normalized package name match | Debian stable package indexes: libopencv-imgcodecs-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libopencv-imgcodecs410 | https://opencv.org


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [ffmpeg](https://www.automicvault.com/pkg/brew/ffmpeg/) - Runtime dependency declared by Homebrew.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [gflags](https://www.automicvault.com/pkg/brew/gflags/) - Runtime dependency declared by Homebrew.
- [glew](https://www.automicvault.com/pkg/brew/glew/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [dvr-scan](https://www.automicvault.com/pkg/brew/dvr-scan/) - Popular package that depends on this formula.
- [mlt](https://www.automicvault.com/pkg/brew/mlt/) - Popular package that depends on this formula.
- [rtabmap](https://www.automicvault.com/pkg/brew/rtabmap/) - Popular package that depends on this formula.
- [siril](https://www.automicvault.com/pkg/brew/siril/) - Popular package that depends on this formula.
- [visp](https://www.automicvault.com/pkg/brew/visp/) - Popular package that depends on this formula.
- [colmap](https://www.automicvault.com/pkg/brew/colmap/) - Shares av.db curated category or tags: cli, computer-vision, science.
- [librealsense](https://www.automicvault.com/pkg/brew/librealsense/) - Shares av.db curated category or tags: cli, computer-vision, science.
- [flann](https://www.automicvault.com/pkg/brew/flann/) - Shares av.db curated category or tags: cli, computer-vision, machine-learning, science.
- [g2o](https://www.automicvault.com/pkg/brew/g2o/) - Shares av.db curated category or tags: c-plus-plus, cli, computer-vision, science.
- [gibbslda](https://www.automicvault.com/pkg/brew/gibbslda/) - Shares av.db curated category or tags: c-plus-plus, cli, machine-learning, science.
- [biosig](https://www.automicvault.com/pkg/brew/biosig/) - Shares av.db curated category or tags: c-plus-plus, cli, science.
- [ccfits](https://www.automicvault.com/pkg/brew/ccfits/) - Shares av.db curated category or tags: c-plus-plus, cli, science.
- [openvino](https://www.automicvault.com/pkg/brew/openvino/) - Local package facts share a topical domain. Shared terms: abseil, cli, computer, computer-vision, learning.
- [root](https://www.automicvault.com/pkg/brew/root/) - Both packages touch the same language runtime or ecosystem. Shared terms: c-plus-plus, cli, freetype, jpeg, jpeg-turbo.

## Combined YAML source

View the package source record on GitHub. [combined/opencv.yml](https://github.com/automic-vault/db/blob/main/combined/opencv.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
