Extracting text from street photos

Contents
[ ]

Aspose.OCR offers a special recognition algorithm for extracting content from images with sparse text and noisy/colored backgrounds. This method significantly improves OCR accuracy in the following business cases:

  • Read text from street photos.
  • Segment and identify road signs and signboards within street images.
  • Locate price tags and interpret the extracted text as prices.
  • Find and aggregate regions of interest on food labels, such as nutritional information or ingredient lists.
  • Identify and analyze car license plates.
  • Extract text from menus and catalogs.

To extract text from such images, use RecognizeStreetPhoto() method of Aspose.OCR.AsposeOcr class.

The method takes OcrInput object and returns a RecognitionResult object containing the text from images.

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add images to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("photo1.png");
input.Add("photo2.png");
// Recognize images
Aspose.OCR.OcrOutput results = recognitionEngine.RecognizeStreetPhoto(input);
foreach(Aspose.OCR.RecognitionResult result in results)
{
	Console.WriteLine(result.RecognitionText);
}

Live demo

Street photo