Skip to content

DhanushpathiPrakash/Hand-Cricket-Using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hand-Cricket Premier League - HPL

Hand Cricket is a fascinating game that we used to play during our childhood days. Having the vibes of the IPL and World Cup series, we used to daydream about the match while sitting on the backbench. Hand Cricket is an unbeatable game that feeds our imaginations and, makes oneself happy even sitting in a classroom. Having thought of those unforgettable memories and came up with the Desktop version of Hand Cricket.

Tech Stack:

  • Opencv
  • Mediapipe
  • Python

Prerequisites:

1. Install OpenCV Python

  • pip install opencv-python

2. Install Mediapipe

  • pip install mediapipe

Instruction:

  • Clone the HPL from the github and run the HPL.py
  • On the frame 'Press "e" for Even and "o" for Odd', type the character 'e' or 'o' to choose Even or Odd.
  • You can face any number from 0 to 5 against the camera. Meanwhile, system will generate a number. If the summation of the your number and system's number equalise( Either Even or Odd) your toss, you will win the toss else system will decide to bat or bowl.
  • If you own the toss, system ask for bat or bowl press 'b' for batting or 'w' for bowling.
  • While timer counts, show you hand in front of the camera to detect and count the finger to generate the score.
  • The batting runs will display on the left-bottom corner of the frame .The bowl run will display on rigth-top corner of the screen.
  • If the bat and bowl numbers are same, one who batting will out.

Do's 👍

Don'ts 👎

🤜 Use the number from 1 to 5 🤜 Don't show 6
🤜 Show the front side of user hand 🤜 Don't show the back side of the hand
🤜 Use one hand and right hand is much prefered to play 🤜 Don't use two hands
🤜 Show your hand inside the frame 🤜 If you don't show the hand, it will wait for you
🤜 Play in bright area 🤜 Avoid dark places

Finger Pose Image:

Fingers position

Demo Video:

demo.vidoe.mp4

For More Details:

Suntrakanesh Subramanian LinkedIn

Dhanushpathi Prakash LinkedIn

Releases

No releases published

Packages

No packages published

Languages