• CardRecog Recognize Play Cards 1
  • CardRecog Recognize Play Cards 2
  • CardRecog Recognize Play Cards 3
  • CardRecog Recognize Play Cards 4

CardRecog Recognize Play Cards

CardRecog is an app that recognizes playing cards from a standard deck. There are five modes that can be chosen in the settings; multiple, single, update, pre-flop and raw. You touch the screen to start recognition, hold the camera still, put some cards in front, and wait. You stay in recognition mode until you touch the screen again to return to idle mode. Once recognition occurs the recognized cards are displayed and sometimes spoken.

In raw mode recognized cards are shown without filtering and in real-time. In other modes once recognition occurs no further cards will be recognized unless you restart the recognition process. There are two ways to do this; the easiest is remove all cards from view for around 1/2 second, and then place the cards to be recognized in front of the camera. The second way is to touch the screen to stop recognition and go to idle, and touch the screen again to start recognition. The file http://www.kgrothapps.com/files/cardrecog-example.pdf has some example hands. If you do not own a set of Bicycle playing cards print the page and try recognition of the hands.

When you start recognition the camera focuses (if possible), so if recognition fails you should touch the screen to stop, and then touch again to restart recognition to be sure you have an in focus image.You can also tilt the cards slightly to see if that improves results. If recognition fails for all cards then try setting the ISO (if it is in the settings) to the highest possible value, instead of the default automatic.

For devices with auto focus (i.e. Nexus line) recognition works well even for a large number of cards. However, you always need an in focus image, and reasonably bright lighting. For lower end devices recognition will work well in single card mode, but fewer cards are recognized successfully in multiple card mode. But even for low end devices (including those with no auto focus) recognition works well in single card mode.

In multiple card mode if the bottom of a card is visible that card is still only recognized once. In single card mode we look for the same card number and suit in both the top and bottom of the card. So both must be visible before the card is recognized in single card mode, but only one is required for recognition in multiple card mode. In single card mode if multiple cards are present recognition fails, you need exactly one card. In update mode we can add/remove a single card at a time to a hand of cards. In raw mode the unfiltered results are shown and you do not need to repeatedly restart recognition. The current mode is shown in the action bar text.

In the long run I will integrate this app with different card games. A simple integration is pre-flop mode where we show the percentage odds for the first two cards in hold em poker. I also perform standard blackjack card counting (can force display of count in the settings) to demonstrate another card application.

Most card recognition systems (i.e. the Blackjack counting detection systems) look for the card outline. In my method I do not require the outline of the cards, instead I only look at the card number and the associated suit. So as long as the suit and number are visible recognition will occur successfully; the rest of the card can be occluded. Skip to 1 minute, 23 seconds of the video below and you will see successful recognition of cards in the typical "fan" shape used in card games. No other system that I know of can perform multi-card recognition as accurately and quickly.

The app is real time in the sense that it is recognizing a number of times a second, as shown in raw mode. In the other modes the results are grouped to achieve a consensus, which is why it takes one or two seconds for a recognition result. I believe this is the best card recognition system for something like Google glass where you are looking at the cards in someone's hands. I welcome any comments, but remember this is not a final product, it is a technology demo.

Category : Card

Related searches

Reviews (8)

A. G. u. Dec 13, 2018     

Great Job, I don't really see the raw value of this app, but I clearly see many potential use cases. Thus I really would like to work on project based on this. I would like to add recognition of other international card format (I'm french by the way). And also calculation for end of game, tarot belote ... I am a developper, and I'd like to know how you'd like to collaborate or share to add features. Thank you.

Mar. R. Dec 28, 2019     

Top. I tested the app and it understood all the cards. I'd like to use this technology for implementing some games cards using physical cards, human against a bot.

A. G. u. Jan 24, 2019     

Would it be possible to have the card result be sent via http or sms? Use case: you scan a card with the app, but instead of a visual input, you send the scan result to an sms number or http api.

Pio. M. Aug 2, 2017     

Works quite great. But it lacks some kind of debug mode, where you can see recognized bounding boxes.

Jac. m. Apr 3, 2018     

As a magician I can see this developing into a great Magic app that could have a purchase price...

Koo. D. Jan 26, 2015     

I have been looking for an app like this! Thank you, dev!

Rob. W. Oct 30, 2014     

Very cool demo of playing card image recognition

Md. S. Feb 22, 2020     

Thinko