opencv

A open source computer vision library.

Latest version: 4.14.0

Add to xmake.lua

add_requires("opencv 4.14.0")

Learn how to add and link packages with Xmake →

Information

License
Apache-2.0
Recipe updated
2026-07-23T13:06:31.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
  • macosx: x86_64, arm64
  • windows: x86, x64, arm, arm64, arm64ec

Options

1394
Include 1394 support. · Type: boolean · Default: false
blas
Set BLAS vendor. · Values: mkl, openblas
bundled
Build 3rd-party libraries with OpenCV. · Type: boolean · Default: true
cuda
Enable CUDA support. · Type: boolean · Default: false
dynamic_parallel
Dynamically load parallel runtime (TBB etc.). · Type: boolean · Default: false
eigen
Include eigen support. · Type: boolean · Default: true
ffmpeg
Include ffmpeg support. · Type: boolean · Default: true
gstreamer
Include gstreamer support. · Type: boolean · Default: false
gtk
Include gtk support. · Type: boolean · Default: false
halide
Include halide support. · Type: boolean · Default: false
ipp
Include ipp support. · Type: boolean · Default: false
itt
Include itt support. · Type: boolean · Default: false
jasper
Include jasper support. · Type: boolean · Default: false
jpeg
Include jpeg support. · Type: boolean · Default: true
obsensor
Include obsensor support. · Type: boolean · Default: false
openexr
Include openexr support. · Type: boolean · Default: false
opengl
Include opengl support. · Type: boolean · Default: true
openjpeg
Include openjpeg support. · Type: boolean · Default: false
openmp
Include openmp support. · Type: boolean · Default: false
png
Include png support. · Type: boolean · Default: true
protobuf
Include protobuf support. · Type: boolean · Default: true
quirc
Include quirc support. · Type: boolean · Default: true
tbb
Include tbb support. · Type: boolean · Default: false
tesseract
Enable tesseract on text module · Type: boolean · Default: false
tiff
Include tiff support. · Type: boolean · Default: true
vtk
Include vtk support. · Type: boolean · Default: false
vulkan
Include vulkan support. · Type: boolean · Default: false
webp
Include webp support. · Type: boolean · Default: true

Versions

  • 3.4.9
  • 4.2.0
  • 4.5.1
  • 4.5.2
  • 4.5.3
  • 4.5.4
  • 4.5.5
  • 4.6.0
  • 4.8.0
  • 4.9.0
  • 4.10.0
  • 4.11.0
  • 4.12.0
  • 4.13.0
  • 4.14.0

Dependencies

No dependencies declared.

Used by (1)

Packages declaring this dependency; requirements can vary by platform and configuration.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "opencv 4.14.0"

show info

xrepo info "opencv"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("opencv 4.14.0")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("opencv")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "opencv 4.14.0" shell