- Opencv
- Mediapipe
- Python
pip install opencv-python
pip install mediapipe
- 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 |