PyTesseract 不使用数字识别游戏图像

问题描述 投票:0回答:0

我从游戏中截取了这些屏幕截图,PyTesseract 只识别“==”

图像规格:504x274 PNG

Game Image

from pytesseract import pytesseract
from PIL import Image

caminho = "D:\\Program Files\\Tesseract-OCR\\tesseract.exe"
pytesseract.tesseract_cmd = caminho

text = pytesseract.image_to_string('a.png', config="--psm 13")
print(text)
image python-tesseract image-recognition
© www.soinside.com 2019 - 2024. All rights reserved.