I am trying to work with the opencv SimpleBlobDetector. My current program is a simple test program like this:
import cv2
import numpy as np;
im = cv2.imread("blobs.jpg", cv2.IMREAD_GRAYSCALE)
params = cv2.SimpleBlobDetector_Params()
params.filterByArea = True;
params.minArea = 1;
params.maxArea = 1000;
detector = cv2.SimpleBlobDetector(params)
keypoints = detector.detect(im)
im_with_keypoints = cv2.drawKeypoints(im, keypoints, np.array([]), (0,0,255), cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)
cv2.imshow("Keypoints", im_with_keypoints)
cv2.waitKey(0)
code runs until the keypoints line where it should actually detect the blobs. it doesnt show any error message but just restarts the kernel. i used a very easy picture so blobs should be detected.
