Book a free call

Computer Vision in Manufacturing: Where It Pays Off

Computer vision in manufacturing uses cameras and software to inspect parts, watch assembly and flag defects on the line. See where it works and how to roll it out.

Hertiv engineering teamReviewed by a senior engineer
6 min read
Computer Vision in Manufacturing: Where It Pays Off
On this page

Short answer

Computer vision in manufacturing is software that reads images and video from cameras on the factory floor to check quality, track parts and spot safety problems. It turns a visual check that a person used to do into a repeatable step in the production line.

What is computer vision in manufacturing?

Computer vision in manufacturing is software that reads images and video from cameras on the factory floor to check quality, track parts and spot safety problems. A camera captures each part or station, a model compares what it sees with what is expected, and the system flags anything that does not match.

The checks run at line speed, which is the main difference from manual inspection. A person can look closely at a few parts a minute; a camera system can check every part, every time, and record the result with a photo for later review.

The same idea appears in other settings, such as computer vision in the supply chain, but the factory version is built around fixed stations, known parts and controlled lighting, which makes it one of the more reliable places to start.

Where does computer vision work on the factory floor?

Computer vision works best where the check is visual, repeated and easy to describe: a scratch, a missing screw, a wrong label, a part in the wrong place. If a trained inspector can spot the problem by looking, a camera system can usually be taught to spot it too.

Use What the camera checks Typical station
Defect inspection Scratches, cracks, dents, colour End of line
Assembly check Missing parts, wrong fasteners Assembly cell
Label and print check Text, barcodes, dates Packing line
Part tracking Identity, position, count Conveyor and storage
Safety monitoring People near machines, PPE Shared work areas
Sorting and grading Size, shape, grade Sorting station

Safety monitoring is a separate use with its own rules: cameras that watch people need clear policies on what is recorded, who sees it and how long it is kept. See computer vision for safety for how teams handle that.

How does a defect-inspection system work?

A defect-inspection system works by capturing a consistent image of each part, comparing it with examples of good and bad parts, and making a pass or fail decision in less than a second. The camera, lighting and model have to work together, because a blurry or shadowed image cannot be fixed later by software.

The usual pipeline has five steps. A sensor triggers the camera as the part passes. Lighting removes glare and shadows. The model locates the part and checks the features that matter. A rule turns the model output into a pass, fail or review decision. The result is logged with the image, so a quality engineer can review the borderline cases.

Most teams start with a model trained on their own images, because defects look different on every line. A few hundred labelled examples of good parts and of each defect type is a common starting point, with more added as new defect types appear.

Example (hypothetical): a parts inspection line

Example (hypothetical): a factory makes 10,000 metal brackets a day, and about 2 in 100 have a defect, so 200 defective parts a day. Manual inspection catches 85 in 100 defects, which is 170 of the 200, and misses 30 a day that reach customers.

The factory adds a camera station at the end of the line. In shadow mode it catches 97 in 100 defects, which is 194 of the 200, and misses only 6 a day. That is 24 fewer defective parts reaching customers each day, or about 120 fewer in a five-day week.

The system also flags 40 good parts a day for review, which is 0.4 in 100 of the 10,000 made. A quality engineer reviews those in about 20 minutes a day and confirms most are fine. The team accepts that small review load because the missed-defect count fell from 30 to 6 a day.

What hardware and data do you need?

You need a camera that matches the line speed, lighting that stays the same all day, a computer near the line to run the model, and a set of labelled images to train and test it. Each of these is simple on its own, and each causes failures when it is skimped on.

  • Cameras. Industrial cameras with a fixed lens and a trigger from the line, so every part is photographed in the same place.
  • Lighting. Diffuse, even light that removes glare from metal and plastic; daylight from a window is not enough.
  • Edge compute. A small industrial PC or edge device near the line, so decisions do not depend on the network.
  • Labelled images. Photos of good parts and of each defect type, labelled by someone who knows the line.
  • A review loop. A screen where a quality engineer can confirm or correct borderline decisions.

Budget for the data work, not just the hardware. Collecting and labelling images, and keeping them current as parts change, is usually the larger share of the effort. For the cost side, see what computer vision costs.

How do you roll it out without stopping the line?

You roll it out in stages, starting with one station in shadow mode, so the line keeps running while the system proves itself. A pilot that stops production for a week will lose support before it shows any value.

  1. Pick one station. Choose a check with clear pass and fail rules and a known defect rate.
  2. Install and calibrate. Fit the camera and lighting, and confirm every part is photographed in the same place.
  3. Run in shadow mode. Let the system record decisions for two to four weeks without acting on them.
  4. Compare with inspectors. Measure the system against human inspection on the same parts, and fix the gaps.
  5. Switch on slowly. Start with the system flagging parts for review, then move to automatic pass and fail.
  6. Review weekly. Check the misses and false alarms, add new defect examples, and retrain on a schedule.

Keep a human in the loop for the first months. The system will meet defect types it has never seen, and the fastest way to teach it is to have an inspector correct its decisions and feed those images back into training.

What are the common mistakes?

The most common computer vision mistakes in manufacturing are bad lighting, too little training data, no review loop, and expecting the system to handle a part it has never seen.

  • Skipping lighting. A good model cannot fix glare, shadows or a camera that moves between shifts.
  • Too few defect examples. A model trained on ten photos of a crack will miss the eleventh kind of crack.
  • No review loop. Without a person correcting borderline calls, the system stops improving.
  • Judging by accuracy alone. A 99% accuracy figure hides the misses that matter; track missed defects and false alarms separately.
  • Changing the part without retraining. A new supplier, a new finish or a new shape needs new images.
  • Ignoring the operators. If the line team does not trust the flags, they will route around the system.

Key takeaways

  • Computer vision checks every part at line speed, not a sample of them
  • It works best on visual checks a trained inspector can describe
  • Lighting and labelled images matter more than the model choice
  • Roll out in shadow mode first, then switch on slowly
  • Track missed defects and false alarms separately, not just accuracy

Frequently asked questions

How much does computer vision cost in a factory?

It depends on the number of stations, the cameras and the data work. One station with a camera, lighting and edge compute is the usual starting point, and the labelling and review work often costs as much as the hardware. See the planning ranges in our guide to what computer vision costs before you budget.

Can computer vision replace manual inspection completely?

Not at first, and often not fully. It replaces the repetitive check on every part, while people handle new defect types, borderline calls and process changes. Most factories keep a human review step for flagged parts, and the system earns more autonomy as its miss rate falls.

How many images do I need to train a defect model?

A few hundred labelled images of good parts and of each defect type is a common starting point for one station. More defect types need more images, and the set has to grow as parts and suppliers change. The review loop is where most of the extra images come from.

Does computer vision work on a fast line?

Yes, if the camera and lighting match the line speed. Industrial cameras with a trigger can photograph parts moving at several a second, and the model runs on a device near the line. The limit is usually the lighting and the part presentation, not the model.

What happens when a new defect type appears?

The system will often pass it, because it has never seen that defect. That is why the review loop matters: an inspector flags the new defect, the images are labelled and added to the training set, and the model is retrained. Plan for this as a regular task, not a one-off fix.

Is camera footage of workers a privacy problem?

It can be. Cameras that watch people need a clear policy on what is recorded, who can view it and how long it is kept, and workers should know where cameras are and why. Keep safety monitoring separate from performance monitoring, and check local rules before installing cameras in shared areas.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a computer vision pilot on your line? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Computer Vision service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call