下面是我的代码:
import pytesseract
import cv2
from PIL import Image
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files (x86)\Tesseract-OCR\tesseract.exe"
def main():
original = cv2.imread('D_Testing.png', 0)
# binary thresh it at value 100. It is now a black and white ima
我试图用Maverick在Python中导入tesseract,但是我得到了以下错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tesseract.py", line 26, in <module>
_tesseract = swig_import_helper()
File "tesseract.py", line 18, in swig_import_helper
i
我对tesseract和openCV都是新手。我正在构建一个简单的Linux应用程序,用于在纸上口述打印文本。使用tesseract,我成功地进行了文本块识别,但是,如果文本块中有一个整数,则该数字将被省略。示例输入:"Hello this is my 3D video in 2014 is 1080p“输出:"Hello this is my 3D video in that is 1080p”
以前有没有人遇到过这个问题?
openCV :2.4.9 Tesseract:V3.02 Leptonica: 1.71操作系统: Ubuntu 64位14.04 LTS
问候