[Feature] Merge Faces from Metadata with detected faces #15107
Replies: 8 comments 9 replies
-
|
my guess the tags come from xml are bad i tried with Lightroom and exported it to immich ended up same, |
Beta Was this translation helpful? Give feedback.
-
|
Is this really needed? This is probably going to get a little bit messy... i would be statisfied, if the face tags generated by immich would be just somehow "exportable" in a format, that other software (Digikam, XnView, etc.) is able to read or extract. |
Beta Was this translation helpful? Give feedback.
-
|
I think the way forward for something like this is a comparison from a % of size perspective. For example if Immich detects a region that overlaps say 90% (guessing at an appropriate % here) with a region from metadata, it should assume those two faces are the same. Using a % should help with different size faces rather than an absolute like number of overlapping pixels. It would be super nice if Immich had a function somewhere that could report these overlaps and "correct" them if the user confirmed. For example, metadata said this face was here....Immich detected it here (overlapping by 90%). If user confirms, update the pictures metadata to match Immich's face region. |
Beta Was this translation helpful? Give feedback.
-
|
I'm facing the same. My photos are mounted via external library and parts already tagged with faces by Lightroom. Now every photo contains two face regocnition boxes and will shown twice by searching via mobile app. |
Beta Was this translation helpful? Give feedback.
-
|
Using V2.3.1 After time each asset will show two faces. One with the name from metadata and the other recently detected. The bounding boxes look to be identical. When I name the version without a name, it will integrate with the correct person. No duplicated faces or regions after that. So I can just manually name all these new detected faces since I have the names from the metadata and they shows up in the asset info screen. Thanks for adding the face import option. Not sure when it was added. I've been on v1.135 for a while I'm working to update my api calls for v2.3 but, it would be great if there was a automagical way of combining faces based on bounding box cords. In V1.133.x This snip does not show an example of two faces with the same bounding box but it is a start. |
Beta Was this translation helpful? Give feedback.
-
|
I went to start a discussion topic on this but noticed this already exists. Id like for the combination of faces to become a thing. If you can do it on google photos and, I believe, apple photos, then why not immich, since those are the apps this one is based on. |
Beta Was this translation helpful? Give feedback.
-
|
I believe the best way to detect this would be to calculate the center of two face regions with their bounding boxes' coordinates. If two bounding boxes have nearly the same center, they in theory correspond to the same person and should be merged. Now, about merging, I'm not sure what would be the best approach. My idea was to create a new job called "consolidate faces" or something alike, which would do the procedure described above. I can start to code a proof of concept if you guys think my approach is good. |
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately, I can't contribute any code at the moment... but I can contribute some of my "brainpower" :) The problem everywhere with face-tagging is: there is NO standard way of doing it! Merge information? Maybe, but don't reinvent the wheel:As immich becomes increasingly popular due to its ease of use, perhaps the focus should be more on establishing an open-source quasi-standard instead of developing workarounds that attempt to merge the various solutions of closed-source companies. Include 3D in depth-information ?!:This new quasi-standard should perhaps also include the 3D information that already lies dormant in many photos as a hidden treasure and will become increasingly relevant in the future: https://developers.google.com/ar/develop/depth?hl=en In my opinion, XML-based configurations (sidecar-files) aren't the best approach for daily use with large photo collections, as this would lead to an excessive number of read and write operations. However, sidecar files shouldn't be completely disregarded, as they might be useful for backups, imports and exports in the admin's backend of immich. Support for videos !?:I've been successfully using sidecar files for years to store metadata for videos, since embedding it directly into the file itself, as with EXIF, isn't possible. Regardless of the solution reached, I believe facetagging should not be considered in isolation, but rather a broader perspective should be taken. My Outlook:There are already many smart people who have given this topic a lot of thought: It would be fantastic if we could, for example, draw the attention of developers like @boardhead (Phil Harvey) the developer of the legendary ExifTool or @woss /fork-exiftool who was contributing to it in the past days.... or at least someone who has the intellectual and temporal capacity to integrate this tool into immich: As one would expect from a legendary tool: Exiftool is already used in one or two places in immich. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the existing feature requests to make sure this is not a duplicate request.
The feature
In #4348 immich implemented reading face metadata from files.
These faces show up in the people view, etc but they are often duplicated with immich's own detected faces. When there is a significant overlap with an ML detected face immich should merge the detected faces with the one provided by metadata (and ideally their linked groups too).
My observation is that most detected face bounding boxes detected by digikam very closely match the size and shape of the bounding boxes generated by immich for the same faces so this would be very useful for portability.
Platform
Beta Was this translation helpful? Give feedback.
All reactions