wsy182
|
4485cbf702
|
Refactor into modular app structure
Split monolithic files into focused modules:
- app/core: settings, logging, lifecycle
- app/signaling: websocket server, ICE parser, message models
- app/webrtc: peer session, video receiver, frame source
- app/vision: pose landmarker wrapper, model config, pose types
- app/exercises/dead_bug: detector, metrics, rules, state machine, types
- app/rendering: skeleton renderer, status overlay, window display
- app/audio: rep announcer
- app/diagnostics: perf timer, crash handler
- configs: environment-based settings
- tests: unit tests for rules, state machine, ICE parser
- run.py: entry point
|
2026-06-10 10:14:43 +08:00 |
|
wsy182
|
02d7c48557
|
服务端改用 aiortc 实现 WebRTC 视频流接收
- handle_client.py: 替换原始 JPEG WebSocket 为 aiortc RTCPeerConnection
- 实现 SDP offer/answer 协商和 ICE candidate 交换
- 通过 track.recv() 接收 RTP 视频帧并 cv2.imshow 显示
- 服务端口改为 8765 匹配 Android 端
- 新增 requirements.txt: aiortc, websockets, opencv-python 等
- .gitignore 添加 __pycache__
|
2026-06-01 23:51:30 +08:00 |
|