This project can extract inner image of something like ring, but not only ring. Besides, you can counting according to the result image of inner image. Configuration environment : OpenCV3.1.0 + VS2013
- Simple-Example
In this example, we show some simple images of some rings which are Scattered. In the algorithm, we find the contours, and then use the AND, OR relationship to extract the inner ring image.
- Complex-Example
In this example, we show some complex images of some rings which are Intensive. If we still use a simple method to process the image, some gap images will be extracted as inner loops.Then we improved the method, we use the distance transform and watershed algorithm to elimate this error.