Add low quality face condition

This commit is contained in:
Manav Rathi
2024-09-04 10:33:16 +05:30
parent 0cef11266a
commit f1185fcade

View File

@@ -474,3 +474,12 @@ const clusterBatchLinear = (
return state;
};
/**
* Return true if the given face is above the minimum inclusion thresholds, but
* is otherwise heuristically determined to be possibly spurious face detection.
*
* We apply a higher threshold when clustering such faces.
*/
const isBadFace = (face: Face) =>
face.blur < 50 || (face.blur < 200 && face.blur < 0.85) || false; //face.isSideways,