-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle errors from Tesseract (#165)
* fix: handle errors from Tesseract Certain regions of a document are failing ocr with this error: `pytesseract.pytesseract.TesseractError: (-8, 'Estimating resolution as 1250')` When I try the same region on the CLI, I get: ``` $ tesseract bad_tile.jpeg output Estimating resolution as 1813 Floating point exception ``` Whatever the root cause, let's catch this error and return an empty string. * fix lint error * more lint stuff * temporary bump to dev0 version for debugging * release version --------- Co-authored-by: Crag Wolfe <[email protected]> Co-authored-by: shreyanid <[email protected]>
- Loading branch information
1 parent
9a53178
commit 203f7ab
Showing
5 changed files
with
28 additions
and
2 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.5.8" # pragma: no cover | ||
__version__ = "0.5.9" # pragma: no cover |
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