Skip to content

JAMNESIA/Webcam_RockPaperScissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors trough your webcam!

I made this project for the minor AI at Avans Hogeschool Breda. The game is made with python and the library OpenCV. It uses a CNN to detect the hand gestures. The CNN was made with pytorch and trained with the Rock Paper Scissors Dataset.

Installation

Run the notebook and train the model. Move the file best_model.pt to the app folder.

Go to the app folder.

cd app

Install the requirements.

pip install -r requirements.txt

Run the app.

python rock_paper_scissors.py

Usage

When you run the app you will see a window with the webcam feed. You can press the spacebar to take a picture. The CNN will predict the gesture and show the result in the window. You can press the spacebar again to take another picture. You can press the q key to close the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published