Custom video source
Plug custom video sources into PySDK using predict_batch—ideal for cameras, SDKs, GStreamer, and advanced use cases needing per-frame control or metadata.
How predict_batch works
Lifecycle & flow
Common setup
Example: OpenCV source (with frame_info)
Example: Raspberry Pi Camera (PiCamera2)
Example: GStreamer via OpenCV (simple)
Example: GStreamer via PyGObject (appsink, fine control)
Last updated
Was this helpful?

