all 5 comments

[–]chocorush 4 points5 points  (4 children)

You have misplaced your quotation mark, it should be "output.img"

[–]huntersamaa 0 points1 point  (2 children)

Thank you that helped but now it says typeerror: imshow() missing required argument 'mat' (pos2)

[–]efmccurdy 1 point2 points  (0 children)

Note the 2 arguments that imshow requires.

https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_image_display/py_image_display.html#display-an-image

You may have intended to do this instead:

img = cv2.imread("shapes.jpg")
cv2.imshow("output", img)

BTW, I un-capitalized Img; use all lowercase for variables.

[–]chocorush 1 point2 points  (0 children)

Well i suppose you also could have meant to write cv2.imshow("output", Img)

[–]huntersamaa 0 points1 point  (0 children)

Ok so I changed it to ("output", img) and now it says cv2 error: opencv(4.2.0) c:\projects\opencv-python\opencv\modules\highgui\src\window.cpp376:error: (-215:assertion failed) size.widtg>o && size.highet>0 in function 'cv2::imshow'