[package]
edition = "2024"
rust-version = "1.88.0"
name = "opencv"
version = "0.99.0"
authors = [
"Pro <twisted.fall@gmail.com>",
"Mathieu Poumeyrol <kali@zoy.org>",
]
build = "build.rs"
exclude = [
"/.github",
"/ci",
"/tools",
"/.editorconfig",
"/.gitattributes",
"/release.toml",
"/rustfmt.toml",
".gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings for OpenCV"
documentation = "https://docs.rs/opencv"
readme = "README.md"
keywords = [
"opencv",
"vision",
"cv",
]
categories = [
"api-bindings",
"computer-vision",
"external-ffi-bindings",
"multimedia",
]
license = "MIT"
repository = "https://github.com/twistedfall/opencv-rust"
[package.metadata.docs.rs]
no-default-features = true
[badges.maintenance]
status = "actively-developed"
[features]
alphamat = []
aruco = []
aruco_detector = ["aruco"]
barcode = []
bgsegm = ["video"]
bioinspired = []
calib = ["features"]
calib3d = ["features2d"]
ccalib = ["features2d"]
clang-runtime = ["opencv-binding-generator/clang-runtime"]
cudaarithm = []
cudabgsegm = ["video"]
cudacodec = []
cudafeatures2d = ["features2d"]
cudafilters = []
cudaimgproc = ["imgproc"]
cudalegacy = []
cudaobjdetect = ["objdetect"]
cudaoptflow = []
cudastereo = ["calib3d"]
cudawarping = []
cvv = []
default = [
"alphamat",
"aruco",
"aruco_detector",
"barcode",
"bgsegm",
"bioinspired",
"calib",
"calib3d",
"ccalib",
"cudaarithm",
"cudabgsegm",
"cudacodec",
"cudafeatures2d",
"cudafilters",
"cudaimgproc",
"cudalegacy",
"cudaobjdetect",
"cudaoptflow",
"cudastereo",
"cudawarping",
"cvv",
"dnn",
"dnn_superres",
"dpm",
"face",
"features",
"features2d",
"flann",
"freetype",
"fuzzy",
"gapi",
"geometry",
"hdf",
"hfs",
"highgui",
"img_hash",
"imgcodecs",
"imgproc",
"intensity_transform",
"line_descriptor",
"mcc",
"ml",
"objdetect",
"optflow",
"ovis",
"phase_unwrapping",
"photo",
"plot",
"ptcloud",
"quality",
"rapid",
"rgbd",
"saliency",
"sfm",
"shape",
"signal",
"stereo",
"stitching",
"structured_light",
"superres",
"surface_matching",
"text",
"tracking",
"video",
"videoio",
"videostab",
"viz",
"wechat_qrcode",
"xfeatures2d",
"ximgproc",
"xobjdetect",
"xphoto",
"xstereo",
]
dnn = []
dnn_superres = []
dpm = []
f16 = ["dep:half"]
face = ["objdetect"]
features = ["flann"]
features2d = ["flann"]
flann = []
freetype = []
fuzzy = []
gapi = []
geometry = []
hdf = []
hfs = []
highgui = []
img_hash = []
imgcodecs = []
imgproc = []
intensity_transform = []
line_descriptor = []
mcc = ["dnn"]
ml = []
objdetect = []
optflow = ["video"]
ovis = []
phase_unwrapping = []
photo = []
plot = []
ptcloud = []
quality = ["ml"]
rapid = []
rgbd = []
saliency = []
sfm = []
shape = []
signal = []
stereo = []
stitching = [
"features2d",
"imgproc",
]
structured_light = []
superres = []
surface_matching = []
text = []
tracking = ["video"]
video = ["dnn"]
videoio = []
videostab = ["features2d"]
viz = []
wechat_qrcode = []
xfeatures2d = ["features2d"]
ximgproc = ["calib3d"]
xobjdetect = []
xphoto = ["photo"]
xstereo = []
[lib]
name = "opencv"
path = "src/lib.rs"
doctest = false
[[example]]
name = "camera_calibration"
path = "examples/camera_calibration.rs"
[[example]]
name = "create_mask"
path = "examples/create_mask.rs"
[[example]]
name = "cuda"
path = "examples/cuda.rs"
[[example]]
name = "discrete_fourier_transform"
path = "examples/discrete_fourier_transform.rs"
[[example]]
name = "dnn_face_detect"
path = "examples/dnn_face_detect.rs"
[[example]]
name = "gapi_api_example"
path = "examples/gapi_api_example.rs"
[[example]]
name = "hough_circle"
path = "examples/hough_circle.rs"
[[example]]
name = "hough_lines"
path = "examples/hough_lines.rs"
[[example]]
name = "opencl"
path = "examples/opencl.rs"
[[example]]
name = "text_detection"
path = "examples/text_detection.rs"
[[example]]
name = "video_capture"
path = "examples/video_capture.rs"
[[example]]
name = "video_capture_http_stream"
path = "examples/video_capture_http_stream.rs"
[[example]]
name = "video_facedetect"
path = "examples/video_facedetect.rs"
[[example]]
name = "video_features"
path = "examples/video_features.rs"
[[example]]
name = "video_to_gray"
path = "examples/video_to_gray.rs"
[[example]]
name = "warp_perspective_demo"
path = "examples/warp_perspective_demo.rs"
[[example]]
name = "window"
path = "examples/window.rs"
[[test]]
name = "boxed"
path = "tests/boxed.rs"
[[test]]
name = "boxed_ref"
path = "tests/boxed_ref.rs"
[[test]]
name = "build"
path = "tests/build.rs"
[[test]]
name = "cond"
path = "tests/cond.rs"
[[test]]
name = "core"
path = "tests/core.rs"
[[test]]
name = "core_only_latest_opencv"
path = "tests/core_only_latest_opencv.rs"
[[test]]
name = "data_type"
path = "tests/data_type.rs"
[[test]]
name = "dnn"
path = "tests/dnn.rs"
[[test]]
name = "enumeration"
path = "tests/enumeration.rs"
[[test]]
name = "enums"
path = "tests/enums.rs"
[[test]]
name = "features2d"
path = "tests/features2d.rs"
[[test]]
name = "imgcodecs"
path = "tests/imgcodecs.rs"
[[test]]
name = "imgproc"
path = "tests/imgproc.rs"
[[test]]
name = "inplace"
path = "tests/inplace.rs"
[[test]]
name = "input_output_array"
path = "tests/input_output_array.rs"
[[test]]
name = "marshalling"
path = "tests/marshalling.rs"
[[test]]
name = "marshalling_only_latest_opencv"
path = "tests/marshalling_only_latest_opencv.rs"
[[test]]
name = "mat"
path = "tests/mat.rs"
[[test]]
name = "mat_ops"
path = "tests/mat_ops.rs"
[[test]]
name = "matx"
path = "tests/matx.rs"
[[test]]
name = "ml"
path = "tests/ml.rs"
[[test]]
name = "objdetect"
path = "tests/objdetect.rs"
[[test]]
name = "opencl"
path = "tests/opencl.rs"
[[test]]
name = "point"
path = "tests/point.rs"
[[test]]
name = "point3"
path = "tests/point3.rs"
[[test]]
name = "rect"
path = "tests/rect.rs"
[[test]]
name = "size"
path = "tests/size.rs"
[[test]]
name = "slice"
path = "tests/slice.rs"
[[test]]
name = "slice_from_null"
path = "tests/slice_from_null.rs"
[[test]]
name = "smart_ptr"
path = "tests/smart_ptr.rs"
[[test]]
name = "stitching"
path = "tests/stitching.rs"
[[test]]
name = "umat"
path = "tests/umat.rs"
[[test]]
name = "vec"
path = "tests/vec.rs"
[[test]]
name = "vector"
path = "tests/vector.rs"
[[test]]
name = "videoio"
path = "tests/videoio.rs"
[dependencies.half]
version = "2"
optional = true
[dependencies.libc]
version = "0.2"
[dependencies.num-traits]
version = "0.2"
[dependencies.rgb]
version = "0.8.20"
features = ["argb"]
optional = true
default-features = false
[dev-dependencies.cc]
version = "1.0.83"
features = ["parallel"]
[dev-dependencies.dunce]
version = "1"
[dev-dependencies.jobserver]
version = "0.1.25"
[dev-dependencies.matches]
version = "0.1"
[dev-dependencies.opencv-binding-generator]
version = "0.102.0"
[dev-dependencies.pkg-config]
version = "0.3"
[dev-dependencies.semver]
version = "1"
[dev-dependencies.shlex]
version = "2"
default-features = false
[dev-dependencies.vcpkg]
version = "0.2.9"
[build-dependencies.cc]
version = "1.0.83"
features = ["parallel"]
[build-dependencies.dunce]
version = "1"
[build-dependencies.jobserver]
version = "0.1.25"
[build-dependencies.opencv-binding-generator]
version = "0.102.0"
[build-dependencies.pkg-config]
version = "0.3"
[build-dependencies.semver]
version = "1"
[build-dependencies.shlex]
version = "2"
default-features = false
[build-dependencies.vcpkg]
version = "0.2.9"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
"Win32_Graphics_Direct3D9",
"Win32_Graphics_Direct3D10",
"Win32_Graphics_Direct3D11",
]