How to extract text from image using openCV or OCR tesseract?

24,240

The fastest way (maybe not the ideal) is to implement the following steps:

  • Use OpenCV to detect the paper sheet or the text area;
  • Perform any processing necessary to deskew the image (if necessary);
  • Save the image to disk as TIFF;
  • and finally, call Tesseract cmd-line application passing the TIFF image as parameter to start the text recognition process.
Share:
24,240
user1381427
Author by

user1381427

Updated on July 09, 2022

Comments

  • user1381427
    user1381427 almost 2 years

    Possible Duplicate:
    android OCR?

    i'm currently doing a project on text recognition based on a image capture in android phone. I want to ask how the text can be extracted from image?

    Does have any openCV or OCR tesseract tutorial for extracting ?