Created
April 21, 2020 09:35
-
-
Save aniruddha27/5d2d83106f23cdc254d8140601ce3634 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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