How to Choose a Machine Vision Camera: Types, Resolution and Interfaces

Written by Sciotex Engineering
In this article
Machine vision camera on an inspection system

To choose a machine vision camera, start from the inspection, not the camera. The smallest feature you must see and the field of view set the resolution. The part’s speed sets the frame rate and exposure. The defect sets the sensor type: monochrome, color, area scan, line scan, 3D or a wavelength beyond visible light. Only then pick the interface, the lens mount and the brand.

This article is part of our machine vision guide. It is written for engineers specifying a camera for an inspection, measurement or guidance system, and for anyone checking whether the camera in a quote is the right one.

In short

  • Resolution comes from the smallest feature and the field of view: plan at least 3 pixels across the smallest defect.
  • Monochrome sensors give more sensitivity and sharper edges; use color only when color is the defect.
  • Area scan suits discrete parts; line scan suits continuous webs, cylinders and very wide parts.
  • Moving parts need short exposures or strobed lighting, or the image blurs.
  • The interface (GigE, USB3, CoaXPress, Camera Link) is chosen last, from data rate and cable length.

The machine vision camera types

Camera typeHow it imagesBest forWatch-outs
Area scan (2D)Captures a full 2D frame at onceDiscrete parts: presence, dimensions, surface defects, assembly checksMoving parts need short exposure or strobed light
Line scanBuilds an image one line at a time as the part movesContinuous webs, film, paper, cylinders unwrapped as they rotate, very wide partsNeeds steady motion and an encoder to keep pixels square
Smart cameraCamera, processor and vision software in one housingSimple single-camera checks at a stationLimited processing and locked to the vendor’s tools
3D camera or sensorMeasures height using laser triangulation, structured light, stereo or time-of-flightHeight, volume, flatness, warpage, robot guidanceShiny and dark surfaces, and lower lateral resolution
Beyond visible lightThermal, SWIR, UV, multispectral or hyperspectral sensorsDefects invisible to the eye: moisture, voids, heat, material typeSpecial optics, lighting and higher cost

Compare line scan vs area scan, smart camera vs PC-based vision, and the 3D methods in structured light vs laser triangulation.

Step 1: Resolution from the smallest feature

Divide the field of view by the smallest feature, then multiply by the pixels you need across that feature. Three pixels is a practical minimum for detection; measurement usually needs more, or sub-pixel tools with a stable setup.

Field of viewSmallest defectPixels across defectPixels needed acrossTypical sensor class
50 mm0.25 mm36000.3 to 0.5 MP
100 mm0.1 mm33,0008 to 12 MP
300 mm0.5 mm31,8003 to 5 MP
300 mm0.05 mm318,000Line scan or several cameras

The worked math, including measurement accuracy, is in machine vision camera resolution. More pixels are not free: they slow transfer and processing, and smaller pixels collect less light.

Step 2: Monochrome or color

  • Monochrome is the default. Every pixel sees all the light, so it is more sensitive and resolves edges more sharply.
  • Color is worth it when the defect is a color: wrong part color, discoloration, mixed product, color-coded wires. A color filter array makes each pixel see only part of the spectrum, so effective resolution drops.
  • A colored light on a monochrome camera often beats a color camera for a single color contrast. See light colors and wavelengths in machine vision.

Step 3: Speed, exposure and shutter

Motion blur is the speed of the part times the exposure time. Keep blur under about one pixel. A part moving at 500 mm/s imaged at 0.05 mm per pixel needs an exposure of about 100 microseconds or less, which usually means strobed lighting.

  • Global shutter exposes every pixel at once and is the safe choice for moving parts.
  • Rolling shutter exposes row by row; moving parts skew unless a strobe freezes the motion.
  • Frame rate must cover the parts per second plus any retakes. Check it at the resolution and bit depth you will actually use.

Step 4: Sensor size, pixel size and the lens

Larger pixels gather more light and tolerate lower light levels; smaller pixels give more resolution in a smaller sensor but demand a sharper lens. The sensor format decides the lens: its image circle must cover the sensor, and its resolving power must match the pixel size. See machine vision lenses and optics.

Step 5: Interface and cable length

InterfaceApproximate bandwidthTypical cable lengthNotes
GigE Vision (1 GbE)About 115 MB/sUp to 100 mStandard Ethernet; power over Ethernet available
10GigEAbout 1 GB/sUp to 100 m (copper or fiber)More host and network tuning
USB3 VisionAbout 350 MB/s3 to 5 m passiveSimple; short cables
Camera LinkAbout 255 to 850 MB/sUp to about 10 mNeeds a frame grabber; mature standard
CoaXPressAbout 1.2 GB/s per CXP-12 linkTens of meters, longer at lower speedsNeeds a frame grabber; scales by adding links

The trade-offs are covered in machine vision camera interfaces.

Common camera mistakes

  • Choosing megapixels before working out the field of view and the smallest defect.
  • Choosing color when a monochrome camera with the right light would show the defect better.
  • Ignoring exposure time, then fighting motion blur on the line.
  • Pairing a high-resolution sensor with a lens that can’t resolve its pixels.
  • Testing on perfect samples instead of the full range of production parts.

Most camera problems are really lighting or presentation problems. Lighting is covered in machine vision lighting techniques.

Not sure which camera your inspection needs?

Send us sample parts. Sciotex tests them free of charge and recommends the camera, lens and lighting that show your defects, from any brand.

Talk to an engineer

Frequently asked questions

How do I choose a machine vision camera?

Start from the smallest feature and the field of view to set resolution, then the part speed to set exposure and frame rate, then the defect to choose monochrome, color, line scan, 3D or another wavelength. Choose the interface and brand last.

How many megapixels does a machine vision camera need?

Divide the field of view by the smallest defect and multiply by at least 3 pixels. A 100 mm field of view and a 0.1 mm defect need about 3,000 pixels across, which is an 8 to 12 MP sensor.

Is a monochrome or color camera better for inspection?

Monochrome is usually better: it is more sensitive and resolves edges more sharply. Use color when the defect is a color difference that a single colored light can’t reveal.

What is the difference between area scan and line scan cameras?

An area scan camera captures a full frame at once and suits discrete parts. A line scan camera captures one line at a time as the part moves, which suits continuous webs, cylinders and very wide parts.

Do I need a global shutter camera?

For moving parts, usually yes. A global shutter exposes every pixel at once, so moving parts don’t skew. A rolling shutter can work with strobed lighting that freezes the motion.

Related articles

Written by

Sciotex Engineering

The Sciotex engineering team has designed and built vision, automation and test systems since 1997.

Have an inspection problem to solve?

Talk it through with a Sciotex engineer.

In this article
Have an inspection problem to solve?

Talk it through with a Sciotex engineer.

Next step

See what a vision system could do on your line