Reshaping noisy coin into a circle form

后端 未结 5 505
遇见更好的自我
遇见更好的自我 2020-11-30 05:33

I\'m doing a coin detection using JavaCV (OpenCV wrapper) but I have a little problem when the coins are connected. If I try to erode them to separate these coins they loose

5条回答
  •  粉色の甜心
    2020-11-30 06:02

    You don't need to erode, just a good set of params for cvHoughCircles():

    enter image description here

    The code used to generate this image came from my other post: Detecting Circles, with these parameters:

    CvSeq* circles = cvHoughCircles(gray, storage, CV_HOUGH_GRADIENT, 1, gray->height/12, 80, 26);
    

提交回复
热议问题