From 0d837b5a42703561f9928992944f71fcd5b615dc Mon Sep 17 00:00:00 2001 From: manalejandro Date: Sun, 15 Jul 2018 21:59:21 +0200 Subject: [PATCH] tesseract language --- .../java/com/manalejandro/arjion/controllers/MainController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/manalejandro/arjion/controllers/MainController.java b/src/main/java/com/manalejandro/arjion/controllers/MainController.java index 4ed9966..f82ed25 100644 --- a/src/main/java/com/manalejandro/arjion/controllers/MainController.java +++ b/src/main/java/com/manalejandro/arjion/controllers/MainController.java @@ -95,6 +95,7 @@ public class MainController { PDFParserConfig pdfConfig = new PDFParserConfig(); TesseractOCRConfig tesseractConfig = new TesseractOCRConfig(); tesseractConfig.setTesseractPath(tesseractpath); + tesseractConfig.setLanguage("esp+eng"); pdfConfig.setExtractInlineImages(true); ParseContext parseContext = new ParseContext(); parseContext.set(TesseractOCRConfig.class, tesseractConfig);