OpenCV cvFindContours - how do I separate components of a contour

前端 未结 2 1628
情深已故
情深已故 2020-12-08 17:17

I\'ve been playing around with OpenCV and with alot of trial and error have managed to learn how to detect circles (coins) in a photo. Everything is working great, except wh

2条回答
  •  广开言路
    2020-12-08 17:44

    You could try thresholding (cvThreshold) the image and then erode (cvErode) the resulting binary image to separate the coins. Then find the contours of the eroded image.

提交回复
热议问题