addaScan an addanode brand home
Project case // anonymised

Envelope verification and sorting line: camera, barcode and card checks

A batch line that checks every sealed envelope with a camera, reads its barcode and the contactless card inside, matches both to the batch data file, and sorts or rejects it with a record of each decision.

By addaScan engineering teamTechnical review: Frank GuoPublished 6 min read

Discuss a verification line
// Short answer

addanode delivered a line that verifies sealed envelopes one by one. A HIKROBOT-based camera check finds the envelope window, locates the barcode and confirms the envelope is face up. A barcode reader and a card reader identify envelope and card, and the software matches both to the batch data file. Good envelopes go to a hopper; faulty or mismatched ones are rejected and recorded. The line passed factory acceptance, meeting or exceeding every agreed target.

At a glance

Project at a glance
ItemDetail
CustomerA secure-document fulfilment operation. Name and sector details withheld at our discretion.
Product handledSealed envelopes in several sizes, each with a printed barcode and a contactless card inside.
Checks per envelopeCamera check of the envelope and its window, barcode read, card read, match against the batch data file.
Outcome per envelopeAccepted to the collection hopper, or diverted to the reject bin; every decision written to the batch result files.
Vision platformHIKROBOT machine vision image recognition, configured by our team.
Deliveryaddanode led the project: requirement, specification, design review, factory acceptance and operating documentation. The line was built with a manufacturing partner.
StatusFactory acceptance test passed in August 2026, meeting or exceeding every agreed target.

The brief

Each envelope in a batch carries a printed barcode and contains one contactless card. Before a batch leaves, every envelope has to be checked: is it the right card for the right record, is the envelope in a fit state to send, and is anything missing, doubled or mismatched? Checking this by hand, envelope by envelope against a data file, is slow, and a single mistake reaches the person who receives the envelope.

The customer asked for a line that takes a loaded stack of envelopes, checks each one automatically, sends good envelopes to a collection hopper and faulty ones to a reject bin, and writes a record of every decision.

Conditions and constraints

  • Batch operation. An operator loads the reference data file for the batch from the site network, places the stack in the feeder and starts the run. The line signals with light and sound when it starts and when the feeder is empty.
  • Variation between batches. Envelopes come in several sizes. The barcode position on the envelope and the card position inside it are fixed within a batch but can change from one batch to the next, so the line must be adjustable, manually or automatically.
  • Limited floor space. The overall length of the line was fixed by the space available and confirmed in writing.
  • Records the team can use. The result file is saved next to the source data with the processing time in its name, and results update on a display during the run. The customer preferred a Windows-based display for their workflow.
  • Open points closed in writing. A clarification record listed each item as confirmed or still to be decided, such as where in the card's response the identifier sits and the exact rules for a valid camera match, with sample envelopes and cards requested before design was finalised.

The line

Hopper feeder, guided conveyor, camera station, barcode and card readers, a controller with Windows software that decides and records, a reject flap and two outlets.

[Schematic]Plan view · schematic · not to scale

Swipe sideways to see the whole drawing →

Plan view of the envelope verification and sorting line Envelopes are picked from a hopper feeder, travel along a guided conveyor under a camera with lighting, past a barcode reader and a contactless card reader. A controller matches the readings with the batch data file and drives a reject flap: accepted envelopes go to the collection hopper and rejected ones to the reject bin. ENVELOPE FLOW → [1] FEEDER SUCTION PICK-UP [2] CAMERA + LIGHTING [3] BARCODE READER [4] CARD READER [5] CONTROLLER MATCH + RECORD [6] REJECT FLAP [7] HOPPER [8] REJECT BIN
[1] Feeder: Holds the loaded stack and picks one envelope at a time; hopper and pick-up positions are set per envelope format.
[2] Camera and lighting: I/O-triggered image of each envelope: window location, barcode search and front/reverse check.
[3] Barcode reader: Reads the envelope barcode that identifies the record.
[4] Card reader: Reads the identifier of the contactless card inside the envelope.
[5] Controller and Windows software: Matches barcode and card against the batch data file, decides, writes the batch result files, keeps images of rejects and updates the display.
[6] Reject flap: Diverts rejected envelopes out of the main flow.
[7] Collection hopper: Receives accepted envelopes.
[8] Reject bin: Receives rejected envelopes; the reason is in the batch result file.

What the camera checks

The camera station compares each envelope with a template for the batch. It does not read identity; it checks that the envelope is fit to be read and sent. The checks were built with HIKROBOT machine vision image recognition. This website does not claim any official HIKROBOT partnership or distributor status.

Images are captured on the move: the line's I/O triggers the camera as each envelope passes, and the trigger delay was fixed on sample envelopes rather than calculated on paper. Operators work in a Windows vision application that loads the batch data file, shows live counts, keeps the images of rejected envelopes and saves the correct and rejected results as separate files for each batch. See code inspection for how code reading and verification differ.

Any change to exposure, trigger, regions or decision limits is validated on sample envelopes and recorded before use. This rule is written into the operating guide handed over with the line.

Camera checks on each envelope
CheckWhat fails itWhy it matters
Envelope window locatedA window-recognition template finds the address window on each imageEvery later check is made relative to the window
Barcode found in the windowSearched first in a local region of interest, then across the whole windowA shifted barcode is still found; a missing one is rejected
Barcode not blockedA barcode covered by the insert or folded paper cannot be readTested at FAT with deliberately blocked barcodes
Envelope face upFront or reverse side judged from the amount of dark barcode and character detail in the windowA reversed envelope is rejected before its data is matched

Error handling

Every fault ends in a defined action and a recorded reason, so the result file explains each rejected envelope.

Faults the line detects and what it does
FaultAction
Barcode missing or unreadableReject; reason recorded
Card missing or unreadableReject; reason recorded
More than one card read in one envelopeReject; reason recorded
Two envelopes matching the same recordReject the repeat; flagged as a duplicate
Barcode and card belong to different recordsReject; both values recorded
Envelope reversed or barcode blocked (camera check)Reject; image kept for review

How acceptance was defined and tested

Acceptance was written into the project before the build, as a factory test and a site test with agreed pass criteria. The stages are the same as in how we deliver a project. The factory acceptance test (FAT) covered:

  • Basic functions and throughput. Feeding, conveying, collection and reject mechanisms; barcode reading in both symbologies; card reading; data matching; the Windows operation, statistics, alarms and export; and average throughput against the agreed target.
  • Error types. Envelopes with the barcode on the reverse side, a blocked barcode, a missing card, more than one card, and barcode–card mismatches or duplicate records.
  • Error-sample and correct-sample runs. A run of deliberately faulty envelopes, where the pass criterion allowed almost no wrong acceptance, and a run of correct envelopes to record how many good envelopes the line lets through.
  • Format changeover. Standard to small envelopes and back, with the parameters recorded for each format.
  • Endurance. A continuous run of several hours with no major mechanical, electrical or software fault allowed.

Each test records summary results, with the raw result files, screenshots and the operating guides attached. Anything that did not pass goes into an issue list with an owner and a closure action. The PLC and reject integration guide explains tracking and confirmation in more detail.

Results

The FAT passed, and the line met or exceeded every agreed target. Every deliberately faulty envelope in the error run was rejected, with none wrongly accepted; every correct envelope in the correct-sample run was accepted; each error type was rejected; throughput met its target; both format changeovers returned to stable running; and the endurance run finished without a major fault.

The only issue logged was minor: envelopes loaded unevenly could slide in the hopper. It was closed with a loading procedure: square the stack with the barcode in the window, work it back and forth so it slides freely, and set the counterweight the right way round. That step is now in the operating instructions.

The measured figures belong to the customer and are not published without permission. We do not replace them with estimates.

What carries over to other projects

  • Combine identity and condition. Code and card readers prove which item it is; the camera proves the item is fit to send. One decision needs both.
  • Design for batch-to-batch change. If formats change between batches, per-batch settings and adjustable guides matter more than raw speed.
  • Treat data errors as defects. Duplicates and mismatches in the reference data are rejected and recorded like physical faults.
  • Test the failure cases on purpose. A run of deliberately faulty samples, one per error type, tells you more than a long run of good product.
  • Write the operator's part down. The one issue found at FAT was about how envelopes are loaded, not about the software; the fix was a written loading step.
  • Close open points in writing. A short clarification record, with samples requested early, prevents most late changes.
// FAQ

Questions about this project

Can one line check an envelope with a camera, a barcode reader and a card reader?
Yes. Each device answers a different question: the camera checks how the envelope looks and sits, the barcode reader identifies the envelope, and the card reader identifies what is inside. A controller combines the three answers with the reference data before it decides to accept or reject.
Why add a camera if the barcode and the card are both read?
Reading proves identity, not condition. A folded, soiled or reversed envelope can still carry a readable barcode. The camera check catches presentation faults the readers cannot see, and it confirms the barcode sits where the readers expect it.
How does the line cope with different envelope sizes?
Within one batch the size and the positions of the barcode and card stay the same; between batches they can change. The hopper, the suction pick-up and the camera and card-reader positions are set with handwheels, and parameters are stored per format. Changing between the standard and the small format, in both directions, was verified at the factory acceptance test.
How is the camera triggered on a moving line?
By the line’s I/O as each envelope passes, with a trigger delay validated on sample envelopes. For fault-finding the software can be switched to a manual trigger, and back to I/O triggering before production resumes.
Did the line pass acceptance?
Yes. The factory acceptance test passed and the line met or exceeded every agreed target: throughput, rejection of every deliberately faulty envelope, acceptance of correct envelopes, format changeover and a continuous endurance run without a major fault. The exact figures belong to the customer and are not published without permission.
// Similar problem?

Checking items against data before they ship

Tell us what has to be verified, how items arrive and what data you match against. We reply within two working days with questions or a proposed sample test.

Request a Vision Assessment