Lightening Tech Evidence, not opinion

AI & Machine Learning

Computer vision that survives a real production line

Detection, counting, OCR and quality inspection built around your cameras, your lighting and the error rate you actually have today.

From
$3,000–$40,000
Typical time
2–5 months
Usually bought by
Manufacturing, retail

What this actually solves

A person cannot look at a moving line all day and stay accurate. They start the shift careful and end it tired, and the errors cluster in the last two hours. That is not a training problem or a discipline problem; it is what sustained visual attention does to anybody. So the checking either gets sampled — one carton in twenty, one part in fifty — or it gets done properly and slowly, and the line waits.

The cost of the gap is rarely the individual defect. It is the consignment that comes back because a batch of seals did not close properly, the stock count that disagrees with the system so badly that someone spends a weekend recounting a warehouse, the shelf that sat empty through the busiest four hours of the week because nobody walked past it. A camera that looks at every unit rather than every twentieth unit is not slightly better than a person. It is a different kind of coverage, and it produces a record of what it saw, which is often worth as much as the catch itself.

The honest framing is that this is a physical engineering project with a model in the middle of it. Lighting changes through the day. A camera mount picks up vibration from a motor. Dust settles on a lens over a fortnight and the confidence scores drift downward without anything in the software having changed. Any proposal that treats this as a pure software build is describing a demo, not an installation.

How the work runs

  1. Define the decision and measure the humans. What exactly is being detected, what happens when it is detected, and how accurate is the current manual process — measured, not estimated. Without that baseline there is nothing to judge the system against, and "is it good enough" becomes an argument instead of a comparison. One to two weeks.
  2. Camera, lens, mounting and lighting. Position, field of view, shutter speed against line speed, and controlled lighting so the same part looks the same at 9am and 9pm. This stage is the one most often skipped, and it is the one that determines how much data the model will need afterwards. One to three weeks.
  3. Collect and label a representative dataset. Thousands of images from the installed cameras, deliberately covering the awkward cases — partial defects, overlapping units, the variant that only runs on Thursdays. Every image is annotated by hand. This is the longest and least glamorous phase, and rushing it is the single most reliable way to produce a system that works in the lab and fails on the floor. Three to eight weeks.
  4. Train, tune and evaluate against held-out data. YOLO-family detectors for most detection and counting work, managed through Roboflow, with OpenCV handling the pre-processing. Evaluation is per-class and reports false negatives separately from false positives, because on an inspection line those two errors have very different costs. Two to four weeks.
  5. Deploy to edge hardware and test on the live line. Inference running next to the line rather than in a cloud region, integrated with whatever acts on the result — a reject arm, a dashboard, an alert. Then a run against real production long enough to see a shift change, a batch change and a bad-light hour. Two to four weeks.
  6. Monitoring and a retraining route. Confidence distribution tracked over time so gradual degradation shows up as a trend rather than as a complaint, plus the documented path for adding a new product variant. About a week.

What moves the price

The range is $3,000–$40,000 over 2–5 months, and three things decide where a particular installation lands in it.

Whether labelled data already exists. This is the dominant factor by a distance. If you have an annotated archive from your own cameras you are at one end of the range; if you are starting from zero, a data collection and annotation programme sits inside the same project, and that shifts both cost and timeline substantially.

Whether hardware is in scope. Cameras, lenses, lighting rigs, mounts and edge devices are a separate class of work from the model, and specifying and commissioning them is real engineering time. Sites that already have suitable machine vision cameras installed skip a large piece of this.

Real-time versus batch, and how strict the tolerance is. Inspecting at line speed with a hard latency ceiling is a different build from analysing footage overnight. And the accuracy requirement compounds it: the last half percent is not a rounding adjustment on the quote, it is a second phase of work on the hardest examples in the dataset.

What usually goes wrong

The data question is asked last instead of first. Someone agrees a scope, agrees a price, and only then discovers that there are no labelled images at all — which is the common case, not the unusual one. At that point the plan is rebuilt around a collection and annotation effort nobody budgeted for. Ask on the first call how many annotated images exist, from which cameras, and under what lighting.

An accuracy figure is written into the contract without pricing its tail. Ninety-nine percent sounds like a reasonable ask and is often achievable. The trouble starts when the requirement is written as 99.5 or higher, because the remaining cases are the genuinely hard ones — occluded, unusually lit, or borderline even for a human inspector. That is a second project wearing the same name.

A physical fault gets diagnosed as a model fault. Detection rate falls, so the model is retrained, and it falls again a fortnight later. The actual cause is a film on the lens, a mount that has loosened next to a vibrating motor, or a new overhead light someone installed in the corner of the frame. Monitoring the confidence distribution over time is what separates these two situations, and it is why it goes in at deployment rather than after the first mystery.

See where the site stands before you brief anyone.

If the site is already live, start from what it scores rather than from a guess. The audit reports what it checked, what it found, and — the part most tools leave out — what it could not check, and why.

See the website audit Talk about this work

Questions people ask before they commit.

How many images do you need before this can work?
More than a demo needs, and they have to be your images — shot on your camera, in your lighting, of your parts, covering the defects you actually get rather than only the obvious ones. Stock datasets and a vendor's demo footage do not transfer. The first thing we establish is whether any labelled images already exist, because if none do, collecting and labelling them becomes the largest single line in the plan.
Can you guarantee 99 percent accuracy?
We agree a target before anything is built, and we agree it against a measured human baseline rather than a round number. What we will not do is treat the last fraction of a percent as free. Moving from 99 to 99.5 is roughly as much work as getting to 99 in the first place, because what remains is the rare, ambiguous and badly lit cases. If your tolerance genuinely needs that last half point, it has to be priced in from day one.
Does this run in the cloud?
Usually not. Anything that has to stop a conveyor or divert a part has to react in milliseconds, and a round trip to a cloud API does not fit inside that budget. Real-time inspection runs on edge hardware next to the line, on NVIDIA Jetson or something like it. Cloud services such as AWS Rekognition or Google Vision are a reasonable fit for slower, simpler jobs where a second or two costs nothing.
We need invoices and forms read — is that this service?
No, that is document processing and extraction, and it is a shorter and cheaper project. Reading a page with a multimodal model is a different problem from watching a moving line under changing light. If your job is paperwork rather than production, start there instead.
What happens when we change the product or the packaging?
The model has to see the new thing before it can judge it, so a format change means new images, new labels and a retraining pass. That is why the handover includes a retraining route and monitoring rather than only a trained model. A system nobody can update has an expiry date built into it.
Why does this take months when a demo can be built in a day?
A demo runs on clean images someone chose. Production runs on whatever the line produces at three in the morning with a smeared lens. Most of the timeline is not training — it is collecting representative data, labelling it, mounting and lighting cameras, and then testing against the real line long enough to meet the cases that only appear occasionally.

Often taken together.

Start with the brief, not the invoice.

Send what you are trying to achieve. You get a written scope, a price and a date — or an honest “this is not the right service for that”.

Talk about Computer vision solution All AI & Machine Learning services