Skip to content

grade ​

The print-quality grade predicted from the artwork is below the minimum.

Levelfail
Applies tolinear codes with a known quiet zone; QR Code and Data Matrix. Not Aztec, MaxiCode, Micro QR, rMQR, PDF417, MicroPDF417, Code 93 or Codabar
Needs a print sizeno; with one, the aperture GS1 names is used

What it means ​

A verifier scores a printed barcode from 4.0 (A) to 0.0 (F). The grader computes the same parameters from the artwork instead of from a print, and reports a grade issue when the result is under the minimum for that symbol. It names the parameter that set the grade. It is a prediction of what the drawn artwork allows. It is not a verification: ink spread, substrate and press are not in the file.

Why scanners care ​

The grade is the standard measure of how reliably a symbol scans. GS1 sets 1.5 (C) as the minimum for most uses (General Specifications Table 5-43), and says that a symbol at 1.5 or better gives acceptable performance (§5.12.5.1.2).

How to fix it ​

Start from the parameter named after "Lowest:".

LowestUsual cause in artworkFix
decodesomething in the quiet zone, a broken bar, a reversed linear codeclear the quiet zone; see quiet, colour
symbol contrast, reflectance minimum, edge contrastbars too light or background too dark in red lightsee colour
modulationnarrow spaces filled in: the symbol is small, blurred or low resolutionmake it larger; place it as vector or at a higher resolution
defectsspecks or texture in the bars or spacesput the code on a flat panel
decodabilitybar widths off: the symbol was rescaled unevenly or anti-aliasedregenerate at the final size
fixed pattern damage, grid or axial non-uniformitya 2D code that was stretched or croppedregenerate; scale in proportion
unused error correctionmany 2D modules near mid-greyraise contrast, resolution or size

Thresholds ​

The minimum quality specification column of the symbol specification tables, written grade/aperture/wavelength (§5.12.3). gradeSpecFor in src/rules/grade.ts.

SymbolMinimumApertureSource
EAN-13, EAN-8, UPC-A, UPC-E1.5 (C)0.150 mm, ref 06Table 5-44
GS1 DataBar (all forms)1.5 (C)0.150 mm, ref 06Table 5-44; §5.5.7
ITF-14, X under 0.635 mm1.5 (C)0.250 mm, ref 10Table 5-47 note ***
ITF-14, X from 0.635 mm0.5 (D)0.500 mm, ref 20Table 5-47 note ***
GS1-1281.5 (C)0.250 mm, ref 10Table 5-47
GS1 DataMatrix, GS1 QR Code, and a Data Matrix or QR Code carrying a GS1 Digital Link1.5 (C)0.305 mm, ref 12: "80% of the minimum X-dimension allowed for the application" (§5.6.3.5, §5.7.4.5), the 0.396 mm of Tables 5-45 and 5-46Tables 5-45, 5-46
Anything else that is graded1.5, worded as "the grade most scanning needs": this package's own linehalf of X (linear), 80% of X (2D): this package's own choicenone

A linear grade is the mean of ten scans across the bar height, each the lowest of seven parameters. A stacked GS1 DataBar is graded row by row: its rows are found across the whole symbol (the finder's box may hold only one), the separators between them are left out, and the ten scans are shared out over the rows, each inside its row and from that row's own first bar to its last; the grade is their mean. How ISO/IEC 24724 combines the rows of a stacked symbol isn't verified. A 2D grade is the lowest of seven parameters. The notation 2.8/06/660 is grade, aperture reference and wavelength.

A 2D grade is predicted only for QR Code and Data Matrix, whose grid is known exactly (QR from its version, Data Matrix from the rows × columns ZXing states, rectangles included). For Aztec, MaxiCode, Micro QR, rMQR and PDF417 the summary says "A print-quality grade isn't predicted for this symbology."

Limits ​

  • 2D codeword parameters are estimated from modules, because the decoder doesn't hand back codewords.
  • A photo of a pack is not graded.
  • No print gain is modelled. See bar width reduction.

Spec ​

GS1 General Specifications, Release 26.0: §5.12.3 (Table 5-43 and the symbol specification tables), §5.6.3.5, §5.7.4.5, §5.12.5 (quality assessment). Method: ISO/IEC 15416 (linear) and ISO/IEC 15415 (2D); most thresholds are from those standards and their clause numbers are not verified here. Full table: spec map, grade.

MIT licensed. It predicts from the artwork; it is not a verifier.