Allow ONNX SessionOptions to be passed to recognition call

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()
});

@rafaeloliveira

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): OCRNET-976

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.