Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Greetings kind monks. I collect ancient coins, mostly Greek and Roman. While counterfeits are not common from brick and mortar dealers, unfortunately there are some counterfeits occasionally sold on eBay (mostly cast copies). Fortunately there are many image collections of known forgeries that a collector can use to check up on coins, but they are a pain to work with as there are hundreds of images to scan.

I was thinking about writing a tool in Perl that took a given image, resized it appropriately, and compared it to a set of images and if the images were similar, then present the original image and the counterfeit for human verification. It would be easy to build up a large image library of counterfeits, and many times identical images are used by sellers, so often counterfeits would be an exact match.

When I thought more about the problem I figured I might be in over my head, and I did not see anything on CPAN that did exactly what I was interested in (though perhaps I missed something).

I was thinking I could crop the images to the edges of the coin and resize both, but was not sure if content based cropping was possible. Alignment is not a problem since images are almost always aligned top to bottom. If I could get that far I could use Image Magick, create a negative of one of the images and then composite them, then test the composite image. I am not exactly sure how to test the results off the top of my head, but I think this is something I could sort out. I wanted to know if any monks knew of a CPAN module, a different library that might be useful for this sort of task, or if there is a better approach to take. If anyone has done anything similar and could give me any pointers I would really appreciate it, this particular topic seems to be a real pain to find the right keywords to search for.

There are a lot of folks who are really upset by forgeries and I would really like to make a CGI or a tool available to collectors that they could use to test images. If I made a CGI that did this I could get it hosted for free and I think it would be valuable to a lot of collectors who are currently intimidated by the threat of counterfeits (even though they areally are not that common, even on eBay).

Many thanks for any advice you might have to offer.

In reply to comparing two images and detecting differences by moof1138

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-23 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found