Rock-Paper-Scissors AI with PyGame. Utilize python libraries such as OpenCV, Tensorflow, & Keras. With additional features such as Main Menu & Real-Time Leaderboards. Built as a final project subject.
- Python 3
- Keras
- Tensorflow
- OpenCV
- Clone the repo.
$ git clone https://github.com/karlacahaya/Rock-Paper-Scissors-Game
$ cd rock-paper-scissors
- Install the dependencies
$ pip install -r requirements.txt
- Gather Images for each gesture (rock, paper and scissors and None): In this example, we gather 200 images for the "rock" gesture
$ python3 gather_images.py rock 200
- Train the model
$ python3 train.py
- Test the model on some images
$ python3 test.py <path_to_test_image>
- Play the game with your computer!
$ python3 play.py