Aspose.OCR for Java 22.5 - Release Notes

All Features

OCRJAVA-244Integrate the Cyrillic modelEnhancement
OCRJAVA-241Add xml output formatEnhancement
OCRJAVA-242Extend fields for Json ouput formatEnhancement
OCRJAVA-240Fast recognition methodEnhancement


The next opportunities:

  • added support for cyrillic alphabet and belorussian, bulgarian, ukrainian, kazakh, russian, serbian languages
  • added ability to get result in XML or JSON file format
  • added fast recognition method

Public API and Backwards Incompatible Changes


  • added method String RecognizePageFast(String fullPath) to the AsposeOCR class
  • added method String GetXml() to the RecognitionResult class

Removed APIs

  • none

Will be deprecated

  • none

Usage Example

import static java.lang.System.out;

import java.awt.Rectangle;

import com.aspose.ocr.AsposeOCR;
import com.aspose.ocr.DocumentRecognitionSettings;
import com.aspose.ocr.CharactersAllowedType;
import com.aspose.ocr.License;
import com.aspose.ocr.RecognitionResult;
import com.aspose.ocr.RecognitionResult.LinesResult;
import com.aspose.ocr.metered.Metered;

public class App {
       public static void main(String[] args) {

         // set license   
        boolean resLicense = License.isValid();
        out.println("License is :" + resLicense);

  		String file= "image.png";		

        // Create api instance
        AsposeOCR apiPdf = new AsposeOCR();
		String result = api.RecognizePageFast(file); // without skew correction and areas detection
		out.println("result:" + result);