下面是我的代码:
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
我最近收到了一个错误,例如:
File "/usr/local/lib/python3.8/site-packages/pytesseract/pytesseract.py", line 287, in run_and_get_output
run_tesseract(**kwargs)
File "/usr/local/lib/python3.8/site-packages/pytesseract/pytesseract.py", line 263, in run_tesseract
raise TesseractError(proc.retu
我使用openCV和Tesseract来制作文本识别软件,但是它没有返回输出
这是我的密码:
from PIL import Image
from pytesseract import pytesseract
import time
import cv2 as cv
camera_port = 0
camera = cv.VideoCapture(camera_port, cv.CAP_DSHOW)
time.sleep(0.1) # If you don't wait, the image will be dark
return_value, image = camera.rea