logo

Computer Vision Development for Manufacturing: A Practical Build Guide

Key Takeaways

  • Choose the task type first: classification, detection, segmentation, anomaly detection or measurement. It decides what data you must collect.
  • Imaging sets the ceiling. Work backward from your smallest defect to a resolution in mm per pixel, then design the lighting.
  • Split data by production lot, and track missed defects and false rejects instead of one accuracy number.
  • Run inference at the edge inside your takt time, and wire results to the PLC and MES.
  • Gate the project with go/no-go thresholds, a shadow-mode run and drift monitoring.
  • SotaVision's LG Innotek deployment reported 99.99% detection accuracy and under 50 ms per unit in a factory with no internet.

Factories know what a bad part costs. The hard part is catching it at line speed, on every shift. McKinsey estimated that AI-based visual inspection may raise defect detection rates by up to 90% compared with human inspection. A later McKinsey review of the World Economic Forum's Lighthouse factories found that 77% of the top five use cases at the newest sites were enabled by analytical AI, with average gains above 50% in conversion cost, cycle times and defect rates.

Results like these do not come easily, though. A Gartner survey found that only 48% of AI projects reach production, and the move from prototype takes 8 months on average. This guide to computer vision development for manufacturing starts on the factory floor. It covers imaging, data, models, edge deployment, a delivery process with go/no-go gates, a real case, and how to choose between building and buying.

SotaTek is an AI & Blockchain Innovation Partner. Its AI development team supports manufacturers with computer vision development, from data labeling to edge deployment, including its inspection platform, SotaVision.

What Computer Vision Development for Manufacturing Involves

Computer vision development for manufacturing is the work of building software that reads camera images on a production line and turns them into decisions: pass, reject or review. It is more than a model. A working system has five parts: cameras and lighting, a data pipeline, trained models, an edge runtime that scores images in real time, and links to the PLC and MES that act on each result.

Pick the task type first, because it decides the data you need.

Computer Vision Development for Manufacturing task types
Computer Vision Development for Manufacturing task types
Task typeQuestion it answersTypical useData needed
ClassificationGood or bad?Pass/fail on a whole imageLabeled good and bad images
Object detectionWhat defect, and where?Missing or misplaced partsBoxes around each defect
SegmentationWhat shape and size?Scratches, glue spreadPixel-level masks
Anomaly detectionDoes this differ from normal?Rare or unknown defectsMostly good images
MeasurementIs it within tolerance?Gaps, alignment, sizeCalibrated cameras

Rule-based machine vision still has a place. McKinsey notes that classic pixel comparison against a reference image only works when mounting and lighting stay identical and defect types are known in advance. Machine learning copes better when parts and conditions vary.

Where Computer Vision Development for Manufacturing Pays Off First

Computer Vision Development for Manufacturing Pays Off First
Computer Vision Development for Manufacturing Pays Off First

Start where defects are costly, frequent enough to collect examples, and visible to a camera. Four areas usually qualify:

  • Surface defects: scratches, dents and color variation on metals, plastics and machined parts.
  • Assembly checks: missing, misplaced or wrongly mounted components, plus weld and seal verification.
  • Alignment and dimensions: component position, completeness and tolerance checks.
  • Packaging and labels: barcodes, expiry dates and seal integrity on food and pharma lines.

Rank candidate stations by the cost of each escaped defect and by how easily you can collect examples, then pick one. A simple test helps: if a trained inspector cannot see the defect in a photo, a model will not see it either. For the business case behind these use cases, read why manual inspection stops scaling as lines get faster.

Imaging Comes First in Computer Vision Development for Manufacturing

Model quality is capped by image quality. If the defect is not visible in the image, no model can find it. Fix the imaging setup before you train anything.

Computer Vision Development for Manufacturing Imaging and lighting
Computer Vision Development for Manufacturing Imaging and lighting
  • Work backward from the smallest defect. Resolution in mm per pixel equals field of view divided by sensor pixels. A 60 mm field of view across 3,000 pixels gives 0.02 mm per pixel. A defect should cover several pixels to be found reliably.
  • Choose lighting for the defect. Low-angle light makes scratches stand out. Diffuse light cuts glare on shiny parts. Backlight shows outlines and holes.
  • Add angles when depth matters. SotaTek's LG Innotek deployment used custom illumination and multi-angle imaging.
  • Control motion and light. Trigger capture from a sensor or encoder, use short exposures for moving parts, and shield the station from ambient light.

Lock the setup once it works. A moved camera or a fading LED can change results without a single code change.

Data and Model Choices in Computer Vision Development for Manufacturing

Collect images on the real line, across shifts, lots, suppliers and lighting. Lab samples rarely match what the line produces. Defects are rare, so classes will be imbalanced. Plan to collect defect examples on purpose, or use anomaly detection.

Write a labeling guide with a defect list, severity levels and a tie-break rule. Inconsistent labels cap accuracy, and data labelling services can help when volume grows.

Split train and test data by production lot or day, not by random image. Near-identical frames from one lot leak into the test set and inflate results. Also keep a small golden set of images labeled by your most senior inspectors, and re-score every new model on it.

Data and Model Choices in Computer Vision Development for Manufacturing
Data and Model Choices in Computer Vision Development for Manufacturing
ApproachNeedsStrengthWeakness
Supervised detection or segmentationLabeled examples of each defectNames the defect and its locationMisses defect types it never saw
Anomaly detectionMostly good imagesFlags unseen defectsLess specific, needs threshold tuning
HybridBothAnomaly flag plus defect classMore to maintain

Track two numbers: missed defects (recall) and false rejects. McKinsey warns that too many false positives erode operator trust, which wipes out the benefit of automation. Set the threshold by the cost of each error, and send low-confidence results to a human review band.

Edge Architecture for Computer Vision Development for Manufacturing

Run inference next to the line. A typical data flow looks like this:

  1. A sensor or encoder triggers image capture.
  2. The camera sends the image to an edge device.
  3. Preprocessing crops and normalizes the image.
  4. The model scores the image.
  5. Decision logic applies thresholds and returns pass, reject or review.
  6. The result goes to the PLC reject gate and to the MES with the image and score.
  7. Images and scores are stored for review and retraining.

Your takt time sets the latency budget. If a station releases a part every 500 ms, capture, transfer, preprocessing, inference and the reject signal must all finish inside that window with margin. SotaVision reports inference under 50 ms per unit. Model export and quantization, such as ONNX and TensorRT on NVIDIA hardware, are common ways to meet a budget. Measure every step on the real line, because bench numbers for inference alone hide transfer and PLC response time.

Edge Architecture for Computer Vision Development for Manufacturing
Edge Architecture for Computer Vision Development for Manufacturing
FactorEdge inferenceCloud inference
LatencyLow and stableDepends on the network
ConnectivityWorks offlineNeeds a reliable link
Data privacyImages stay in the plantImages leave the site
Cost patternHardware per lineRecurring transfer and compute
Best forIn-line decisionsOffline analytics, training

Most plants end up hybrid: train centrally, deploy to the edge. Expose results through REST or gRPC APIs, and use industrial protocols such as OPC UA or Modbus TCP, or plain digital I/O, for PLC signals. Smart factory services cover this wiring between inspection and plant systems.

A Delivery Process for Computer Vision Development for Manufacturing

Define go/no-go thresholds before the pilot starts. Otherwise every result becomes an argument. The AI development process gives the general lifecycle. For vision projects, use these gates:

Computer Vision Developmant for Manufacturing delivery process
Computer Vision Developmant for Manufacturing delivery process
StageWorkExit criterion
1. ScopeList defects, tolerances, line speed, cost per error typeSigned-off defect catalog and KPIs
2. Imaging prototypeTest cameras and lighting on real partsDefects visible at target resolution
3. Data and labelingCapture across shifts, label with a guideLabeled set passes quality checks
4. Baseline and offline testTrain, test on held-out lotsMeets agreed recall, false reject and latency targets
5. Shadow modeRun beside inspectors without rejectingMatches or beats human calls on live data
6. Go liveConnect PLC and MES, test fail-safe behaviorStable at line speed
7. Monitor and retrainTrack drift, version modelsReview cycle in place

Shadow mode deserves extra time. It exposes cases the lab set missed, and it lets inspectors review disagreements, which builds the trust the line needs on go-live day. Define the fail-safe early too. Decide what happens when the system is down: manual inspection, reject all, or hold the line.

Failure Modes and a Real Case in Computer Vision Development for Manufacturing

Real Case in Computer Vision Development for Manufacturing
Real Case in Computer Vision Development for Manufacturing

Most production problems are predictable:

  • Lighting drift: ambient light, aging LEDs or a nudged camera lower accuracy.
  • New SKUs or suppliers: unseen appearance breaks a model trained on old parts.
  • Label drift: two inspectors disagree, so the model learns the disagreement.
  • Frozen thresholds: set once, never reviewed.

Counter them with drift monitoring, versioned model deployment and shadow tests before any model switch. Watch three signals: reject rate per shift, the spread of confidence scores, and average image brightness. A sudden shift in any of them can point to a change on the line before it shows up as escaped defects. SotaVision lists drift monitoring, versioned deployment and assisted labeling among its capabilities.

Here is a real case. LG Innotek Hai Phong makes smartphone camera modules, and its previous inspection solution reached about 70% accuracy. SotaTek deployed SotaVision on-premise in a no-internet environment, so engineers pre-installed and pre-configured the full software package off-site. The system checked solder glue defects and component placement. Reported results: 99.99% detection accuracy, under 50 ms per unit, a 0.3 mm smallest detectable defect and 30% less manual inspection workload, across 12+ defect types. The case shows why deployment planning belongs in the project from day one.

Build, Buy or Partner for Computer Vision Development for Manufacturing

Build, Buy or Partner for Computer Vision Development for Manufacturing
Build, Buy or Partner for Computer Vision Development for Manufacturing
OptionBest whenTrade-off
Build in-houseYou have ML and vision engineers and many unique linesSlowest start, you own maintenance
Platform product, such as SotaVisionDefect types are common and you need a fast proof of conceptLess custom control, fit must be proven on your parts
Partner for a custom buildParts are unusual, the environment is harsh or integration is deepNeeds a clear scope and handover plan

Whichever route you pick, run a proof of concept on your own parts. Benchmark accuracy does not transfer between lines. Budget drivers include the number of stations, camera and optics, defect variety, labeling effort, integration depth and ongoing monitoring. Our guides on custom AI vs off-the-shelf AI and AI development cost help frame that decision.

Conclusion

Good computer vision development for manufacturing is mostly disciplined engineering: imaging that shows the defect, data that matches the line, an edge system that fits the takt time, and gates that stop weak pilots early. Start with one station and one defect family, then scale what works.

With more than 11 years of technology delivery experience and strong capabilities across AI development, industrial integration and computer vision systems, SotaTek can help you scope a proof of concept on your own production data. Contact SotaTek to plan computer vision development for your manufacturing lines.

It can detect defects that are visible in a well-lit image: scratches, dents, color variation, missing or misplaced components, weld and seal problems, and label or barcode errors. If an inspector cannot see the defect in a photo, a model will not see it either.

There is no fixed number. It depends on defect variety, how much parts vary and the task type. Anomaly detection can start from mostly good images, while supervised models need examples of every defect class. A pilot on real line data shows the gap fastest.

Use rules for stable, well-defined checks such as simple measurements. Use deep learning when appearance varies or defects are hard to describe. Many lines combine both.

Set the target from your own cost of missed defects and false rejects, not from a vendor headline. SotaVision reported 99.99% detection accuracy at LG Innotek, but that result belongs to one line and one set of parts. Agree recall, false reject and latency targets before the pilot starts.

The edge device sends each pass, reject or review result to the PLC through digital I/O or an industrial protocol such as OPC UA or Modbus TCP. It sends the image, score and decision to the MES through REST or gRPC APIs for traceability.

Yes. Edge inference runs on a local device, and models are trained elsewhere and deployed to it. The LG Innotek deployment ran in a no-internet factory. 

Treat it as a change that needs testing. A new appearance can break a model trained on old parts, so collect new images, label them, and run the updated model in shadow mode before it rejects anything. Versioned deployment lets you roll back if results drop.

It reduces manual inspection workload rather than removing people. At LG Innotek, SotaVision reported 30% less manual inspection workload. Inspectors still handle the human review band, label disputes and new defect types, and their judgment trains the model.

Plan from your gates, not a fixed date. Gartner's 8 months from AI prototype to production is an average across AI projects, not a vision benchmark.

About our author
Tyler Luu
Co-founder & Group CEO
I’m Tyler Luu, Chief Executive Officer (CEO) of Sota Holdings Group, where I oversee the strategic direction of the organization. I also serve as the Co-Founder and Group CEO of SotaTek, as well as an Executive member of BEESOTA. My passion for science and technology began early during my years at Vietnam National University, where I was honored to receive the Honda YES Award for five consecutive years. Today, I’m proud to lead SotaTek in delivering customer-centric products on time and at scale, driving successful international projects and establishing our reputation for innovation and excellence.