https://github.com/ianjure/blackjack-card-counter
A computer vision model designed to beat blackjack.
https://github.com/ianjure/blackjack-card-counter
blackjack computer-vision yolov8
Last synced: 7 months ago
JSON representation
A computer vision model designed to beat blackjack.
- Host: GitHub
- URL: https://github.com/ianjure/blackjack-card-counter
- Owner: ianjure
- Created: 2024-07-13T02:27:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-26T06:39:47.000Z (about 1 year ago)
- Last Synced: 2025-01-26T17:37:21.901Z (9 months ago)
- Topics: blackjack, computer-vision, yolov8
- Language: Python
- Homepage:
- Size: 20.6 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blackjack Card Counter
Blackjack is the most widely played casino banking game in the world. The object of the game is to get closer to 21 than the dealer without going over 21. If a hand goes over 21, it is called a “bust” or “break” and the wager is lost.
[Read more.](https://en.wikipedia.org/wiki/Blackjack)Card counting is a technique in which players can keep track of the overall value of the cards dealt and the ones left in the shoe in order to gain a slight advantage. This is most often used in blackjack, but can also be beneficial in other casino card games. Hi-Low is one such card counting system that is very popular and simple. [Read more.](https://www.casinoguardian.co.uk/blackjack/hi-lo-blackjack-system/)
This project aims to replicate this strategy using computer vision.
## Demo
https://github.com/user-attachments/assets/2519ae17-be0b-48f4-8ab6-8167bb1f5f3a## Model
The computer vision model used in this project is [YOLOV8s](https://github.com/ultralytics/ultralytics), which is custom trained with this [playing card dataset](https://universe.roboflow.com/augmented-startups/playing-cards-ow27d/dataset/3) from Roboflow.
**This project is inspired by:** [Poker Hand Detector](https://youtu.be/WgPbbWmnXJ8?si=L3i7tUnto4e-ugpT&t=11180) & [21 (The Movie)](https://en.wikipedia.org/wiki/21_(2008_film))