If findBlobs
doesn't find any blobs, or if there's some problem with input image, it returns None
. And hence the error. So you might want to add a check if blobs is None or not.
if blobs is not None:
blobs.draw()
simplecvimg.show()
Also, try using some other image to see if the error persists.