1
I need to recognize only one letter through the Pytesseract library in python but OCR is not able to recognize when it is only one letter.
In this case, I’m trying to recognize the letter H, but nothing appears !
What can I do to make him recognize?
from PIL import Image
from pytesseract import *
import cv2
img = cv2.imread('H.png',0)
edges = cv2.Canny(img,100,200)
img_new = Image.fromarray(edges)
text = pytesseract.image_to_string(img_new, lang='eng')
print (text)