Fast recognition

Aspose.OCR can work in the fastest recognition mode that consumes minimum possible resources using RecognizeFast method of Aspose.OCR.AsposeOcr class.

This method takes OcrInput object and returns a list of strings, one string per image.

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add images to OcrInput object
Aspose.OCR.OcrInput images = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
images.Add("source1.png");
images.Add("source2.png");
// Fast recognize images
List<string> results = recognitionEngine.RecognizeFast(images);
foreach(string result in results)
{
	Console.WriteLine(result);
}

Performance impact

This method is about twice as fast as regular recognition.

Drawbacks

  • This recognition method only works with high-quality scans without skew or distortion. However, you can preprocess an image before sending it to the OCR engine.
  • Fast recognition cannot be customized with recognition settings.