Ask Your Question

'module' object has no attribute 'SimpleBlobDetector'

asked 2014-07-27 15:10:52 -0500

Dani gravatar image

I am running opencv via python on the Raspberry Pi and am getting the following error.

blobd = cv2.SimpleBlobDetector() AttributeError: 'module' object has no attribute 'SimpleBlobDetector'

my code is blobd = cv2.SimpleBlobDetector()

I have also tried to create the cv2.SimpleBlobDetector_Params() with the same issue.

As noone else seems to have had this problem I'm a bit baffled.

edit retag flag offensive close merge delete



cv2.__version__ ?

berak gravatar imageberak ( 2014-07-28 01:12:50 -0500 )edit

Same problem here... my cv2__version__ ouput is Rev: 4557

illinicapt gravatar imageillinicapt ( 2014-07-30 00:16:39 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-06-28 11:26:55 -0500

jbeale gravatar image

Same problem here. Did the syntax change from all the examples? I find it strange that the line params = cv2.SimpleBlobDetector_Params() does not cause an error. In my case, the error is only with detector = cv2.SimpleBlobDetector(params) I have cv2.__version__ '3.0.0' running on Windows 7.

SOLVED Ok, syntax changed to SimpleBlobDetector_create() without notice. With my 3.0.0 version, this works:

detector = cv2.SimpleBlobDetector_create(params)
edit flag offensive delete link more

Question Tools


Asked: 2014-07-27 15:10:52 -0500

Seen: 11,231 times

Last updated: Jun 28 '15