/rock-paper-scissors

An AI to play the Rock Paper Scissors game

Primary LanguagePython

rock-paper-scissors

visitors

https://youtu.be/0uSA3xyXlwM

An AI to play the Rock Paper Scissors game

Requirements

  • Python 3
  • Keras
  • Tensorflow
  • OpenCV

Set up instructions

  1. Clone the repo.
$ git clone https://github.com/SouravJohar/rock-paper-scissors.git
$ cd rock-paper-scissors
  1. Install the dependencies
$ pip install -r requirements.txt
  1. 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
  1. Train the model
$ python3 train.py
  1. Test the model on some images
$ python3 test.py <path_to_test_image>
  1. Play the game with your computer!
$ python3 play.py