Results 1 to 12 of 12

Thread: Card counting robot

  1. #1


    Did you find this post helpful? Yes | No

    Card counting robot

    So I'm an engineering student, and I thought it would be cool to make a card counting robot. Itll keep track of running and true count. Just deal the cards and it'll calculate it for you. I know theres already software for this but I thought it'd be interesting to make my own physical card counter. Thoughts?

    Sent from my SM-G960U using Tapatalk

  2. #2


    Did you find this post helpful? Yes | No
    kcgrade095,

    How will the robot recognize the cards?

    Dog Hand

  3. #3


    Did you find this post helpful? Yes | No
    Optical Character Recognition software using a raspberry pi camera

    Sent from my SM-G960U using Tapatalk

  4. #4


    Did you find this post helpful? Yes | No
    Bring it into a casino and you'll likely be arrested.

  5. #5


    Did you find this post helpful? Yes | No
    It's not for casino use...? It's for practicing

    Sent from my SM-G960U using Tapatalk

  6. #6


    Did you find this post helpful? Yes | No
    Hi, kc,

    I did something like this a few years ago with a Raspberry Pi Zero, a Pi spy camera and an article of clothing.

    Image recognition is not super hard in the lab with controlled conditions but is much harder in the field.

    Start with a single card. Grab a bitmap image from the camera and save it as grey scale and then re-scale it and search the resulting bitmap for a dark quadrilateral (the shape and size of a single playing card on a table). You should be able to reliably ID a single card's shape since it does not compete with much of anything in a well-framed image of a typical table felt with a card. (Similar issue for two cards placed on top of each other. You can worry about 'skewness' of the image later.)

    Once you have the card identified, then ID and isolate the character blob in the upper left corner of the card using typical OCR techniques. Some testing will tell you, based on your image resolution, a good estimate of the size of the character before you even start looking for it. Once the character was isolated, I used a weighting algorithm that assigned a score to each possible value (2,3,4,5,6,7,8,9,10,J,Q,K,A) based on how well it matched the template (exemplars) and picked the one with the highest score. See,

    https://pdfs.semanticscholar.org/b5a...580d500bcc.pdf

    In the lab, you should be quite accurate. (This was a fun part of the project to code because it's like playing God and creating a thinking machine that makes decisions...)

    Then modify the code to see two cards stacked on top of each other as one unit and locate each character in the upper left corners of the cards and ID them. If the cards are not 'cleanly' stacked, you will have problems here; in the lab, it's doable. This becomes harder as more cards are stacked so you might want to stop at 2 cards in order to keep it moving forward...

    Keeping the RC and calculating the TC is super easy compared to the other issues. Once you have all this, you can go hog wild!

    This is a great project idea and should be a lot of fun. Good luck and stay out of trouble!

    Best,
    SiMi

  7. #7


    Did you find this post helpful? Yes | No
    Hey. You wanna email me and keep in touch if I have any issues?

    Sent from my SM-G960U using Tapatalk

  8. #8
    Senior Member
    Join Date
    Mar 2015
    Posts
    167
    Blog Entries
    1


    Did you find this post helpful? Yes | No
    Hi SiMi,
    How about the card images in the big screen?
    Each card has a fixed position.

    http://www.pulsearena.com/wp-content...t-11.38.59.png

  9. #9


    Did you find this post helpful? Yes | No
    Quote Originally Posted by kcgrade095 View Post
    So I'm an engineering student, and I thought it would be cool to make a card counting robot. Itll keep track of running and true count. Just deal the cards and it'll calculate it for you. I know theres already software for this but I thought it'd be interesting to make my own physical card counter. Thoughts?

    Sent from my SM-G960U using Tapatalk
    In a way, some casinos had a counting robot from 2004 to 2009. They just worked for the casinos. The project is called MindPlay. This is how it works.

    Casinos installed 14 tiny cameras around the chip tray to monitor and record table activities. All chips and cards have RFID. So casinos can easily identify who are counting.

  10. #10


    Did you find this post helpful? Yes | No
    It shouldn't actually be that difficult. Harder in a casino, where you'd need to train the algorithm with angled photos from multiple angles.

  11. #11


    Did you find this post helpful? Yes | No
    Quote Originally Posted by kcgrade095 View Post
    So I'm an engineering student, and I thought it would be cool to make a card counting robot. Itll keep track of running and true count. Just deal the cards and it'll calculate it for you. I know theres already software for this but I thought it'd be interesting to make my own physical card counter. Thoughts?

    Sent from my SM-G960U using Tapatalk
    You put in so much effort just for fun and self satisfaction ? The robot will not able to create profit but the computer bots is totally different story...

  12. #12


    Did you find this post helpful? Yes | No
    Quote Originally Posted by James989 View Post
    You put in so much effort just for fun and self satisfaction ? The robot will not able to create profit but the computer bots is totally different story...
    Dude, this is a self project. Yes this is for fun and self satisfaction.

    Sent from my SM-G960U using Tapatalk

Similar Threads

  1. Accused of card counting without actually counting?
    By lilbucky in forum General Blackjack Forum
    Replies: 45
    Last Post: 03-08-2014, 07:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

About Blackjack: The Forum

BJTF is an advantage player site based on the principles of comity. That is, civil and considerate behavior for the mutual benefit of all involved. The goal of advantage play is the legal extraction of funds from gaming establishments by gaining a mathematic advantage and developing the skills required to use that advantage. To maximize our success, it is important to understand that we are all on the same side. Personal conflicts simply get in the way of our goals.