opencv-rs-fake
Scripted in-memory implementations of every opencv-rs-core port, for
use as a dev-dependency in code that depends on the ports.
These fakes let tests script deterministic frame sequences, inject
errors at specific call sites, and record invocations for later
assertion — without linking against the opencv crate. This crate
depends only on opencv-rs-core; it must never depend on
opencv-rs-ffi or on opencv.
Types
ScriptedVideoCapture/ScriptedVideoStreamScriptedImageEncoderPassthroughImageOps
Example
use ;
use ScriptedVideoCapture;
use Path;
use Arc;
let frames = vec!;
let capture = with_frames;
let mut stream = capture.open.unwrap;
assert!;
assert!;
assert!; // EndOfStream
License
MIT OR Apache-2.0.