Hi friends i just now installed opencv and checking the basic code but it results in error. The code is
import numpy as np import cv2 img=cv2.imread(\'C:\\U
It is because, python compiler cannot find the image in the place. if you copy the image in the python working directory and do this. it worked for me.
# keep image in the current working directory img=cv2.imread('roi.jpg',1) cv2.imshow('image',img)