mirror of
https://github.com/sismics/docs.git
synced 2024-11-24 14:47:57 +01:00
Add logs before OCR
This commit is contained in:
parent
8378b346e9
commit
234eaf047e
@ -56,6 +56,7 @@ public class FileUtil {
|
||||
|
||||
// OCR the file
|
||||
try {
|
||||
log.info("Starting OCR with TESSDATA_PREFIX=" + System.getenv("TESSDATA_PREFIX") + ";LC_NUMERIC=" + System.getenv("LC_NUMERIC"));
|
||||
instance.setLanguage(document.getLanguage());
|
||||
content = instance.doOCR(image);
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user