🍺 BREW Explorer

← all formulae

opencv

brew install opencv v4.13.0_15 Apache-2.0

C++ library for real-time computer vision, image processing, and machine learning model inference.

Why you might care

Use OpenCV as a build/runtime dependency for applications needing image/video processing, object detection, or ML model execution; it's the industry standard with broad codec support, GPU acceleration options, and bindings for Python and other languages. Preferred over lightweight alternatives when you need comprehensive CV algorithms and production-grade performance.

Categories

Alternatives

FFmpeg scikit-image TensorFlow PyTorch
6.4k
30-day installs · #496
19.0k
90-day · #546
91.0k
365-day · #457

Runtime dependencies

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [
    "opencv@4"
  ],
  "alternatives": [
    "FFmpeg",
    "scikit-image",
    "TensorFlow",
    "PyTorch"
  ],
  "build_dependencies": [
    "cmake",
    "pkgconf",
    "python-setuptools"
  ],
  "categories": [
    "library",
    "image-tool",
    "video-tool",
    "ml",
    "ai",
    "data-science"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "abseil",
    "ceres-solver",
    "eigen",
    "ffmpeg",
    "freetype",
    "gflags",
    "glog",
    "harfbuzz",
    "jpeg-turbo",
    "jsoncpp",
    "libpng",
    "libtiff",
    "numpy",
    "openblas",
    "openexr",
    "openjpeg",
    "openvino",
    "protobuf",
    "python@3.14",
    "tbb",
    "tesseract",
    "vtk",
    "webp",
    "glew",
    "imath",
    "libarchive"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Open source computer vision library",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:54+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "opencv",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://opencv.org/",
  "homepage_og_description": "OpenCV provides a real-time optimized Computer Vision library, tools, and hardware. It also supports model execution for Machine Learning (ML) and Artificial Intelligence (AI).",
  "homepage_og_image": "https://opencv.org/wp-content/uploads/2025/06/opencv-featured.jpg",
  "homepage_title": "OpenCV - Open Computer Vision Library",
  "installs_30d": 6365,
  "installs_365d": 90970,
  "installs_90d": 18979,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": "2026-06-20T23:45:13+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "opencv",
  "oldnames": [
    "opencv3"
  ],
  "one_liner": "C++ library for real-time computer vision, image processing, and machine learning model inference.",
  "optional_dependencies": [],
  "rank_30d": 496,
  "rank_365d": 457,
  "rank_90d": 546,
  "raw_hash": "b053e59d97171e06",
  "recommended_dependencies": [],
  "revision": 15,
  "ruby_source_path": "Formula/o/opencv.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "4.13.0",
  "versioned_formulae": [],
  "why_use_this": "Use OpenCV as a build/runtime dependency for applications needing image/video processing, object detection, or ML model execution; it\u0027s the industry standard with broad codec support, GPU acceleration options, and bindings for Python and other languages. Preferred over lightweight alternatives when you need comprehensive CV algorithms and production-grade performance."
}