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
Asked
Active
Viewed 1,291 times
0
-
1Could you state the full error message? – erncyp Sep 20 '19 at 13:51
-
Hi, On the browser it says python stopped working then it gives me an option to debug then when I press debug it takes me to Visual Studio I have now added a picture of the error from VS on my original question.Please have a look – P.Asenoguan Sep 23 '19 at 06:24
-
please provide more information. – aircraft Sep 23 '19 at 06:46
-
What kind of information – P.Asenoguan Sep 23 '19 at 08:56
-
possible duplicate of https://stackoverflow.com/questions/50124851/opencv-simple-blob-detector-not-working (no answer there either) – erncyp Sep 23 '19 at 10:21
2 Answers
3
This worked for me:
detector = cv2.SimpleBlobDetector_create(params)
instead of:
detector = cv2.SimpleBlobDetector()

Jeremy Caney
- 7,102
- 69
- 48
- 77

Shai
- 31
- 3
0
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

erncyp
- 1,649
- 21
- 23