Skip to content

Nilabhro29/Stone-paper-and-scissors-model-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rock-paper-scissors

An AI to play the Rock Paper Scissors game

Requirements

  • Python 3
  • Keras
  • Tensorflow
  • OpenCV

Set up instructions

  1. Clone the repo.

$ cd rock-paper-scissors


2. Install the dependencies
```sh
$ pip install -r requirements.txt
  1. Gather Images for each gesture (rock, paper and scissors and None):
$ python3 gather_images.py rock 200

$ python gather_images.py paper 200 $python gather_images.py scissors 200 $python gather_images.py none 200 (*one of the most important steps where no hand gesture is shown) 4. 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

About

AI based stone-paper-scissors game using tensor flow, keras, Open-CV and coded in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages