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
This should help:
image, contours, hierarchy = cv2.findContours(thresh.copy(), cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)