Almost all the functions related to contours returns an error :
TypeError: points data type = 5 is not supported
This is the code I tried :
first = cv2.inRange(hsv,obj1_min,obj2_max)
contours,hierarchy = cv2.findContours(first,cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE)
cnt = contours[0]
rect = cv2.boundingRect(cnt)
Or try contours.py in /samples/python2 folder.
What is the problem? Is it a bug?