Issue Initializing Parameters of SimpleBlobDetector
Here is my code:
SimpleBlobDetector::Params params; //Filter by Area params.filterByArea = true; params.minArea = 5000; //Filters out areas less than 5000 pixels. //Filter by Circularity. params.filterByCircularity = true; //Circle has circularity = 1.000 params.minCircularity = 0.79F; //Square has circularity = 0.785 //Filter by Convexity params.filterByConvexity = true; params.minConvexity = 0.10F; //Filter by Inertia params.filterByInertia = true; params.minInertiaRatio = 0.01F; Ptr<SimpleBlobDetector> d = SimpleBlobDetector::create(params); vector<KeyPoint> keypoints; d->detect(processed_src, keypoints); drawKeypoints(src, keypoints, im_with_keypoints, Scalar(0, 255, 0), DrawMatchesFlags::DRAW_RICH_KEYPOINTS);
I am drawing my information directly from SimpleBlobDetector tutorials for OpenCV versions >=3. I am receiving the following error being called from
Ptr<SimpleBlobDetector> d = SimpleBlobDetector::create(params); Apparently, params is not being set properly. See the following error message:
E0312 - no suitable user-defined conversion from "cv::SimpleBlobDetector::Params" to "const std::string" exists
Can anyone explain why this is? I have used SimpleBlobDetector is past projects and have had no issues.