Now I have some problem :
mser = cv2.MSER_create()
contours = mser.detectRegions(imgThreshCopy,None)
hulls = [cv2.convexHull(p.reshape(-1, 1, 2)) for p in contours]
height, width = imgThresh.shape
imgContours = np.zeros((height, width, 3), np.uint8)
cv2.polylines(imgContours, hulls, 1, (255, 0, 0))
I want to get the area in hulls surrounding, but when I call:
cv2.imshow("hulls",hulls);
Error happen:TypeError: mat is not a numpy array, neither a scalar I am new in opencv. Anyone can give me some advice? Thanks.