求助解决问题:
报错如下
F:\lab\venv\Scripts\python.exe F:/lab/match_2.py
Traceback (most recent call last):
File “F:/lab/match_2.py”, line 7, in
res = cv2.matchTemplate(img_gray,template,cv2.TM_CCOEFF_NORMED)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\templmatch.cpp:1112: error: (-215:Assertion failed) _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function ‘cv::matchTemplate’
Process finished with exit code 1
我试过路径问题,没有中文,请问大神这是什么问题?谢谢了