Software & integration

OCR labels: native workflow and exact match

Separate text detection, recognition and business-field validation, and preserve uncertain text instead of replacing it with the expected lot.

Send samples for engineering review
OCR labels: native workflow and exact match — Illustrative engineering scene; not a photograph or a measured result.
Illustrative engineering scene; not a photograph or a measured result.

Purpose and operating boundary

Separate text detection, recognition and business-field validation, and preserve uncertain text instead of replacing it with the expected lot.

This tutorial defines an engineering evaluation, not a ready-to-run product certification. The current Deyi Vision public PC example covers an EAN-13 workflow on confirmed sample images. Native OCR and detection work in the engineering code must be checked against the installed runtime, bound models and job before use. A browser template does not prove browser execution: the planned OpenCV.js backend needs separate verification. Cloud recognition requires explicit approval of the image scope, provider, model and cost. A review archive is not an executable release package. Camera, firmware and driver compatibility require their own check. All worksheet values below are hypothetical; they are not Deyi Vision measurements or customer results.

Prepare the evidence

Bind the confirmed OCR package, language dictionary and preprocessing revision. Inspect installed capabilities rather than treating an editable OCR template as executable. Check the intermediate output against its contract before interpreting the final flag. A missing region, malformed text field, invalid coordinate or non-finite numeric value must remain an explicit failure, not a default good result. Record the actual execution backend and dependencies used for that run; do not transfer acceptance from another backend with the same template name. If a new model or preprocessing revision is selected, preserve the previous version and rerun the fixed comparison rather than combining results across identities. Present the complete number of attempted cases, how many returned usable evidence and the decision made for the remainder. These quantities describe coverage and failure handling as well as recognition quality. OCR label verification is a data-integrity task rather than a search for plausible words. Define each field, its location, expected alphabet, exact comparison policy and the trusted source of the expected value. A lot field, date field and product name may need different rules. Keep the text detection polygon and recognizer output before normalizing spaces or case. Do not silently replace I with 1 or O with 0: that can make a wrong label appear correct. The original engineering evidence includes a narrow OCR boundary case that returns NoResult or Review; increasing a crop does not establish general recognition readiness. A readable field can still contain the wrong lot, while a correct expected value does not justify filling an unreadable field with that value. Treat a workflow as a sequence of typed decisions, not as a single model answer. Bind the input identity, region transform, node versions, preprocessing and model package before running an experiment. Separate parameter selection on development images from evaluation on a frozen set whose answers were not used for tuning. Keep the baseline and candidate results for every case, including unsuccessful execution. An AI suggestion can propose a revision but cannot confirm the reference answer, grant data upload permission or approve production use. If a provider call has an uncertain receipt, preserve the request identity and investigate that receipt before considering any resend. Runtime availability, recognition quality and release approval are independent checks.

Procedure

  1. Feed only the source-linked field into detection and retain the returned polygon before recognition.
  2. Preserve raw recognized text, then apply only the written normalization policy; record both versions and the rule.
  3. Compare against the trusted lot field exactly and distinguish a readable mismatch from NoResult or Review.
  4. Select model or threshold changes on development data, then rerun the frozen comparison including confusing characters.

Interpret the trial

LOT123 is the hypothetical expected field. LOTI23 is a readable mismatch even though both have 6 characters. A model confidence value is not permission to replace I with 1. Missing detector/recognizer dependencies block execution; the public PC example alone does not prove this native OCR chain is ready.

Recording worksheet

Hypothetical worksheet; values are design examples, not measured performance.
RecordValue / observationInterpretation
Expected lotLOT123Trusted record
Recognized lotLOTI23Mismatch; do not replace I with 1

Two engineering views

Two engineering views · 1

The diagram shows the order of checks. Each arrow requires recorded evidence; it does not imply an implemented automatic connection. Input identity → Bound nodes → Result contract → Review.

  1. Input identity
  2. Bound nodes
  3. Result contract
  4. Review
Illustrative engineering scene; not a photograph or a measured result.
View full-size diagram

Two engineering views · 2

The diagram shows the order of checks. Each arrow requires recorded evidence; it does not imply an implemented automatic connection. Development → Frozen evaluation → Candidate → Approval.

  1. Development
  2. Frozen evaluation
  3. Candidate
  4. Approval
Illustrative engineering scene; not a photograph or a measured result.
View full-size diagram

Failure diagnosis

  • A correct text value associated with the wrong field polygon must fail binding review.
  • A provider answer without the required source/request identity must not become an accepted local OCR receipt.

Acceptance and handover

Accept only the bound runtime that was actually evaluated. Save polygons, raw text, normalized text, expected-value source, revision and the disposition of each failed field.

Keep the source images, the expected decision, the exact revision and the complete result record together. Freeze the evaluation set before selecting the final parameters. If those answers are later used to tune the workflow, mark that set as development data and obtain a new independent acceptance set. Keep Review, NoResult, execution error and missing acquisition visible in the denominator; do not turn them into passes by filtering rows. Save a reproducible failure alongside the successful sample. The handover should identify who may change the recipe, how a prior approved revision is restored and which device output remains inhibited until acceptance. A software result alone does not establish that a moving physical part reached the correct destination.

Sources and technical references

These references explain the methods and limits used in this tutorial. Example checks are guidance; production acceptance requires evidence from your own samples.

  1. Deyi Vision machine vision software: evaluation scopeDeyi Vision

    Public EAN-13 PC evaluation scope and separate hardware/production acceptance.

    Checked
  2. OCR Pipeline Usage TutorialPaddleOCR

    Text detection and recognition are separate stages with model/language configuration; upstream use is not a Deyi deployment claim.

    Checked
  3. Check OCR text against barcode and batch dataDeyi Vision

    Keep raw recognized text and approved reference data separate, declare normalization and preserve mismatch/unknown outcomes.

    Checked

Engineering review

Bring the inspection problem and the evidence.

Send sample images, your current setup and the check that failed. Include field of view, working distance, line speed and acceptance criteria for a practical review.

Send samples for engineering review
Contact

Direct RFQ contact

Talk to engineering about the inspection problem.

Send sample images, competitor model, FOV, working distance and line speed before model selection.

Target: selection brief within 24h
Send sample images