matiasdelellis / facerecognition

Nextcloud app that implement a basic facial recognition system.
GNU Affero General Public License v3.0
510 stars 46 forks source link

Provide autocomplete of existing persons while manual tagging faces on images #639

Open lippoliv opened 1 year ago

lippoliv commented 1 year ago

Hey, Thanks for reporting issues back to Nextcloud Face Recognition. Please, try to complete this report in detail so we can help you easier. :smile:

Make sure you read all the documentation, and the FAQ, and that the issue has not been reported before. :wink:

Expected behaviour

On images in the "faces" tab of the sidebar, I see who is tagged on the image. For faces who are recognized, but not named yet, I can add a name.

I should be able to select existing persons, beside creating new ones on the fly.

Actual behaviour

I cannot select existing persons, I can just create new ones.

Steps to reproduce

  1. Open an image with an recognized face, which is not connected to a person
  2. Type in the name of an existing person

Server configuration

Client configuration

Logs

Background task log with debug.

sudo -u apache php occ -vvv face:background_job ``` unrelated ```

Web server error log

Web server error log ``` none ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` none ```

Browser log

Browser log ``` none ```
matiasdelellis commented 1 year ago

Hi @lippoliv Unfortunately this is a regression forced by a change in nextcloud 25.. (The side panel retains focus, and we can't focus on the dialog we use to search for people.)

I would like to solve it soon. Thank you very much for reporting it.

lippoliv commented 1 year ago

Memories has implemented something like that, maybe not 100% what I described. But basically listen to the input and show some suggestions: https://github.com/pulsejet/memories/issues/177

Maybe instead of a text field, we can open a dialog, if the user clicks on the "unknown face". Then we could let him select a existing face or create a new one?

In that dialog, we could probably (haven't reviewed source code yet) show most similar faces? That would be a quiet nice feature I gues.