mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 22:07:56 +01:00
Catch all Tesseract related errors
This commit is contained in:
parent
6558ff7e05
commit
9c97ab14f8
@ -88,7 +88,7 @@ public class FileUtil {
|
|||||||
log.info("Starting OCR with TESSDATA_PREFIX=" + System.getenv("TESSDATA_PREFIX") + ";LC_NUMERIC=" + System.getenv("LC_NUMERIC"));
|
log.info("Starting OCR with TESSDATA_PREFIX=" + System.getenv("TESSDATA_PREFIX") + ";LC_NUMERIC=" + System.getenv("LC_NUMERIC"));
|
||||||
instance.setLanguage(document.getLanguage());
|
instance.setLanguage(document.getLanguage());
|
||||||
content = instance.doOCR(image);
|
content = instance.doOCR(image);
|
||||||
} catch (Exception e) {
|
} catch (Throwable e) {
|
||||||
log.error("Error while OCR-izing the image", e);
|
log.error("Error while OCR-izing the image", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user