Browse our Products

Aspose.OCR for Java 3.4.0 Release Notes

KeySummaryCategory
OCR-34314Exception while trying to save Preprocessed Binarized ImageEnhancement
OCR-34279Exception occurs when using OCR for JavaEnhancement
OCR-34251Unable to perform OCR operation on transparent imagesEnhancement
OCR-34295Verify Aspose.OCR namespaces conform to Microsoft guidelinesEnhancement

Usage examples:

OCR-34295 Verify Aspose.OCR namespaces conform to Microsoft guidelines Usage example for moved class TextPartLevel:

  OcrEngine ocr = new OcrEngine();

 String pictureFileName = "realTextArial20pt01.bmp";

 ocr.setImage(ImageStream.fromFile(pictureFileName));

 if (ocr.process())

 {

   IRecognizedTextPartInfo firstLine = ((IRecognizedTextPartInfo)ocr.getText().getPartsInfo()[0]).getChildren()[0];

   System.out.println(firstLine.getLevel() == TextPartLevel.Line);

 }

Public API and Backward Incompatible Changes

Added APIs:

** ** 
Classcom.aspose.ocr.TextPartLevel
Field/Enumcom.aspose.ocr.TextPartLevel.Character
Field/Enumcom.aspose.ocr.TextPartLevel.Line
Field/Enumcom.aspose.ocr.TextPartLevel.Textblock
Field/Enumcom.aspose.ocr.TextPartLevel.Word

Removed APIs:

** ** 
Classcom.aspose.ocr.recognizedtext.textpartinfo.TextPartLevel
Field/Enumcom.aspose.ocr.recognizedtext.textpartinfo.TextPartLevel.Character
Field/Enumcom.aspose.ocr.recognizedtext.textpartinfo.TextPartLevel.Line
Field/Enumcom.aspose.ocr.recognizedtext.textpartinfo.TextPartLevel.Textblock
Field/Enumcom.aspose.ocr.recognizedtext.textpartinfo.TextPartLevel.Word