Development of an AI Computer Vision System for Industrial Robots

A robot with cameras still picks a part inaccurately, and a change in product range requires stopping the line? We develop turnkey computer vision systems: from site audit to shift handover. Picking accuracy increases, line throughput is maintained, and the defect rate drops.
Frequently Asked Questions

Computer vision robots: where grasping accuracy is lost

Industrial vision rarely fails "as a whole" — it breaks down pointwise, on specific parts and under specific conditions.

The manipulator confidently picks a workpiece from the first batch, but on the next one it either grabs it by the chamfer or goes into an alarm because the grip is incomplete.

The defect rate does not grow linearly: one missed defect changes the setup threshold, and the line starts treating unstable recognition as the norm.

Three sources of grasp failures are repeated most often. Glare from lubricant and anti-corrosion coating causes overexposure, the part contour "floats," and the classifier confuses a good workpiece with a defective one.

Calibration drift — from vibration, heat, or lens swap — shifts the coordinate system; in pixels it is fractions, at the gripper it is already a centering miss. Different batch geometry breaks the confidence threshold selected on one sample, and false triggers enter the flow.

The cost is line downtime, not just defects. A false trigger stops feeding, the operator removes the part manually and restarts the cycle, losing pace and statistical reliability.

Data labeling then becomes the bottleneck: while engineers manually outline edges on hundreds of frames, the equipment is already stopped, and a model trained on ideal samples behaves worse than a random threshold on real glare and burrs.

Hypotheses here are tested on OpenCV, but one library does not close the gap between a laboratory frame and the shop floor — we break down how that gap is closed step by step.

Measurable effect: accuracy, line pace, defect rate

The first metric is the share of missed defects on a holdout set that the model did not see during training.

We calculate it separately for each defect type, not as a single number: overall defect recognition accuracy averages the picture and hides a rare but expensive class on which the line loses the most.

The second is repeatability between shifts. The same defect on day and night shifts should receive the same verdict, so we check the spread on a reference set of frames: before and after camera recalibration, lighting changes, lens replacement, and equipment maintenance.

The third is cycle time. Frame processing must fit the line takt, otherwise vision itself becomes the conveyor bottleneck.

Inference is done on a controller next to the camera, not in a remote center, and we measure not only time per frame but also the delay from capture to reject signal — that is what determines whether the manipulator will have time to remove the part.

The fourth is the number of manual rechecks. We calculate the share of frames sent to the operator for confirmation: we tune the confidence threshold so that disputed cases are handed to a human, while unambiguous ones are rejected automatically.

Manual control is reduced, but not at the expense of more misses — we look at these two metrics only together.

The fifth is the speed of introducing a new product mix. We separately record how many samples of good parts and defects are needed for a new item and how quickly model retraining brings it into series without stopping the line.

Comparison of approaches: local loop, cloud, hybrid

A line inspection loop is assembled in several ways, and the choice between them is based not on how trendy the technology is, but on conveyor takt, communication channel stability, and how much the part differs from a standard one.

In all options, the result goes to the existing line control system — only the place where the model lives and the speed at which it can be corrected differ.

Option When it fits Limitations
Ready-made platform with pre-trained models Standard parts and defect classes from the catalog, need quick launch on one line Does not handle a custom part: only thresholds and zones can be configured, retraining for the part is unavailable
Local loop Tight conveyor takt, closed network, images cannot be taken outside the shop A compute node at each line, model updates only with access to the equipment
Cloud processing Many sites, rare events, need unified statistics and fast model correction Dependence on the channel: if it breaks, inspection stops, and moving images outside requires approvals
Hybrid scheme Critical checks — on the line, analytics and training — in the center Two support environments, model versioning, and a regulation for their desynchronization

How to choose

The choice is rarely final. Usually the pilot is launched on a ready-made platform, then critical checks are moved to a local loop, and retraining for a specific part is done in the center on accumulated data.

We design the scheme from the start so that switching between options does not require rewriting the integration with the line.

Implementation stages: from line audit to shift handover

The order of stages is not accidental: if you train the model before the line audit, the sample will not be about the defects that actually reach the operator, and the system will confidently catch the wrong thing. Below is what the work looks like from the first visit to the area to shift handover.

  1. Line audit. Takt, feed zones, lighting, stability of part position; we record what the operator catches and what goes further down the flow.
  2. Loop design. Camera installation points, illumination, shooting distance, synchronization with the robot controller — by what signal we capture a frame and how we output the "good/reject" decision.
  3. Sample labeling. Frames for all positions and modes; we collect rare classes separately and do not let them drown. Disputed boxes are checked by two people, and discrepancies are resolved before training.
  4. Training and threshold tuning. We choose the threshold by the curve on the holdout part of the sample, with priority on false negatives: a missed defect is more expensive than an extra stop.
  5. Line testing. Run at real takt, reference shift, measurement by position: defects caught, false triggers per shift, where the operator intervenes.
  6. Line acceptance and handover of regulations. We fix metrics, hand over configurations, maintenance regulations, and the retraining procedure for new defects with rollback to the previous version.

After shift handover, the loop remains transparent: it is clear who retrains the system, under what regulation, and how new defect classes enter it.

Delivery package: configurations, models, regulations

The delivery package is not only a working recognition module, but also everything your team needs to support it on its own.

We hand over artifacts separately: configurations separately from model weights, integration scheme separately from frame processing code — this way any part can be replaced without rebuilding the entire system.

What remains with the customer after acceptance:

  • Configuration files: camera exposure and gain, shooting zone geometry, confidence thresholds for each defect class — in text form, with comments about what was changed during setup and why.
  • Trained model: a fixed version of weights, composition and labeling of the training sample, metrics report — recall and precision by class, confusion matrix, miss rate on holdout frames.
  • Integration scheme: connection points to the robot controller and conveyor, formats for exchanging "good/reject" signals and grasp coordinates, time delays, blocking logic when a frame is lost.
  • Access policies: roles of operator, setup technician, and administrator; who is allowed to change thresholds, who can upload a new model version; change log and storage of images of disputed parts.
  • Retraining regulation: on what data and at what interval to retrain, how to test a new version on a holdout sample, by what criteria to roll back to the previous one.
  • Instructions for the shift and setup technician: calibration, lighting and focus adjustment, typical faults, and procedure.
  • Acceptance protocol: test scenarios, frame sets, and recorded results used to verify quality in disputed situations.

Each item is a working document, not an appendix to a report: your support service uses it to commission the system and develop it without us.

Case: missed defect rate decreased fourfold

Before and what was changed

The assembly area produced small units, and inspection relied on selective examination: an operator looked at every fifth part on the monitor and decided "good / not good." The missed defect rate reached 0.8% of the batch and surfaced at the customer's site, while between shifts discrepancies on disputed parts reached several percent — the morning shift rejected what the evening shift passed.

Defects were labeled by class, and borderline ones — scratch, understamping, displacement — were separated out.

The test rig was assembled on industrial Basler cameras, illumination was tied to the line takt, and recognition was trained on real images from all three shifts and supplemented with illumination normalization: the decision stopped depending on who turned on the light in the area and when.

What changed

Measurements before and after: missed defect rate — 0.2% versus 0.8%, four times lower.

Manual rechecks decreased from every part to 10-15% on disputed classes, and repeatability between shifts increased — the discrepancy in decisions went within 0.5%, because thresholds and the model version are now the same for the entire area, rather than individual for each operator.

We reached working mode in three weeks: one week for labeling and calibration, two for training and daily analysis of false triggers.

Head of assembly direction: "A disputed part used to be carried away and examined under a magnifying glass. Now the decision is made at takt, and by the end of the shift there is a sample that shows where we made mistakes."

What to do if the robot is already equipped with cameras?

First, we take the archived stream from already deployed cameras and run it through the current model outside the robot — it becomes clear whether the optics and illumination are sufficient, without stopping the cycle.

If parts are confidently detected in these frames, the sensor fleet is reused entirely, and only the compute unit changes. The exception is cameras with analog output or a closed manufacturer driver: we move them to a standard interface.

Next, we address compatibility with the control loop.

The robot receives not a "neural network command," but coordinates and object class in the cell coordinate system: a separate module performs the conversion, and setpoints go to the controller via the same signals and with the same safety logic as before. For setup technicians, the loop remains predictable.

Option When it fits Limitations
Cameras and optics remain Parts are detected in archived frames An external compute unit is needed if the controller cannot handle the model
We change optics and illumination Defects due to glare and low contrast Cell recalibration, repeated labeling of reference samples
We change the sensor loop Analog output, closed driver, no synchronization Line downtime for installation and rebuilding reference samples

Model transfer is the most sensitive stage. We export weights to an open intermediate format (ONNX) to avoid dependence on the previous compute unit and run the model without retraining.

Then calibration: mapping pixels to manipulator coordinates using a reference part and checking in 20–30 positions of the work zone — the acceptance criterion here is repeatability of hit, not the picture on the screen.

The work is closed by the supporting framework: logging triggers, rollback to the previous algorithm with one mode switch, and retraining as the optics wear. This way the loop is modernized without rebuilding the system from scratch.

Technical doubts: lighting, glare, product mix changes

Engineering doubts on such projects concern not the model, but operating conditions. Below are answers to questions most often heard during technical approval.

What happens with lighting changes and glare?

Polarization, illumination synchronized with the frame, and fixed exposure — camera automation starts to "float" precisely on glare. We train the model on frames from different shifts and with glare from neighboring equipment.

What will the system show on new product mix?

We calculate confidence and send the part to manual control instead of false rejection. A few dozen labeled frames of the new part are enough to retrain the model on site.

Will the line have to be stopped?

Installation is done in process windows and shift changes. First, the system operates in shadow mode: it calculates decisions but does not control rejection until agreement with the operator is confirmed by statistics.

Who is responsible for labeling quality?

We are: class schema, rules for disputed frames, cross-checking, and annotator agreement metric. Labeling remains part of the delivered package, not a one-off material.

What is included in the solution handover?

Model weights, camera and illumination configurations, retraining scripts, acceptance regulations for the new product mix, and training for your engineers. After that, the solution lives without our constant involvement.

Let's discuss the task: what to prepare for assessment

Assessment of a machine vision system rests not on algorithms, but on the initial data about the area. The more accurately you describe the line and parts, the fewer assumptions in the estimate and the sooner we can name realistic stage timelines. Below are the inputs that cover most questions even before visiting the production site.

  • Area layout: where the robot stands, how the part is fed and removed, where it is taken next.
  • Part samples: a dozen good ones and the same number of defective ones — with typical and rare defects, including disputed cases that a human currently resolves.
  • Current causes of defects: what exactly the existing inspection misses, in what share of cases, and how it is recorded.
  • Takt requirements: how many parts pass through the line and what recognition delay is acceptable so that the robot does not idle.
  • Installation constraints: available points for cameras and illumination, vibrations, chips, dust, washing, lighting fluctuations in the shop.
  • Line access: a window when the stream can be captured and measurements taken without stopping production.
  • Where we send the result: robot controller, area control system, or defect log — what makes the decision and what merely logs.
  • Stage timelines: by what date a prototype is needed on the line and when serial launch is planned.

Send what you have — even a draft description of the area and a few photos of parts. We will discuss the task, clarify what is missing, and come back with an assessment and plan: installation scheme, list of checks that vision will cover, and stage timelines.

AI Development Areas

Latest works

  • B2B ADVANCE company website development
    B2B ADVANCE company website development
    1542
  • Development of a web application for FEEDME
    Development of a web application for FEEDME
    1393
  • Website development for BELFINGROUP
    Website development for BELFINGROUP
    1081
  • Development of an online store for the company FURNORO
    Development of an online store for the company FURNORO
    1368
  • B2B Advance company logo design
    B2B Advance company logo design
    815
  • Development of a web application for Enviok
    Development of a web application for Enviok
    1139