Free Support Forum -

Perform OCR on an image - Extract dates from file Aspose.OCR example

Hi… How can I extract just dates from the file? I can assume a date will be MM/dd/yy or MM/dd/YYY or
mm-dd-yyyy. Use a RegEx? where can I find examples.


You can either specify particular region on an image to extract text from or once you extract the text from complete image, you can perform string search operation to find Date in obtained text using C# Regular Expressions. Please check the below articles in the API documentation: