Ocr seems to be unavailable on my computer

@Test
public void orcTestPath(){

    // The image path
    String imagePath = "/Users/zyx/Downloads/33a2718559fc4c778a6a549b8104578b-png-jpg (1).jpg";

    AsposeOCR api = new AsposeOCR();

    // Recognize page by full path to file
    try {
        String result = api.RecognizePage(imagePath);
        System.out.println("Result: " + result);
    } catch (IOException e) {
        e.printStackTrace();
    }

}

A fatal error has been detected by the Java Runtime Environment:

SIGBUS (0xa) at pc=0x0000000133b9e3a7, pid=17784, tid=0x0000000000000e03

JRE version: Java™ SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)

Java VM: Java HotSpot™ 64-Bit Server VM (25.181-b13 mixed mode bsd-amd64 compressed oops)

Problematic frame:

C [libonnxruntime.1.2.0.dylib+0x5a63a7] .LComputeBlockBy4Loop830+0x168

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

An error report file with more information is saved as:

/Users/zyx/IdeaProjects/tezign-intelligence/backend/itl-file-convert/hs_err_pid17784.log

If you would like to submit a bug report, please visit:

Crash Report

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

@zyx

It seems like the dependencies have not been installed correctly in your application. Please try to add onnxruntime JAR in your application or install the API from pom.xml file if you are running a maven project. In case issue still happens, please let us know.

If the dependency is not installed, the above code should report an error

com.aspose aspose-ocr 20.11

@zyx

Can you please share the sample console application which is able to reproduce the same issue? Also, please try to use the 21.4 version of the API before sharing the sample application. We will further proceed to assist you accordingly.

thank you,It can run, but nothing can be parsed0-117.jpeg (36.2 KB)
@Test
public void orcTestPath(){

    // The image path
    String imagePath = "/Users/zyx/Downloads/0-117.jpeg";

    AsposeOCR api = new AsposeOCR();

    // Recognize page by full path to file
    try {
        String result = api.RecognizePage(imagePath);
        System.out.println("Result: " + result);
    } catch (IOException e) {
        e.printStackTrace();
    }

}

@zyx

We were able to notice the issue in our environment while testing the scenario using the latest version of the API and have logged it as OCRJAVA-129 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

@zyx

We would like to share with you that in the latest release version (21.6), we have added Chinese language support and recognition capabilities as you can see in the examples (added). Unfortunately, we cannot recognize images as in your example. Aspose.OCR specializes in recognizing printed text, and your image has more handwritten stylized text.