All Projects → satinder147 → stone_paper_scissor_defeator_using_opencv_keras

satinder147 / stone_paper_scissor_defeator_using_opencv_keras

Licence: MIT license
In this repository i tried to replicate a cool project by a japanese scientist who made a machine which had 100 % accuracy in defeating humans in the game of stone-paper and scissors

Programming Languages

python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to stone paper scissor defeator using opencv keras

Polysnap
A work in progress polygon operations library with integer snap-rounding
Stars: ✭ 14 (-36.36%)
Mutual labels:  fast, robust
STYLER
Official repository of STYLER: Style Factor Modeling with Rapidity and Robustness via Speech Decomposition for Expressive and Controllable Neural Text to Speech, INTERSPEECH 2021
Stars: ✭ 105 (+377.27%)
Mutual labels:  fast, robust
Offline-Signature-Verification
Implemented two papers for offline signature verification. Both use different deep learning techniques - Convolutional network and Siamese network.
Stars: ✭ 24 (+9.09%)
Mutual labels:  keras-neural-networks
DeepLearningCode
深度学习相关代码
Stars: ✭ 21 (-4.55%)
Mutual labels:  keras-neural-networks
Weather-Forecast
Weather Forecast is a simple app that shows you a weather. It comes with your standard features like your daily and hourly forecast along with access to additional information
Stars: ✭ 59 (+168.18%)
Mutual labels:  robust
rust-sthash
Very fast cryptographic hashing for large messages.
Stars: ✭ 61 (+177.27%)
Mutual labels:  fast
core
🚀Fast, 💎Lightweight Angular alternative with the same modern API thats compile directly to WebComponents
Stars: ✭ 49 (+122.73%)
Mutual labels:  fast
rogme
Robust Graphical Methods For Group Comparisons
Stars: ✭ 69 (+213.64%)
Mutual labels:  robust
react-redux-fork
React Redux, but just up to 98x faster. (Forked from 6.0) Make React Redux great again!
Stars: ✭ 62 (+181.82%)
Mutual labels:  fast
ios-application
A native, lightweight and secure one-time-password (OTP) client built for iOS; Raivo OTP!
Stars: ✭ 581 (+2540.91%)
Mutual labels:  fast
greptile
Fast grep implementation in python, with recursive search and replace
Stars: ✭ 17 (-22.73%)
Mutual labels:  fast
BaseDevelop
an android project for now fashion open source framework
Stars: ✭ 24 (+9.09%)
Mutual labels:  fast
httpit
A rapid http(s) benchmark tool written in Go
Stars: ✭ 156 (+609.09%)
Mutual labels:  fast
BeLibnids
It is a platform to use multiprocess to combine dpdk and libnids together to support analyse packets in 10G port.
Stars: ✭ 36 (+63.64%)
Mutual labels:  fast
hyperlink
Very fast link checker for CI.
Stars: ✭ 85 (+286.36%)
Mutual labels:  fast
cstruct-go
a fast c-style struct packer & unpacker for golang
Stars: ✭ 28 (+27.27%)
Mutual labels:  fast
tinypool
🧵 A minimal and tiny Node.js Worker Thread Pool implementation (38KB)
Stars: ✭ 452 (+1954.55%)
Mutual labels:  fast
Deep-Learning-Coursera
Projects from the Deep Learning Specialization from deeplearning.ai provided by Coursera
Stars: ✭ 123 (+459.09%)
Mutual labels:  keras-neural-networks
RobustGNSS
Robust GNSS Processing With Factor Graphs
Stars: ✭ 98 (+345.45%)
Mutual labels:  robust
DiffEqPhysics.jl
A library for building differential equations arising from physical problems for physics-informed and scientific machine learning (SciML)
Stars: ✭ 46 (+109.09%)
Mutual labels:  fast

stone_paper_scissor_defeator_using_opencv_keras

In this repository i tried to replicate a cool project by a japanese scientist who made a machine which had 100 % accuracy in defeating humans in the game of stone-paper and scissors using convolutional neural networks and computer vision i have used opencv for computer vision and keras for CNNS link to video tutorial https://www.youtube.com/watch?v=ecSDKWkktOw

Requirements

  1. Python 3.x
  2. Tensorflow 1.5
  3. Keras
  4. OpenCV 3.4(for loading,resizing images)
  5. h5py(for saving trained model)
  6. pyttsx3
  7. A good grasp over convolutional neural networks. For online resources refer to standford cs231n, deeplearning.ai on coursera or cs231n by standford university
  8. A good CPU (preferably with a GPU).
  9. Time
  10. datetime
  11. Patience.... A lot of it.

Installing the requirements

  1. Start your terminal of cmd depending on your os.
  2. If you have a NVidia GPU then make sure you have the prerequisites for Tensorflow GPU installation (Refer to official site). Then use this commmand
pip install -r requirements_gpu.txt
  1. In case you do not have a GPU then use this command
pip install -r requirements_cpu.txt

Steps for making your own trainig data

Place the camera and don't move it, As soon as the camera starts, perform only one gesture at a time, the numberred images of this gesture will be stored in the root directory(you can modify the code append the path to which ever directory you want) Gather data for all the classes in the similar way

Training your own classifier

I used my own laptop for training puproses but you can use aws, google collab, azure ........ For training
1)Modify the path of the stone,paper and scissor folder in hand_gesture_creating_model.py
2)Run hand_gesture_creating_model.py
After the model is trained you are ready to run it.

Running the trained model

1)Modify the path to the model file in predicting.py
2)Run predicting.py

Congratulations you just made your very own MAN defeating machine.

Liked it

Give the repository a star if you really liked it.
if you have any doubts, you can comment them under my youtube video or you can post your doubts on my facebook page REACTOR SCIENCE
Thank you

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].