Poker Hand Detector simplifies the understanding of poker hands for beginners worldwide. Leveraging computer vision, it accurately analyzes card arrangements. With a dataset sourced from roboflow.com featuring over 500 card images, the project ensures comprehensive coverage.
-
State-of-the-Art Object Detection: Powered by the YOLOv8 model, the detector achieves an impressive 98% accuracy in object detection. This state-of-the-art architecture enables precise identification of poker hands, enhancing the user experience.
-
Comprehensive Dataset: Utilizing a dataset sourced from roboflow.com, featuring over 500 card images, ensures comprehensive coverage of various card combinations and scenarios.
-
User-Friendly Interface: Deployed on Flask, the Poker Hand Detector offers a user-friendly interface for seamless interaction. It enables users to effortlessly assess card combinations and determine winning probabilities, thereby facilitating informed decision-making during gameplay.
- CV
- CvZone
- Ultralytics
- math
- Numpy
- Download the dataset
- Modify the data.yaml file from dataset according to needs.
- Apply the YOLOV8 from Ultralytics on the dataset (use Google Colab if GPU is not available)
- The file name with best.pt will be created on the local machine
- Download the best.pt file
- Make a new Poker-Hand-Detector.py file in any offline IDE.
- Upload this best.pt file and do the same coding as in Poker-Hand-Detector.py
- Make a new file PokerHandFunction.py for defining the roles of the Poker Hand
- Get this file in the Main file that is Poker-Hand-Detector.py
- Apply the roles file and .pt file to get results.
- Lastly, the results will shock you.
- "KH", "AH", "QH", "JH", "10H" (Royal Flush)
- "QC", "JC", "10C", "9C", "8C" (Straight Flush)
- "5C", "5S", "5H", "5D", "QH" (Four of a Kind)
- "2H", "2D", "2S", "10H", "10C" (Full House)
- "2D", "KD", "7D", "6D", "5D" (Flush)
- "JC", "10H", "9C", "8C", "7D" (Straight)
- "10H", "10C", "10D", "2D", "5S" (Three of a Kind)
- "KD", "KH", "5C", "5S", "6D" (Two Pair)
- "2D", "2S", "9C", "KD", "10C" (Pair)
- "KD", "5H", "2D", "10C", "JH" (High Card)
Poker Hand Detector offers a valuable tool for beginners to enhance their understanding of poker hands through visual analysis. By leveraging state-of-the-art technology and a comprehensive dataset, this project provides users with a reliable and intuitive platform for assessing card combinations and making informed decisions during gameplay. With its user-friendly interface and precise detection capabilities, Poker Hand Detector aims to empower users in mastering the complexities of poker hands.