diff options
| author | bobzel <zzzman@gmail.com> | 2024-08-27 08:23:04 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-08-27 08:23:04 -0400 |
| commit | 248f9fdced99a36c28fb34f39b78e1267ec02486 (patch) | |
| tree | 3a566e78f234ff3b01050a74ae6b9b3f2b8c6b14 /src/client/views/collections | |
| parent | 5180a22ad70cb79ff2167a3aa0a63962ec6b0319 (diff) | |
allow non-faces to be added to face collections
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx index 7e47292e5..ea1c22962 100644 --- a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx +++ b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx @@ -102,10 +102,8 @@ export class UniqueFaceBox extends ViewBoxBaseComponent<FieldViewProps>() { { dist: 1, face_match: undefined as Opt<List<number>> } ); - // assign the face in the image that's closest to the face collection to be the face that's assigned to the collection - if (face_match) { - FaceRecognitionHandler.UniqueFaceAddFaceImage(imgDoc, face_match, this.Document); - } + // assign the face in the image that's closest to the face collection's face + FaceRecognitionHandler.UniqueFaceAddFaceImage(imgDoc, face_match, this.Document); } }); e.stopPropagation(); |
