Skip to main content

Crate opencv_rs

Crate opencv_rs 

Source
Expand description

Hexagonal Rust wrapper over OpenCV primitives.

Convenience facade re-exporting the ports defined in opencv-rs-core. When the opencv feature is enabled, the production adapters from opencv-rs-ffi are also re-exported.

opencv-rs-core   ← traits + DTOs, zero FFI
    ↑
    ├── opencv-rs-fake  ← deterministic in-memory impls for tests
    └── opencv-rs-ffi   ← production impls wrapping the `opencv` crate
            ↑
            opencv-rs  ← this facade

End users should depend on this crate. Downstream tests depend on opencv-rs-fake as a dev-dependency.

Re-exports§

pub use opencv_rs_core as core;

Structs§

CapturedFrame
A single frame returned by a VideoStream.
MinMaxResult
Result of ImageOpsPort::min_max_loc.
OwnedMatView
Pure-Rust owned mat-view for use in tests and pure-Rust pipelines.
PureRustImageOps
Pure-Rust implementation of element-wise and reduction ImageOpsPort methods.

Enums§

Backend
Selector for the underlying capture backend.
ColorConversion
Supported color-space conversions.
EncodingKind
The output container an ImageEncoderPort should produce.
ImageEncodingError
Errors produced by crate::ImageEncoderPort.
ImageOpsError
Errors produced by crate::ImageOpsPort.
OpenCvError
Umbrella error type spanning every port in the domain.
PixelFormat
Pixel layout for a crate::MatView’s buffer.
ThresholdKind
Thresholding algorithm selector.
VideoCaptureError
Errors produced by crate::VideoCapturePort and crate::VideoStream.

Traits§

ImageEncoderPort
Encodes a MatView into a byte buffer in one of the EncodingKinds.
ImageOpsPort
Port exposing element-wise and reduction image operations.
MatView
Read-only view over an image buffer with pixel-format metadata.
VideoCapturePort
Opens video sources and produces VideoStream instances.
VideoStream
An open video stream producing frames on demand.

Type Aliases§

Result
Convenience Result alias using OpenCvError as the error type.