Perform OCR on an image

Perform OCR on an Image

Aspose.OCR for C++ provides the following methods to perform OCR operation on images.

  • page: Recognizing text on some page, It detects where is the paragraph or header and recognizes each of the text segments.
  • line: Perform OCR operation on the image containing a single line.

Performing OCR on an image of a page

Aspose.OCR provides the page method that detects where the header or paragraph is and recognizes each text segment. The page method takes the image path as a parameter and returns the recognized text. The following code snippet demonstrates the use of the page method to perform OCR on an image.

Performing OCR on an image of a line

The following code snippet demonstrates the use of the line method to perform OCR operation on the image containing a single line.