tesseract language

This commit is contained in:
manalejandro 2018-07-16 15:57:10 +02:00
parent 0d837b5a42
commit d99f758e41

View File

@ -95,7 +95,7 @@ public class MainController {
PDFParserConfig pdfConfig = new PDFParserConfig();
TesseractOCRConfig tesseractConfig = new TesseractOCRConfig();
tesseractConfig.setTesseractPath(tesseractpath);
tesseractConfig.setLanguage("esp+eng");
tesseractConfig.setLanguage("spa+eng");
pdfConfig.setExtractInlineImages(true);
ParseContext parseContext = new ParseContext();
parseContext.set(TesseractOCRConfig.class, tesseractConfig);