Welcome to Sweatris a Fitness-Themed Interactive Tetris Game, a web-based application that combines physical activity and gaming for a fun, engaging workout experience. Using object detection and an intelligent algorithm for move recommendations, this project turns your movements into game controls, allowing you to play Tetris while staying active!
- Classic Tetris mechanics enhanced with move recommendation algorithms to avoid disadvantageous outcomes.
- Real-time interactivity using your body movements to control the game.
- Integrated live camera feed within the Streamlit app.
- Object detection powered by OpenCV and YOLO to track user movements and translate them into game actions.
- Frontend: Streamlit handles the interactive user interface and integrates the live video feed.
- Backend: PyGame runs the Tetris game logic, sending frame updates as JPEG-encoded strings to the frontend for display.
- Get a workout while playing your favorite game.
- Improve coordination and reflexes through dynamic movements.
- A fun alternative to traditional exercise routines.
- Install the requirements using requirements.txt
- Run "run.py"
- Open the Streamlit app in your browser.
- Allow camera access.
- Follow the on-screen instructions to start the game.
- Move your body to control Tetris pieces and enjoy your workout!
This project is licensed under the MIT License.