diff options
author | bobzel <zzzman@gmail.com> | 2024-08-21 17:12:35 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-08-21 17:12:35 -0400 |
commit | 4091d1681437527bfb55cb79570e8b652e9b190f (patch) | |
tree | b1e7167aa2cc8ea59f5d29141ca72e0ddbebefaa | |
parent | 25ee9e6b3f7da67bcf94eb2affd5793c67777930 (diff) |
from last
-rw-r--r-- | src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx | 5 | ||||
-rw-r--r-- | src/client/views/search/FaceRecognitionHandler.tsx | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx index 94f9a3c94..dd8dea41e 100644 --- a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx +++ b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx @@ -70,7 +70,10 @@ export class FaceDocumentItem extends ObservableReactComponent<FaceDocumentProps ); // assign the face in the image that's closest to the face collection to be the face that's assigned to the collection - face_match && FaceRecognitionHandler.ImageDocAddFace(imgDoc, face_match, this._props.faceDoc); + if (face_match) { + FaceRecognitionHandler.ImageDocAddFace(imgDoc, face_match, this._props.faceDoc); + FaceRecognitionHandler.FaceDocAddImageDocFace(imgDoc, face_match, this._props.faceDoc); + } } }); return false; diff --git a/src/client/views/search/FaceRecognitionHandler.tsx b/src/client/views/search/FaceRecognitionHandler.tsx index 3ef6f9674..6494a1ed4 100644 --- a/src/client/views/search/FaceRecognitionHandler.tsx +++ b/src/client/views/search/FaceRecognitionHandler.tsx @@ -61,6 +61,7 @@ export class FaceRecognitionHandler { } else { imgDoc[DocData][faceFieldKey] = new List<List<number>>([faceDescriptor]); } + FaceRecognitionHandler.FaceDocAddImageDocFace(imgDoc, faceDescriptor, faceDoc); }; /** |