Building a Machine Vision Inspection System: Camera, Compute and I/O

Anatomy of a Vision Inspection Station

A machine vision inspection system is a closed loop: light the part, capture an image, decide pass or fail, and act on the result. Each step has a deadline set by the production line. A machine vision computer must finish inference before the next part arrives, survive the plant environment, and expose the I/O needed to trigger a camera and reject a faulty unit. Treating it as a generic PC with a camera attached is the usual way these projects run late.

A typical station has five parts: a camera and lens, controlled illumination, a processor running preprocessing and inference, industrial I/O for trigger and reject, and a connection to the line controller or quality database. The vision inspection computer sits at the centre of all five, which is why its interface mix matters as much as its compute.

Camera Choice: Sensor, Resolution and Interface

Start with the defect, not the camera. A sensor must resolve the smallest feature you need to detect with enough pixels to spare for lighting variation and lens quality. An 8 MP module such as the IMX415-based option is a sensible starting point for general inspection; a 13 MP autofocus module suits work where part distance varies.

Fixed focus or autofocus

Fixed-focus cameras are simpler and hold alignment well when parts arrive at a repeatable distance. Autofocus helps when the station handles mixed part heights, but it adds settling time to every cycle. If your cycle budget is tight, measure the focus time rather than assuming it is negligible.

Interface and cabling

MIPI CSI-2 is common on embedded boards and offers high bandwidth in a compact connector, but cable reach is short. Where the camera must sit away from the processor, an extender board can bridge the gap. Our MIPI camera module guide covers sensor, lens and carrier compatibility in more detail.

Compute: Where Inference Actually Runs

Three patterns dominate. Each trades latency, cost and flexibility differently.

Approach Best for Watch-out
CPU only on an SBC Simple rules, low frame rates Limited headroom for larger models
Onboard NPU on an SBC Continuous classification or detection Model must match the vendor toolchain
External edge ai box Multiple cameras, heavier models Higher cost and extra network hop

An onboard NPU avoids a network round trip and keeps the decision local, which helps when reject timing is tight. The trade-off is toolchain lock-in: models generally need conversion to the board vendor's runtime, and operator support varies by model family. Check which operators your network uses before choosing hardware. The edge AI computer buying guide explains how to reason about accelerator claims without relying on headline numbers.

If the station must also run a language or scene-interpretation model, the local LLM article discusses what small on-device models can realistically do. Treat that as a separate workload from high-rate inspection; the two rarely share one budget well.

Triggering, Lighting and Industrial I/O

Image capture must be synchronised with the part and the light. A photoelectric sensor or encoder typically fires the trigger; the controller then strobes the light, exposes the camera and waits for a result. Work through this checklist early:

  • A hardware trigger input with deterministic latency, not a software poll.
  • Digital outputs for reject, pass and fault, with the voltage and isolation your line expects.
  • RS-485, CAN or Modbus if the station must talk to older controllers.
  • Enough USB or MIPI lanes for the camera count you actually need.
  • Storage for images retained on failure, plus a plan for how long they are kept.

The RS-485 and Modbus guide covers gateway patterns for older equipment. Confirm pinouts and voltage levels against the board's documentation rather than assuming a connector implies a protocol.

Environment and 24/7 Operation

Factory lighting changes, lenses attract dust and vibration loosens mounts. A vision station should be specified for the environment as well as the algorithm. Check the operating temperature of the camera and computer together, plan a cleaning schedule for the lens, and secure cabling against vibration.

Continuous duty also exposes thermal limits. A board that runs fine on a bench may throttle inside a sealed enclosure. Ask for sustained figures at your ambient temperature, as discussed in the fanless box PC guide. We cannot confirm sustained throughput from a product listing alone; verify it with the supplier for your configuration.

Hardware Options to Evaluate

Frequently Asked Questions

How many pixels do I need for inspection?

Enough to resolve the smallest defect with several pixels across it, after accounting for lens quality and lighting. Work backwards from the defect size rather than choosing a resolution first.

Can one computer handle several cameras?

Sometimes, depending on interface bandwidth, memory and model complexity. Confirm the board's simultaneous camera support and measure combined inference time before committing.

Is a camera module for RK3588 interchangeable with other boards?

Not automatically. Connector pinout, lane count and driver support differ between platforms. Check the board's camera configuration example before ordering.

Should inference run on the line controller or locally?

Locally, in most cases. Sending every image to a central controller adds network latency and creates a single point of failure. Keep the pass/fail decision at the station.

0 comments

Leave a comment

Please note, comments need to be approved before they are published.