我想在 opencv2 中检测圆形黑色 Blob
detector = cv2.SimpleBlobDetector(params)
keypoints = detector.detect(im)
我遇到错误:
keypoints = detector.detect(im)
TypeError: Incorrect type of self (must be 'Feature2D' or its derivative)
最佳答案
您可以改用它:
detector = cv2.SimpleBlobDetector_create(params)
从 OpenCV 版本 2 开始,这发生了变化。
关于python-2.7 - 使用opencv检测python中的圆形黑色 Blob ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48935177/