System designExplainer

What is a machine vision system and how to choose one

What is a machine vision system? Learn its five building blocks, sizing calculations, and how to choose a smart camera, controller or PC-based setup.

LumaSpec Vision9 min read Share on LinkedIn

On this page 10 sections
  1. 01The five building blocks
  2. 02Cameras: resolution and shutter
  3. 03Lenses: one formula decides it
  4. 04Lighting: where most systems are won or lost
  5. 05Processing hardware: three architectures
  6. 06Which architecture to choose
  7. 07Checks before you order
  8. 08When the usual answer is wrong
  9. 09Short checklist
  10. 10Questions

A machine vision system answers a production question with an image: is this part present, is it the right one, is the label straight, where is the hole for the robot. Understanding what a machine vision system is comes down to five building blocks and one decision: where the image processing runs. This guide walks through each block with the numbers that size it, then compares smart cameras, vision controllers and PC-based systems so you can pick the right architecture before you pick a model.

The five building blocks

Every system, from a 0.3 MP presence check to a 16-camera robot-guiding cell, has the same structure:

  1. Camera and sensor - converts light into pixels. Sensor format, resolution and shutter type set the ceiling on what the system can see.
  2. Lens - frames the field of view and projects it onto the sensor. The lens must cover the sensor format and resolve enough detail.
  3. Lighting - makes the feature you care about visible. Poor lighting can defeat an otherwise suitable camera and inspection tool.
  4. Processing hardware - a smart camera's on-board processor, a vision controller, or an industrial PC that runs the image processing.
  5. Software - turns pixels into results: tools for measurement, code reading, matching or classification, plus the I/O and protocol handling that reports results to a PLC or robot.

The wiring between blocks matters as much as the blocks. Trigger, strobe and result lines must be timed so the image is captured at the right moment; the camera trigger source and GenICam line settings article covers the common failure points on that path.

Cameras: resolution and shutter

Size resolution from the feature, not the part. As an initial detection estimate, allow 3 to 5 pixels across the smallest feature. Measurement requirements need a separate accuracy and uncertainty assessment:

feature widths across image = field of view / smallest feature required image columns = feature widths across image x pixels per feature

Worked example: a 100 mm field of view with a 0.5 mm feature spans 100 / 0.5 = 200 feature widths. Multiplying by 3 to 5 pixels per feature gives 600 to 1,000 image columns. If instead you measure the feature's width to 0.05 mm, the scale changes and you should work through the camera resolution calculator below and the guidance in choosing camera resolution for dimensional inspection.

Resolution is not the only filter. Global shutter avoids rolling-shutter distortion on moving parts; rolling shutter suits static scenes. Both still require exposure times short enough to limit motion blur. Sensor format must match the lens image circle, and the interface (Fast Ethernet, GigE, USB3) affects cable length and bandwidth. For a deeper walk through the sensor terms, see industrial camera specifications: a buyer's guide.

If the inspection is simple, a vision sensor puts camera and processing in one housing. The MV-SC3050XC-16M-ATN-H is a 5 MP color vision sensor with a global shutter and an M12 lens mount, connecting over Fast Ethernet.

Smart cameras & vision sensorsHikrobot MV-SC3050XC-16M-ATN-H 5 MP color vision sensorMV-SC3050XC-16M-ATN-H
Interface
Fast Ethernet
Resolution
5 MP
Sensor format
1/1.45"
Shutter
Global
$1,809.00View part

A GigE smart camera is another option when planning the acquisition interface. The LS-SMC-0063 is a 1.6 MP smart camera running at 60 fps with a 16 mm lens and white light, described with polarized and transparent-light options. Test the available illumination on sample parts before deciding whether separate lighting is needed.

Smart cameras & vision sensors1.6 MP smart camera, 60 fps, 16 mm lens, white light (polarized, transparent light) (LS-SMC-0063)LS-SMC-0063
Interface
GigE
Resolution
Up to 3 MP
$1,110.00View part

Where resolution must rise, the MV-SC5060XM-08M-WBN is a 6 MP mono GigE smart camera with an 8 mm focal length and an M12 mount in the SC5000X series. Note it uses a rolling shutter, so check motion-related distortion before selecting it for moving parts.

Smart cameras & vision sensorsHikrobot MV-SC5060XM-08M-WBN SC5000X series Smart Camera, 6 MP, Mono, 8 mm focal length, M12-mountMV-SC5060XM-08M-WBN
Interface
GigE
Resolution
6-10 MP
Sensor format
1/2.4"
Shutter
Rolling
$1,629.00View part

Browse the full range in the smart cameras category or narrow it in the camera finder.

Lenses: one formula decides it

The lens choice follows from the field of view, the working distance and the sensor. Magnification is sensor width divided by field of view. A thin-lens estimate gives a starting focal length; actual working distance references and lens construction affect the final choice:

m = sensor width / field of view f = WD x m / (1 + m)
How sensor width, working distance and field of view set the focal length Rays from the edges of the sensor pass through the lens and spread to the edges of the field of view. The ratio of sensor width to field of view is the magnification m.CameraField of view (FOV)Working distance (WD)≈ fsensor width slensm = s / FOVf = WD × m / (1 + m)
How sensor width, working distance and field of view set the focal length. Rays from the edges of the sensor pass through the lens and spread to the edges of the field of view. The ratio of sensor width to field of view is the magnification m.

Example: a 1/2" sensor with an active width of approximately 6.4 mm, a 120 mm field of view and a 300 mm working distance gives m = 6.4/120 = 0.053. Then f = 300 x 0.053 / 1.053, roughly 15 mm, making 16 mm a nearby standard focal length to evaluate. Confirm the actual sensor width rather than relying on the optical-format label alone.

Run your own numbers with the focal length formula above, then check that the lens image circle covers your sensor format; the article on lens sensor format explains why a lens too small for the sensor darkens the corners. Step-by-step selection is in how to choose a machine vision lens focal length, and the lenses category lists the available mounts.

Camera resolution for the smallest feature
Units
Pixels needed
–
Sensor size
– MP
Smallest sensor that fits
–
Pixel on the part
– mm
Pixels across the feature, that sensor
–

Pixels needed = field / feature × pixels per feature on each axis (field incl. margin). The lens must resolve the pixels too: Nyquist = 1000 / (2 × pixel µm) lp/mm.

Find cameras with enough pixels Open the full calculator

Lighting: where most systems are won or lost

The camera cannot see a feature the lighting does not reveal. Match the technique to the surface: ring or bar lights for general contrast, coaxial light for flat shiny surfaces, dome or cloudy-day illumination for curved and wrinkled parts, backlight for dimensions. Four rules keep it simple:

  • Choose the lighting geometry before the light model; a good light in the wrong geometry still fails.
  • Consider synchronized strobing when motion requires a short illumination pulse. Stay within the light and controller's documented pulse limits.
  • Match wavelength to material contrast and sensor sensitivity. Shorter wavelengths can resolve finer optical detail, but surface response may matter more.
  • Shield ambient light; changing overhead illumination can wash out the contrast established during setup.

The lights finder sorts by geometry, color and shape; use the AI versus rule-based smart camera inspection guide to compare inspection approaches.

Processing hardware: three architectures

This is the decision that shapes the project. The three options differ in where the processing runs and who maintains it:

  • Smart camera / vision sensor: processing on the device, results over Ethernet or I/O. No separate processing PC is needed, although configuration tools, licenses and update requirements vary by model.
  • Vision controller: a compact industrial computer purpose-built for vision. Depending on the model, it may combine camera ports, light outputs and machine I/O. Confirm the required software and industrial protocols before ordering.
  • PC-based system: a standard industrial PC with your own acquisition and processing code, maximum flexibility for custom algorithms, deep learning pipelines and databases.

The MV-VC2140-128G40-1T is a vision controller in the VC2100 series with an N-series processor, 8 GB of memory, 128 GB SSD plus a 1 TB HDD, 3-4 LAN ports and 4 built-in light channels. Check camera bandwidth, processing time and light-output compatibility before assigning cameras to it.

Vision controllersHikrobot MV-VC2140-128G40-1T VC2100 Vision Controller, N97, 8GB+128G SSD+ 1THDDMV-VC2140-128G40-1T
LAN ports
3-4 LAN ports
USB 3 ports
2 USB 3 ports
Light outputs
4 built-in channels
Memory
8 GB
$1,679.00View partBuild a system with it

Another option, the MV-VC3301H-128G66 in the VC3000 series, has a Core i3 processor, 8 GB memory and 128 GB SSD, with 5+ LAN ports, 4 built-in light channels, PCIe expansion and an included VM6200Pro license.

Vision controllersHikrobot MV-VC3301H-128G66 I3-8100, 8GB+128G SSD, No PoE, PCIe expansion supported, Incl. VM6200Pro licenseMV-VC3301H-128G66
LAN ports
5+ LAN ports
USB 3 ports
3-4 USB 3 ports
Light outputs
4 built-in channels
Memory
8 GB
$2,419.00View partBuild a system with it

A good middle position: build each inspection station as a smart camera where one camera suffices, and use a controller where three or more cameras or coordinated lighting make separate devices awkward. If you lean toward a PC and your own code, read camera acquisition software compatibility: integration options first - SDK and driver support is the real cost of that route. The vision controllers category shows port counts and light-channel counts per series, and the system configurator helps organize the component selection.

Which architecture to choose

Situation Best fit Why
One camera, simple checks, few I/O Vision sensor or smart camera Lowest wiring and maintenance burden
2-6 cameras, shared lighting, PLC result exchange Vision controller Integrated camera ports and light outputs; verify software support and processing capacity
Custom algorithms, AI training, data logging PC-based Free choice of libraries and hardware
High-speed line scan or large-format sensors Controller or PC Select for the required acquisition bandwidth and processing headroom
Limited station space Smart camera or compact vision controller Reduces the number of separate processing devices

An independent take on the same decision, written from the controls side, is this guide to selecting a vision system for parts inspection.

Checks before you order

  • Field of view and working distance measured on the real part, not from the drawing.
  • Required pixels per feature computed, and the camera resolution chosen from that.
  • Lens image circle covers the sensor diagonal; the mount and flange distance match.
  • Shutter type and exposure time suit part motion; global shutter alone does not remove motion blur.
  • Lighting geometry tested on sample parts under production ambient light.
  • Result interface agreed with the PLC or robot side: discrete I/O, an industrial Ethernet protocol, serial or a file.
  • Mounting and focus locks specified; vibration will move an unsecured focus ring.

When the usual answer is wrong

A single high-resolution camera is often the wrong answer to a multi-part inspection. Two cameras, each with a tight field of view and dedicated lighting, can outperform one camera with a wide field of view and compromises everywhere: 3 pixels per feature provides more sampling than 1.5. Likewise, if the feature only shows under a specific geometry, no amount of camera resolution recovers it - fix the lighting first.

If the vision result must request an ordinary process stop, plan the diagnostics path early; mapping vision diagnostics to PLC status and alarms shows how to surface camera faults where operators can act on them.

Short checklist

  • Define the decision the system must make, in one sentence.
  • Compute resolution from feature size; compute focal length from field of view and working distance.
  • Choose lighting geometry on real parts, with the lights you can actually buy.
  • Pick the architecture: one camera and simple checks - smart camera; several cameras and shared lighting - controller; custom code - PC.
  • Agree the result interface with the machine builder before commissioning.

Start with the smart cameras or vision controllers categories, or work through the system configurator step by step; our team is available for a review of your application before you order.

Questions

What are the main components of a machine vision system?

Five blocks: a camera with a sensor, a lens that frames the field of view, lighting that makes the feature visible, processing hardware that runs the inspection, and software or configuration tools that turn pixels into pass/fail, position or measurement outputs. Triggering and communication hardware such as I/O lines or an Ethernet link to a PLC connects the vision result to the machine.

When is a smart camera enough instead of a full PC-based system?

When the inspection is one camera, one or two tools, and a few discrete outputs: presence checks, code reading, simple measurement or sorting. A smart camera runs the image processing on the device and needs no separate processing PC. Multi-camera coordination, high data rates or custom algorithms can justify a controller or PC. Confirm tool availability, licensing and cycle time for the actual application.

How much resolution do I need for my inspection?

For an initial detection estimate, divide the field of view by the smallest feature and multiply by 3 to 5 pixels per feature. A 100 mm field of view and a 0.5 mm feature gives 600 to 1,000 image columns. Dimensional measurement also requires an accuracy assessment that includes optics, contrast, calibration and repeatability; sampling alone does not establish measurement accuracy.

What does a vision controller add over an ordinary industrial PC?

A vision controller can combine processing with camera connections, lighting outputs and machine I/O. The exact combination depends on the model, so compare the required ports, supported camera interfaces, software licenses and synchronization features. Integrated functions can reduce separate hardware, but do not assume every controller includes encoder inputs, suitable light drivers or all required industrial protocols.

Do I need global or rolling shutter?

Global shutter exposes the image simultaneously and avoids the geometric distortion associated with rolling-shutter timing on moving scenes. It is generally the simpler choice for conveyor inspection. Rolling shutter can suit stationary parts. Both types can produce motion blur, so also calculate the exposure limit from object speed and object-space pixel size.