June 25, 2025
Fixed some bot problems like alto folding, and gesture tracking problems, thats pretty much a video of how it is working ;)))))))))))
in this session i:
Solidified Poker Logic
– Swapped in a rock-solid hand evaluator (utils.py) to correctly rank all 10 hand types and handle kickers/tie-breakers
– Patched the showdown routine so winners are properly determined and stacks updated
Gesture-Driven Gameplay
– fixed bugs with MediaPipe hand-tracking to detect 1–5 fingers correctly
Upgraded Visuals
– Replaced plain Labels with a Canvas rendering:
• black-felt table background (table.png)
• Card face and back images drawn on the board and hands
• Live status, pot, and stack overlays
Round Summary Window
– Introduced a floating “Game Summary” list
– Logs each round: board, player & bot hands, winner, and pot won
– Automatically increments round counter and keeps a running history
Next Steps (Ideas)
Polish animations (fade-in cards, chip movements)
Add sound effects for deals and wins
Expand bot AI beyond “always call”
Implement betting limits and blinds
implement voice recognition option to use isntead of gesture recognition.
Dev Log – Poker Game Project (Hand Gesture Integration)
Date: 2025-06-27
What was accomplished:
Fixed Import and Module Issues:
Resolved problems with Python imports and project structure, ensuring all modules and packages (including gestures, game, and ui) were correctly recognized.
Enabled Webcam and Hand Tracking:
Integrated MediaPipe and OpenCV to open the webcam and perform real-time hand tracking.
Implemented a function to count the number of fingers raised using hand landmarks.
Gesture-Based Poker Actions:
Mapped the number of fingers held up to poker actions (fold, call, raise, all-in, show).
Added logic so that an action is only triggered if the same gesture is held for 4 seconds.
If the gesture changes before 4 seconds, the countdown resets and no action is taken.
User Feedback in Webcam Window:
Displayed the current number of fingers up and a seconds counter on the webcam feed, giving clear feedback to the user.
Multi-Window Integration:
Ensured the poker game window, rules window, and webcam window all open and run simultaneously using multiprocessing and threading.
Challenges & Solutions:
ModuleNotFound and Import Errors:
Fixed by restructuring folders and correcting import statements.
Webcam Not Displaying:
Solved by ensuring the OpenCV display loop was correctly implemented.
Actions Triggering Too Quickly:
Added a timer and state logic to require a gesture to be held for 4 seconds before triggering an action.
Next Steps:
Further refine gesture recognition for more robust gameplay.
Improve UI/UX for all windows.
Add more detailed logging and error handling.
In this project i decided to create a Texas Hold'em Poker game in which the player take his actions ( Fold, Call and raise for example ) with gestures such as raising his hand and one finger up. The game is played against a bot. ---------------------------------------------------------------------------------------------- I made it because i really like the game of poker, and i wanted to study how to use media pipe to do hand tracking :) i hope you like it >:)))))))))) ---------------------------------------------------------------------------------------------- PS: there is no more ps akskdkaskda mb twin
This was widely regarded as a great move by everyone.