Ask Your Question

Revision history [back]

recognizing which card from 52

If you have ever seen the bridge column in the daily newspaper and wanted to deal it out, you were likely put off by the need to arrange a shuffled deck in the proper order. To reduce that step I want to hold each card, one at a time, in front of a digital camera connected to a PC, at a known distance and orientation, and for the PC to tell me where the card goes in the newspaper's deck after I have been prompted to type in the newspaper's hand in the order North's spades, North's hearts, etc.

My search for accomplishing this has suggested opencv for sure, and surf possibly. Can anyone confirm my suspicions and suggest more details, please?

The questions I have read regarding opencv which come close to this question, seem to be looking for objects somewhere in an image, but I want to make a match with one of 52 standard images.

My problem is a lot like when on the TV shows like CSI they try to match a perpetrator's face against a huge database of photos to identify the criminal, but here there are just 52 cards in the database. I don't know if opencv will work for this matching task and if it will, what are the features of opencv to apply?