import cv2 as cv import numpy as np
im = cv.imread("mini.jpg", cv.IMREAD_GRAYSCALE)
detector = cv.SimpleBlobDetector() keypoints = detector.detect(im) im_with_keypoints = cv.drawKeypoints(im, keypoints, np.array([]), (0,0,255), cv.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)
cv.imshow("keypoints", im_with_keypoints) k = cv.waitKey(0) cv.destroyAllWindows()