Page 1 of 1

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

Posted: Tue Oct 10, 2017 11:35 pm
by EdjeElectronics
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!

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

Posted: Wed Oct 11, 2017 11:21 am
by OutoftheBOTS
Cool project :)
it is another project that I will have to add to my very long bucket list of robots to build

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

Posted: Mon Mar 25, 2019 12:59 pm
by Grampafrog71
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?