I'm currently working on an openCV course through Udemy and have run into the trouble where my kernel is dying. I tried eliminating line by line to see what could the cause, and I found that when the code comes to the line: keypoints = detector.detect(image) it fails. Now I am kind of an amateur when it comes to this kind of stuff, but would appreciate some feedback as to why this could be occurring. Here's the code i'm working with:
import cv2import numpy as np;# Read imageimage = cv2.imread("images/Sunflowers.jpg")# Set up the detector with default parameters.detector = cv2.SimpleBlobDetector()# Detect blobs.keypoints = detector.detect(image)# Draw detected blobs as red circles.# cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS ensures the size of# the circle corresponds to the size of blobblank = np.zeros((1,1)) blobs = cv2.drawKeypoints(image, keypoints, blank, (0,255,255), cv2.DRAW_MATCHES_FLAGS_DEFAULT)# Show keypointscv2.imshow("Blobs", blobs)cv2.waitKey(0)cv2.destroyAllWindows()```