Computer Vision for Quality Control: Pilot Safely

Computer vision for quality control: run a shadow pilot, define defect classes and set a stop or go gate before a camera is allowed to reject anything.

10 min read
White paper rolls moving along a curved factory conveyor with a worker photographing the line behind

Computer vision for quality control uses a camera and a trained model to judge whether each item on a line is acceptable. A safe pilot lets the model watch before it acts: it runs beside your current inspection, its calls are recorded but not obeyed, and a written gate decides whether it earns any authority.

This guide is for Australian product owners and development leads at businesses that make or pack physical goods. It follows one worked example through defect classes, data boundaries, the cost of each kind of error and the stages from shadow mode to a limited live role.

Key Takeaways

  • Start in shadow mode: the model's calls are logged beside the inspector's, and the model cannot reject anything.
  • Write a short list of defect classes with example images, because a model cannot be judged against a vague idea of bad.
  • Decide in words, class by class, whether pulling good product or shipping faulty product costs more, before looking at any score.
  • Cameras can capture workers and personal details on labels, so aim at the product, tell staff first and keep images on site where you can.
  • A written stop or go gate, with a way back to manual inspection, decides every step up.

What Computer Vision for Quality Control Can Safely Do First

A first pilot should answer one narrow question: does the camera agree with a good inspector on a handful of defect classes on one line? It should not try to answer whether quality control can be automated.

For the worked example, take a hypothetical small manufacturer packing finished goods into cartons on a single conveyor. A camera sits above the belt, and an inspector at the end of the line checks cartons by eye. The pilot covers three defect classes: label missing, label crooked or lifting, and crushed corner. The business is invented for illustration and is not a 9Byte client.

The guide on local LLM for business explains why some firms keep AI on their own hardware, and a camera station raises the same question, because images stay on a computer you control if the model runs there. The guide on AI chatbot for a business website covers a hard cost cap and avoiding vendor lock-in, and both ideas apply to any hosted image service billed per call. 9Byte's AI-powered platform options page lists computer vision among its technologies and describes agentic automation with a human in the loop where it matters, which is the posture a quality pilot should copy.

Decision Inputs Before the Camera Goes Up

The best practices for a first pilot are mostly decisions made before any model is trained.

  • Defect classes: a written list, each with example images of a clear case and a borderline case. A named person, not the model, settles borderline calls.
  • Ground truth: who decides what counts as a defect. Have two people label the same sample and study where they disagree.
  • Line conditions: lighting, camera position and belt speed that will match live running. A new lamp or a new carton colour counts as a change.
  • Action on a flag: none during the pilot. Later it may be a light, a screen message or a diverter.
  • Scope: which pack types are in and which are out, so out-of-scope items bypass the camera.

False Rejects Versus Misses: Which Error Costs More?

Every classifier makes two kinds of mistake. A false reject pulls a good carton off the line, and a miss lets a faulty carton through. Google's machine learning course notes that the most meaningful evaluation metrics depend on the task and the cost of different misclassifications, so the first job is to write those costs down by class.

  • Label missing: a miss may send a carton to a customer unlabelled, while a false reject costs an operator a few seconds. Lean towards catching every miss and accept more false rejects.
  • Label crooked or lifting: the costs sit closer together, so a person should decide each flagged carton.
  • Crushed corner: if customers rarely care, a stream of false rejects can cost more than the occasional miss.

Most cartons on a healthy line are fine, so overall accuracy can hide missed defects. Track misses and false rejects separately for each class.

Pilot in Shadow Mode, Then Earn Authority

  1. Shadow mode. The model scores every carton and the results are logged. No light, no diverter, and the inspector works as before without seeing the model's call, so the two judgements stay independent.
  2. Assisted mode. The model flags cartons on a screen, the inspector decides, and each decision is logged next to the model's call.
  3. Limited authority. For one class where false rejects are cheap, the model may divert cartons to a bin that a person checks every shift.
  4. Widen or hold. Add a class or line only after the previous step passes its gate, and step back if a later review shows a problem.

Keep manual inspection trained and staffed throughout. The ai.gov.au implementation guidance calls for alternative pathways for critical functions so operations can continue if an AI system malfunctions or is taken offline. The NIST AI RMF Playbook likewise lists mechanisms and assigned responsibilities to supersede, disengage or deactivate a system whose performance is inconsistent with its intended use.

Operational Failure Modes to Plan For

  • Drift in light and position: a bumped camera, a dusty lens or sun through a roller door changes the image. Photograph a known good carton at the start of each shift.
  • New product: a new carton colour or label design can look like a defect to a model that has never seen it.
  • Silent outage: if the camera or network fails, cartons pass unchecked. Record a result or an explicit "no result" for every item.
  • Ignored flags: if operators learn to wave flags through, the control has gone. Track how often they override the model.

Privacy and Data Boundaries on the Factory Floor

A camera aimed at a line can capture people, and shipping labels can carry names and addresses. The OAIC lists photographs as an example of personal information. It also says the Privacy Act does not specifically cover workplace surveillance, but employers must follow relevant Australian, state and territory laws, and some states have specific workplace surveillance laws.

New South Wales is one example: its Workplace Surveillance Act 2005 requires written notice at least 14 days before camera surveillance of an employee starts, unless the employee agrees to less or another exception applies. Check the rules where your site operates.

  • Aim at the product: frame the belt, not the walkway, and crop the image to the conveyor area.
  • Keep images local: store them on a computer at the site with a short retention period.
  • Tell staff in writing: before the pilot starts, say what is recorded and why.

A Stop or Go Checklist for the Pilot Gate

Write the gate before the pilot, with limits your own team sets, and have a named person sign it. This guide gives no universal numbers, because they depend on what each error costs you. 9Byte's guide to AI pilot projects and a measurable success gate covers the general pattern, and this gate is specific to a camera on a line.

  • Misses by class: defects the inspector found that the model passed must stay within the limit set for that class.
  • False rejects by class: items the model flagged that the inspector passed, measured as inspector time lost per shift.
  • Coverage: every item has a result or an explicit "no result".
  • Stability: results hold across shifts, lighting changes and in-scope pack types.
  • Operator trust: staff use the screen and do not routinely override it.
  • Rollback drill: the team has switched the model off and run manual inspection without trouble.

Go means every criterion is met for the period agreed in advance. Hold means stay at the current stage. Stop means a miss on a class where a miss is unacceptable, or a failed rollback drill.

Keeping Pilot Costs Under Control

Pilot with one camera on one line, reuse hardware you already own and time-box each stage in advance. People time is a real cost: inspectors labelling images and reviewing disagreements. If images go to a hosted service, agree a spending ceiling and an alert level before the first image is sent.

Related Resources

Common Questions About Computer Vision for Quality Control

1. What Is Shadow Mode in a Quality Control Pilot?

The model scores every item and the results are logged, but nothing acts on them. The inspector's decision stays in charge, and the two sets of calls are compared afterwards.

2. Is a Missed Defect Worse Than a False Reject?

It depends on the defect class. Where a miss can reach a customer and cause harm, accept more false rejects. Where a defect is cosmetic, too many false rejects can cost more.

3. Do Workplace Cameras Need Staff Notice?

It depends on the state or territory. New South Wales requires at least 14 days' written notice before camera surveillance of employees starts, unless the employee agrees to less or another exception applies. Check your own location's rules and tell staff in writing either way.

4. How Long Should the Pilot Run?

There is no honest fixed length. It should run long enough to cover every shift, lighting condition and in-scope pack type, and the period should be written into the gate before the pilot begins.

Let the Camera Watch Before It Decides

Pick one line, one defect class and one inspector, and run in shadow mode until the written gate says otherwise. A pilot that can be switched off without stopping the line is a pilot you can afford to learn from.

Ready to build what is next?

Talk to our Melbourne engineering team about modernising your systems or shipping your next product.