Reshaping noisy coin into a circle form

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

    After detecting the joined coins, I recommend applying morphological operations to classify areas as "definitely coin" and "definitely not coin", apply a distance transformation, then run the watershed to determine the boundaries. This scenario is actually the demonstration example for the watershed algorithm in OpenCV − perhaps it was created in response to this question.

提交回复
热议问题