Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.)

THANKS SO MUCH!

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:

image description

Here is an example of the sharpened image:

image description

And the circle detection:

THANKS SO MUCH!

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:

image description

Here is an example of the sharpened image:

image description

And I'll add the circle detection:detection later today after I get that code restored to my work environment.

THANKS SO MUCH!

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:

image description

Here is an example of the sharpened image:

image description

I'll add the circle detection later today after I I need better lighting... But I can pretty much detect the location of the coin. With better lighting, I should be able to get that code restored to my work environment.the edges and center more accurately detected:

image description

THANKS SO MUCH!