How devanandukkt/ai_powered_fitness_coach works
AI_Fit is a Django fitness application for account/profile management and webcam-based exercise tracking. Users register or sign in, choose push-ups, sit-ups, or squats, stream frames through a session, receive rep/form feedback, and save workout metrics for dashboard summaries. Views coordinate the workflow and persist profile/workout records; detector classes handle pose analysis. The URL, view, detector, form, and model excerpts support the principal links. Other account actions and UI capabilities are visible in routes/tree but their detailed implementation is only partly sampled.
Main entry points: views.py Request Views · urls.py Web Routes · detectors.py Pose and Rep Analysis · models.py Profile Records
Components 17
Accounts and Profiles
- Web Routes
myapp/urls.py - Request Views
myapp/views.py - Account Forms
myapp/forms.py - Account Pages
myapp/templates/accounts
Workout Tracking
- Workout Dashboard
myapp/templates/accounts/home.html - Exercise Page
myapp/templates/accounts/exercise.html - Session Control
myapp/views.py - Frame Processing
myapp/views.py - Detector Factory
myapp/exercise_model/detectors.py - Pose and Rep Analysis
myapp/exercise_model/detectors.py - Pose Model Asset
myapp/pose_landmarker_lite.task - Session Recordings
static/recordings
Application Data
- Profile Records
myapp/models.py - Workout Records
myapp/models.py - SQLite Database
db.sqlite3
Other components
- User
- SMTP Email
Connections 16
- User → Web Routes: requests pages
myapp/urls.py - Web Routes → Request Views: routes requests
myapp/urls.py - Request Views → Account Forms: validates input
myapp/views.py - Request Views → Account Pages: renders pages
- Request Views → Workout Dashboard: renders summary
myapp/views.py - Request Views → Exercise Page: renders exercise
- Request Views → Session Control: starts session
myapp/urls.py - Session Control → Detector Factory: selects detector
myapp/views.py - Frame Processing → Pose and Rep Analysis: processes frames
myapp/views.py - Pose and Rep Analysis → Pose Model Asset: loads pose asset
myapp/exercise_model/detectors.py - Frame Processing → Session Recordings: writes recording
myapp/views.py - Request Views → Profile Records: updates profile
myapp/views.py - Request Views → Workout Records: saves and summarizes
myapp/views.py - Profile Records → SQLite Database: persists
- Workout Records → SQLite Database: persists
- Request Views → SMTP Email: sends reset email