Search code examples
opencvmachine-learningcomputer-visiongoogle-colaboratoryocr

How to use OpenCV to do OCR and text detect and recognition


I am working on a test application to develop a small text detection and recognition app in python using Google Collab. Can you advise any code examples to achieve this? My requirement is that I should be able to detect and recognize text in an image using OpenCV.

Please advise.


Solution

  • you need to make pipeline with following step. if you work only opencv.

    • opencv for pre-processing - use morphological operations.
    • For Text detection - use Craft model or finding contours in your image.
    • For Recognition - Use Tesseract-OCR

    According to my personal experience. EasyOCR is very good with good accuracy. easy to use and train your own text also.