1

I want to detect circular round black blobs in opencv2

detector = cv2.SimpleBlobDetector(params)

keypoints = detector.detect(im)

I am getting error:

keypoints = detector.detect(im)

TypeError: Incorrect type of self (must be 'Feature2D' or its derivative)

1

1 Answer 1

0

You can use this instead:

detector = cv2.SimpleBlobDetector_create(params)

This changed with OpenCV version 2 onwards.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.