Skip to main content

Module ocr

Module ocr 

Source
Expand description

Reading a scan’s text (docs/porch.md, “Paper letters”): a PDF’s own text when it has one (Poppler’s pdftotext), else its pages as images (pdftoppm) read by Tesseract, as photos and scanned images are. Both are the system’s own programs, as the antivirus is: optional, said when missing, with the command that installs them. Nothing leaves this computer.

Enums§

Unread
Why a scan could not be read.

Functions§

install_hint
How to install what reads scans here, in one line, in your language: Tesseract, its models of the languages wanted (“fra”, English being in every Tesseract), and Poppler; a command in backticks (the window offers it to copy).
languages 🔒
The languages Tesseract has among those wanted (“fra+eng”: the models of the languages you read, words::OcrWords::tesseract), else English.
pages_read 🔒
A PDF’s pages made images in work, then read in their order.
program 🔒
A program, as the system has it: on its path, else where Homebrew puts it (a macOS application does not get the shell’s path); on Windows, Tesseract also where its installers put it, since they leave it off the PATH unless asked (tesseract_places).
runs 🔒
tesseract 🔒
text_of
A scan’s text: a PDF’s own, else read from its pages; an image’s, read. work is a folder for the pages while they are read (emptied after); wanted, Tesseract’s models to read them with (“fra”, “eng”).