class mmm { public static void main(String[] args) { OcrEngine ocr = new OcrEngine(); ocr.setImage(ImageStream.fromFile("pp.tif")); // ocr.setImage((IImageStream) new File("pp.tif")); ocr.getLanguages().addLanguage(Language.load("english")); // ocr.setResource(new FolderStream(resourceFileName, FileMode.Open))); { if (ocr.process()) { System.out.println(ocr.getText()); } } } }
OcrEngine ocr = new OcrEngine(); ocr.Image = ImageStream.FromFile("pp.tif")); ocr.Languages.AddLanguage(Language.Load("english")); if (ocr.process()) { System.out.println(ocr.getText()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)