I need to use Pytesseract to extract text from this picture:
I’m using this code:
import pytesseract
import cv2
pytesseract.pytesseract.tesseract_cmd = r"C:Program FilesTesseract-OCRtesseract.exe"
path = "C:\Users\User\Desktop\guvenlik.jpg"
src = cv2.imread(path)
img = cv2.cvtColor(src, cv2.COLOR_BGR2BGRA)
text = pytesseract.image_to_string(img)
print(text)
However, my output doesn’t match:
My Console Output : 72660wib
How can I read this type of text?
New contributor
Doğucan ÇALIŞKAN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.