Hello !
Anyone expert with Pytsseract here ?
I'm trying to recognize the set of characters "1, -31" from this picture.
To do so, I'm using pytesseract with this function :
def read_coord(img, lang='fra', config="-c tessedit_char_whitelist=0123456789-, --psm 7 --oem 0"):
text = pytesseract.image_to_string(img, lang, config)
current_coord = re.findall("-?[0-9]{1,2}, ?-?[0-9]{1,2}", text)[0].replace(" ", "")
return current_coord
But it return 1,31 instead.
The text return 1,3141 so it doesn't come from regex issue.
I setup --psm 7 to read 1 single line, and --oem 0 because I don't need neural ?