Skip to content

TBytes404/Rock-Paper-Scissors-Vision

Repository files navigation

Rock ✊ Paper 🖐️ Scissors ✌️

rock paper scissor

Multiplayer Rock Paper Scissors Game using Computer Vision and WebRTC.

Play the Game

QR Link

  1. Visit rps-21b02a.gitlab.io to play
  2. Click Share & Share the copied URL with your friends
  3. The other Player must visit the URL you Shared and click Join
  4. You can start Playing by showing rock-paper-scissors on the Camera.

Model Training

Requirements

  1. Python Version: 3.9
  2. mediapipe-model-maker
pip install mediapipe-model-maker
  1. rock paper scissors dataset
wget https://storage.googleapis.com/mediapipe-tasks/gesture_recognizer/rps_data_sample.zip
unzip rps_data_sample.zip

Steps

  1. Train the model locally
python train.py
  1. Copy the trained model to the public/ directory
cp exported_model/gesture_recognizer.task public/
  1. Test the model on the browser
yarn && yarn dev

Open http://localhost:5173.

About

Multiplayer Rock Paper Scissors Game using Computer Vision and WebRTC.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors