TopGrain AI

Engineering note — AI vision

What the camera has to give the model

A vision model can only work with what the sensor delivers. Motion during exposure sets the smallest detail that survives, the pixel footprint at range sets the smallest object that can be represented at all, and the output format decides whether the host spends its CPU on debayering. All three are settled before the model is chosen.

Engineering note, not a validated function. Sensor figures are copied from each camera's product page. The distances, pixel counts and smear figures are arithmetic on those numbers and are labelled as arithmetic.

Motion during exposure

A shutter that stays open while the machine moves records a smear, and the smear is exactly the distance travelled during the exposure. Global shutter ends the argument; rolling shutter adds a skew on top of it.

Distance travelled while the shutter is open

Arithmetic: distance = speed × exposure time. Any detail smaller than this cannot be resolved in the direction of travel.
Speed5 ms10 ms20 ms
1.5 m/s (AMR)0.75 cm1.5 cm3.0 cm
8.3 m/s (30 km/h)4.2 cm8.3 cm16.7 cm
25 m/s (90 km/h)12.5 cm25 cm50 cm

Global shutter: the machine-vision default

IMX568 (Pregius S) and AR0234CS expose the whole frame at once, so a moving object is recorded at one instant. On a moving platform these are the cameras to start from, and short exposure is still required — global shutter removes the skew, not the smear.

Automotive HDR path

IMX390, ISX031 and OV10640 are built for wide dynamic range and LED flicker rather than for freezing fast motion. They suit fixed or slow-moving installations: tolling, perimeter, vehicle-mounted viewing, inspection at rest.

Exposure is a lighting decision

A short exposure that freezes motion needs light. Indoors that is a strobe or a constant source; outdoors it is sunlight, which is also the reason automotive cameras carry HDR. Fix the light budget with the exposure time, not after.

Rolling shutter skew is directional

A rolling shutter reads the frame row by row, so a vertical edge on a moving object leans in the direction of travel and the lean grows with speed and readout time. It cannot be removed by a model; it can only be avoided.

Pixels on the object

This is the calculation that decides the lens and the sensor, and it is not about megapixels in the abstract. It is how many pixels land on the thing you have to detect, at the distance you have to detect it.

Object size in pixels at range, 60° horizontal field of view

Arithmetic: scene width = 2 × range × tan(HFOV / 2); millimetres per pixel = scene width ÷ horizontal pixels; object pixels = object millimetres ÷ millimetres per pixel, for a 300 mm object.
RangeScene widthmm per pixel at 1920 pxPixels on 300 mm
5 m5.8 m3.0 mm100 px
10 m11.5 m6.0 mm50 px
20 m23.1 m12.0 mm25 px
50 m57.7 m30.1 mm10 px
100 m115.5 m60.1 mm5 px

Two consequences follow. A wider lens is not automatically better: doubling the field of view halves the pixels on every object at the same range. And the distance at which an object falls under about ten pixels is the real working limit of that camera and lens, whatever the model.

Output format decides where the work happens

RAW and YUV are not just different file types. One leaves the debayer, colour conversion and often the HDR combination to the host; the other hands over a finished picture and inherits the camera's tuning with it.

What six cameras in the catalogue output

Copied from each product page. Bytes per pixel: 12-bit RAW is 1.5, 8-bit YUV422 is 2.
CameraOutput as statedWhere the image work happens
LI-IMX568-GMSL2LI-IMX568-GMSL28/10/12-bit RAW; 96.2 / 79.1 / 67.2 fpsOn the host: debayer and colour conversion, at full RAW rate
LI-IMX390-GMSL2LI-IMX390-GMSL220-bit / 12-bit RAW; 60 fps; HDR and LFMOn the host, plus HDR combination
LI-AR0820-GMSL2LI-AR0820-GMSL212-bit RAW; 3840 × 2160On the host, at 8.3 MP per frame
LI-AR0234CS-YUV-GMSL2LI-AR0234CS-YUV-GMSL2YUV422 8-bit; AP1302 ISP; 30 fpsIn the camera; the host receives 2 bytes per pixel
LI-VENUS-ISX031-GMSL2LI-VENUS-ISX031-GMSL2YUV422 8-bit; HDR and LFM; IP69KIn the sensor SoC
LI-OV10640-490-GMSLLI-OV10640-490-GMSLTuned YUV; OV490 ISP; 30 fps; HDRIn the camera

RAW is smaller per pixel than YUV

12-bit RAW is 1.5 bytes per pixel against 2 for 8-bit YUV422. Choosing RAW is not a bandwidth penalty at these depths; the cost is CPU and memory on the host, because every frame has to be converted before a model sees it.

HDR and flicker mitigation are camera decisions

Welding arcs, low sun, headlights and pulsed LED lighting are handled inside the camera. IMX390 and ISX031 state both HDR and LED flicker mitigation; OV10640 states HDR, and its page does not claim flicker mitigation. Do not assume the two travel together.

YUV buys a smaller pipeline and inherits the tuning

A camera that outputs tuned YUV hands the host a finished image and removes conversion work, at the cost of controlling how it was tuned. In a fixed installation that is usually a good trade; in a research programme it usually is not.

Matching camera, lens and target

Four decisions, in order. Each one constrains the next, so doing them out of order usually means buying a camera twice.

1. Working distance

Fix the range band first — minimum and maximum distance to the object. Every later choice is downstream of it, and a camera that is right at 20 m can be wrong at 50 cm.

2. Field of view from the object

The field of view has to contain the object plus the motion the tracker needs, not the whole aisle. Take the HFOV option from the lens list on the product page and check millimetres per pixel at the far end of the distance band.

3. Shutter from the speed

Use the smear table: if the exposure needed for your lighting smears the object by more than the smallest feature you care about, the camera must be global shutter.

4. Interface from the host

GMSL2 cameras need a deserialiser or capture board, and the host needs enough ports for the count. Orin Nano Super exposes two MIPI CSI-2 connectors, so a four-camera rig is a capture-board decision before it is a model decision.

What we need before recommending a camera

These answers settle sensor, lens and interface together, which is the only way the choice stays consistent.

  • What the model must detect, and the smallest instance size in millimetres
  • Working distance band: nearest and furthest the object appears
  • Speed of the object relative to the camera, and the exposure time your lighting allows
  • Lighting conditions: sunlight, welding arc, headlights, infrared, and whether LEDs are in view
  • Whether inference runs on the camera, on a host, or both
  • The host platform and how many camera ports it has
  • Whether colour is required, or monochrome is enough
  • IP rating, ambient temperature and cable length at the mounting point

Where this page stops

  • Millimetres-per-pixel figures are geometric. They assume the object faces the sensor and is in focus, and they ignore lens distortion at the frame edges.
  • Smear arithmetic assumes one exposure. An HDR frame combined from several exposures is not a single instant, and its motion behaviour is more complex than this table shows.
  • Shutter type, HDR and flicker mitigation are quoted per camera from its own page. Where a page does not state a feature, none is claimed here.
  • No detection rate, accuracy, recall or model performance is claimed anywhere on this page. We supply cameras and support selection and bring-up; the model and its validation are yours.
  • Camera ratings are datasheet values. A sealed housing, a heated enclosure or a dirty lens changes the real operating envelope.