feat(v1): add pose quality evidence
This commit is contained in:
@@ -245,7 +245,7 @@ git commit -m "feat(v1): add verified pose adapter"
|
||||
- Create: `v1/tracking.py`
|
||||
- Create: `v1/tests/test_evidence.py`
|
||||
|
||||
- [ ] **Step 1: Write quality tests**
|
||||
- [x] **Step 1: Write quality tests**
|
||||
|
||||
```python
|
||||
def test_missing_ankles_rejects_pose(person_pose_without_ankles):
|
||||
@@ -258,12 +258,12 @@ def test_horizontal_body_is_evidence_not_event(horizontal_pose):
|
||||
assert evidence.horizontal_pose is True
|
||||
```
|
||||
|
||||
- [ ] **Step 2: Run tests to verify failure**
|
||||
- [x] **Step 2: Run tests to verify failure**
|
||||
|
||||
Run: `python -m pytest v1/tests/test_evidence.py -v`
|
||||
Expected: FAIL because quality and evidence functions are missing.
|
||||
|
||||
- [ ] **Step 3: Implement floating-point evidence**
|
||||
- [x] **Step 3: Implement floating-point evidence**
|
||||
|
||||
```python
|
||||
def assess_pose_quality(pose: PersonPose, threshold: float) -> PoseQuality:
|
||||
@@ -275,12 +275,12 @@ def assess_pose_quality(pose: PersonPose, threshold: float) -> PoseQuality:
|
||||
|
||||
Use float coordinates, clamped cosine inputs, torso-normalized vertical motion, and no boolean alarm result in this module.
|
||||
|
||||
- [ ] **Step 4: Run tests**
|
||||
- [x] **Step 4: Run tests**
|
||||
|
||||
Run: `python -m pytest v1/tests/test_evidence.py -v`
|
||||
Expected: PASS.
|
||||
|
||||
- [ ] **Step 5: Commit**
|
||||
- [x] **Step 5: Commit**
|
||||
|
||||
```powershell
|
||||
git add v1/evidence.py v1/tracking.py v1/tests/test_evidence.py docs progress.md
|
||||
|
||||
Reference in New Issue
Block a user