[mob][photos] Small fix in detecting sideways faces
This commit is contained in:
parent
9cdd4fd713
commit
f49ede4a74
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class Detection {
|
|||
(nose[0] < min(leftEye[0], rightEye[0]) - 0.5 * eyeDistanceX) &&
|
||||
(nose[0] < min(leftMouth[0], rightMouth[0]));
|
||||
final bool noseStickingOutRight =
|
||||
(nose[0] > max(leftEye[0], rightEye[0]) - 0.5 * eyeDistanceX) &&
|
||||
(nose[0] > max(leftEye[0], rightEye[0]) + 0.5 * eyeDistanceX) &&
|
||||
(nose[0] > max(leftMouth[0], rightMouth[0]));
|
||||
|
||||
return faceIsUpright && (noseStickingOutLeft || noseStickingOutRight);
|
||||
|
|
Loading…
Add table
Reference in a new issue