What is computer vision, and what problems does it actually solve?
Computer vision is the engineering discipline of getting software to extract reliable, structured information from images and video — what's in the frame, where it is, what shape it is, how it's moving and whether it's normal. A camera produces a grid of pixel values. A vision system turns that grid into a decision a business process can act on: pass or fail, present or absent, this box is at these coordinates.
That leads straight to the real question. You don't need "computer vision". You need to know whether the label went on straight, how many pallets are on the dock, or which page of the contract has the termination clause — each a different problem with a different failure mode.
This article is conceptual and deliberately candid. For tooling, see our guide to the top computer vision libraries; for business cases, see how computer vision services help businesses.
A vision system is a physical system. The model comes downstream of the optics, the illumination, the mounting and the exposure. Teams that treat it as pure software discover the physical layer a week after go-live.
The eight task families — and how to tell which one is yours
Almost any practical vision problem reduces to one of eight task families, or a short chain of two or three. Naming your task family is the quickest route to a sensible estimate of cost and risk.
- Classification. One label for the entire image: is this weld good or bad? If you don't need to know where, then you don't need to pay for detection.
- Object detection. Boxes plus labels — what is present and roughly where. Counting, presence checks, safety monitoring, shelf audits.
- Segmentation. A label per pixel, giving the exact shape and area. Required when the answer is a measurement, wasteful when a box would suffice.
- Keypoints and pose. Named landmarks on an object or body. Ergonomics, physiotherapy, robotic alignment.
- Tracking. Identity is maintained across frames, so you're counting unique objects rather than detections. Identity switches are a failure mode that single-frame metrics can never reveal.
- OCR and document understanding. Text, tables and key-value pairs from scans and forms — increasingly end-to-end via vision-language models.
- Depth and 3D. Distance, volume and geometry from stereo, structured light or time-of-flight. Parcel dimensioning, bin picking, free-space estimation.
- Anomaly detection. "This doesn't look like a normal one", learned from good examples only. The correct default when defects are rare and unenumerable.
Labelling cost rises steeply down that list, so write down the decision the business is going to make before you pick the task. "Divert this item" may need only classification; "report the defect area in square millimetres" commits you to segmentation and a calibrated camera.
What computer vision does better than people
The real advantages are rarely about being smarter than a properly trained inspector, who remains better at contextual judgement. They're structural.
- Consistency. A model applies the same threshold to the 10,000th item as it does to the first, whereas human accuracy varies with fatigue, shift and workload. That's not perfection — it's repeatability, which is what quality systems require.
- Tirelessness. Cameras run three shifts and holidays with no rota. The incident you care about doesn't schedule itself into a staffed hour.
- Throughput. Inspection at line speed on every unit rather than a sample, which changes the quality data you have, not just the number of defects you catch.
- Non-contact measurement. Dimensions, counts, fill levels and alignment measured without touching or stopping the item — which matters for anything fragile, sterile, hot or sealed.
- Working where people should not be. Furnaces, confined spaces, high-voltage areas, height, moving machinery. A camera takes the person out of the hazard — often the clearest case in manufacturing settings.
- Digitising the unrecorded. A human glance at a pallet leaves no trace. A vision system turns those glances into a timestamped, queryable record, which over time is often worth more than the automation itself.
None of these require the model to be excellent, only adequate and stable. A fairly modest model that runs continuously and logs everything will beat a very good model that only works under conditions no-one can guarantee.
Why lighting and the physical setup break more systems than models do
If we had to name one cause of production failure in computer vision, it would be environmental variability, and specifically lighting. It outranks model choice and architecture by a wide margin.
A model learns the pixel statistics of the data it was trained on, and changing the illumination changes every pixel. Daylight through a roof panel varies with the season. A failed tube is replaced with an LED of a different colour temperature. A repositioned guard casts a shadow at 4pm only. None of these are in your validation set and none of them raise an error — the system just starts being wrong.
The mitigation is engineering, not machine learning
- Control the light before you train. Enclosures, diffusers, polarising filters and fixed exposure all remove the variance at source. Where you can't control it, capture across times of day, seasons and weather, rather than in one perfectly clean afternoon.
- Choose the illumination for the defect. Backlighting for silhouettes, low-angle grazing light for scratches, coaxial light for flat reflective parts. The right geometry makes an invisible defect obvious to a simple model.
- Fix the camera properly. Rigid mounting, locked focus, locked exposure and white balance. Auto-exposure quietly rewriting your image statistics is a frequently missed cause of drift.
- Respect motion and resolution. Motion blur is a shutter-speed problem. If the defect is three pixels across, no architecture is going to save you.
Most of the accuracy in an industrial vision system is determined by the lens, the light and the mount, before any image even reaches the model.
The data problem: rare defects, annotation cost and label noise
Class imbalance and the rare-defect problem
The events you most need to detect are, by definition, the ones you have the fewest examples of. A well-run line might produce only a handful of a given defect type per year. Your training set is overwhelmingly normal, so a model that predicts 'normal' every time will score superbly on accuracy while being completely useless.
No mitigation involves collecting more data and waiting. Reframe the problem as anomaly detection trained on good examples only. Generate synthetic defects. Weight the loss so that a missed defect costs far more than a false alarm. And stop reporting accuracy — report recall on the rare class alongside the false-alarm rate operators will tolerate, because a system that constantly raises false alarms gets switched off.
Annotation cost and label noise
Labelling is the largest line item in many vision projects, and that cost is visible and gets planned for. Label noise is invisible and doesn't. Ask three inspectors whether a faint scratch is a defect and you'll often get three different answers, because the standard lives in their heads rather than in a document. Those disagreements enter training as contradictory labels, and testing as a ceiling no model can beat.
- Write the labelling standard first, with worked borderline examples agreed by the people who own the quality decision.
- Measure inter-annotator agreement before scaling. Low agreement is a specification problem, far cheaper to fix in week one than after fifty thousand images.
- Adjudicate the test set with your most senior expert, and route any ambiguity to a human in production rather than forcing a binary call.
Domain shift, occlusion and the edge-case long tail
A model is a snapshot of the world it was trained on. The world moves.
- Domain shift. The line is reconfigured. A supplier switches to a glossier film. A camera is replaced with one that processes colour differently. Each of these is invisible to ordinary monitoring and can move accuracy sharply.
- Occlusion, clutter and scale. Objects hide behind each other, behind hands, behind machinery, and the same object is large at the front and tiny at the back. Quality on a clean conveyor tells you very little about quality in a stacked bin, and small-object detection is often fixed by moving the camera rather than by a better model.
- The long tail. An unbounded set of unlikely situations — a reflection in a glass door, a bird, a sticker over the barcode. You can't enumerate it; you can only design the system so that unfamiliar input produces caution rather than a confident error.
The response is not to chase perfection. It's an explicit uncertainty path, scheduled retraining on fresh production images, and versioned data.
Deployment reality: latency, edge compute and silent degradation
A model that is accurate in a notebook still has to run at the speed the process demands. Line speed sets a hard deadline, and capture, inference and actuation all have to fit within it. On the edge — where most industrial vision runs, because bandwidth rules out streaming video to the cloud — you're also bounded by the accelerator's memory and thermal envelope. That pushes you towards quantisation, pruning and distillation, each of which trades accuracy for feasibility. Making that trade-off against a stated requirement is engineering; discovering it at installation is a delay.
Silent degradation
This is the challenge teams are least prepared for. Conventional software fails loudly. A vision model fails quietly: it keeps returning confident predictions at the same rate while becoming progressively more wrong. Months can pass before anyone connects a rise in complaints to a camera that was nudged during maintenance.
The mitigation is monitoring built for models rather than services: track input statistics such as brightness and sharpness, watch the distribution of predictions and confidence, audit a random sample against human review, and alert on distribution change rather than on errors. That's the core of vision MLOps, and it's what separates a system that survives three years from a pilot that nobody trusts.
Trust: spoofing, explainability and privacy
The moment a vision system gates access, payment or product acceptance, technical accuracy is no longer the only thing that matters.
- Adversarial input and spoofing. Where vision authorises something, someone will attack it: printed photos and replayed video against face verification, crafted patterns that fool a classifier. Liveness detection, a second modality such as depth or infrared, and a second factor are the standard defences. A camera on its own should never be the only gate.
- Explainability. When a system rejects a batch or flags a person, someone will ask why. The retained input, an evidence overlay, the model version and the threshold in force must all be logged and retrievable. "The model decided" is not an answer a compliance function will accept.
- Privacy, consent and biometrics. Cameras capture people incidentally, even when people aren't the target, and biometric processing is strictly regulated across major jurisdictions, with tighter rules on remote identification and emotion inference. Design for this: on-device processing, blurring at capture, short retention and an assessment before deployment. Also evaluate accuracy by subgroup — uneven performance across skin tones is legal exposure, not a footnote.
Computer vision challenges, causes and mitigations
The challenges above in one place — a risk register to walk through row by row with the people who own the process.
| Challenge | Why it happens | Practical mitigation |
|---|---|---|
| Lighting and environment | Light changes every pixel the model learned | Enclosed lighting; capture across shifts and seasons |
| Camera placement and optics | Wrong angle, distance or lens | Optical study first; rigid, documented mounts |
| Focus, blur and resolution | Autofocus hunting; slow shutter; too few pixels | Lock focus; global shutter; recalculate pixels-per-defect |
| Rare defects and imbalance | The critical events are genuinely rare | Anomaly detection; synthetic defects; weighted loss; report recall |
| Annotation cost | Masks and keypoints are skilled work | Cheapest sufficient task; pre-label with a foundation model |
| Label noise | No standard for ambiguous cases | Labelling guide; measure agreement; adjudicate the test set |
| Domain shift | Line, packaging, camera or season changed | Drift monitoring; scheduled retraining; versioned data |
| Occlusion, clutter, scale | Real scenes are messier than collected data | Multi-view capture; tracking; tiling for small objects |
| Edge-case long tail | The unusual is unbounded | Uncertainty band routed to review; mine hard cases |
| Adversarial and spoofing | Vision gates something worth attacking | Liveness checks; depth or infrared; never one factor |
| Latency and edge compute | Line speed and hardware are hard limits | Budget in the spec; quantise; benchmark on target |
| Explainability | Decisions affect products and people | Log input, evidence, model version, threshold |
| Privacy and biometrics | Rules on people and biometrics are strict | On-device processing; blur at capture; retention limits |
| Silent degradation | Models fail without raising errors | Monitor input and prediction drift; sampled audit |
What foundation models and VLMs changed — and what they did not
The last few years have genuinely moved the starting line. It's worth being precise about which parts moved, because vendors are not.
What did change
- You can start without a labelling budget. Promptable segmentation and open-vocabulary detection give you usable masks and boxes from a text description or a click, with no task-specific training required. The model drafts the labels and a human corrects them, which is far quicker than annotating from scratch.
- Zero-shot baselines are strong. A general model will often give you a workable answer on day one, telling you quickly whether the signal is actually present in the image at all — the question that ultimately decides the project.
- VLMs handle messy documents. Reading a scanned invoice end-to-end is now a single-model job; our article on vision-language models covers this in depth.
What did not change
Physics. A foundation model can't see through glare, recover detail that was never captured, or de-blur an object that crossed the sensor faster than the shutter. It can't fix a camera at the wrong angle or make a three-pixel defect separable. Nor does it solve the rare-defect problem: it knows what a bottle is, but not what your hairline seal failure looks like. Domain shift doesn't go away either, and you still need a real evaluation set from your own line, lighting and product mix.
Our practical view: use foundation models to de-risk and bootstrap — feasibility in days, pre-labelled data in weeks — then distil down to a small, specialised model for the production loop, as large multimodal models are heavy at the edge.
How SoftmaxAI builds computer vision systems
The problems that kill vision projects are knowable in advance, and almost all of them can surface in week two rather than after go-live. That's sequencing, and it's exactly what our spec-driven method is for: a written, client-approved specification before any code, an agent-accelerated build led by senior engineers, and every decision that matters owned by a human.
- Name the decision, then the task. What action follows the output, and what does a wrong answer cost in each direction?
- Run an optics and lighting study before collecting data. Camera, lens, working distance, illumination geometry, pixels per defect. Get this wrong and every image collected after it is worthless.
- Collect an ugly pilot dataset on purpose. The night shift, the rain, the reflective packaging, the changeover — the conditions you'd rather not deal with are the ones that decide the project.
- Write the labelling standard and measure annotator agreement before scaling.
- Build the evaluation set before the model. Adjudicated, with rare classes over-sampled, and acceptance defined as recall on the critical class and a tolerable false-alarm rate.
- Start with a zero-shot baseline, then benchmark on the target hardware. Latency and cost budgets are requirements, not discoveries.
- Ship with monitoring and a human path. Drift detection, sampled audit, an uncertainty band routed to a person, and a retraining plan with an owner.
We deliver this within our machine learning, computer vision and MLOps practice, alongside the rest of our AI engineering services, and the shape of the work is visible in our case studies. If you're still working out whether a camera is the right tool, the AI Opportunity Sprint delivers a feasibility assessment, a task definition and a data plan first.
Computer visionObject detectionSegmentationAnomaly detectionDomain shiftEdge inferenceVision MLOpsAnnotation qualityFoundation models