{
  "method": {
    "what": "Synthetic pages with known text, drawn as if scanned, run through HerePDF's own OCR code in Node. Not real scanner, fax or phone output.",
    "documents": [
      {
        "id": "letter",
        "kind": "a typed letter",
        "font": "Liberation Serif Regular",
        "lines": 26,
        "characters": 1514
      },
      {
        "id": "notice",
        "kind": "an appointment letter",
        "font": "DejaVu Sans",
        "lines": 22,
        "characters": 1085
      },
      {
        "id": "receipt",
        "kind": "a shop receipt",
        "font": "Liberation Mono Regular",
        "lines": 21,
        "characters": 519
      }
    ],
    "pages": "Each document is drawn on an A4 canvas at the scan DPI (64 pt margins, line spacing 1.45), optionally tilted, blurred, shaded (a multiply gradient from one corner), given Gaussian grey noise, turned, and saved as a JPEG at the stated quality. Each condition is one 3-page PDF (one JPEG filling each page). Noise is seeded, so a rerun draws the same pages.",
    "pipeline": "lib/pdfOcr.js ocrPdf draws each page at 200 DPI with the PDF.js legacy build into @napi-rs/canvas and passes the pixels (as PNG) to lib/ocrEngine.js createOcrEngine (English, LSTM only); lib/ocrQuality.js classifyPage gives the band; lib/pdfOcrLayer.js addOcrTextLayer writes the layer; PDF.js reads the layer back.",
    "errorRate": "Character error rate = edit distance (insertions, deletions, substitutions, counted in Unicode code points) between the recognised text and the known text, divided by the known text's length. Both are NFKC-normalised, curly quotes and dashes counted as the plain character, and every run of whitespace as one space. A condition's rate is total edits over total characters on its pages. Above 100% is possible when the engine outputs more text than the page has.",
    "bands": {
      "noLayerBelow": 50,
      "flagBelow": 80,
      "source": "lib/ocrQuality.js"
    },
    "fixtureText": "tests/fixtures/gray-scan.jpg has no committed generator; its known text was read off the picture: 52 lines \"Scanned page line N The quick brown fox jumps over the lazy dog.\" twice per line, N from 0 to 51.",
    "notMeasured": "Speed (the timing in Node is not the browser's), handwriting, non-English languages, real scans, and any other PDF reader than PDF.js reading the layer.",
    "engine": {
      "tesseractJs": "7.0.0",
      "tesseractJsCore": "7.0.0",
      "languageData": "@tesseract.js-data/eng 1.0.0 (4.0.0_best_int)",
      "pdfjs": "6.4.299",
      "pdfLib": "2.11.1",
      "canvas": "@napi-rs/canvas 1.0.13",
      "node": "v22.22.3"
    },
    "script": "scripts/study/ocr/measure.mjs",
    "generatedOn": "2026-11-09",
    "commit": "f4fd8bf"
  },
  "conditions": [
    {
      "id": "clean-300",
      "label": "Clean scan, 300 DPI",
      "params": {
        "scanDpi": 300,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 90
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "notice",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "receipt",
          "confidence": 94,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 2,
          "layer": true,
          "layerEdits": 2,
          "firstMistakes": [
            [
              "Wall",
              "wall"
            ],
            [
              "x100",
              "Xx100"
            ]
          ],
          "textCer": 0.0038535645472061657,
          "layerCer": 0.0038535645472061657
        }
      ],
      "textCer": 0.0006414368184733803,
      "confidence": {
        "min": 94,
        "max": 95
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 1248172,
        "resaved": 1248177,
        "withLayer": 1264298
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "office-200",
      "label": "Ordinary office scan, 200 DPI, slight tilt and blur",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 0.5,
        "blurPxAt200Dpi": 0.5,
        "noiseSigma": 6,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "notice",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "receipt",
          "confidence": 93,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 2,
          "layer": true,
          "layerEdits": 2,
          "firstMistakes": [
            [
              "Wall",
              "wall"
            ],
            [
              "7.50",
              "7:50"
            ]
          ],
          "textCer": 0.0038535645472061657,
          "layerCer": 0.0038535645472061657
        }
      ],
      "textCer": 0.0006414368184733803,
      "confidence": {
        "min": 93,
        "max": 95
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 1037643,
        "resaved": 1037648,
        "withLayer": 1056076
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "low-100",
      "label": "Low resolution, 100 DPI",
      "params": {
        "scanDpi": 100,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 1,
          "layer": true,
          "layerEdits": 1,
          "firstMistakes": [
            [
              "8am",
              "Bam"
            ]
          ],
          "textCer": 0.0006605019815059445,
          "layerCer": 0.0006605019815059445
        },
        {
          "document": "notice",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "receipt",
          "confidence": 91,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 5,
          "layer": true,
          "layerEdits": 5,
          "firstMistakes": [
            [
              "14/03/2026",
              "14/03/2826"
            ],
            [
              "50m",
              "58m"
            ],
            [
              "750ml",
              "756ml"
            ],
            [
              "50.70",
              "568.70"
            ]
          ],
          "textCer": 0.009633911368015413,
          "layerCer": 0.009633911368015413
        }
      ],
      "textCer": 0.001924310455420141,
      "confidence": {
        "min": 91,
        "max": 95
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 202929,
        "resaved": 202934,
        "withLayer": 218223
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "small-100",
      "label": "Small print (8 pt) at 100 DPI",
      "params": {
        "scanDpi": 100,
        "fontPt": 8,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 92,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 8,
          "layer": true,
          "layerEdits": 8,
          "firstMistakes": [
            [
              "7QD",
              "70D"
            ],
            [
              "496",
              "436"
            ],
            [
              "8am",
              "Bam"
            ],
            [
              "6pm",
              "Gpm"
            ],
            [
              "9am",
              "Sam"
            ],
            [
              "you.",
              "vou."
            ]
          ],
          "textCer": 0.005284015852047556,
          "layerCer": 0.005284015852047556
        },
        {
          "document": "notice",
          "confidence": 93,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 3,
          "layer": true,
          "layerEdits": 3,
          "firstMistakes": [
            [
              "WB2",
              "WEB2"
            ],
            [
              "Priya",
              "Priva"
            ],
            [
              "personal",
              "persenal"
            ]
          ],
          "textCer": 0.0027649769585253456,
          "layerCer": 0.0027649769585253456
        },
        {
          "document": "receipt",
          "confidence": 86,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 23,
          "layer": true,
          "layerEdits": 23,
          "firstMistakes": [
            [
              "Op",
              "op"
            ],
            [
              "0048213",
              "@048213"
            ],
            [
              "6mm",
              "&mm"
            ],
            [
              "x100",
              "x1G8"
            ],
            [
              "4x40",
              "4x48"
            ],
            [
              "x200",
              "x2e0"
            ]
          ],
          "textCer": 0.04431599229287091,
          "layerCer": 0.04431599229287091
        }
      ],
      "textCer": 0.010904425914047467,
      "confidence": {
        "min": 86,
        "max": 93
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 130990,
        "resaved": 130995,
        "withLayer": 145980
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "small-300",
      "label": "Small print (8 pt) at 300 DPI",
      "params": {
        "scanDpi": 300,
        "fontPt": 8,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "notice",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "receipt",
          "confidence": 94,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 2,
          "layer": true,
          "layerEdits": 2,
          "firstMistakes": [
            [
              "Wall",
              "wall"
            ],
            [
              "750ml",
              "756ml"
            ]
          ],
          "textCer": 0.0038535645472061657,
          "layerCer": 0.0038535645472061657
        }
      ],
      "textCer": 0.0006414368184733803,
      "confidence": {
        "min": 94,
        "max": 95
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 691824,
        "resaved": 691829,
        "withLayer": 707505
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "shadow-only",
      "label": "Clean scan with a shadow across the page, nothing else",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": 0.35,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "notice",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "receipt",
          "confidence": 92,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 4,
          "layer": true,
          "layerEdits": 4,
          "firstMistakes": [
            [
              "Wall",
              "wall"
            ],
            [
              "x100",
              "Xx100"
            ],
            [
              "7.50",
              "7250"
            ],
            [
              "56.33",
              "56.38"
            ]
          ],
          "textCer": 0.007707129094412331,
          "layerCer": 0.007707129094412331
        }
      ],
      "textCer": 0.0012828736369467607,
      "confidence": {
        "min": 92,
        "max": 95
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 539519,
        "resaved": 539524,
        "withLayer": 555681
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "phone-shadow",
      "label": "Phone photo with a shadow across the page",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 1.2,
        "blurPxAt200Dpi": 0.8,
        "noiseSigma": 10,
        "shadeTo": 0.35,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 60
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 77,
          "band": "check",
          "referenceChars": 1514,
          "words": 359,
          "textEdits": 215,
          "layer": true,
          "layerEdits": 215,
          "firstMistakes": [
            [
              "",
              ":"
            ],
            [
              "",
              "i"
            ],
            [
              "",
              "-"
            ],
            [
              "",
              "a"
            ],
            [
              "",
              ":"
            ],
            [
              "",
              "Ce"
            ]
          ],
          "textCer": 0.14200792602377807,
          "layerCer": 0.14200792602377807
        },
        {
          "document": "notice",
          "confidence": 74,
          "band": "check",
          "referenceChars": 1085,
          "words": 239,
          "textEdits": 183,
          "layer": true,
          "layerEdits": 183,
          "firstMistakes": [
            [
              "9LT",
              "oLT"
            ],
            [
              "",
              "a"
            ],
            [
              "",
              "he"
            ],
            [
              "",
              "coe"
            ],
            [
              "",
              "ae"
            ],
            [
              "",
              "Shh"
            ]
          ],
          "textCer": 0.16866359447004609,
          "layerCer": 0.16866359447004609
        },
        {
          "document": "receipt",
          "confidence": 64,
          "band": "check",
          "referenceChars": 519,
          "words": 148,
          "textEdits": 175,
          "layer": true,
          "layerEdits": 175,
          "firstMistakes": [
            [
              "Till",
              "Titl:"
            ],
            [
              "Wall",
              "wall"
            ],
            [
              "",
              ":"
            ],
            [
              "",
              "He"
            ],
            [
              "",
              "Te"
            ],
            [
              "",
              "ee"
            ]
          ],
          "textCer": 0.3371868978805395,
          "layerCer": 0.3371868978805395
        }
      ],
      "textCer": 0.18377164849262348,
      "confidence": {
        "min": 64,
        "max": 77
      },
      "bands": {
        "good": 0,
        "check": 3,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 1305244,
        "resaved": 1305249,
        "withLayer": 1330109
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 746,
        "charsDropped": 0
      }
    },
    {
      "id": "faint",
      "label": "Faint print, light speckle",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0.5,
        "noiseSigma": 8,
        "shadeTo": null,
        "ink": 120,
        "paper": 235,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 70
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "notice",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "receipt",
          "confidence": 86,
          "band": "good",
          "referenceChars": 519,
          "words": 91,
          "textEdits": 12,
          "layer": true,
          "layerEdits": 12,
          "firstMistakes": [
            [
              "Till",
              "Fall"
            ],
            [
              "117",
              "a1"
            ],
            [
              "x100",
              "Xx100"
            ],
            [
              "Dust",
              ""
            ],
            [
              "sheet",
              "Distisheet-"
            ],
            [
              "3.6",
              "3.6."
            ]
          ],
          "textCer": 0.023121387283236993,
          "layerCer": 0.023121387283236993
        }
      ],
      "textCer": 0.003848620910840282,
      "confidence": {
        "min": 86,
        "max": 95
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 1517844,
        "resaved": 1517849,
        "withLayer": 1534022
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 555,
        "charsDropped": 0
      }
    },
    {
      "id": "speckled",
      "label": "Heavy speckle (a dirty glass or a copy of a copy)",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0.6,
        "noiseSigma": 30,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 50
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "notice",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "receipt",
          "confidence": 92,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 2,
          "layer": true,
          "layerEdits": 2,
          "firstMistakes": [
            [
              "Till",
              "Tilt"
            ],
            [
              "7.50",
              "7:50"
            ]
          ],
          "textCer": 0.0038535645472061657,
          "layerCer": 0.0038535645472061657
        }
      ],
      "textCer": 0.0006414368184733803,
      "confidence": {
        "min": 92,
        "max": 95
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 1959792,
        "resaved": 1959797,
        "withLayer": 1976109
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "low-contrast",
      "label": "Very faint print on grey paper, speckled",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0.6,
        "noiseSigma": 14,
        "shadeTo": null,
        "ink": 150,
        "paper": 205,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 60
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 16,
          "band": "poor",
          "referenceChars": 1514,
          "words": 1375,
          "textEdits": 3123,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 2.0627476882430646,
          "layerCer": null
        },
        {
          "document": "notice",
          "confidence": 20,
          "band": "poor",
          "referenceChars": 1085,
          "words": 941,
          "textEdits": 2379,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 2.192626728110599,
          "layerCer": null
        },
        {
          "document": "receipt",
          "confidence": 12,
          "band": "poor",
          "referenceChars": 519,
          "words": 1398,
          "textEdits": 3706,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 7.140655105973025,
          "layerCer": null
        }
      ],
      "textCer": 2.953175112251443,
      "confidence": {
        "min": 12,
        "max": 20
      },
      "bands": {
        "good": 0,
        "check": 0,
        "poor": 3,
        "blank": 0
      },
      "bytes": {
        "scan": 1799792,
        "resaved": 1799796,
        "withLayer": 1799796
      },
      "report": {
        "pagesWithLayer": 0,
        "pagesSkipped": 3,
        "wordsPlaced": 0,
        "charsDropped": 0
      }
    },
    {
      "id": "heavy",
      "label": "Badly degraded: 150 DPI, 9 pt, 2.5 degree tilt, blur, heavy noise",
      "params": {
        "scanDpi": 150,
        "fontPt": 9,
        "tiltDegrees": 2.5,
        "blurPxAt200Dpi": 1.5,
        "noiseSigma": 50,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 30
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 18,
          "band": "poor",
          "referenceChars": 1514,
          "words": 3169,
          "textEdits": 9259,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 6.115587846763541,
          "layerCer": null
        },
        {
          "document": "notice",
          "confidence": 17,
          "band": "poor",
          "referenceChars": 1085,
          "words": 2851,
          "textEdits": 9312,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 8.582488479262674,
          "layerCer": null
        },
        {
          "document": "receipt",
          "confidence": 16,
          "band": "poor",
          "referenceChars": 519,
          "words": 2475,
          "textEdits": 8096,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 15.599229287090559,
          "layerCer": null
        }
      ],
      "textCer": 8.552597819114817,
      "confidence": {
        "min": 16,
        "max": 18
      },
      "bands": {
        "good": 0,
        "check": 0,
        "poor": 3,
        "blank": 0
      },
      "bytes": {
        "scan": 1008530,
        "resaved": 1008535,
        "withLayer": 1008535
      },
      "report": {
        "pagesWithLayer": 0,
        "pagesSkipped": 3,
        "wordsPlaced": 0,
        "charsDropped": 0
      }
    },
    {
      "id": "tilt-3",
      "label": "Clean, tilted 3 degrees",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 3,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 94,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 6,
          "layer": true,
          "layerEdits": 6,
          "firstMistakes": [
            [
              "it",
              "jt"
            ],
            [
              "catch.",
              "catch,"
            ],
            [
              "hours.",
              "hours,"
            ],
            [
              "it",
              "jt"
            ],
            [
              "will",
              "wil]"
            ],
            [
              "pass",
              "Pass"
            ]
          ],
          "textCer": 0.003963011889035667,
          "layerCer": 0.003963011889035667
        },
        {
          "document": "notice",
          "confidence": 93,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 5,
          "layer": true,
          "layerEdits": 5,
          "firstMistakes": [
            [
              "Daniel",
              "Danijel"
            ],
            [
              "water.",
              "water,"
            ],
            [
              "supplements.",
              "supplements,"
            ],
            [
              "before.",
              "before,"
            ],
            [
              "personal",
              "persona)"
            ]
          ],
          "textCer": 0.004608294930875576,
          "layerCer": 0.004608294930875576
        },
        {
          "document": "receipt",
          "confidence": 88,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 6,
          "layer": true,
          "layerEdits": 6,
          "firstMistakes": [
            [
              "Wall",
              "wall"
            ],
            [
              "x100",
              "X100"
            ],
            [
              "4x40",
              "4x4g"
            ],
            [
              "x200",
              "X200"
            ],
            [
              "50m",
              "5@m"
            ],
            [
              "receipt.",
              "receipt,"
            ]
          ],
          "textCer": 0.011560693641618497,
          "layerCer": 0.011560693641618497
        }
      ],
      "textCer": 0.005452212957023733,
      "confidence": {
        "min": 88,
        "max": 94
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 544937,
        "resaved": 544942,
        "withLayer": 564169
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "tilt-6",
      "label": "Clean, tilted 6 degrees",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 6,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 0,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 80,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 123,
          "layer": true,
          "layerEdits": 123,
          "firstMistakes": [
            [
              "Northfield",
              "Northfielq"
            ],
            [
              "Northfield",
              "Northfielq"
            ],
            [
              "NCH/2026/0418",
              "NCH/2026/0415"
            ],
            [
              "Mr",
              "My"
            ],
            [
              "you",
              "You"
            ],
            [
              "2",
              "»"
            ]
          ],
          "textCer": 0.08124174372523117,
          "layerCer": 0.08124174372523117
        },
        {
          "document": "notice",
          "confidence": 86,
          "band": "good",
          "referenceChars": 1085,
          "words": 179,
          "textEdits": 48,
          "layer": true,
          "layerEdits": 48,
          "firstMistakes": [
            [
              "Medical",
              "Medica)"
            ],
            [
              "services,",
              "Services,"
            ],
            [
              "9LT",
              "911"
            ],
            [
              "Daniel",
              "Danie]"
            ],
            [
              "number:",
              "Number:"
            ],
            [
              "booked",
              "bookeq"
            ]
          ],
          "textCer": 0.04423963133640553,
          "layerCer": 0.04423963133640553
        },
        {
          "document": "receipt",
          "confidence": 87,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 28,
          "layer": true,
          "layerEdits": 28,
          "firstMistakes": [
            [
              "LTD",
              "LTp"
            ],
            [
              "26",
              "2g"
            ],
            [
              "14/03/2026",
              "14/03/202¢"
            ],
            [
              "plugs",
              "Plugs"
            ],
            [
              "6mm",
              "emp"
            ],
            [
              "x100",
              "X100"
            ]
          ],
          "textCer": 0.05394990366088632,
          "layerCer": 0.05394990366088632
        }
      ],
      "textCer": 0.06382296343810134,
      "confidence": {
        "min": 80,
        "max": 87
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 548633,
        "resaved": 548638,
        "withLayer": 567997
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 555,
        "charsDropped": 0
      }
    },
    {
      "id": "sideways",
      "label": "Clean, page sideways (turned 90 degrees)",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 90,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 30,
          "band": "poor",
          "referenceChars": 1514,
          "words": 315,
          "textEdits": 1232,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 0.8137384412153237,
          "layerCer": null
        },
        {
          "document": "notice",
          "confidence": 40,
          "band": "poor",
          "referenceChars": 1085,
          "words": 367,
          "textEdits": 945,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 0.8709677419354839,
          "layerCer": null
        },
        {
          "document": "receipt",
          "confidence": 47,
          "band": "poor",
          "referenceChars": 519,
          "words": 309,
          "textEdits": 714,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 1.3757225433526012,
          "layerCer": null
        }
      ],
      "textCer": 0.9271969211032713,
      "confidence": {
        "min": 30,
        "max": 47
      },
      "bands": {
        "good": 0,
        "check": 0,
        "poor": 3,
        "blank": 0
      },
      "bytes": {
        "scan": 537086,
        "resaved": 537091,
        "withLayer": 537091
      },
      "report": {
        "pagesWithLayer": 0,
        "pagesSkipped": 3,
        "wordsPlaced": 0,
        "charsDropped": 0
      }
    },
    {
      "id": "upside-down",
      "label": "Clean, page upside down",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 180,
        "rotateApplied": 0,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 42,
          "band": "poor",
          "referenceChars": 1514,
          "words": 285,
          "textEdits": 1269,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 0.8381770145310435,
          "layerCer": null
        },
        {
          "document": "notice",
          "confidence": 30,
          "band": "poor",
          "referenceChars": 1085,
          "words": 181,
          "textEdits": 931,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 0.8580645161290322,
          "layerCer": null
        },
        {
          "document": "receipt",
          "confidence": 35,
          "band": "poor",
          "referenceChars": 519,
          "words": 93,
          "textEdits": 456,
          "layer": false,
          "layerEdits": null,
          "firstMistakes": null,
          "textCer": 0.8786127167630058,
          "layerCer": null
        }
      ],
      "textCer": 0.8518280949326491,
      "confidence": {
        "min": 30,
        "max": 42
      },
      "bands": {
        "good": 0,
        "check": 0,
        "poor": 3,
        "blank": 0
      },
      "bytes": {
        "scan": 535629,
        "resaved": 535633,
        "withLayer": 535633
      },
      "report": {
        "pagesWithLayer": 0,
        "pagesSkipped": 3,
        "wordsPlaced": 0,
        "charsDropped": 0
      }
    },
    {
      "id": "sideways-rotated",
      "label": "The sideways page after Rotate",
      "params": {
        "scanDpi": 200,
        "fontPt": 11,
        "tiltDegrees": 0,
        "blurPxAt200Dpi": 0,
        "noiseSigma": 0,
        "shadeTo": null,
        "ink": 20,
        "paper": 255,
        "turn": 90,
        "rotateApplied": 270,
        "jpegQuality": 75
      },
      "pages": [
        {
          "document": "letter",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1514,
          "words": 284,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "notice",
          "confidence": 95,
          "band": "good",
          "referenceChars": 1085,
          "words": 180,
          "textEdits": 0,
          "layer": true,
          "layerEdits": 0,
          "firstMistakes": [],
          "textCer": 0,
          "layerCer": 0
        },
        {
          "document": "receipt",
          "confidence": 93,
          "band": "good",
          "referenceChars": 519,
          "words": 92,
          "textEdits": 2,
          "layer": true,
          "layerEdits": 2,
          "firstMistakes": [
            [
              "x100",
              "Xx100"
            ],
            [
              "50m",
              "56m"
            ]
          ],
          "textCer": 0.0038535645472061657,
          "layerCer": 0.0038535645472061657
        }
      ],
      "textCer": 0.0006414368184733803,
      "confidence": {
        "min": 93,
        "max": 95
      },
      "bands": {
        "good": 3,
        "check": 0,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 537096,
        "resaved": 537093,
        "withLayer": 553255
      },
      "report": {
        "pagesWithLayer": 3,
        "pagesSkipped": 0,
        "wordsPlaced": 556,
        "charsDropped": 0
      }
    },
    {
      "id": "gray-scan-fixture",
      "label": "The repo's test scan (tests/fixtures/gray-scan.jpg): small print on a grey gradient",
      "params": {
        "picture": "1600 x 2000 px JPEG, placed on a 576 x 720 pt page so the 200 DPI drawing is 1:1"
      },
      "pages": [
        {
          "document": "fixture",
          "confidence": 69,
          "band": "check",
          "referenceChars": 6843,
          "words": 1287,
          "textEdits": 554,
          "layer": true,
          "layerEdits": 554,
          "firstMistakes": [
            [
              "page",
              "poge"
            ],
            [
              "The",
              "Th"
            ],
            [
              "brown",
              "brow"
            ],
            [
              "jumps",
              ""
            ],
            [
              "over",
              "Jumps"
            ],
            [
              "the",
              "he"
            ]
          ],
          "textCer": 0.08095864386964781,
          "layerCer": 0.08095864386964781
        }
      ],
      "textCer": 0.08095864386964781,
      "confidence": {
        "min": 69,
        "max": 69
      },
      "bands": {
        "good": 0,
        "check": 1,
        "poor": 0,
        "blank": 0
      },
      "bytes": {
        "scan": 339659,
        "resaved": 339664,
        "withLayer": 348226
      },
      "report": {
        "pagesWithLayer": 1,
        "pagesSkipped": 0,
        "wordsPlaced": 1287,
        "charsDropped": 0
      }
    }
  ],
  "size": {
    "files": [
      "clean-300",
      "office-200",
      "low-100",
      "small-100",
      "small-300",
      "shadow-only",
      "phone-shadow",
      "faint",
      "speckled",
      "tilt-3",
      "tilt-6",
      "sideways-rotated",
      "gray-scan-fixture"
    ],
    "addedPerPageMedian": 5393,
    "addedPerPageMin": 4997,
    "addedPerPageMax": 8567,
    "ratioMin": 1.008,
    "ratioMax": 1.114
  }
}
