Bug 409146

Summary: Name not applied to RegionInfo when the region was added by iOS
Product: [Applications] digikam Reporter: DewVinci <dewvinci>
Component: Faces-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 6.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.2.0
Sentry Crash Report:

Description DewVinci 2019-06-24 18:23:50 UTC
SUMMARY
When a photo is face-tagged by iOS, a RegionInfo is added like this:
  "RegionInfo": {
    "AppliedToDimensions": {
      "H": 3024,
      "Unit": "pixel",
      "W": 4032
    },
    "RegionList": [{
      "Area": {
        "H": 0.125,
        "Unit": "normalized",
        "W": "0.092999999999999972",
        "X": "0.54649999999999999",
        "Y": "0.35949999999999999"
      },
      "Extensions": {
        "XMP-apple-fi:AngleInfoRoll": 0,
        "XMP-apple-fi:AngleInfoYaw": 0,
        "XMP-apple-fi:ConfidenceLevel": 676,
        "XMP-apple-fi:FaceID": 1,
        "XMP-apple-fi:Timestamp": 10610209459322
      },
      "Type": "Face"
    }]
  }

If digikam is than used to assign a name to that region, the name is only added as a keyword. The item in the RegionList is not updated. As a result, reloading the metadata from the file will lose the name.

STEPS TO REPRODUCE
1. Take a photo on an iPhone
2. Use iOS to assign the face to a person
3. Save the photo to the PC
4. Use digikam to assign a name to the face

OBSERVED RESULT


EXPECTED RESULT
The name is added only as a keyword, and the RegionList is not updated.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2019-06-24 19:08:17 UTC
Hmm, Apple seems to cook its own soup again. I do not see a name, just a FaceID, if that. Probably digiKam can not find a name and ignores the region. This will be difficult to implement. Can you please upload a test image?

Maik
Comment 2 DewVinci 2019-06-25 19:00:52 UTC
The image I had with the problem was created by iOS 11. I can't seem to reproduce it with the current OS.