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:
import numpy as np import cv2 img=cv2.imread('E:\itsme\Camera\pic.jpg',10) cv2.imshow('image',img) cv2.waitkey(0) cv2.destroyallwindows()
just add fill the full directory of your picture in string.