cv2.error: /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/highgui/src/window.cpp:331: error: (-215) size.width>0

asked 2019-11-30 09:26:35 -0600

hemanth007 gravatar image

updated 2019-11-30 10:22:34 -0600

berak gravatar image

how to overcome this error

edit retag flag offensive close merge delete

Comments

You have some problem with cv2.imshow. Can you post code?

supra56 gravatar imagesupra56 ( 2019-11-30 10:03:54 -0600 )edit

Another one is absolute path for filename.

supra56 gravatar imagesupra56 ( 2019-11-30 10:08:29 -0600 )edit

the image you feed to imshow() is empty / invalid. go and check

berak gravatar imageberak ( 2019-11-30 10:23:33 -0600 )edit