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)