我想知道扫描文件的方向。我看到了这篇文章Pytesseract OCR multiple config options,我试图使用**--psm0**来获得方向。在
target = pytesseract.image_to_string(text, lang='eng', boxes=False, \
config='--psm 0 tessedit_char_whitelist=0123456789abcdefghijklmnopqrstuvwxyz')
但我得到一个错误:
^{pr2}$
Tags:
我找到了另一种使用pytesseract获取方向的方法:
这是输出:
^{pr2}$@lads已经提到了找到方向的方法。 我刚刚用re来计算旋转图像需要多少度。在
相关问题 更多 >
编程相关推荐