UK machine-vision integration for production lines

OCR, OCV and print verification

Date and lot code inspection systems

Check that every pack carries the expected date, batch or lot information—and that the printed code is present, readable and associated with the correct production job.

Application guide

What does a date-code inspection system check?

An inline date-code inspection system uses controlled lighting and an industrial camera to assess the printed area on every presented pack. Depending on the risk and print format, it can confirm code presence, read characters, compare them with the active recipe and track a failed result to automatic rejection or a controlled line stop.

The inspection must be defined around the actual printer, substrate, code position and normal production variation. A high-contrast laser mark on a flat carton behaves very differently from an inkjet code on a curved, glossy bottle or a flexible pouch.

OCRRecognise unknown text
OCVVerify expected text
PresenceConfirm a mark exists

OCR, OCV and code-presence checks are not the same

Optical character recognition (OCR) turns an image into characters when the system needs to determine what was printed. Optical character verification (OCV) compares the observed characters with an expected string or permitted format. A simpler presence or quality tool may only confirm that an adequately sized printed pattern exists in the defined region.

The right method depends on the consequence of an error. If the quality plan requires the exact use-by date to match the current job, a presence check alone is not enough. If only a clearly visible batch mark is required, full OCR may add unnecessary complexity and false rejects.

Date and batch-code failures that can be targeted

  • Missing date, batch, lot or expiry code
  • Wrong characters or a code that does not match the active recipe
  • Incomplete, broken, doubled or poorly contrasted print
  • Code printed outside the permitted area
  • Unexpected date format, separator or character count
  • Incorrect relationship between the pack, label, barcode and printed code
  • No-read or uncertain results sent to a controlled fail condition

Build the check around normal production variation

Representative packs should include the normal movement, colour, gloss, print density and material variation expected on the line. Trials establish the practical exposure, light angle, field of view and character size. They also show whether the pack needs to be stabilised or spaced before imaging.

Curved containers may require a narrow inspection window or more than one view. Reflective films can need diffuse or polarised lighting. Flexible packaging may move through the focal plane, so guide design and trigger timing can be as important as the recognition software.

Recipe, data and reject integration

The expected code may be entered locally, selected from a protected recipe or supplied by a printer, PLC or production database. The interface and authority for changing that value must be agreed during specification. Systems can also record counts, no-reads, failed strings and selected images when the chosen controls and storage design support it.

A failed pack can be rejected with a pusher, air blast, drop gate or other suitable device. Where a single rejected pack cannot be positively separated, a controlled stop may be more appropriate. Reject confirmation, secure collection and consecutive-failure logic can be added to suit the quality risk.

Information needed for a useful feasibility review

  • Good, poor and failed print samples from normal production
  • Printer type, font, code height and permitted formats
  • Pack materials, colours, curvature and code locations
  • Line speed, product pitch and conveyor movement
  • Expected string source and recipe-change process
  • Required response to a no-read, mismatch or poor-quality code
  • Data retention, audit and user-access requirements

Related inspection stages

Combine code inspection with barcode and 2D-code checks, label inspection, carton inspection and confirmed rejection.

From requirement to production

Prove the complete inspection chain

The product, image, decision, tracking and failed-pack response are developed as one controlled system.

Define

Products, defects, speeds, environment and measurable acceptance criteria.

Prove

Representative samples, lighting trials and practical inspection limits.

Integrate

Product handling, guarding, PLC, recipes, data and reject tracking.

Accept

Agreed FAT, installation, SAT, training and production handover.

Frequently asked questions

Date and lot code inspection systems: practical answers

Can the system verify the exact expiry or use-by date?

Yes, when the expected value or permitted date rule is available to the inspection system and the printed characters can be imaged reliably. The source of the expected date and the handling of recipe changes must be defined during specification.

What is the difference between OCR and OCV?

OCR recognises characters when the text is not already known. OCV compares observed characters with an expected value or pattern. Some applications also use a simpler print-presence or print-quality check.

Can inkjet, laser and thermal-transfer codes be inspected?

Potentially, yes. Each print method and substrate creates different contrast, edge quality and reflection behaviour, so representative samples should be trialled before the final camera and lighting are selected.

Can codes on curved bottles or flexible pouches be read?

Often, but curvature, glare and movement can reduce the usable character area. The solution may require controlled presentation, specialised lighting, a smaller field of view or multiple views.

Should a failed date code stop the line or reject the pack?

That depends on product spacing, reject certainty and the quality risk. A positively tracked reject is suitable for many lines; a controlled stop may be safer where failed-pack separation cannot be confirmed.

Start with the product and defect

Define a practical inspection concept

Send the pack formats, line speed, available space and defects you need to catch. Samples and images are especially useful.

Call Oxford Vision Systems01865 416657Email our sales teamsales@oxfordvisionsystems.co.uk

Manufacturer product photographs: Zebra fixed industrial scanner from the FS40 product family. Equipment examples; application-specific optics, controls and suitability are assessed separately.