Computer vision already runs in production lines, warehouses, fields, cars and hospitals: it checks bottle caps, counts products in a box, steers a sprayer onto a weed and reads invoices. Where computer vision and NLP intersect, the field is vision-language modelling. It answers questions about an image, writes captions, or retrieves pictures from a text query. Document understanding is one place where the two work together. In one reported production pipeline, the slow part was OCR, not the language model. For the wider map of computer vision applications and where NLP joins them, the parent article covers the full landscape; this page stays with concrete examples and one production pipeline in detail.
Computer Vision Examples in Real Life, by Industry
Roboflow’s 2025 reference of 50 production applications covers manufacturing, logistics, agriculture, healthcare, retail and infrastructure. The examples below are taken from it and from a published account of See & Spray.
| Industry | Example | What the vision system decides |
|---|---|---|
| Manufacturing | Bottle cap inspection | Whether a cap is present and properly sealed, so a faulty bottle is rejected before packaging |
| Manufacturing | Pack count verification | Whether a box holds the expected 12 bottles before it is sealed |
| Manufacturing | Defect detection on the line | Whether a defect is present, triggering an automatic line stop |
| Logistics | Intermodal yard tracking | Container ID, chassis ID and brand, read from a camera on a hostler truck |
| Logistics | Warehouse robots | Navigation and package movement, as with Amazon’s Proteus robots moving packages of up to 800 pounds |
| Agriculture | See & Spray | Weed versus crop, about 20 times per second at an average of 12 mph |
| Automotive | Driver assistance | Pedestrians, lanes and road signs, from Tesla’s eight cameras covering 360 degrees up to 250 metres |
| Automotive | Damage assessment | Visible damage and its severity, for inspection or second-hand valuation |
| Healthcare | Pill identification | Detecting, identifying and counting small pills where misidentification is costly |
| Healthcare | Second-read diagnostic aid | Flagging possibly cancerous cells so a doctor looks again after the first diagnosis |
| Retail | Planogram compliance | Whether shelves match the agreed layout and vendor agreements |
| Media and sport | Logo and player tracking | On-screen brand time, and player and ball trajectories such as the semi-automatic offside technology introduced at the 2022 FIFA World Cup |
John Deere’s See & Spray, developed by Blue River Technology and introduced in 2017, uses two sets of cameras, an embedded graphics processor built to tell crop from weed, and a nozzle that fires only where a weed is found. Mississippi State University Extension cites a potential herbicide reduction of roughly 77 per cent for See & Spray Select, from spraying only the weeds present. The value does not come from the camera alone. It comes from tying a perception decision to an actuator within a fixed time budget.
Where Computer Vision and NLP Meet
Vision-language modelling is the field where computer vision and natural language processing intersect, according to the 2023 survey Vision Language Transformers. The survey describes several core tasks.
- Visual question answering (VQA): given an image and a question about it, the model chooses or produces the answer.
- Image captioning: the model writes a sequence of text describing the whole image, which the survey treats as harder than VQA.
- Retrieval and alignment: given text, rank matching images, or the reverse.
- Visual grounding: link a phrase to the specific object it refers to, as in reference resolution benchmarked on RefCOCO.
Dual Encoders Versus Fusion Models
Dual encoders such as OpenAI’s CLIP and Google Research’s ALIGN encode the image and the text separately, then compare the two embeddings with a cosine similarity. In CLIP, text goes through a 12-layer transformer and images through a ResNet50 or a Vision Transformer. That shallow interaction allows a simple pretraining process that scales well. It also makes inference fast, so dual encoders suit image retrieval and zero-shot classification.
The survey notes that CLIP performs poorly on complex vision-language classification tasks such as NLVR2. Fusion encoders (UNITER, ViLBERT, METER) specialise in understanding tasks such as VQA, and encoder-decoder models (OFA, CoCa) also handle generative tasks such as captioning. Hybrids such as ALBEF align the two encoders contrastively, then pass the result through a cross-attention fusion encoder.
Choosing a Model Family by Task
| If the job is… | Model family that fits | Watch for |
|---|---|---|
| Search a photo library by text, or sort images into classes without labelled data | Dual encoder (CLIP, ALIGN, LiT) | Poor on complex tasks such as NLVR2 |
| Answer questions about an image | Fusion encoder (UNITER, ViLBERT, METER) | - |
| Generate captions or descriptions | Encoder-decoder (OFA, CoCa, SimVLM) | - |
| Point to the object a phrase names | Grounding models (mDETR, UniTAB) | Task-specific evaluation, such as RefCOCO |
| Read and extract from documents | OCR plus a language model, layout-aware models, or OCR-free models | Covered in the next section |
The survey’s practical point is that, once pretraining is done, most of these transformers adapt to a new task by swapping the final layer and fine-tuning. Libraries such as LAVIS, which packages CLIP, BLIP and ALBEF, take away much of the deployment plumbing. For a team, that changes the hard question. “Can a model do this?” gives way to “which family fits the latency and the failure modes we can tolerate?”
How Do Computer Vision and NLP Work Together to Read a Document?
One production pattern works like this: computer vision classifies the page and reads the text with OCR, then a language model turns that text into structured fields. The paper Operationalizing Document AI describes such a system. It processes scanned multi-page documents through classification, OCR, text stitching and LLM field extraction, at thousands of multi-page documents per hour. The authors report cutting processing cost from $0.01 per page to $0.001 per page while keeping 96 per cent accuracy.
Worked Example: Where the Time Goes in an Eight-Page Document
The paper’s own numbers show the mechanism.
- Classification. A CLIP model with a k-nearest-neighbour index runs locally at 0.5 to 1 s per page with no API cost and 92 per cent accuracy. Pages below a confidence threshold go to a Claude Sonnet vision-language classifier. This happens for about 4 per cent of pages, which gives near-VLM accuracy at near-CLIP cost.
- OCR. DocTR, a PyTorch two-stage detector and recogniser, reads each page at 1 to 2 s on GPU and returns words with bounding boxes and confidence scores.
- Parsing. One LLM call runs over the stitched text of the whole document, at about $0.03 per document.
On an eight-page document, OCR makes eight sequential inference calls and parsing makes one. By the paper’s account, OCR takes roughly two-thirds of end-to-end time. OCR time grows linearly with page count, while parsing time grows sublinearly.
Why OCR, Not the LLM, Is the Bottleneck
The authors say their intuition was that LLM parsing would dominate latency and cost, and that production showed the opposite. Their conclusion is that faster OCR, through batched inference, distillation or quicker architectures, gives bigger system-level gains than tuning the LLM step. We agree with the general lesson behind it: profile the per-page stages before spending effort on the model that gets the attention. A step that runs once per page grows linearly with document length; a step that runs once per document grows sublinearly.
The paper also gives a reliability lesson. A VLM classifier at 98 per cent accuracy still misroutes 2 per cent of documents, which at 1,000 documents a day means 20 daily failures for human review. The hybrid design helps because CLIP-KNN fails in different places from the VLM, and the authors frame the wider point as defence in depth rather than model accuracy alone.
The system runs as three microservices on Kubernetes. Message queues distribute the work, and the GPU-bound inference service is kept apart from CPU-bound orchestration so each can scale on its own. Each OCR model ships as a Docker container behind a REST interface, so swapping DocTR for Docling or SmolDocling is a configuration change.
Layout-Aware Models for Forms and Receipts
LayoutLM, from a 2019 paper, models text and layout jointly across scanned document images and adds image features for each word. Its reported gains were form understanding from 70.72 to 79.27, receipt understanding from 94.02 to 95.24, and document image classification from 93.07 to 94.42. The largest of those gains is on form understanding.
OCR-Free Document Understanding
Donut takes the opposite route: an OCR-free transformer that reads the document image directly. Its authors name three problems with OCR-based pipelines: high OCR compute cost, OCR models that do not adapt well to new languages or document types, and OCR errors that propagate downstream. They report state-of-the-art speed and accuracy on several visual document understanding tasks, plus a synthetic data generator for other languages and domains. The Operationalizing Document AI authors expect end-to-end VLMs to replace the OCR step eventually, at a higher per-page inference cost for now.
An OCR-plus-LLM pipeline lets each OCR model be swapped through configuration. An OCR-free model removes the slowest stage and its error propagation. Whether to build such a model or adopt an existing service is its own question, covered in our guide on when to build a custom computer vision model versus use an off-the-shelf one.
Document Question Answering
DocVQA turns document reading into a question-answering benchmark: 50,000 questions on 12,767 document images taken from industry documents dating from 1900 to 2018. Its authors point out that answering requires more than the text. Layout, tick boxes, tables, fonts and highlighting all carry meaning. Most questions target routine data points such as dates, titles and totals. Invoice-reading tools built on GPT, Gemini or Claude also read invoice text and table contents.
Generative Vision Is Wider than Language Models
Vision-language work also runs in the generative direction. OFA and DaVinci generate images from text as well as answering questions and writing captions. PaLM-E, an embodied vision-language model, also performs robot manipulation tasks. Our position is that generative AI originally meant models that generate signals such as images, audio and 3D assets, and that equating it with LLMs is a market-driven confusion. For an applications page, this means image-generating models such as OFA and DaVinci belong to generative AI as much as any chatbot does.
TechnoLynx’s computer vision R&D work builds and deploys systems of this kind. For the document examples, the question is not only whether a model can read the page. It is which stage multiplies with volume, and how failures get caught before they reach business logic.
FAQ
What Does Computer Vision Mean in AI?
Computer vision is the part of AI that extracts information from images and video: detecting, classifying, tracking or measuring what is in a scene.
What Is NLP in Computing?
Natural language processing is the field that lets computers analyse, interpret and generate human language as text or speech. Combined with computer vision, it gives vision-language models that work across both.