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.)
THANKS SO MUCH!