When trying to use Aspose.OCR, I’m gettting exception:
The type initializer for ‘Microsoft.ML.OnnxRuntime.NativeMethods’ threw an exception.
Unable to find an entry point named ‘OrtGetApiBase’ in DLL ‘onnxruntime’.
I’ve read some previous post about adding:
Microsoft.ML.OnnxRuntime
Microsoft.ML.OnnxRuntime.MKLML
But that doesn’t work either.
You can easily reproduce this by creating a LinqPAD script with Aspose.OCR nuget and:
var lib = new AsposeOcr();
var text = lib.RecognizeLine(@“C:\Users\niels\Desktop\Screenshot_3.png”);
text.Dump();