1

i am doing blob detection in python getting this error at the end how can i do this?

import cv2
import numpy as np

image=cv2.imread("SunFlowers.jpg",cv2.IMREAD_GRAYSCALE)
Detector=cv2.SimpleBlobDetector()
key=Detector.detect(image)
cv2.drawKeypoints(image,key,[0],(0,255,255),cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)

cv2.imshow("sunflower",image)
cv2.waitKey(0)

The error appears at this line:

key=Detector.detect(image)
Matt
  • 7,255
  • 2
  • 12
  • 34

1 Answers1

2

I've got the same error but I've fixed it using that function

Detector=cv2.SimpleBlobDetector_create()
Charlio
  • 78
  • 2
  • 8