r/CodingHelp • • Sep 21 '25

[Python] Precise circle detection method for images

I’m a coin dealer with some programming background, and I’m working on a program that can accurately crop coins out of images without cutting into the coin itself. My biggest challenge has been with NGC-graded coins. Their holders are white and have four prongs that secure the coin, which makes it difficult to separate the coin cleanly from the background. I’ve tried several approaches, but so far none have worked reliably.

Methods I've used so far

Hough Circle Detection
Edge detections with various methods

Contrast detection

Dynamic probing method searching for differences in contrasts

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Sep 22 '25

[removed] — view removed comment

1

u/AutoModerator Sep 22 '25

Not enough karma — please make some comments and gain a bit of karma before posting here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.