The problem
Video pipelines can waste Jetson CPU and memory when frames are
repeatedly copied between camera, decoder, inference, network, and UI
layers. A Flutter preview should not force the robot's perception
pipeline to run at display rate.
What this guide covers
This tutorial focuses on practical architecture and performance
engineering for production systems. The central principle is to measure
the complete pipeline, keep latency-sensitive work close to the
hardware, and make failure states visible to the operator.
Reference architecture
Camera β GStreamer/V4L2 capture β hardware-accelerated decode/convert
where supported β inference branch and preview branch β
encoded/downsized stream or sampled frames β Flutter UI.
Implementation plan
Profile capture, decode, color conversion, inference, encoding, and network transfer independently.
Use hardware-accelerated GStreamer elements where supported by the Jetson model and software image.
Keep inference and preview branches decoupled;β¦