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 facadeEnd 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§
- Captured
Frame - A single frame returned by a
VideoStream. - MinMax
Result - Result of
ImageOpsPort::min_max_loc. - Owned
MatView - Pure-Rust owned mat-view for use in tests and pure-Rust pipelines.
- Pure
Rust Image Ops - Pure-Rust implementation of element-wise and reduction
ImageOpsPortmethods.
Enums§
- Backend
- Selector for the underlying capture backend.
- Color
Conversion - Supported color-space conversions.
- Encoding
Kind - The output container an
ImageEncoderPortshould produce. - Image
Encoding Error - Errors produced by
crate::ImageEncoderPort. - Image
OpsError - Errors produced by
crate::ImageOpsPort. - Open
CvError - Umbrella error type spanning every port in the domain.
- Pixel
Format - Pixel layout for a
crate::MatView’s buffer. - Threshold
Kind - Thresholding algorithm selector.
- Video
Capture Error - Errors produced by
crate::VideoCapturePortandcrate::VideoStream.
Traits§
- Image
Encoder Port - Encodes a
MatViewinto a byte buffer in one of theEncodingKinds. - Image
OpsPort - Port exposing element-wise and reduction image operations.
- MatView
- Read-only view over an image buffer with pixel-format metadata.
- Video
Capture Port - Opens video sources and produces
VideoStreaminstances. - Video
Stream - An open video stream producing frames on demand.
Type Aliases§
- Result
- Convenience
Resultalias usingOpenCvErroras the error type.