Crate vision_runtime

Crate vision_runtime 

Source
Expand description

Bevy-integrated vision runtime: camera capture, async inference, and detection overlays.

This crate provides Bevy plugins and systems for:

  • Off-screen camera capture with GPU readback (CapturePlugin).
  • Async inference scheduling and result polling (InferenceRuntimePlugin).
  • Detection overlay rendering and threshold hotkeys.

It bridges the framework-agnostic vision_core interfaces with Bevy ECS resources and systems, enabling real-time detector integration in Bevy apps.

§Architecture Note

This is the runtime layer. Core detector interfaces live in vision_core, while detector implementations are in inference. See the architecture docs for the full split.

Modules§

prelude

Structs§

AsyncInferenceState
Resource managing async inference task state.
CapturePlugin
DetectionOverlayState
DetectorHandle
InferenceRuntimePlugin
Bevy plugin managing runtime inference coordination.
InferenceThresholdsResource
Bevy resource wrapper for inference thresholds.
ModelLoadedFlag
Resource tracking whether a model detector is loaded (vs. heuristic fallback).
PrimaryCameraFrame
PrimaryCameraFrameBuffer
PrimaryCameraState
RuntimeDetectionResult
Detection result from vision_runtime async inference.

Enums§

DetectorKind

Functions§

capture_primary_camera_frame
on_primary_capture_readback
poll_inference_task
recorder_draw_rect
schedule_burn_inference
setup_primary_capture
threshold_hotkeys
track_primary_camera_state