A compute budget for a 60 parts-per-minute line
How we split the 1,000 ms a station has per part between exposure, transfer, GPU inference and the PLC, and why we target 105 ms.
Sixty parts a minute sounds slow. It means one part per second, and an inline inspection station has to photograph the part, judge it and tell the line what to do before the part reaches the reject gate. This note explains how we budget that second. All figures here are design targets, not measured results; we will publish measurements from hardware separately.
The real deadline is the reject gate
The full second is not available for computing. The deadline is set by geometry: the distance from the camera to the pusher divided by the belt speed. On a compact station that might be 300 mm at 0.5 m/s, so 600 ms. Subtract a margin for the pusher's own travel time and for jitter, and a few hundred milliseconds remain. We plan for a total of 105 ms from trigger to PLC output, which leaves a wide margin for a slower belt, a tighter layout or a second camera.
Where the 105 ms goes
Trigger and exposure, 4 ms. A photo sensor fires the camera and a strobed light together. Exposures of 100 to 200 microseconds freeze motion; the rest is trigger latency and sensor readout.
Transfer, 20 ms. A 1920 × 1200 monochrome frame is about 2.3 MB. GigE Vision on a 1 Gb/s link moves roughly 110 to 120 MB/s in practice, so transfer takes about 20 ms. A 5 MP sensor would double this, which is one reason we choose the smallest resolution that resolves the defect.
GPU pre-processing, 6 ms. In DeepStream the frame goes into GPU memory once, and conversion, cropping and resizing happen there without copying back through the CPU (NVIDIA, DeepStream SDK documentation).
Anomaly model, 38 ms; detector, 22 ms. These are the large items. Both models are compiled with TensorRT, which fuses layers and selects kernels for the specific GPU, in FP16 or, with calibration, INT8 (NVIDIA, TensorRT documentation). The detector runs only where it is needed, so many parts skip it.
Decision and logging, 10 ms. Rules convert scores into a verdict, defect sizes are converted to millimetres, and a record is put on a queue. Writing the image to disk happens off the critical path.
PLC output, 5 ms. A digital output is effectively instant; a Modbus TCP write on a quiet plant network takes a few milliseconds.
Why the GPU is not optional
A PatchCore-style model extracts features from a convolutional backbone at several scales for every part and compares thousands of patch features against a memory bank (Roth et al., 2022). On an embedded CPU, that alone would take far longer than the budget. On a Jetson Orin module, which combines an Ampere-architecture GPU with Tensor Cores and an ARM CPU in one module (NVIDIA, Jetson Orin documentation), the same work fits in tens of milliseconds and leaves the CPU free for I/O and logging.
Throughput is not latency
At 60 parts per minute the GPU is idle most of the time. That headroom is deliberate. It lets one module serve two cameras, run a second model for a different defect family, or handle a burst when parts bunch up on the belt. It also means we can choose FP16 over INT8 where INT8 would cost accuracy, without missing the deadline.
Measure on the device
Latency measured on a desktop GPU says little about a Jetson in a hot cabinet. Our acceptance test runs on the station hardware for a full shift, logs the time of every stage for every part, and reports the 99th percentile, not the average. A station that meets its budget on average but misses it once a minute sends one bad part a minute past the gate.
References
- NVIDIA. TensorRT Developer Guide. docs.nvidia.com/deeplearning/tensorrt.
- NVIDIA. DeepStream SDK Developer Guide. docs.nvidia.com/metropolis/deepstream.
- NVIDIA. Jetson Orin modules and developer kits, technical documentation. developer.nvidia.com/embedded/jetson-modules.
- Association for Advancing Automation (A3). GigE Vision standard. automate.org.
- K. Roth, L. Pemula, J. Zepeda, B. Schölkopf, T. Brox, P. Gehler. Towards Total Recall in Industrial Anomaly Detection. CVPR 2022.