How alokshukla92/rpsls_bbt works
Project type and purpose
• This is a standalone desktop game application written in Python that uses a camera for gesture recognition (rock-paper-scissors-lizard-Spock).
• It combines a Kivy-based GUI (frontend.py + RPSLS.kv), a TensorFlow/Keras model (rock-paper-scissors-model3.h5), OpenCV for video capture, and game-logic in play.py.
File structure
• Top-level files:
• README.md – setup instructions
• requirements.txt – Python dependencies (Kivy, OpenCV, TensorFlow, etc.)
• RPSLS/ directory:
• frontend.py & RPSLS.kv – defines the GUI view and controllers
• play.py – core game loop: grab frames, run ML model, decide winner
• rock-paper-scissors-model3.h5 – pretrained gesture-classification model
• frontend.spec – PyInstaller spec for packaging
README for additional insights
• Dependencies installation: pip install -r requirements.txt
• About toggling between default camera (0) and external (1) in play.py.
• “Run the frontend.py file” to start the app.