Reshaping noisy coin into a circle form

后端 未结 5 518
遇见更好的自我
遇见更好的自我 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:03

    OpenCV has a function called HoughCircles() that can be applied to your case, without separating the different circles. Can you call it from JavaCV ? If so, it will do what you want (detecting and counting circles), bypassing your separation problem.

    The main point is to detect the circles accurately without separating them first. Other algorithms (such as template matching can be used instead of generalized Hough transform, but you have to take into account the different sizes of the coins.

提交回复
热议问题