Optics & lighting

EAN-13 traceability: lighting and quiet zones

Keep the printed symbol, its quiet zones and source coordinate mapping intact when comparing illumination or tightening a reader ROI.

Send samples for engineering review
EAN-13 traceability: lighting and quiet zones — Illustrative engineering scene; not a photograph or a measured result.
Illustrative engineering scene; not a photograph or a measured result.

Purpose and operating boundary

Keep the printed symbol, its quiet zones and source coordinate mapping intact when comparing illumination or tightening a reader ROI.

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

Prepare black bars on real label stock with film glare and damaged edges. Identify the symbol boundary independently of any successful decoded payload. Repeat the selected condition after restoring the fixture, not merely while leaving everything untouched. This reveals whether the recipe can be reproduced during changeover. Record ambient-light state and the time since illumination was enabled when these affect the image. Do not compare measurements taken from different masks or different bit-depth conversions as though only lighting changed. Keep the rejected optical condition in the record, including its image and the reason for rejection. A visually attractive image is not automatically the best inspection image: the selected condition must preserve the relevant feature and its separation from acceptable variation over the full agreed sample range. Keep decoding, identity validation, print verification and unit tracking as separate records. The EAN-13 value identifies a trade item and is normally shared by multiple physical units; it is not a per-frame sequence number or a unique serial. A successful decode does not prove print-quality compliance, correct product master data or successful downstream rejection. This series uses EAN-13 as its bounded example because that is the confirmed public PC evaluation scope. Other symbologies, QR, direct-part marks and reader hardware require their own confirmed integration. The original source image must retain bars, spaces and quiet zones; a cropped display or cleaned binary image alone is insufficient failure evidence. Specify how a missing frame and an unreadable code differ in the traceability database. Build a controlled optical comparison before moving the threshold. Mark the fixture, working distance, light angle and focus so that each condition can be restored. Change only the selected lighting or region variable while holding the camera settings and sample identity fixed. Retain the entire source frame beside every crop or mask, with the transform back to source coordinates. Capture both acceptable variation and a known problematic sample, including the edge of the allowed placement range. Inspect the region overlay on the original image before interpreting a numeric result. A smaller region can hide a failure rather than improve inspection, so excluded areas need an explicit engineering reason.

Procedure

  1. Compare diffuse and directional light at fixed exposure; inspect white background clipping and dark-bar visibility.
  2. Map the ink boundary to source pixels and retain surrounding blank areas rather than drawing a box around bars alone.
  3. Inspect the ROI at permitted rotation and displacement; a rectangular crop must contain the entire transformed symbol.
  4. Save original, ROI and lighting revision together; investigate no-read cases without extending the crop into a neighboring label.

Interpret the trial

The hypothetical ink spans x = 120 to 380 in a 640 px-wide frame. An ROI from x = 80 to 420 leaves 40 px on either side. This is an engineering margin example, not a claim that the GS1 quiet-zone requirement is satisfied; actual requirements depend on symbol dimensions.

Recording worksheet

Hypothetical worksheet; values are design examples, not measured performance.
RecordValue / observationInterpretation
Source width640 pxFixed source coordinates
Ink / ROI bounds[120, 380] / [80, 420] px40 px each side; not a standards claim
left = 120 - 80 = 40 px
right = 420 - 380 = 40 px

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. Source frame → Light condition → ROI → Contrast.

  1. Source frame
  2. Light condition
  3. ROI
  4. Contrast
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. Baseline → Candidate → Same sample → Decision.

  1. Baseline
  2. Candidate
  3. Same sample
  4. Decision
Illustrative engineering scene; not a photograph or a measured result.
View full-size diagram

Failure diagnosis

  • A decoder reading under glare does not prove bar contrast or print quality.
  • A neighboring symbol appearing after ROI expansion must be associated with its own item, not silently substituted.

Acceptance and handover

Accept the ROI only if the whole symbol and required blank areas remain source-linked across the declared pose range. Keep independent print verification separate from this lighting comparison.

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. What should I check to ensure good quality barcodes?GS1

    Quiet zones, contrast, damage, size, placement and packaging affect barcode quality.

    Checked
  3. Geometric Image TransformationsOpenCV

    Source/destination coordinate mappings, affine/perspective transformations and interpolation; image geometry does not certify an installed Deyi executor.

    Checked
  4. Decoding versus barcode verification: design the right testDeyi Vision

    Decode success and data correctness are distinct from calibrated print verification and GS1 conformance.

    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