tesseract-ocr / langdata

Source training data for Tesseract for lots of languages
Apache License 2.0
834 stars 888 forks source link

Cannot show Persian numbers #155

Open netwons opened 3 years ago

netwons commented 3 years ago

im code

#!/bin/python3.8
import cv2 
import pytesseract

img = cv2.imread('/home/netwons/Desktop/fff.jpeg')

# Adding custom options
custom_config = r'--oem 3 --psm 6'
text=pytesseract.image_to_string(img,lang="fas", config=custom_config)

f= open("/home/netwons/Desktop/py.txt","w")
f.write(text)
f.close()

Cannot show Persian numbers