How deepanshumody/physiocoach works
PhysioCoach turns live camera video into parallel AI coaching and pose-based exercise metrics, presenting cues and progress in the browser. The README documents the main streaming and analysis workflow; source excerpts and the SOURCE INDEX confirm the server’s use of the processing, session, monitoring, and RTSP modules. Some server routing details and browser/server event wiring are not shown, so the graph limits those connections to documented relationships.
Main entry points: server.py WebRTC server · index.html PhysioCoach UI · video_processor.py Frame pipeline · vlm_service.py Coaching service
Components 13
Browser experience
- PhysioCoach UI
src/live_vlm_webui/static/index.html
Streaming runtime
- WebRTC server
src/live_vlm_webui/server.py - Frame pipeline
src/live_vlm_webui/video_processor.py - RTSP track
src/live_vlm_webui/rtsp_track.py
Therapy analysis
- Exercise library
src/live_vlm_webui/exercise_library.py - Pose, reps and ROM
src/live_vlm_webui/pose_detector.py - Coaching service
src/live_vlm_webui/vlm_service.py
State and monitoring
- Session manager
src/live_vlm_webui/session_manager.py - Session database
- System monitor
src/live_vlm_webui/gpu_monitor.py
Other components
- Patient
- Webcam feed
- Local vision model
Connections 14
- Patient → PhysioCoach UI: selects exercise
README.md - Webcam feed → WebRTC server: streams video
README.md - PhysioCoach UI → WebRTC server: starts coaching
README.md - WebRTC server → Frame pipeline: routes frames
README.md - WebRTC server → RTSP track: starts RTSP
src/live_vlm_webui/server.py - Frame pipeline → Pose, reps and ROM: processes frames
src/live_vlm_webui/video_processor.py - Frame pipeline → Coaching service: submits frames
src/live_vlm_webui/video_processor.py - Coaching service → Local vision model: requests analysis
README.md - WebRTC server → Exercise library: loads exercise
src/live_vlm_webui/server.py - WebRTC server → Session manager: manages sessions
src/live_vlm_webui/server.py - Session manager → Session database: reads and writes
src/live_vlm_webui/session_manager.py - WebRTC server → System monitor: starts monitoring
src/live_vlm_webui/server.py - WebRTC server → PhysioCoach UI: sends feedback
README.md - PhysioCoach UI → Patient: speaks cues
README.md