I am trying to implement contours using the following code..
im = cv2.imread(\'C:\\Users\\Prashant\\Desktop\\T.jpg\') imgray = cv2.cvtColor(im,cv2.COLOR_BGR2
So use
contours, hierarchy=cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)