Skip to content

bravesirrobin358/Sweatris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt Text

Sweatris

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!


Features

🎮 Gameplay

  • Classic Tetris mechanics enhanced with move recommendation algorithms to avoid disadvantageous outcomes.
  • Real-time interactivity using your body movements to control the game.

📸 Object Detection

  • 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.

🖥️ Architecture

  • 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.

💪 Fitness Benefits

  • Get a workout while playing your favorite game.
  • Improve coordination and reflexes through dynamic movements.
  • A fun alternative to traditional exercise routines.

Usage

  1. Install the requirements using requirements.txt
  2. Run "run.py"
  3. Open the Streamlit app in your browser.
  4. Allow camera access.
  5. Follow the on-screen instructions to start the game.
  6. Move your body to control Tetris pieces and enjoy your workout!

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages