mirror of
https://github.com/sismics/docs.git
synced 2025-12-17 03:31:48 +00:00
Add logs before OCR
This commit is contained in:
@@ -56,6 +56,7 @@ public class FileUtil {
|
|||||||
|
|
||||||
// OCR the file
|
// OCR the file
|
||||||
try {
|
try {
|
||||||
|
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 (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user