{
 "kind": "test",
 "record_id": "test:djrmwhe",
 "url": "https://headlesson.com/tests/djrmwhe",
 "app": {
  "id": "app:tesseract",
  "name": "Tesseract OCR",
  "made_by_headlesson_operator": false,
  "url": "https://headlesson.com/apps/tesseract"
 },
 "mcp_get": "headlesson_get id=\"app:tesseract\" sections [\"lesson\",\"gotchas\"]",
 "dates": {
  "tested": "2026-10-11",
  "record_confirmed": "2026-10-11",
  "note": "Elapsed days are not shown; judge age from these dates."
 },
 "question": "Render a self-made text page to a PNG, OCR it with tesseract and check the recognized text.",
 "conclusion": "On 2026-10-11, the headlesson operator ran all 8 steps of this lesson with Tesseract OCR 5.5.1 (macOS26.5.2 arm64; Homebrew tesseract 5.5.1 and tesseract-lang 4.1.0 already installed (not reinstalled; upstream latest is 5.5.3); poppler 26.04.0 for pdftoppm; self-made text page only), and all passed. The final Next step is advice and was not run. No independent check has been reviewed. This is the operator's own run, not a vendor claim.",
 "tested": {
  "date": "2026-10-11",
  "version": "5.5.1",
  "environment": "macOS26.5.2 arm64; Homebrew tesseract 5.5.1 and tesseract-lang 4.1.0 already installed (not reinstalled; upstream latest is 5.5.3); poppler 26.04.0 for pdftoppm; self-made text page only",
  "status": "passed",
  "steps_passed": 8,
  "steps_total": 8
 },
 "steps": [
  {
   "step": "command -v tesseract || brew install tesseract",
   "result": "passed"
  },
  {
   "step": "tesseract --version",
   "result": "passed"
  },
  {
   "step": "tesseract --list-langs",
   "result": "passed"
  },
  {
   "step": "printf 'Invoice 2026-001\\nTotal: 42 apples\\n' > note.txt",
   "result": "passed"
  },
  {
   "step": "cupsfilter -m application/pdf note.txt > note.pdf",
   "result": "passed"
  },
  {
   "step": "pdftoppm -r 300 -png -singlefile note.pdf scan",
   "result": "passed"
  },
  {
   "step": "tesseract scan.png out -l eng",
   "result": "passed"
  },
  {
   "step": "grep -c 'Total: 42 apples' out.txt",
   "result": "passed"
  }
 ],
 "next_advice": "Next: Agree with the user on the real images, their languages and the output format; check that the language codes appear in tesseract --list-langs, OCR one page with -l <lang> (add tsv to get word confidences), and compare a sample of the text with the image before processing the rest.",
 "cautions": {
  "note": "These notes come from the lesson. Some describe failures seen in tests; others are general cautions. Each one is not a separately tested result.",
  "items": [
   "The Homebrew tesseract formula contains only the eng and osd language data; other languages need brew install tesseract-lang.",
   "An unavailable language (for example -l xxx) printed \"Failed loading language\" and exited 1 in the test; check tesseract --list-langs first.",
   "The second argument is an output base name; tesseract scan.png out writes out.txt. Pass - as the output base to print to standard output.",
   "Low-resolution input is misread without an error; a 50 dpi render gave \"Inyatce 2026\" and exit 0 in the test, while a 300 dpi render was read correctly. Check the text, not only the exit code.",
   "Appending the config names tsv, hocr or pdf selects word-level TSV with positions and confidence, hOCR, or a searchable PDF with a text layer.",
   "Steps 4 and 5 use macOS cupsfilter and poppler's pdftoppm only to make a test image; any PNG of printed text works as input.",
   "Confirm: Check which images are read, which language data is used and where the output file is written (an existing out.txt is replaced), and spot-check the OCR text against the image before passing it to a downstream step."
  ]
 },
 "not_shown": [
  "Not measured in this run: Tesseract 5.5.3 (the release current at test time).",
  "Not measured in this run: installing the language data from scratch.",
  "Not measured in this run: non-Latin scripts on real scans.",
  "Not measured in this run: photos, skewed or noisy scans.",
  "Not measured in this run: multi-page TIFF.",
  "Not measured in this run: the --psm and --oem choices.",
  "Not measured in this run: training.",
  "Whether an agent new to this tool can use it from this record alone (the operator wrote and ran the lesson).",
  "Comparisons between models or clients.",
  "Production use, accounts, or real customer data.",
  "Behaviour of the latest version (the test is tied to the version and date below).",
  "The final \"Next\" step is advice and was not part of the test."
 ],
 "primary_record": "Operator record: a past lesson trial (legacy). It is not claimed to meet level L1 of run-task-contract/0.1.0.",
 "independent_check": {
  "state": "not_checked"
 },
 "evidence": "A non-public test report exists and is not published, so third parties cannot check it directly.",
 "source_version": {
  "record": "the catalog record app:tesseract at revision 0a66d9cd024b",
  "rule": "the revision after which the recorded test stayed unchanged"
 },
 "sources": [
  {
   "fields": [
    "/question",
    "/next_advice",
    "/cautions/items/5",
    "/cautions/items/6"
   ],
   "source": "headlesson editorial judgement",
   "checked": "2026-10-11",
   "certainty": "inferred",
   "by": "editorial"
  },
  {
   "fields": [
    "/steps/0/step",
    "/cautions/items/0"
   ],
   "source": "https://formulae.brew.sh/formula/tesseract",
   "checked": "2026-10-11",
   "certainty": "primary",
   "by": "third-party"
  },
  {
   "fields": [
    "/steps/1/step",
    "/steps/2/step",
    "/steps/3/step",
    "/steps/4/step",
    "/steps/5/step",
    "/steps/6/step",
    "/steps/7/step",
    "/cautions/items/1",
    "/cautions/items/2",
    "/cautions/items/3"
   ],
   "source": "headlesson editorial judgement",
   "checked": "2026-10-11",
   "certainty": "primary",
   "by": "editorial"
  },
  {
   "fields": [
    "/cautions/items/4"
   ],
   "source": "https://tesseract-ocr.github.io/tessdoc/Command-Line-Usage.html",
   "checked": "2026-10-11",
   "certainty": "primary",
   "by": "official"
  }
 ],
 "corrections": [],
 "withdrawn": null,
 "cite": "headlesson test:djrmwhe — Tesseract OCR 5.5.1, 2026-10-11: 8/8 lesson steps passed (operator record). On 2026-10-11, the headlesson operator ran all 8 steps of this lesson with Tesseract OCR 5.5.1 (macOS26.5.2 arm64; Homebrew tesseract 5.5.1 and tesseract-lang 4.1.0 already installed (not reinstalled; upstream latest is 5.5.3); poppler 26.04.0 for pdftoppm; self-made text page only), and all passed. The final Next step is advice and was not run. No independent check has been reviewed. This is the operator's own run, not a vendor claim. https://headlesson.com/tests/djrmwhe",
 "page_updated": "2026-10-13"
}
