Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making a program that if given a picture of coins I will be able to how many coins are there and the amount, I'm using the comparison method in the viclib the Comparator to hopefully get the ones on the top.
But could someone be able to tell me when there is one coin partly covered by another coin how to get it please.
Posted
Updated 7-Jan-11 4:53am
v2
Comments
Nuri Ismail 7-Jan-11 10:53am    
Removed PRE tags.

The problem is one of consistency.

Is the surface holding the cons going to be the same distance from the camera all the time? If so, you could establish the relative coin sizes, and store them in a database. At that point, you could compare the size of the coins to the stored sizes, and unless the sizes are very very close (like a penny and a dime), you should be able to reliably determine the value of a partially covered coin.

 
Share this answer
 
v2
I'm assuming that via a 2-D image of flat coins you will not be able to see the thickness of the coin. However, viewing an image of coins from the edge may prove to be more reliable since you will get both the thickness and diameter.

Do you have control of the coin's orientation at the time the image is taken? You may need to get coins single file. Without a thickness measurement, you will probably miscount if 2 coins are stacked perfectly, or if a quarter is eclipsing a dime from view.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 7-Jan-11 12:09pm    
Good point (my 5). If one coin is completely covered by another one, it is not visible.

I'm participated in works with so-called 3D detectors (actually sensing depth profile for 3D image). They do not look from side: camera looks vertically, but special lighting is done at different angle, so you can see shadow pattern (for example one side of the coin is lighted, another is in shadow and cast shadow in the service). This is simplified picture. Light pattern recognition if however quite sophisticated.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900