I try to use OCR on a JPG file, which is inside a MemoryStream which gives me above exception.
var recognitionResult = recognitionEngine.RecognizeImage(memoryStream, recognitionSettings);
Different recognitionSettings make no difference.
I can workaround the exception if I load the JPG and save it to a Bitmap first:
using (Image image = Image.Load(_filestream))
using (var bitmapStream = new MemoryStream())
var bitmapOptions = new BmpOptions();
Your documentation says it can OCR an JPG directly. I’m using Aspose.OCR for .NET 22.9.