Add low quality face condition
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user