Skip to content

High performance self-hosted photo and video management solution.

fix(server): recognize faces when min. faces is set to 1 (#7144)

Michel Heusschenfab19a8583db
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;
}