From fab19a8583db295847bfda6643e3894d8bf848a1 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Sat, 17 Feb 2024 04:32:11 +0100 Subject: [PATCH] fix(server): recognize faces when min. faces is set to 1 (#7144) * fix(server): recognize face when min. faces is set to 1 * update logic * clarified log --------- Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com> --- server/src/domain/person/person.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/domain/person/person.service.ts b/server/src/domain/person/person.service.ts index 359084bf21..6fbc409bf8 100644 --- a/server/src/domain/person/person.service.ts +++ b/server/src/domain/person/person.service.ts @@ -410,8 +410,8 @@ export class PersonService { }); // `matches` also includes the face itself - if (matches.length <= 1) { - this.logger.debug(`Face ${id} has no matches`); + if (machineLearning.facialRecognition.minFaces > 1 && matches.length <= 1) { + this.logger.debug(`Face ${id} only matched the face itself, skipping`); return true; }