1 | initial version |
You gotta go step by step. First, you should binarize the image. Then, you use erode or dilate to enhance the picture. You should use those functions to split the coins that are together. Erode and dilate both use a structuring element, which has a shape and a size. You should check this link to see an example of usage: http://opencvpython.blogspot.pt/2012/05/skeletonization-using-opencv-python.html I also suggest you search more about the functions findcontours and drawcontours, because they will be very helpful to you. P.S: Saudações iselianas :)
2 | No.2 Revision |
You gotta go step by step. First, you should binarize the image. Then, you use erode or dilate to enhance the picture. You should use those functions to split the coins that are together. Erode and dilate both use a structuring element, which has a shape and a size. You should check this link to see an example of usage:
http://opencvpython.blogspot.pt/2012/05/skeletonization-using-opencv-python.html
I also suggest you search more about the functions findcontours and drawcontours, because they will be very helpful to you.
P.S: Saudações iselianas :)you.