Skip to content

feat: OCR scans with tesseract, drop docling (#6) - #33

Merged
eSlider merged 1 commit into
mainfrom
feat/ocr
Aug 14, 2026
Merged

feat: OCR scans with tesseract, drop docling (#6)#33
eSlider merged 1 commit into
mainfrom
feat/ocr

Conversation

@eSlider

@eSlider eSlider commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Born-digital PDFs still use pdftotext -layout. Scans go pdftoppm + tesseract eng+deu (bin/mail/ocr.go / internal/ocr).
  • Docling is off the default path and out of pyproject.toml. Optional OCR_ENGINE=paddle / compose profile ocr-paddle.
  • No gocv; no gosseract CGO (Ladybug CGO stays Zig). Closes Gitea #6.

Test plan

  • mocked convert_pdf prefers pdftotext; empty layer calls pdftoppm+tesseract
  • go test ./internal/ocr grayscale stretch; HELLO PNG skipped without tesseract
  • GitHub Actions Test + OCR jobs green

pdftotext still wins on born-digital PDFs. Empty text layers go through
pdftoppm + tesseract eng+deu. Optional OCR_ENGINE=paddle. Gitea #6.
@cursor

cursor Bot commented Aug 14, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@eSlider
eSlider merged commit f99dfea into main Aug 14, 2026
3 checks passed
@eSlider
eSlider deleted the feat/ocr branch August 14, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant