Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, Nix, pacman, zypper, chocolatey, apt, scoop 安装 opencv

查看 opencv 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install opencv

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add opencv

Alpine Linux edge package indexes · opencv · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install opencv

Fedora Rawhide package metadata · opencv · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#opencv

nixpkgs package indexes · opencv · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S opencv

Arch Linux sync databases · opencv · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install opencv

openSUSE Tumbleweed package metadata · opencv · 来源: download.opensuse.org

Debian apt已验证 · 92%
sudo apt install libopencv-calib3d-dev

Debian stable package indexes · libopencv-calib3d-dev · 来源: deb.debian.org

Windows

Chocolatey已验证 · 92%
choco install OpenCV

Chocolatey community package catalog · OpenCV · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/opencv

Scoop official bucket manifest trees · bucket/opencv.json · 来源: api.github.com

概览

软件包摘要

Open source computer vision library

命令和别名

  • opencv_annotation
  • opencv_interactive-calibration
  • opencv_model_diagnostics
  • opencv_version
  • opencv_visualisation
  • opencv_waldboost_detector
  • setup_vars_opencv4.sh

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

尚未找到受保护工具覆盖

没有找到 opencv 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 26 个运行时依赖。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
opencv_annotationcli全局可执行文件
opencv_interactive-calibrationcli全局可执行文件
opencv_model_diagnosticscli全局可执行文件
opencv_versioncli全局可执行文件
opencv_visualisationcli全局可执行文件
opencv_waldboost_detectorcli全局可执行文件
setup_vars_opencv4.shcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本5.0.0
管理器更新时间2026-07-10
本地数据OK
上游当前
检测到的最新版本5.0.0

https://github.com/opencv/opencv

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nameopencv
Aliases
  • opencv@5
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libopencv-calib3d-dev 4.10.0+dfsg-5

development files for libopencv-calib3d410

https://opencv.org

sudo apt install libopencv-calib3d-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 2 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-calib3d-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-calib3d410 4.10.0+dfsg-5

computer vision Camera Calibration library

https://opencv.org

sudo apt install libopencv-calib3d410
  • Section: libs
  • Architecture: amd64
  • Source Package: opencv
  • 7 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-calib3d410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-contrib-dev 4.10.0+dfsg-5

development files for libopencv-contrib410

https://opencv.org

sudo apt install libopencv-contrib-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 19 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-contrib-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-contrib410 4.10.0+dfsg-5

computer vision contrlib library

https://opencv.org

sudo apt install libopencv-contrib410
  • Section: libs
  • Architecture: amd64
  • Source Package: opencv
  • 22 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-contrib410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-core-dev 4.10.0+dfsg-5

development files for libopencv-core410

https://opencv.org

sudo apt install libopencv-core-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 3 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-core-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-core410 4.10.0+dfsg-5

computer vision core library

https://opencv.org

sudo apt install libopencv-core410
  • Section: libs
  • Architecture: amd64
  • Source Package: opencv
  • 10 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-core410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-dev 4.10.0+dfsg-5

development files for opencv

https://opencv.org

sudo apt install libopencv-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 32 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-dnn-dev 4.10.0+dfsg-5

development files for libopencv-dnn410

https://opencv.org

sudo apt install libopencv-dnn-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 2 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-dnn-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-dnn410 4.10.0+dfsg-5

computer vision Deep neural network module

https://opencv.org

sudo apt install libopencv-dnn410
  • Section: libs
  • Architecture: amd64
  • Source Package: opencv
  • 6 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-dnn410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-features2d-dev 4.10.0+dfsg-5

development files for libopencv-features2d410

https://opencv.org

sudo apt install libopencv-features2d-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 4 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-features2d-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-features2d410 4.10.0+dfsg-5

computer vision Feature Detection and Descriptor Extraction library

https://opencv.org

sudo apt install libopencv-features2d410
  • Section: libs
  • Architecture: amd64
  • Source Package: opencv
  • 6 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-features2d410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-flann-dev 4.10.0+dfsg-5

development files for libopencv-flann410

https://opencv.org

sudo apt install libopencv-flann-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 2 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-flann-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-flann410 4.10.0+dfsg-5

computer vision Clustering and Search in Multi-Dimensional spaces library

https://opencv.org

sudo apt install libopencv-flann410
  • Section: libs
  • Architecture: amd64
  • Source Package: opencv
  • 4 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-flann410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-highgui-dev 4.10.0+dfsg-5

development files for libopencv-highgui410

https://opencv.org

sudo apt install libopencv-highgui-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 12 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-highgui-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-highgui410 4.10.0+dfsg-5

computer vision High-level GUI and Media I/O library

https://opencv.org

sudo apt install libopencv-highgui410
  • Section: libs
  • Architecture: amd64
  • Source Package: opencv
  • 12 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-highgui410 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencv-imgcodecs-dev 4.10.0+dfsg-5

development files for libopencv-imgcodecs410

https://opencv.org

sudo apt install libopencv-imgcodecs-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencv
  • 3 依赖
  • normalized package name match
  • 匹配方式:Opencv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencv-imgcodecs-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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