Skip to main content

Module webcam

Module webcam 

Source
Expand description

Webcam live-inference API; frames go straight to the texture, only detections cross the bridge.

Structs§

CameraDesc
DetectionBox
A detection in source-frame pixels; a field-accessible mirror of the opaque core Detection.
DetectionEvent
WebcamStreamConfig

Functions§

list_cameras
Not sync on purpose: the device monitor starts libcamera, about a second the UI thread must not wait out.
start_webcam_inference
Streams capture + inference events to sink until stop_webcam_inference; errors if running.
stop_webcam_inference
Stops the running session (no-op when idle).
webcam_inference_available
Whether this build can run the webcam pipeline: a compile-time answer, cheap enough for a widget’s build.