Java Exception calling AsposeOCR.RecognizePage

I got the following exception when calling method AsposeOCR.RecognizePage on a specific image.

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.base/java.util.Objects.checkIndex(Objects.java:361)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at com.aspose.ocr.e0cd0c2d77.c0ad(Unknown Source)
at com.aspose.ocr.e0cd0c5d77.e0cd0c6d16(Unknown Source)
at com.aspose.ocr.e0cd0c5d77.ac8a(Unknown Source)
at com.aspose.ocr.e0cd0c5d77.f(Unknown Source)
at com.aspose.ocr.AsposeOCR.RecognizePage(Unknown Source)

The error occurs for this particular image only. I am on version 22.5. I tried the image on version 23.11.0 and got the same error. I also tried the image on the Aspose OCR demo page and got some error as well. The image is attached below.
34-work area.jpg (6.4 KB)

Here is the Java code.
RecognitionSettings settings = new RecognitionSettings();
settings.setLanguage(Language.Chi);
RecognitionResult recognized = new AsposeOCR().RecognizePage(bufferedImage, settings);

Commenting out the lcall to setLanguage prevents the error. But that is not an option for me as auto language does not work well for Chinese.

@fzeng2012

We are checking it and will get back to you shortly.

@fzeng2012

We used below code snippet with the latest version of the API and did not face any exception:

com.aspose.ocr.AsposeOCR api = new com.aspose.ocr.AsposeOCR();
com.aspose.ocr.OcrInput input = new com.aspose.ocr.OcrInput(com.aspose.ocr.InputType.SingleImage);
input.add(dataDir + "34-work area.jpg");
ArrayList<RecognitionResult> results = api.RecognizeStreetPhoto(input);

for (RecognitionResult res : results) {
    System.out.println(res.recognitionText);
}

Would you kindly make sure to use the latest available version of the API with the above code snippet? Please let us know if issue still persists.

Thanks. I will try it.