我需要用tesseract阅读僧伽罗语。我用的是centOS 7。我已经将经过训练的数据复制到/usr/share/tesseract/tessdata位置。在
我已经将经过训练的数据复制到/usr/share/tesseract/tessdata位置。在
import cv2
import numpy as np
import pytesseract
from pytesseract import image_to_string
img = cv2.imread("sinhala.png")
#crop_img = img[y1:y1+height,x1:x1+width]
text = pytesseract.image_to_string(img,lang="sin")
错误
^{pr2}$
目前没有回答
相关问题 更多 >
编程相关推荐