We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Incomplete Chinese characters for picture recognition

1.7z (13.2 KB)
Incomplete Chinese characters for picture recognition,


Can you please share which API version are you using? Please make sure to use 22.2 version and in case issue still persists, please share sample code snippet with us so that we can test the scenario in our environment and address it accordingly.

    //  就是识别的文字不完整,只能局部的部分,其他部分的文字识别不到,其他的软件可以识别
        AsposeOcr api = new AsposeOcr();
  var result = api.RecognizeImage("1.jepg",new RecognitionSettings()
      Language = Language.Chi,DetectAreas = true,AllowedCharacters = CharactersAllowedType.ALL


An issue as OCRNET-482 has been logged in our issue management system for further investigation. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.


In order to better recognize the characters, please try the PHOTO mode:

var result = api.RecognizeImage(@"1.jpeg", new RecognitionSettings { 
                DetectAreasMode = DetectAreasMode.PHOTO, 
                Language = Language.Chi });

Microsoft.ML.OnnxRuntime.OnnxRuntimeException: [ErrorCode:RuntimeException] Non-zero status code returned while running ConvInteger node. Name:‘Conv_2_quant’ Status Message: bad allocation
at Microsoft.ML.OnnxRuntime.NativeApiStatus.VerifySuccess(IntPtr nativeStatus)
at Microsoft.ML.OnnxRuntime.InferenceSession.RunImpl(RunOptions options, IntPtr[] inputNames, IntPtr[] inputValues, IntPtr[] outputNames, DisposableList1 cleanupList) at Microsoft.ML.OnnxRuntime.InferenceSession.Run(IReadOnlyCollection1 inputs, IReadOnlyCollection1 outputNames, RunOptions options) at Microsoft.ML.OnnxRuntime.InferenceSession.Run(IReadOnlyCollection1 inputs, IReadOnlyCollection1 outputNames) at Microsoft.ML.OnnxRuntime.InferenceSession.Run(IReadOnlyCollection1 inputs)

use “DetectAreasMode = DetectAreasMode.PHOTO” error


Can you please try installing the API using NuGet Package Manager and make sure that onnxruntime 1.7 is installed as well. Please let us know in case issue still persists.

Has been installed, but there is still a problem


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


We have again tested the case by installing 22.3 version of the API through NuGet Package Manager in a console application and we did not notice any issue. Can you please create a fresh new console application and install Aspose.OCR for .NET 22.3 in it through NuGet Package Manager and share it with us in case the issue still persists? You can upload the application on Google Drive or Dropbox in a .zip format and share the link with us.