Skip to end of metadata
Go to start of metadata
Contents Summary
  

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, pointer to buffer with recognized string, and size of buffer reserved for the result as parameters. 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.

Labels
  • No labels