This page is being translated by your browser

Translation can break parts of Roboflow. If something stops working, turn translation off and reload the page.

OCR · Manufacturing & QC

Expiry date reading: Datasets & Models

Automatically read printed expiry and best-before dates on product packaging using OCR. Turns camera images of labels into structured date strings for verification and logging.

Expiry date reading example
1M+
developers
16k
organizations
50B
inferences

Expiry date reading

This OCR workflow takes camera images of product packaging and detects printed expiry, best-before, and date code markings on cartons, bottles, cans, and flexible packaging. Trained on an expiry date dataset, it locates the relevant region and converts inkjet, laser-etched, and thermal-printed codes into structured date strings for verification and logging.

Try it out

Powered by general detection model

Run on custom image

Drop an image here or click to upload

Detecting classes:

Why automate expiry date reading

Manually inspecting expiry dates on a high-speed manufacturing line is slow, error-prone, and impossible to sustain at full throughput, and a single missing or malformed date code can trigger recalls, rejected shipments, or regulatory penalties. Automating date reading with an OCR-based vision model lets you verify every unit rather than a sampled subset, flag illegible or incorrect prints in real time, and stop bad product before it leaves the line. Building on an expiry date dataset means your model learns the specific print styles and packaging you actually run. It also removes the operator fatigue and inconsistency that plague visual QC checks.

Key benefits

You get consistent, 100% inspection coverage that catches missing, smudged, or out-of-spec date codes at line speed, with results logged for traceability and audits. The workflow runs on cameras and edge hardware you likely already have on the packaging line, and integrates with PLCs or MES systems for automatic reject handling. As you add new products and label formats, the same pipeline scales without adding inspection headcount.

How to use it

  1. Upload an image: Drop any photo into the widget above to try expiry date reading for free, right on this page.
  2. Preview instant results: The model detects expiry date label, product packaging, bottle, carton, printed date code within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
  3. Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train OCR / document model on your own images for production accuracy.
  4. Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model

Recommended model for expiry date reading

When you're ready to build a production model for expiry date reading, we recommend training OCR / document model. Unlike the ready-to-use model in the demo above, you fine-tune it on your own labeled images for higher accuracy, then deploy to a Serverless Cloud API endpoint.

Train your own model
Roboflow Agent

Not sure where to start?

Describe your Expiry Date Reading project to Roboflow Agent.

Agent