-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Funtionality cannot be tested in GitHub actions because no Tesseract is installed. Correctly locate tessdata from installation folder If tesseract-ocr is not version 4.00 in a Unix-like platform, we incorrectly used pathlib.Path for locating tessdata. This fix correctly determines the tessdata folder name for any version of tesseract-ocr. Note however, that we cannot guarantee that MuPDF's OCR code (which is on version 4.00) can cope with tessdata content contained in a different version than 4.00.
- Loading branch information
Showing
2 changed files
with
11 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,3 +65,4 @@ def test_tesseract(): | |
'dropping unclosed output' | ||
) | ||
|
||
|