A camera product is a measurement system. Light leaves a source, interacts with a surface, passes through a lens, becomes charge on a sensor, crosses a bus, gets reshaped by an image signal processor and only then reaches an algorithm. Information lost early in that chain cannot be reliably recovered later. That is why we treat machine vision as a hardware, firmware and AI problem together.
This note describes an engineering method and failure modes common to vision systems. It is not a report on a named client, and it contains no client data or measured results. Numbers below are worked examples with stated assumptions. Always confirm part capabilities against current vendor documentation.
Start with the decision, then work backwards
Before choosing a camera, we write down what the system must decide and what a wrong decision costs. These answers drive nearly every later choice:
| Question | What it determines |
|---|---|
| What is the smallest feature or defect that matters? | Object-space resolution, so sensor pixel count and field of view |
| How fast does the scene move? | Exposure time, shutter type, light output, frame rate |
| How much can the distance to the object vary? | Depth of field, aperture, focus strategy, lens type |
| How soon is the answer needed? | Where inference runs, buffering depth, interface choice |
| Which error is worse: a miss or a false alarm? | Operating threshold, review workflow, acceptance criteria |
| What changes over the product's life? | Lighting control, recalibration, dataset refresh, model updates |
Optics: the arithmetic that comes first
Suppose a part must be imaged across a 200 mm wide field of view from about 500 mm, using a sensor 2448 pixels wide with 3.45 µm pixels, and the smallest defect of interest is 0.3 mm.
sensor width = 2448 px x 3.45 um = 8.45 mm
object-space size = 200 mm / 2448 px = 0.082 mm per pixel
pixels on defect = 0.3 mm / 0.082 mm = 3.7 px
magnification m = 8.45 mm / 200 mm = 0.0422
focal length f = m x distance / (1 + m) = about 20 mm (thin-lens estimate)
About three to four pixels across the smallest feature is a common starting rule of thumb, not a guarantee: contrast, noise and lens sharpness decide whether it is enough. Since 20 mm falls between common fixed focal lengths, we would pick a stock lens and adjust the working distance, then confirm with a test chart and real samples.
Aperture is a trade. Stopping down increases depth of field, but costs light and eventually softens the image through diffraction. With the same setup at f/8, taking a two-pixel blur circle as acceptable:
depth of field ~ 2 x N x c x (1 + m) / m^2
~ 2 x 8 x 0.0069 mm x 1.042 / 0.0422^2 = about 65 mm
Airy disk (550 nm) ~ 2.44 x 0.55 um x 8 = about 10.7 um (3 pixels)
The depth of field looks generous, but the diffraction spot is already about three pixels wide, which works against a small-defect requirement. A wider aperture with tighter part positioning may be the better design. We also check that the lens resolves the pixel pitch, covers the sensor format, and holds acceptable distortion and relative illumination into the corners. For dimensional measurement where distance varies, a telecentric lens removes most of the change in magnification, at a cost in size and price.
Lighting: the cheapest accuracy you will buy
Good lighting makes the feature of interest high-contrast and everything else boring. It usually does more for robustness than a larger model.
| Technique | Good for | Watch out for |
|---|---|---|
| Backlight | Silhouettes, dimensions, holes, presence | No surface detail; needs access behind the part |
| Diffuse dome or flat dome | Curved or shiny parts, printed marks on reflective surfaces | Size and standoff; can wash out shallow texture |
| Low-angle dark field | Scratches, edges, embossing, engraving | Very sensitive to height and orientation |
| Coaxial | Flat specular surfaces | Light loss in the beamsplitter; limited area |
| Polarized (with analyzer) | Suppressing glare from non-metallic surfaces | Significant light loss; limited effect on bare metal glare |
| Narrow-band, NIR or UV with filter | Rejecting ambient light, material contrast, fluorescence, night operation | Sensor sensitivity at that wavelength; eye and skin safety assessment |
Motion sets the exposure budget. In the example above, a part moving at 500 mm/s must be exposed for no more than about 160 µs to keep blur within one pixel (0.082 mm ÷ 500 mm/s). Exposures that short usually call for strobed LEDs, with the driver, trigger timing, duty cycle and thermal limits designed as part of the electronics.
Sensors and interfaces
- Global versus rolling shutter. A global shutter exposes all rows together. A rolling shutter reads row by row, so fast motion skews shapes and pulsed light can band. Rolling shutter is fine for many static or slow scenes.
- Monochrome versus color. Without a color filter array, a mono sensor collects more light and keeps finer detail. Use color only when color carries the decision.
- Pixel size, noise and dynamic range. Compare sensors on measured quantum efficiency, read noise and full-well capacity (EMVA 1288 reports help), not megapixels. High-dynamic-range modes need checking for motion artifacts.
- Data rate. 2448 × 2048 pixels at 8 bits and 60 frames per second is about 2.4 Gbit/s before protocol overhead. That already rules some links in and others out.
| Interface | Typical fit | Engineering concerns |
|---|---|---|
| MIPI CSI-2 | Sensor close to an embedded SoC | Short reach, lane count and rate, signal integrity, custom driver work |
| GMSL, FPD-Link | Remote cameras in vehicles and machines over coax or twisted pair | Serializer and deserializer configuration, power over cable, link diagnostics |
| USB3 Vision / UVC | Compact systems with a nearby host | Cable length, host controller bandwidth, connector retention |
| GigE Vision (1 to 10+ GbE) | Long cable runs, multi-camera cells | Packet loss, jumbo frames, NIC tuning, PTP time sync |
| CoaXPress, Camera Link | High-rate line-scan and area-scan inspection | Frame grabber cost, cabling, host throughput |
For industrial cameras, the GenICam standard gives a common feature model across vendors and transports, which keeps application code less tied to one camera.
