As Aspose.OCR uses the ONNX runtime, it’s important to be able to pass a SessionOptions to the Recognize method to be able to properly control multi-threading. Setting RecognitionSettings.ThreadsCount to 1 is not sufficient.
Could you please add the option to pass a ONNX SessionOptions object in the RecognitionSettings, something like:
ocr.Recognize(input, new RecognitionSettings
{
SessionOptions = new SessionOptions()
});