Murcielago It looks like Ente can do this
Yes, and it works quite well. The whole machine learning thingy happens locally on your phone.
kasine Indeed it seems it could do that but it require to upload pictures and I would like to avoid this.
You could try self-hosting Ente instance. Maybe in a home lab. All the code, including the server code is open source, and they use the same code in production.
Just in case, Ente passed a security audit by Cure53.