tesseract language
This commit is contained in:
parent
81bb011a34
commit
0d837b5a42
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user