old-stable24
Varun Patil 2022-10-20 20:53:38 -07:00
parent 4b390f5ba4
commit fec07e97cb
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ trait TimelineQueryFaces
$imgSizeScore = ($iw * 100) ** (1 / 2) * ($ih * 100) ** (1 / 2); $imgSizeScore = ($iw * 100) ** (1 / 2) * ($ih * 100) ** (1 / 2);
// Faces occupying too much of the image don't look particularly good // Faces occupying too much of the image don't look particularly good
$faceSizeScore = (-pow($w, 2) + $w) * (-pow($h, 2) + $h); $faceSizeScore = (-$w ** 2 + $w) * (-$h ** 2 + $h);
// Combine scores // Combine scores
$p['score'] = $positionScore * $imgSizeScore * $faceSizeScore; $p['score'] = $positionScore * $imgSizeScore * $faceSizeScore;