I want to get some descriptors for each white area on image to filter that areas and operate with them separately. How can I do it?
I have read How to use OpenCV SimpleBlobDetector and http://www.learnopencv.com/blob-detection-using-opencv-python-c/ but still can't get any result with my simple image.
Here is my code in python
img = cv2.imread("map.jpg", cv2.IMREAD_GRAYSCALE)
params = cv2.SimpleBlobDetector_Params()
params.blobColor = 255
params.filterByColor = True
params.minArea = 16
params.filterByArea = True
detector = cv2.SimpleBlobDetector_create(params)
keypoints = detector.detect(255 - img)
len(keypoints)
# 0
OpenCV 3.1.0
Image is grayscaled.
UPD: Code updated following comment by @api55