capture_utils
Shared capture helpers:
JsonRecorderwrites frame metadata/labels to disk underrun_dir/labels/frame_XXXXX.json(usesdata_contracts::CaptureMetadata).generate_overlaysrenders boxes onto PNGs in a run directory (overlays/).prune_runcopies a run to a filtered destination, skipping unwanted frames.
Usage
- Add
capture_utilsas a dependency and constructJsonRecorderfor default file-based recording. - Recorder sinks are pluggable: the substrate recorder installs
JsonRecorderby default; you can inject your own sink implementingvision_core::Recorder.
Deprecated: the old
capture_utilscrate name was renamed tocortenforge-capture-utils. Please depend on the new crate name.
License
Apache-2.0 (see LICENSE in the repo root).