Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- template_path = 'C:/Users/37533/Desktop/template.png'
- template = cv2.imread(template_path)
- cv2.imshow('Window', template)
- cv2.waitKey()
- #Error
- Traceback (most recent call last):
- File "C:/Users/37533/PycharmProjects/bot/try.py", line 5, in <module>
- cv2.imshow('Window', template)
- cv2.error: OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:352: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement