Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kopt: improve OCR API #1932

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

benoit-pierre
Copy link
Contributor

@benoit-pierre benoit-pierre commented Sep 9, 2024

Return nil (rather than an empty string) when k2pdfopt_tocr_single_word failed to initialize tesseract (bad or missing data) so the caller can differentiate with OCR misses (no results).


This change is Reviewable

Return `nil` (rather than an empty string) when `k2pdfopt_tocr_single_word`
failed to initialize tesseract (bad or missing data) so the caller can
differentiate with OCR misses (no results).
@benoit-pierre benoit-pierre marked this pull request as ready for review September 9, 2024 18:49
@Frenzie Frenzie merged commit 9e16a13 into koreader:master Sep 9, 2024
3 checks passed
@benoit-pierre benoit-pierre deleted the pr/improve_ocr_api branch September 9, 2024 21: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.

2 participants