EdjeElectronics
Posts: 9
Joined: Mon Mar 13, 2017 1:55 am

I made a Raspberry Pi + PiCamera playing card detector! End goal: use it to make a Pi-powered blackjack robot!

Tue Oct 10, 2017 11:35 pm

Hey all! I made a Raspberry Pi-powered card detection program that uses OpenCV-Python to detect and identify cards on a poker table. As cards are dealt in front of the Pi's attached PiCamera, the program processes the image and identifies the cards. I made a video that explains how the card detection algorithm works:

https://www.youtube.com/watch?v=m-QPjO-2IkA

This is the first step in my project to make a blackjack-playing, card-counting robot! It will have cards dealt in front of it on a blackjack table, identify the cards, and use a Hit or Stand lookup table to determine the best play to make. It will also be able to count cards and implement card counting strategies like the "Fab 4" and the "Illustrious 18".

Let me know what you think of the project so far!
Check out my Raspberry Pi projects at www.youtube.com/c/EdjeElectronics !

User avatar
OutoftheBOTS
Posts: 711
Joined: Tue Aug 01, 2017 10:06 am

Re: I made a Raspberry Pi + PiCamera playing card detector! End goal: use it to make a Pi-powered blackjack robot!

Wed Oct 11, 2017 11:21 am

Cool project :)
it is another project that I will have to add to my very long bucket list of robots to build

Grampafrog71
Posts: 2
Joined: Mon Mar 25, 2019 12:55 pm

Re: I made a Raspberry Pi + PiCamera playing card detector! End goal: use it to make a Pi-powered blackjack robot!

Mon Mar 25, 2019 12:59 pm

This is really neat. I was thinking I would learn how to program raspi to make a point counter for hand, foot and toe (canasta variant). And quickly found your links scattered throughout google searches. Is there a way to assign a 'point' value to each card and total up the points?

Return to “Automation, sensing and robotics”