Closed astitwlathe closed 2 years ago
To add , I followed the link https://github.com/WPI-AIM/ambf/wiki/Camera-feed-and-depth-camera to resolve the error. However, the script does not work.
Can you go through this closed issue and check all the points in the conversation.
Closing this as stale
Hi Everyone, When I try to run the project_needle_pts.py script, it throws an error:
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/highgui/src/window.cpp, line 304 Traceback (most recent call last): File "project_needle_pts.py", line 125, in
cv2.imshow("img", img)
cv2.error: /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/highgui/src/window.cpp:304: error: (-215) size.width>0 && size.height>0 in function imshow
The script seems to not be able to get images from ROS node. Thank you for your time.