Steps to identify date & mint in coin photographs
I'm building a machine to automatically sort coins by date and mint. It will send one coin at a time down a belt, take a photograph of it, and hopefully read the date and mint stamp.
I'm currently working through the OpenCV Tutorials. I'm currently able to identify where the coin is in the photograph and sharpen the image. (using HoughCircles() and saturate_cast<uchar>() )
Can the experts here offer a suggestion which functions I should use to identify if the coin is face up, tails up?
I suspect I will first need to crop the image to just have the coin image. And then the image will need to be rotated a small amount (again and again) until I get a good match to either a generic head's image or tail's image. Is there a more precise, or efficient, or accurate method?
Please note... I'll write the code. But I'm hoping to get some pointers about what strategy to use and the likely functions to implement the strategy. (Even with a correctly rotated coin image, I'm not far enough into the tutorials to know which functions to use to compare the images.)
For the purposes of going through the tutorials, I'm using this image:
Here is an example of the sharpened image:
I need better lighting... But I can pretty much detect the location of the coin. With better lighting, I should be able to get the edges and center more accurately detected:
THANKS SO MUCH!
a sample image will be useful
also some more images (different coin, different angle) will be useful