@@ -14,6 +14,7 @@ Eaglearn adalah sistem monitoring fokus real-time untuk aktivitas belajar/kerja
1414- Head pose (yaw/pitch/roll) + rule-based stress/confusion/drowsiness
1515- Focus score + time tracking (focused/unfocused time)
1616- Calibration gaze (wizard) + kompensasi head pose sederhana
17+ - Opsi pembalikan sumbu Y gaze (` eye_tracking.invert_y ` ) untuk device tertentu
1718- Logging metrik sesi (JSONL) + tombol “Simpan Log”
1819- Mode pause (privacy)
1920
@@ -43,6 +44,12 @@ Skenario pre-release beta memakai `.venv_gpu` untuk menghindari mismatch environ
4344Aplikasi berjalan di:
4445- Web: ` http://localhost:8080 `
4546
47+ Alternatif minimal:
48+
49+ ``` powershell
50+ .\run_app.bat
51+ ```
52+
4653## Instalasi Lengkap
4754
4855Lihat [ INSTALL.md] ( file:///d:/Eaglearn-Project/INSTALL.md ) .
@@ -52,6 +59,10 @@ Lihat [INSTALL.md](file:///d:/Eaglearn-Project/INSTALL.md).
5259- Konfigurasi utama: [ config.yaml] ( file:///d:/Eaglearn-Project/config.yaml )
5360- Contoh env: [ .env.example] ( file:///d:/Eaglearn-Project/.env.example )
5461
62+ Pengaturan penting:
63+ - Jika arah top/bottom terbalik: ubah ` eye_tracking.invert_y ` (default: ` true ` )
64+ - Threshold fokus: ` focus.focused_threshold ` dan ` focus.distracted_threshold `
65+
5566## API (Ringkas)
5667
5768- ` POST /api/session/start `
@@ -64,6 +75,15 @@ WebSocket:
6475- ` state_update `
6576- ` frame_update `
6677
78+ ## Logging
79+
80+ File yang disimpan di folder ` logs/ ` :
81+ - ` app_YYYYMMDD.log ` : log aplikasi Flask (rotating)
82+ - ` metrics_<session_id>.jsonl ` : snapshot metrik per ~ 1 detik (bisa diunduh via ` GET /api/logs/metrics/download ` )
83+
84+ File non-log yang relevan:
85+ - ` calibrations/<user_id>.json ` : data kalibrasi gaze
86+
6787## Panduan Darurat (Troubleshooting Flow)
6888
6989``` text
@@ -93,62 +113,25 @@ Dokumen operasional VLM: [docs/VLM_OPERATIONAL.md](file:///d:/Eaglearn-Project/d
93113- TensorFlow GPU di Windows sering tidak tersedia (gpus: ` [] ` ), sementara PyTorch CUDA tetap bisa aktif.
94114- VLM bersifat opsional dan membutuhkan dependency tambahan (` transformers ` ).
95115
96- ## Kontribusi
97-
98- - PR dan issue diterima. Sertakan langkah reproduksi, log, dan spesifikasi perangkat.
99-
100- ## Lisensi
101-
102- Lihat [ LICENSE] ( file:///d:/Eaglearn-Project/LICENSE ) .
103- - Check confidence threshold in config
104- - See logs for error messages
105-
106- ## Requirements
107-
108- ### Core Dependencies
109-
110- - Python 3.11+
111- - Flask 3.0+
112- - Flask-SocketIO 5.3+
113- - OpenCV 4.8+
114- - MediaPipe 0.10+
115-
116- ### ML Dependencies
117-
118- - DeepFace 0.0.79+ (emotion detection)
119- - TensorFlow 2.15+ (DeepFace backend)
120- - PyTorch + torchvision (EfficientNet)
121-
122- ### Optional
123-
124- - CUDA-capable GPU (for acceleration)
125- - POSTER++ weights (for 90% accuracy emotion detection)
126-
127116## Development
128117
129118### Running Tests
130119
131120``` bash
132- pytest tests/
121+ pytest -q
133122```
134123
135124### Code Quality
136125
137126``` bash
138- # Format code
139- black app.py mediapipe_processors/
140-
141- # Lint code
142- pylint app.py
127+ ruff check .
128+ mypy app.py improved_webcam_processor.py state_manager.py mediapipe_processors/face_mesh_processor.py
143129```
144130
145- ## License
131+ ## Kontribusi
146132
147- See LICENSE file .
133+ - PR dan issue diterima. Sertakan langkah reproduksi, log, dan spesifikasi perangkat .
148134
149- ## Acknowledgments
135+ ## Lisensi
150136
151- - [ MediaPipe] ( https://google.github.io/mediapipe/ ) - Face & pose detection
152- - [ DeepFace] ( https://github.com/serengil/deepface ) - Emotion recognition
153- - [ PyTorch] ( https://pytorch.org/ ) - EfficientNet models
154- - [ POSTER++] ( https://github.com/AnnamTk/POSTER ) - SOTA emotion detection (optional)
137+ Lihat [ LICENSE] ( file:///d:/Eaglearn-Project/LICENSE ) .
0 commit comments