File size: 578 Bytes
d209694
 
afda79c
d209694
afda79c
d209694
afda79c
d209694
f488769
d209694
 
 
 
 
 
f488769
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ui/

OpenCV demo + inference pipelines used by **`main.py`** (FastAPI WebSocket `/ws/video`, latest-frame buffer; React UI + SQLite sessions).

**Files:** `pipeline.py` (FaceMesh, MLP, XGBoost, Hybrid), `live_demo.py` (webcam + mesh + label).

**Pipelines:** Geometric / MLP (`mlp_best.pt` + scaler) / XGBoost (`xgboost_face_orientation_best.json`) / hybrid + optional L2CS veto.

**Run demo:**

```bash
python ui/live_demo.py
python ui/live_demo.py --xgb
```

`m` = cycle mesh, `p` = switch pipeline, `q` = quit. Same pipelines back the FastAPI WebSocket video in `main.py`.