Two small micro optimizations

Confidence is not used since the faces scoring method is shared with
recognize and fix removal of two parameters in image list response.
pull/767/head
Matias De lellis 2023-08-08 19:21:18 -03:00
parent 4e98eddb53
commit 68e8204ee6
1 changed files with 1 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class FaceRecognitionBackend extends Backend
'y' => (float) $row['face_y'] / $row['image_height'], 'y' => (float) $row['face_y'] / $row['image_height'],
]; ];
unset($row['face_x'], $row['face_y'], $row['face_w'], $row['face_h'], $row['image_height'], $row['image_width']); unset($row['face_x'], $row['face_y'], $row['face_width'], $row['face_height'], $row['image_height'], $row['image_width']);
} }
public function getClustersInternal(int $fileid = 0): array public function getClustersInternal(int $fileid = 0): array
@ -157,7 +157,6 @@ class FaceRecognitionBackend extends Backend
'frf.height', 'frf.height',
'm.w as image_width', // Scoring 'm.w as image_width', // Scoring
'm.h as image_height', 'm.h as image_height',
'frf.confidence',
'm.fileid', 'm.fileid',
'm.datetaken', // Just in case, for postgres 'm.datetaken', // Just in case, for postgres
)->from('facerecog_faces', 'frf'); )->from('facerecog_faces', 'frf');