cv2.SimpleBlobDetector()causes kernel to crash and python to stop when running a jupyter notebook using a anaconda3 python 3 and open cv 4.1.1

cv2.SimpleBlobDetector()causes kernel to crash and python to stop when running a jupyter notebook using a anaconda3 python 3 and open cv 4.1.1

This worked for me:
detector = cv2.SimpleBlobDetector_create(params)
instead of:
detector = cv2.SimpleBlobDetector()
Searching for the error message in that image, it looks like an opencv path problem. You might need to add opencv to your path then restart. See here: https://stackoverflow.com/a/41775060/4703367