Skip to content

Application

Industrial OCR / OCV

Reading and verification of printed text, lot, expiry and serial with camera, coaxial/dome lighting and software.

Industrial OCR / OCV

Industrial OCR (optical character recognition) reads printed text such as lot numbers, expiry dates, serials and batch codes, while OCV (optical character verification) confirms that an expected string is present, complete and legible against a reference. They look like software problems, but on a production line the limiting factor is almost always the image. A correctly trained algorithm fails the moment characters sit on a varying background, ink contrast drifts, or a print head smears a date code at line speed.

The engineering goal is therefore deceptively simple: present the text to the camera the same way, frame after frame, with the characters dark and the background bright (or vice versa) and nothing else competing for contrast. Get the imaging right and OCR/OCV becomes robust and fast; get it wrong and no amount of post-processing rescues a marginal read. That is why the recommended hardware below centres on a stable area-scan camera, controlled lighting, and, where the workflow allows, a dedicated code reader.

The real challenge is stable, high-contrast imaging

Printed text in industry rarely arrives on a clean white label. You meet ink-jet date codes on translucent film, laser-etched lot numbers on shiny metal, thermal-transfer prints on curved bottles, and dot-matrix characters whose individual dots barely touch. Each of these is a contrast problem before it is a recognition problem. OCR and OCV engines threshold and segment characters from their background, so if the local contrast between stroke and substrate is low, inconsistent, or swamped by glare, the segmentation breaks and characters drop, merge or misread.

Stability is the second half of the problem. A line that runs three shifts will see the substrate colour shift between batches, the print head wear, ambient light change as roller doors open, and parts arrive at slightly different positions and angles. The imaging chain has to suppress all of that so the algorithm sees a near-identical scene every cycle. In practice this means locking down working distance, focus, exposure and, above all, the lighting geometry, so that the only thing allowed to vary is the text you are trying to read.

  • Low or variable stroke-to-background contrast (date codes on film, etch on metal).
  • Specular glare from glossy or curved surfaces washing out characters.
  • Substrate and ink-colour drift between batches and over print-head life.
  • Part-to-part position and angle variation moving text out of focus or frame.
  • Motion blur when reading codes on a moving conveyor without strobed light.

Area-scan cameras and optics for text inspection

Area-scan (matrix) cameras are the default for OCR/OCV because printed codes are discrete 2D regions that can be triggered and captured in a single frame. Size the resolution so the thinnest character stroke, not the character height, spans several pixels: a useful working target is roughly 2-3 pixels across the minimum stroke width and on the order of 20-30 pixels of character height for reliable segmentation. Reading the height off the smallest, most condensed font on the line, then dividing the field of view by it, is what sets the sensor you actually need.

Shutter and sensor type follow from the motion. If text is read on a moving conveyor, a global-shutter sensor freezes the characters cleanly where a rolling shutter would shear them; pair it with a short, strobed exposure so blur stays well under a pixel. Monochrome sensors are usually preferable for OCR/OCV because they put all their pixels into spatial detail and pair naturally with a chosen light colour to lift contrast, whereas colour only earns its place when the marking is distinguished from its background by hue. On optics, fix the working distance and pick a lens that resolves finer than your pixel pitch and holds focus across the part-position and surface-curvature tolerance; for curved or stepped parts, depth of field becomes a real constraint worth designing for. Catalogue area-scan cameras from Basler, iRAYPLE and Omron/Sentech (STC) cover the resolution, shutter and interface combinations these tasks demand.

Where text and a barcode or Data Matrix appear together, an industrial code reader from Datalogic/Datasensing can decode the code and read or verify the human-readable text in one device, simplifying wiring and PLC handshaking. Reserve the full camera-plus-software route for cases needing multi-region inspection, unusual fields of view, or OCR combined with defect or presence checks in the same image.

Lighting is what makes the characters readable

Lighting is the single highest-leverage decision in an OCR/OCV station, because it determines whether characters even separate from their background. The right geometry depends on the marking and substrate, and choosing it deliberately is usually what turns a marginal 95% read rate into a reliable one. For flat printed labels, diffuse coaxial (on-axis) light suppresses glare and gives even illumination; for laser etch or peen marks that sit in the surface, low-angle dark-field light catches the relief and renders the strokes bright against a dark background; for highly reflective or curved parts, a diffuse dome light eliminates the hotspots that otherwise swamp the text.

Colour and stability matter as much as geometry. Choosing a wavelength that contrasts with the substrate (for example red light against a substrate that reflects it differently from the ink) can lift effective contrast dramatically, and monochrome sensors exploit this directly. Whatever the geometry, the light must be bright and stable: for moving lines, strobe it in sync with the trigger so you can use short exposures that freeze motion, and drive it from a constant-current controller so output does not drift with temperature or age. DCM Sistemes lighting covers the coaxial, dome, bar and dark-field geometries these tasks call for; specifying the light alongside the camera, never after it, avoids re-spinning the whole station later.

  • Coaxial / on-axis diffuse: flat printed labels and codes; kills glare, even field.
  • Dome (diffuse): glossy, curved or specular parts; removes hotspots.
  • Low-angle dark-field: laser etch, peen and embossed marks; relief reads bright.
  • Backlight: characters on translucent film or transparent containers.
  • Strobe in sync with the trigger and use constant-current control for stability.

When the text or surface defeats rule-based reading

Classical OCR/OCV is fast, cheap and explainable, and for clean, high-contrast codes on a stable line it is the correct choice; reach for AI only when the imaging is genuinely optimised and reads still fail. The cases that defeat threshold-and-segment logic are familiar: dot-matrix and dot-peen characters that never form solid strokes, heavily textured or noisy backgrounds, low and variable contrast that no single lighting setup fully fixes, distorted or partially printed characters, and fonts or layouts that vary more than a template can absorb.

These are exactly the conditions where a deep-learning approach earns its place. Rosepetal, the group's deep-learning visual-inspection software, learns the appearance of acceptable and unacceptable text from examples rather than from hand-tuned thresholds, which makes it robust to the contrast and background variation that breaks rule-based engines, including hard-to-describe defects in the print itself. The fastest way to know whether your case needs it is empirical: capture representative images, the worst examples included, and have them evaluated against your actual read and reject criteria.

If you would like that evaluation, send sample images of your codes and we will assess them with Rosepetal and advise on the imaging chain that will feed it reliably. Where you need the complete station, camera, reader, lighting, optics and PLC integration, built and validated, AIS Vision, the group's machine-vision integrator, can specify and deliver the full system.

Recommended hardware

Categories commonly used to solve this application.

Products for this application

A selection from 2,874 products. Open a category above to compare them all.

  • Basler ace 2 a2A1920-51gcPRO machine vision camera
    BaslerBasler ace 2 a2A1920-51gcPROa2A1920-51gcPRO

    GigE area scan camera with a 2.3 MP Sony IMX392 global shutter CMOS sensor delivering 51 fps in color.

    • Area scan
    • GigE Vision, PoE
    • 2.3 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron FHV7 0.4 MP color C-mount machine vision smart camera
    OmronOmron FHV7 0.4 MP colour C-mount smart cameraFHV7 0.4 MP color C-mount

    High-speed, high-accuracy inspection and measurement. This 0.4 MP colour C-mount configuration covers 1 order code.

    • Presence / absence, Pattern matching / position, Measurement / dimension, Color, Counting, OCR / OCV, Code reading, Defect / surface
    • 0.4 MP (720 × 540 px)
    • Interchangeable C-mount lens (no optics included)
    • None (external lighting)
    • Recommended by AIS Vision
    On request
    View
  • DCM Sistemes ALB0804A-630i/AM machine vision lighting

    Compact high-powered direct LED ringlight for machine vision with built-in iBlueDrive driver, here in the 630nm red, medium-angle iBlueDrive configuration.

    • Ring light (direct high-powered ringlight)
    • Red, 630 nm (also available 365/400/470/525/850 nm and white)
    • 40 mm
    • iBlueDrive: continuous, strobe and overdrive modes
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE A7500MG20E machine vision camera
    iRAYPLEiRAYPLE A7500MG20EA7500MG20E

    5MP monochrome GigE Vision area scan camera built on the Sony IMX264 global shutter sensor, delivering 2448 x 2048 resolution at 20 fps.

    • Area scan
    • GigE Vision, PoE
    • 5.01 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE SS3016PMG/CG-07H machine vision smart camera

    iRAYPLE SS3016PMG/CG-07H AI smart camera: 1.6 MP mono / colour global shutter, 7 mm manual-focus lens, integrated white/red lighting, IP65.

    • Presence / absence, Pattern matching / position, Measurement / dimension, Color, Counting, OCR / OCV, Code reading, AI classification (iRAYPLE tool list) (colour versions) · Presence / absence, Pattern matching / position, Measurement / dimension, Counting, OCR / OCV, Code reading, AI classification (iRAYPLE tool list) (mono versions)
    • On-device AI classification ("AI Tools: AI classification")
    • 1.6 MP (1440 × 1080)
    • Manual focus
    • Recommended by AIS Vision
    On request
    View
  • Basler Light Ring-100OD-White machine vision lighting
    BaslerBasler Standard Light Ring-100OD-WhiteLight Ring-100OD-White

    White-LED machine-vision ring light with 67-101 mm luminous area, an internal 2-mode LED controller, and a 100-250 mm recommended working distance for bright-field illumination around a camera.

    • Ring light
    • White (5000 K)
    • 67-101 mm
    • Continuous and strobe (internal LED controller, 2 operating modes)
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron / Sentech Sentech STC-MCS510U3V machine vision camera
    Omron / SentechOmron Sentech STC-MCS510U3VSTC-MCS510U3V

    5 MP color USB3 Vision area scan camera with a 2/3" Sony IMX250 global shutter CMOS sensor, 2448 x 2048 resolution at up to 75.7 fps.

    • Area scan
    • USB3 Vision
    • 5 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Hikrobot MV-SC6250M-00C-NNN machine vision smart camera
    HikrobotHikrobot MV-SC6250M-00C-NNNMV-SC6250M-00C-NNN

    Hikrobot MV-SC6250M-00C-NNN: SC6000 series AI smart camera, 25 MP mono, C-mount (lens not included).

    • Hikrobot: "Adopts AI deep learning algorithm to achieve OCR, object recognition, defect detection, etc."
    • Adopts AI deep learning algorithm to achieve OCR, object recognition, defect detection, etc.; function module: Vision Master Platform (include deep learning module)
    • 25 MP (5120 × 5120 px)
    • C-mount (lens not included)
    • Recommended by AIS Vision
    On request
    View
  • Omron / Sentech FLV-BR21222 machine vision lighting
    Omron / SentechOmron / Sentech FLV-BR21222 Bar LightFLV-BR21222

    Omron FLV-series LED bar light with a 212 x 22 mm aluminum-alloy housing that uniformly illuminates wide rectangular surfaces for machine-vision inspection.

    • Bar (linear) light
    • White (also Red ~635 nm / Blue ~465 nm variants)
    • Lighting area 199 x 18 mm
    • Continuous or trigger (strobe) lighting via controller, digital intensity control
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Datasensing E101 (CAM-E101-GE) machine vision camera
    Datalogic / DatasensingDatasensing E101 (CAM-E101-GE)E101

    VGA-resolution monochrome GigE area scan camera with a 1/4-inch CMOS sensor, global shutter and 300 fps frame rate.

    • Area scan
    • GigE Vision, PoE
    • 0.3 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron FHV7 0.4 MP color autofocus machine vision smart camera
    OmronOmron FHV7 0.4 MP colour autofocus smart cameraFHV7 0.4 MP color autofocus

    High-speed, high-accuracy inspection and measurement. The new FHV7-series Smart Camera combined with illumination and image processing functionality for advanced vision inspections. This 0.4 MP colour autofocus configuration covers 7 order codes.

    • Presence / absence, Pattern matching / position, Measurement / dimension, Color, Counting, OCR / OCV, Code reading, Defect / surface
    • 0.4 MP (720 × 540 px)
    • Autofocus lens module (high-speed liquid lens / motorized)
    • White LED / Multi-coloured LED (model-dependent)
    • Recommended by AIS Vision
    On request
    View
  • Lumher RD1-5000K machine vision lighting
    LumherLumher RD1 White 5000KRD1-5000K

    Lumher RD1 ring LED luminaire (Ring series), White 5000K. Luminaire designed for machine vision applications where direct illumination is required and space is limited, hence its dimensions of 135mm x 135mm.

    • Ring
    • White 5000K
    • Continuous (1x) / Strobe (4x)
    • Semidiffuse 110° / Ultradiffuse 110°
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Basler ace 2 a2A2048-37gcPRO machine vision camera
    BaslerBasler ace 2 a2A2048-37gcPROa2A2048-37gcPRO

    GigE area scan camera with a 3.2 MP Sony IMX900 global shutter CMOS sensor delivering 37 fps in color, sensitive in visible and NIR.

    • Area scan
    • GigE Vision, PoE
    • 3.2 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE SS3016PMG/CG-16H machine vision smart camera

    iRAYPLE SS3016PMG/CG-16H AI smart camera: 1.6 MP mono / colour global shutter, 16 mm manual-focus lens, integrated white/red lighting, IP65.

    • Presence / absence, Pattern matching / position, Measurement / dimension, Color, Counting, OCR / OCV, Code reading, AI classification (iRAYPLE tool list) (colour versions) · Presence / absence, Pattern matching / position, Measurement / dimension, Counting, OCR / OCV, Code reading, AI classification (iRAYPLE tool list) (mono versions)
    • On-device AI classification ("AI Tools: AI classification")
    • 1.6 MP (1440 × 1080)
    • Manual focus
    • Recommended by AIS Vision
    On request
    View
  • DCM Sistemes PLA1026A-W00C/AW machine vision lighting

    DCM Sistemes PLA1026A is a 260 mm white high-power LED bar/linear projector for machine vision operating at 24 VDC and 11 W.

    • Bar / linear projector
    • White (W00 code)
    • Continuous (direct 24VDC drive)
    • Wide
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE A3504MG100E machine vision camera
    iRAYPLEiRAYPLE A3504MG100EA3504MG100E

    5MP monochrome GigE area scan camera using the onsemi AR0521 rolling shutter sensor at 2592 x 1944 and 23 fps.

    • Area scan
    • GigE Vision, PoE
    • 5.04 MP
    • Rolling shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Hikrobot MV-SC6050C-16M-XBN machine vision smart camera
    HikrobotHikrobot MV-SC6050C-16M-XBNMV-SC6050C-16M-XBN

    Hikrobot MV-SC6050C-16M-XBN: SC6000 series AI smart camera, 5 MP colour, 16 mm M12 lens, built-in light.

    • Hikrobot: "Adopts AI deep learning algorithm to achieve OCR, object recognition, defect detection, etc."
    • Adopts AI deep learning algorithm to achieve OCR, object recognition, defect detection, etc.; function module: Vision Master Platform (include deep learning module)
    • 5 MP (2432 × 2048 px)
    • Red light, green light, blue light, white light (switching by software)
    • Recommended by AIS Vision
    On request
    View
  • Basler Light Bar-10x165-White machine vision lighting
    BaslerBasler Standard Light Bar-10x165-WhiteLight Bar-10x165-White

    White-LED machine-vision bar light with a 10 x 165 mm luminous area and internal 2-mode LED controller, usable for bright-field and dark-field/line illumination at 10-200 mm working distance.

    • Bar light
    • White (5000 K)
    • 10 x 165 mm
    • Continuous and strobe (internal LED controller, 2 operating modes)
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron / Sentech Sentech STC-MBS500U3V machine vision camera
    Omron / SentechOmron Sentech STC-MBS500U3VSTC-MBS500U3V

    5 MP monochrome USB3 Vision area scan camera with a 2/3" Sony IMX264 global shutter CMOS sensor, 2448 x 2048 resolution at up to 35.8 fps.

    • Area scan
    • USB3 Vision
    • 5 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron FHV7 1.6 MP color C-mount machine vision smart camera
    OmronOmron FHV7 1.6 MP colour C-mount smart cameraFHV7 1.6 MP color C-mount

    High-speed, high-accuracy inspection and measurement. This 1.6 MP colour C-mount configuration covers 1 order code.

    • Presence / absence, Pattern matching / position, Measurement / dimension, Color, Counting, OCR / OCV, Code reading, Defect / surface
    • 1.6 MP (1440 × 1080 px)
    • Interchangeable C-mount lens (no optics included)
    • None (external lighting)
    • Recommended by AIS Vision
    On request
    View
  • Omron / Sentech FLV-DR6030UV machine vision lighting

    Omron FLV-DR series direct ring light with ultraviolet (385 nm) LEDs, 64 mm outer / 26.5 mm inner diameter and a 30-degree illumination angle for machine-vision inspection.

    • Direct ring light
    • Ultraviolet (UV)
    • 26.5 mm (internal ring diameter)
    • approx. 56 mm dia. emitting surface (60 mm dia. overall front face)
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View

Frequently asked questions

Related technical guides

Request a technical quote

Share the key data about your part, speed and environment and we propose a configuration.