Advertisement
lamiastella

size.width>0 && size.height>0 in function 'imshow'

Jul 30th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import cv2
  2. img = cv2.imread("Rec-000026_16bit_counts.tif", cv2.IMREAD_UNCHANGED)
  3. cv2.imshow('image',img)
  4. cv2.waitKey(0)
  5. cv2.destroyAllWindows()
  6.  
  7. ---------------------------------------------------------------------------
  8. error Traceback (most recent call last)
  9. <ipython-input-67-2756e499dadf> in <module>
  10. 1 import cv2
  11. 2 img = cv2.imread("Rec-000026_16bit_counts.tif", cv2.IMREAD_UNCHANGED)
  12. ----> 3 cv2.imshow('image',img)
  13. 4 cv2.waitKey(0)
  14. 5 cv2.destroyAllWindows()
  15.  
  16. error: OpenCV(3.4.9) /io/opencv/modules/highgui/src/window.cpp:382: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement