bpatrik / pigallery2

A fast directory-first photo gallery website, with rich UI, optimized for running on low resource servers (especially on raspberry pi)
http://bpatrik.github.io/pigallery2/
MIT License
1.78k stars 205 forks source link

[Feature] Face recognition #57

Open bpatrik opened 5 years ago

bpatrik commented 5 years ago

Building on #56 and using face-api.js, PiGallery2 will detect and recognize faces.

nishantbb commented 3 years ago

New user. Is this a tool that can be implemented from the gallery, or support for existing metadata? If the former, is there a link with any basic guidance you can provide?

bpatrik commented 3 years ago

The app cannot recognize faces at the moment, but can extract from exif data if the files contains it (i.e: it was set with a different app, like Adobe lightroom)

nishantbb commented 3 years ago

Thanks for the response.

utkarshjain00 commented 3 years ago

Please consider integrating with https://docs.deepstack.cc/face-recognition/

lakano commented 1 year ago

+1 for the suggestion of @utkarshjain00 and it's now possible to make DeepStack run on small ARM64 devices like the Raspberry Pi 4 ( 1GB minimum but 8GB is preferred) https://docs.deepstack.cc/arm64/index.html With their REST API, I suppose this could help a lot.

bpatrik commented 1 year ago

Thanks. It looks good.

I will def. do a research before getting into implementing this. I expect this to be a huge chunk of work and I don't think it will be part of the app in 2023.

rhatguy commented 1 year ago

I think the killer use case would be if this could be implemented such that a web based user could do it easily. There are a lot of desktop computer based tools that can generate face metadata (like Digikam), but being opening up tagging to my family from their phone while they're sitting on the couch would be nice. That being said, there are already a lot of tools focusing on detecting/adding faces. PiGallery2 does what it does well. I hope adding face detection doesn't take away from PiGallery2's main focus.

dima-ser commented 1 year ago

That being said, there are already a lot of tools focusing on detecting/adding faces. PiGallery2 does what it does well. I hope adding face detection doesn't take away from PiGallery2's main focus.

Completely agree. I love that it's currently read-only and is focused on consuming data rather that producing it. We should keep it this way. Perhaps develop a fork for those who wish to add face editing to keep this one focused on what it does well.

bpatrik commented 1 year ago

My vision on the feature would be that:

The main goal would be that minimal input is needed from the user and tagging is determistic and can be regenerated in case of a db or temp folder loss.

bpatrik commented 1 year ago

I need to push this feature even further. So wont be part of the next release.

grasdk commented 10 months ago

Some comments on the plans for adding face detection and recognition:

The algorithms / ML / AI are getting better and better, but there is still a long way to go.

All in all, I think mobile-enabled tagging would be cool as an extension feature, perhaps with a scope of showing a face and swipe right to accept and left to reject (and up to delete?). But as some posters above indicate, it seems to be an app different from PiGallery.

ericnotthered commented 9 months ago

I would personally prefer that the Pigallery team focus on other issues. There are existing tools (i.e., Digikam) that support face tagging. PiGallery2 already reads and handles this data well.

I'd rather see the ability to update keywords (specifically, the Rating value).