Machine vision inspection uses an industrial camera, controlled lighting and software to check every part on a line for defects, dimensions, labels or assembly errors, and to send a pass or fail result to the machine in milliseconds. Modern systems combine classic image processing for measurement with deep learning for surface defects that are hard to describe with rules.
What is in a machine vision inspection system?
Every system, from a simple smart camera to a multi-camera cell, has the same building blocks:
- Lighting. Ring lights, backlights, dome lights and structured light are chosen to make the feature you care about stand out. Lighting is usually the biggest factor in success.
- Optics and camera. The lens and sensor decide resolution, field of view and speed. Area-scan cameras image a part at once; line-scan cameras build an image of a moving web or roll.
- Triggering. A sensor or encoder tells the camera exactly when the part is in position, so every image is taken in the same place.
- Processing. A smart camera, an industrial PC or an edge device runs the software that analyses the image.
- Communication. The result goes to the PLC, robot or reject gate over discrete I/O, PROFINET, EtherNet/IP or OPC UA.

Rule-based vision or deep learning: which should you use?
Use rule-based vision, the traditional approach, when the task is clear and measurable. Examples are measuring a hole diameter, reading a barcode or a date code, checking that a cap is present, or guiding a robot to a fiducial. It is fast, deterministic and easy to validate.
Use deep learning when the defect is hard to describe: a scratch on brushed metal, a cosmetic flaw on a moulded part, variation in natural products such as food or timber. A trained model copes with more variation in appearance than a fixed rule set, but it needs labelled images, a repeatable setup and monitoring for drift.
Many production systems use both. A rule-based step locates and measures the part, and a model inspects the surface. The right choice is the simplest method that meets the escape rate and false reject rate you need.
How does a vision system talk to the PLC?
The camera does not control the machine; it informs it. A typical sequence is: the PLC sees a part arrive, sends a trigger, the vision system captures and processes the image, and then returns a result bit and often a data block such as measured values and a recipe ID. The PLC logic decides what to do: divert the part, stop the line, or record the result against the serial number.
Design the handshake carefully. Define what happens if the camera does not answer, if the result arrives late, or if the vision system loses power. The safe default is almost always to reject or hold the part. Our guide to machine vision and PLC integration covers triggers, timing and data exchange in detail.
How do you choose lighting and a camera?
Start from the smallest defect you must detect. A common rule of thumb is that the defect should cover several pixels in the image, which fixes the resolution you need for the field of view. Then pick the lighting technique: a backlight gives a crisp silhouette for dimensions, a low-angle light shows scratches and surface texture, a diffuse dome light reduces glare on shiny curved parts, and polarising filters cut reflections. Test with real parts, including the worst ones, before buying anything. Run the cell at line speed so exposure time, trigger timing and part movement are realistic, and record a few thousand images, because those become your training and validation data.
What does a good deployment look like in the UK?
Under the Made Smarter Innovation Technology Accelerator programme, the Somerset start-up Machine Intelligence worked with BAE Systems to analyse X-ray images and detect defects in the joints of metal parts, assisting human testing. BAE applied it to an existing inspection process and is trialling it on another. The pattern is typical: prove value on one inspection station, keep people in the loop, then extend.
Smaller manufacturers can look to Made Smarter Adoption for advice and grant support towards digital tools, and the High Value Manufacturing Catapult network, which includes centres such as the AMRC and the MTC, for testing and demonstration. Terms change by region and year, so check them before planning.
What are the main pitfalls?
- Variable lighting. Ambient light from a window or a change in bulbs can break a model that worked in the demo. Enclose the inspection area or use controlled lighting.
- Movement and vibration. Blur and shifting position change the image. Use fast exposures and mechanical fixing.
- Too few defect examples. Collect real defects over time; synthetic images help but do not replace them.
- No ground truth. If two inspectors disagree on what counts as a defect, the model cannot learn a consistent rule. Agree the standard first and keep a reference set of good and bad parts.
- Ignoring change management. A new product, material or supplier is a change that needs re-validation.
What do computer vision engineers do and earn?
Computer vision engineers specify the cell, collect and label data, train and evaluate models, and integrate the result with the control system. ITJobsWatch showed a median UK salary of £80,000 for permanent computer vision roles across 151 advertisements in the six months to 23 October 2026. Many of those roles are software-led, but the skills overlap strongly with industrial inspection work, and engineers who understand PLCs, cameras and models together are unusual.
How to learn machine vision inspection for free
- Start with the free Machine Vision and AI Quality Inspection course, which covers lighting, cameras and defect detection with YOLO.
- Learn image processing with the free Computer Vision with OpenCV course, then train models in Deep Learning with TensorFlow.
- Practise on the job in the Computer Vision Engineer job simulation, where you specify, label and evaluate an inspection model on a production line. It is practice, not employment.
- Browse all free AI courses and see live openings on the computer vision jobs page.
- For the quality-system side, read about machine learning for quality control.
Start free
Enrol on the free Machine Vision and AI Quality Inspection course, try the first five free days of the Computer Vision Engineer job simulation, and check the computer vision jobs page for the skills employers list. The self-paced EDWartens AI Module includes computer vision with graded industrial projects if you want a structured route; see its page for the current price.




