Virtual game of rock paper scissors, using a camera!
This repository contains the source code for training the feed-forward neural network using the Encog library, as well as the GUI as seen above.
First clone the repository using:
git clone https://github.com/maheratashfaraz/RockPaperScissors.git
Gradle is used to install most of the dependencies, however OpenCV is also required.
To install gradle, follow the guide here.
Once gradle is installed, in the project directory run
gradle build clean.
To install openCV, this depends on your IDE. For basic install instructions for eclipse follow here.
To train a new neural network, first set the correct file paths for the training data in Train.java. Running this script will train a new neural network for you to use in for recognition.
To run the GUI, run the GUIMain.java. If you changed the name of the neural network file, you must change the file path at the top of the class.