1
0
mirror of https://github.com/sismics/docs.git synced 2025-05-08 18:53:22 +02:00

Add logs before OCR

This commit is contained in:
jendib 2013-08-17 15:47:07 +02:00
parent 8378b346e9
commit 234eaf047e

@ -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) {