M13.3: face tracking methods, Face Track Points / Measurements, camera lens distortion, docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0bce3f2e49
commit
d209fa001f
@@ -624,6 +624,11 @@ impl FaceTracker {
|
||||
};
|
||||
let mut t = FaceTracker { skin, prev: guess, expect: canon };
|
||||
let fit = t.fit(frame)?;
|
||||
// A face shows at least two of: left eye, right eye, mouth.
|
||||
let found = [EYE[0][4], EYE[1][4], MOUTH[0]].iter().filter(|i| fit.detected[**i]).count();
|
||||
if found < 2 {
|
||||
return None;
|
||||
}
|
||||
t.accept(&fit);
|
||||
Some((t, fit))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user