Check Packaging Barcodes With AI

Short answer

Compare the GTIN digit strings on packaging proofs against the approved SKU register, catch dropped leading zeros and shared barcodes.

Try Assistly Open consoleAssistly · 9 min read

Two ways a barcode check ends. In the first, a Karachi events company prints 20,000 retail cups with a barcode copied from a sibling colour variant; the error surfaces when a distributor scans the first carton, and the reprint plus relabelling costs PKR 12,500 plus a week of apologising. In the second, the same proof dies on a desk on a Tuesday, because a comparison against the SKU register showed the printed GTIN belonging to the red variant, not the green one, and the proof never reached the printer.

Assistly runs that comparison. Give it the register extract and the proof extract, and it matches each printed GTIN to its SKU, checks the arithmetic of every check digit, and reports the padded length of every string. It can confirm that the digits in a proof agree with the register; it cannot confirm that the printed bars will scan at the point of sale, which still takes a physical scan of a printed sample. Noor J. owns the register, Elena K. owns the artwork, Tariq W. owns product registration.

Prepare the register, then the proof

The register is the reference, so it is checked before anything else. It exports as a spreadsheet with columns for SKU, product name, variant attributes such as size and colour, pack level, GTIN stored as text, expected GTIN length, approval date, and approver initials. Retired rows move to a separate sheet so they cannot match by accident. Then the register itself is audited: GTINs appearing under more than one SKU, rows where the GTIN length does not match the pack level, text cells showing fewer digits than their length column expects. Those faults would otherwise be reported as proof errors when the real problem sits in the register. Ask Assistly to list duplicates and length mismatches first, and verify that list with a sort in your own spreadsheet before trusting it. For a related workflow, see the Assistly guide on check print proofs approved copy for another practical example.

GTINs live as text, always. The common lengths are 8, 12, 13 and 14 digits, and a GTIN-13 can begin with zeros that are part of the number: 0012345678905 and 12345678905 are different values, and the 11-digit form is not a valid GTIN-13 without padding. Spreadsheets strip those zeros silently, treating a column of digits as numbers; a CSV opened and re-saved can lose them from the stored value. The register and the proof extract both keep GTIN columns formatted as text, in fixed-width form, with the expected length visible in its own column.

For each proof family, extract the human-readable digit string from every barcode panel, never retyped from memory. A proof PDF needs a readable text layer, because a scanned image cannot be compared as text. Build one comparison extract with one row per barcode occurrence: proof file name, page, panel location, the SKU printed nearby, the digit string as printed, and the pack level if the proof states it. Where two revisions of one proof need comparing, attach both in one message with the earlier revision first and check the layout in the originals afterwards, since text extraction can reorder lines.

The hard stop, and the checks before handoff

A string that fails the check-digit test is a hard stop for that panel: it is not approved, its digits are not corrected by guessing, and the proof returns with the expected GTIN from the register attached. A short string gets a decision from the source artwork: if the proof shows the full padded string at zoom, the fault is in the extract; if the proof itself shows the short string, Elena K. corrects it and the proof returns to the design queue. A variant conflict is held, never resolved by choosing a variant, because it may be a copied barcode, a duplicated register entry, or a legitimate shared code that only the registration rules can authorise.

Two checks run on every batch. First, the row count of the extract equals the number of barcode panels noted in the proofs. Second, a sample, every tenth row, is verified by hand against the source proof, and any error the tool missed sends the whole batch back for review. Then the totals: if the register holds 84 active GTINs for the family and the comparison reports 80 matched, 3 length errors and 1 variant conflict, the numbers must sum to 84; matching totals do not prove correctness, but a mismatch tells you a row was dropped or counted twice. Very large extracts are split into batches and each batch is confirmed fully processed, because inputs can be truncated.

The comparison log keeps fixed fields so the result can be audited: check date, proof file name and revision, SKU, variant attributes, expected GTIN as text, printed GTIN as text, digit count of each, check-digit result, outcome category, reviewer initials, and the physical scan status as its own field starting at not yet scanned. Tool output and final decision sit in separate columns, so an approver sees what the tool reported and what the person decided. The handoff is a short note, not a big spreadsheet: each proof revision, the matched count, each exception with its SKU and printed string, the action required, and its owner. Design corrections go to Elena K., variant conflicts to Tariq W., physical scan requests to whoever can print and scan samples. Assistly drafts the note as a Word file from the log; it is read against the log before sending, because a summary can omit a row, and it stays factual and dated so a buyer can act without asking what was meant. Continue with a related workflow: Check Inventory Cycle Count Discrepancies With AI

Real examples, checked end to end

  • The leading zero that fell off a bottle

    What to give Assistly. Register row: "SKU HZ-220-BLU, product Blue 500 ml bottle, expected GTIN 0012345678905, expected length 13." Proof row: "HZ-220-proof-v3.pdf, page 2, artwork job WO-7095, SKU HZ-220-BLU, printed GTIN 12345678905." Request: compare by SKU, report the digit count of each string, and check the final digit against the first twelve using the standard weights.

    What Assistly returns. The printed string has 11 digits against the register's 13, and the printed value matches the register once the two leading zeros are restored. The check digit of the padded value, 5, is consistent with the first twelve digits. Outcome category: length error on the proof, decision: Elena K. corrects the human-readable text. The barcode symbol itself is not confirmed by any of this, so the physical scan field stays at not yet scanned.

    How to verify it. Open the proof at high zoom and read the human-readable line beneath the bars: is the visible text really 12345678905 without zeros? Then open the register cell and confirm it holds 0012345678905 as text, format text, not number. Recompute the check digit by hand: for this 13-digit GTIN, multiply the twelve body digits by alternating weights 1 and 3 from the left, the digit before the check digit taking weight 3; the sum is 85, so the check digit is 5. The padded value passes the arithmetic; the printed value fails the length test. If the proof file shows the full padded string at zoom, the fault is in the extract, not the artwork.

  • One barcode, two colour variants

    What to give Assistly. Register rows: "SKU CF-500-RED, product Red 500 ml cup, GTIN 0093456712344, length 13" and "SKU CF-500-GRN, product Green 500 ml cup, GTIN 0093456712344, length 13." Proof extract: "CF-500-GRN-proof-v2.pdf, page 1, SKU CF-500-GRN, printed GTIN 0093456712344." Request: list every SKU carrying the same GTIN and state whether the printed string matches the SKU on the proof.

    What Assistly returns. The printed GTIN matches the register for CF-500-GRN and the check digit is valid, but the same GTIN is also registered to CF-500-RED. Outcome category: variant conflict, not matched. The green proof is held and the duplicate goes to Tariq W., because one GTIN should not identify two approved variants unless the registration rules explicitly allow it, and the register alone cannot say whether the duplication is an error. The output does not pick which variant keeps the code.

    How to verify it. Sort the register by the GTIN column, or count against the GTIN text in a separate column, and confirm 0093456712344 appears on two rows with different SKUs. Read the printed digits under the green proof's bars to confirm the same string. Recompute the check digit: the first twelve digits are 0 0 9 3 4 5 6 7 1 2 3 4, the weighted sum from the left is 86, so the check digit is 4, matching the printed final digit. The arithmetic passes, which makes this a registry question, not a typing error.

Prompt to try in Assistly

Compare the GTIN values in the proof extract with the approved SKU register below. Match each proof row to the register by SKU first, then confirm the GTIN. For every row report the SKU, the expected GTIN, the printed GTIN, the digit count of each, whether the check digit is valid using the standard weights for the printed length, and one outcome category chosen from matched, length error, check-digit failure, variant conflict, or unmatched. List any GTIN that appears under more than one SKU in the register. Do not correct any digits. End with a count of rows in each category and confirm the counts add up to the total number of proof rows.
Try this task

Questions people ask

Can Assistly confirm a printed barcode will scan?

No. It compares the digits printed in a proof with the register and checks the check digit's arithmetic. It cannot read the bar pattern as a scanner would, or judge print size, contrast or quiet zones. A physical scan of a printed sample, with a scanner the team has tested, is the only confirmation that the symbol decodes.

Why does the report show a length error when the digits look right?

Usually a dropped leading zero. A GTIN-13 for a unit pack can begin with zeros, and a string shown without them has fewer digits than the register expects. Check the length column and the register cell format; if the register cell is stored as a number, the zeros may have died when the register was saved, so convert the column to text and recheck before blaming the proof.

What happens when two approved variants share one barcode?

Hold the proof for the affected variant and send the case to product registration. Do not choose one variant to keep the barcode and drop the other; the register may be wrong, the proof may have been copied from a sibling file, or the rules may permit a shared code. Only the owner of those records settles it, and the log records the conflict with both SKUs listed.

How do I know the tool has not missed a row?

Count the barcode panels you noted in the proofs and confirm the comparison's row count equals it. Then hand-check a sample against the source files and check the category totals against the total rows; any missed row sends the whole batch back for review. Large extracts are split and each batch confirmed fully processed.

Try the workflow in Assistly

Create an account