Skip to content

Commit

Permalink
Merge pull request #1339 from matiasdelellis/improveFR
Browse files Browse the repository at this point in the history
Implement merge person/clusters on Face recognition backend. Part of …
  • Loading branch information
pulsejet authored Nov 16, 2024
2 parents b5b40c1 + a2700ef commit 349e656
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/modal/FaceMergeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ export default defineComponent({
return;
}
if (this.routeIsFaceRecognition) {
if (Number.isInteger(Number(newName))) {
showError(this.t('memories', 'You can only merge with a person with name'));
return;
}
await dav.faceRecognitionRenamePerson(name, newName);
await this.close();
await this.$router.replace({
name: 'facerecognition',
params: { user: face.user_id, name: newName },
});
return;
}
try {
// Get all files for current face
let res = (await client.getDirectoryContents(`/recognize/${user}/faces/${name}`, { details: true })) as any;
Expand Down

0 comments on commit 349e656

Please sign in to comment.