Skip to content

jvkamnani/Rock_Paper_Scissor

Repository files navigation

Rock Paper Scissors Game via Webcam(Using resnet50 architecture)

Overview

The following code is a rock paper scissors game that can be played with your webcam. The object detection is done by the resent50 model(parts of the weights are frozen) combined with a fully connected layer.

How to use the code

First Install the weights for the neural network from this link and put in the current repository directory.

Then Run

python play.py

Demo

Datasets

Train Data

Validation Data

Depenendencies

    -numpy
    -tensorflow
    -opencv
    -imutils
    -shutil

Training with your Own Data

To train with your own data put the data in the training and validation folder and then type.

python train.py

Generating data from webcam

To generate data using the webcam run get_data_from_webcam.py and follow the instructions on the screen.

python get_data_from_webcam.py

Move and Split Data

To move the data from the webcam folder run move.py. It put's 90% of the data into the training folder and 10% into the validation folder.

python move.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages