Machine vision for robotics gives robots sight for inspection and guidance, combining cameras, lighting, and software to find defects. A reliable cell pairs the right sensor and lens with controlled light and a clear pass-fail rule. Machine vision means cameras plus processing that turn pictures into decisions, such as keep, reject, or adjust position. Readers planning a robot cell can use it to guide picks, check assembly, and catch surface flaws without slowing the line.
Table of Contents
- What does each camera type do best?
- How do you match lens, resolution, and view?
- Why does lighting decide inspection success?
- How does defect detection make a decision?
- Where do production systems fail?
What does each camera type do best?
Area-scan cameras capture one rectangular frame at a time and suit most robot tasks, such as checking labels, holes, or part presence. They mount easily on arms or stands and work well when the part stops or moves slowly. Line-scan cameras build an image one row at a time and suit continuous motion, such as web, pipe, or conveyor inspection.
They need steady speed and careful alignment, but they resolve fine scratches across long surfaces. Three-dimensional cameras add shape data through stereo, laser, or time-of-flight, which means measuring distance by light travel time. Use 3D when height, flatness, volume, or bin position matters more than color or print.
How do you match lens, resolution, and view?
Start from the smallest flaw you must catch and the field of view, which means the width and height seen in one image. Choose resolution so the flaw spans several pixels, then pick a lens that holds that view at a working distance the robot can repeat.
Shorter focal lengths see wider areas but add edge distortion. Longer focal lengths see narrower areas with flatter detail. Fix focus and aperture with locking screws, then secure cables so vibration does not shift the view.
- Lock exposure for motion: short exposure freezes movement, adequate light keeps brightness up.
- Check glare at several part rotations before fixing mounts.
- Test worst-case parts: oily, scuffed, dark, and bright samples.
Why does lighting decide inspection success?
Lighting shapes contrast, and contrast is what software actually detects. A bright diffuse dome softens reflections on metal or plastic. A low-angle dark-field bar makes raised edges, cracks, and etched marks glow against a dark background. Backlights shine through or around a part to show outlines, holes, and gaps with sharp edges.
Polarized light reduces hot spots on glossy film, solder, or glass. Keep ambient light out with shrouds or covers, because daylight and overhead lamps change results through the day. Match light color to the task: red calms variation on red surfaces, while blue or green can sharpen fine marks on metal. Pulse the light with the camera trigger to freeze motion and extend lamp life.
How does defect detection make a decision?
Most systems follow the same chain: acquire, locate the part, measure features, then apply limits. Location tools find edges, corners, or patterns so measurements stay aligned when parts shift or rotate. Rule-based checks measure brightness, color, dimensions, edges, and texture against set ranges.
Machine-learning classifiers help with varied flaws such as stains, weld marks, or mixed surface texture. They still need many good and bad examples, plus controls against accepting new defect types as normal. Always output a simple result the robot can use: pass, fail, defect type, and position. Send coordinates in robot units and confirm timing, so the arm or diverter acts on the same part that was photographed.
Where do production systems fail?
Motion blur, focus drift, and loose mounts cause more false rejects than software settings. Dust on lenses, aging lamps, and changed backgrounds also shift results. Schedule cleaning, check lamp output, and recheck focus after any collision or tool change.
Part variation is the next limit: supplier finish, color drift, and burrs can look like defects. Build a library of borderline samples and review rejects weekly. Save failed images with light settings attached so the next fix starts from evidence, not guesses.



