how to find two acircles grids

asked 2020-06-19 02:17:56 -0500

image description current i have this picture. i need to find this two acircles , can any body can help me? i use


    bool found;
vector<Point2f> corners;
SimpleBlobDetector::Params params;
params.filterByColor = true;
//params.filterByArea = false;
//params.minArea = 1e2;
//params.maxArea = 1e4;
params.blobColor = 255;

Ptr<FeatureDetector> blobDetector = SimpleBlobDetector::create(params);
found = findCirclesGrid(img, Size(7, 1), corners, cv::CALIB_CB_ASYMMETRIC_GRID | cv::CALIB_CB_CLUSTERING, blobDetector);

but this code is failed to capture. can any body help me?

edit retag flag offensive close merge delete


your image / pattern / size looks wrong, have a look at the 4x11 asym pattern this should be 2 columns, and there's a point missing, each row needs same number of circles

you probably also have to split the image, and detect on each half seperately

berak gravatar imageberak ( 2020-06-19 03:33:11 -0500 )edit

sorry, i generate it with python -o d://out.svg --rows 7 --columns 1 --type acircles --square_size 30 --radius_rate 3 .. i don't known why it is wrong

jsbluecat gravatar imagejsbluecat ( 2020-06-19 04:05:55 -0500 )edit