Skip to content
Discussion options

You must be logged in to vote

The most reliable fix for spreads is honestly not a Tesseract setting but splitting each spread into two pages before OCR. Tesseract's layout analysis sometimes treats the gutter as just a wide space and reads straight across, and no flag fully prevents that. MuPDF can do the split in one command:

mutool poster -x 2 spreads.pdf split.pdf      # each page → left half + right half
ocrmypdf split.pdf out.pdf

That also tends to improve accuracy in general, since each page is OCR'd as a normal single page.

If you want to keep the spreads as-is, these are the knobs OCRmyPDF passes through to Tesseract that matter here:

  • --tesseract-pagesegmode N: Tesseract's --psm. Default is automatic (3). 1 (…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JLindop
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants