/EAST-Detector-for-Text-Detection-Using-OpenCV-with-Word-Cropping

Using EAST Text Detector & OpenCV, all the words of an image is detected, cropped and sorted by line from left to right

Primary LanguagePython

EAST-Detector-for-Text-Detection-Using-OpenCV-with-Word-Cropping

How to run:

  1. Clone the repo on your computer
  2. Run pip install imutils anywhere
  3. Run pip install numpy anywhere
  4. Run pip install opencv-python anywhere
  5. Run python opencv_text_detection_image.py --image images/Book.jpg --east frozen_east_text_detection.pb in the local repo

FYI:

  • Put the input images in the input folder
  • The output images will be in the output folder in sorted order

Pro Tip:

  • Increase resized width and height for better accuracy (current default: 1280)
  • Cons: Takes more time the more you increase the size. At 1280 it takes almost 5 seconds
  • Pros: Increases accuracy a lot. At 1280 accuracy is very high alhamdulillah