I am trying to run a simple program that reads an image from OpenCV. However, I am getting this error:
error: ......\\modules\\highgui\\src\\window.cpp:281:
I think it depends on the IDE + path of the image location issues
example
img = cv2.imread("kang34.jpg", 0) # direct use
example
img = cv2.imread("C:\\Users\\DEBASISH\\AppData\\Local\\Programs\\Python\\Python36\\Projects\\kang34.jpg", 0) # use proper syntax and full path of image location