In this project, I will learn how to create a Rock Paper Scissor game using Computer Vision. I will use hand tracking to find the move of the player and generate a random move for the AI.
- Clone this repository on your computer
https://github.com/paveldat/rock_paper_scissor.git
- Install all the requirements
run libraries.bat
orpip install -r requirements.txt
- Run the program
python main.py
You might face issue with webcam not showing and you get errors.
To solve it just change the value in this line (for example to 1
).
cap = cv2.VideoCapture(0)
Increment this number until you see your webcam.
Press s
to start the game