tesseract language

This commit is contained in:
manalejandro 2018-07-15 21:59:21 +02:00
parent 81bb011a34
commit 0d837b5a42

View File

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