parent
e38d208067
commit
473eb0a17e
|
@ -54,10 +54,10 @@ class PeopleFaceRecognitionController extends GenericClusterController
|
||||||
{
|
{
|
||||||
// Convert to recognize format (percentage position-size)
|
// Convert to recognize format (percentage position-size)
|
||||||
foreach ($photos as &$p) {
|
foreach ($photos as &$p) {
|
||||||
$p['x'] = (float) $p['x'] / $p['image_width'];
|
$p['x'] = (float) $p['x'] / (float) $p['image_width'];
|
||||||
$p['y'] = (float) $p['y'] / $p['image_height'];
|
$p['y'] = (float) $p['y'] / (float) $p['image_height'];
|
||||||
$p['width'] = (float) $p['width'] / $p['image_width'];
|
$p['width'] = (float) $p['width'] / (float) $p['image_width'];
|
||||||
$p['height'] = (float) $p['height'] / $p['image_height'];
|
$p['height'] = (float) $p['height'] / (float) $p['image_height'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->sortByScores($photos);
|
$this->sortByScores($photos);
|
||||||
|
|
Loading…
Reference in New Issue