macOS
brew install opencvlocal Homebrew formula metadata
安装
brew install opencvlocal Homebrew formula metadata
sudo apk add opencvAlpine Linux edge package indexes · opencv · 来源: dl-cdn.alpinelinux.org
sudo dnf install opencvFedora Rawhide package metadata · opencv · 来源: dl.fedoraproject.org
nix profile install nixpkgs#opencvnixpkgs package indexes · opencv · 来源: raw.githubusercontent.com
sudo pacman -S opencvArch Linux sync databases · opencv · 来源: geo.mirror.pkgbuild.com
sudo zypper install opencvopenSUSE Tumbleweed package metadata · opencv · 来源: download.opensuse.org
sudo apt install libopencv-calib3d-devDebian stable package indexes · libopencv-calib3d-dev · 来源: deb.debian.org
choco install OpenCVChocolatey community package catalog · OpenCV · 来源: community.chocolatey.org
scoop install main/opencvScoop official bucket manifest trees · bucket/opencv.json · 来源: api.github.com
概览
Open source computer vision library
历史
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.
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.
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.
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.
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.
安全态势
没有找到 opencv 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
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 | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/opencv/opencv
安装元数据
| 软件包键 | brew:opencv |
|---|---|
| 版本 | 5.0.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/opencv |
| 主页 | https://opencv.org/ |
| 仓库 | https://github.com/opencv/opencv |
| 上游文档 | https://docs.opencv.org/4.x |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/opencv/opencv/archive/refs/tags/5.0.0.tar.gz |
| 最后更新 | 2026-07-10T02:36:58Z |
| Pulse | updated |
| 依赖 | 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 |
| 构建依赖 | cmake, pkgconf, python-setuptools |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | opencv |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libopencv-calib3d-dev 4.10.0+dfsg-5
development files for libopencv-calib3d410
sudo apt install libopencv-calib3d-devlibopencv-calib3d410 4.10.0+dfsg-5
computer vision Camera Calibration library
sudo apt install libopencv-calib3d410libopencv-contrib-dev 4.10.0+dfsg-5
development files for libopencv-contrib410
sudo apt install libopencv-contrib-devlibopencv-contrib410 4.10.0+dfsg-5
computer vision contrlib library
sudo apt install libopencv-contrib410libopencv-core-dev 4.10.0+dfsg-5
development files for libopencv-core410
sudo apt install libopencv-core-devlibopencv-core410 4.10.0+dfsg-5
computer vision core library
sudo apt install libopencv-core410libopencv-dev 4.10.0+dfsg-5
development files for opencv
sudo apt install libopencv-devlibopencv-dnn-dev 4.10.0+dfsg-5
development files for libopencv-dnn410
sudo apt install libopencv-dnn-devlibopencv-dnn410 4.10.0+dfsg-5
computer vision Deep neural network module
sudo apt install libopencv-dnn410libopencv-features2d-dev 4.10.0+dfsg-5
development files for libopencv-features2d410
sudo apt install libopencv-features2d-devlibopencv-features2d410 4.10.0+dfsg-5
computer vision Feature Detection and Descriptor Extraction library
sudo apt install libopencv-features2d410libopencv-flann-dev 4.10.0+dfsg-5
development files for libopencv-flann410
sudo apt install libopencv-flann-devlibopencv-flann410 4.10.0+dfsg-5
computer vision Clustering and Search in Multi-Dimensional spaces library
sudo apt install libopencv-flann410libopencv-highgui-dev 4.10.0+dfsg-5
development files for libopencv-highgui410
sudo apt install libopencv-highgui-devlibopencv-highgui410 4.10.0+dfsg-5
computer vision High-level GUI and Media I/O library
sudo apt install libopencv-highgui410libopencv-imgcodecs-dev 4.10.0+dfsg-5
development files for libopencv-imgcodecs410
sudo apt install libopencv-imgcodecs-dev来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.