Lint PHP
parent
4b390f5ba4
commit
fec07e97cb
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue