opencv 3, blobdetection, The function/feature is not implemented () in detectAndCompute

后端 未结 4 678
星月不相逢
星月不相逢 2021-02-13 20:33

I have a problem with opencv 3: I want to use a feature detector, SimpleBlobDetector, about to use filters by convexity and circularity. But when I try to execute the code, the

4条回答
  •  無奈伤痛
    2021-02-13 21:32

    this looks like it is solved, but maybe it helps someone else. I had the same problem. I created blob detector like this:

    cv::SimpleBlobDetector detector;
    detector.create(params);
    detector.detect( img, keypoints );
    

    This ended up with error: The function/feature is not implemented () in detectAndCompute.

    But when I tried it like this:

    cv::Ptr detector = cv::SimpleBlobDetector::create(params); 
    detector->detect( img, keypoints );
    

    Now everything works as expected.

    It is really strange and if anyone knows why is working like that let me know please.

提交回复
热议问题