Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created April 21, 2020 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniruddha27/5d2d83106f23cdc254d8140601ce3634 to your computer and use it in GitHub Desktop.
Save aniruddha27/5d2d83106f23cdc254d8140601ce3634 to your computer and use it in GitHub Desktop.
# text recognition
import cv2
import pytesseract
# read image
im = cv2.imread('./test3.jpg')
# configurations
config = ('-l eng --oem 1 --psm 3')
# pytessercat
text = pytesseract.image_to_string(im, config=config)
# print text
text = text.split('\n')
text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment