https://bugs.kde.org/show_bug.cgi?id=431964

            Bug ID: 431964
           Summary: Face tags are not read correctly on certain images
                    with more than one Microsoft People Tags XMP metadata
           Product: digikam
           Version: 7.1.0
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Faces-Maintenance
          Assignee: digikam-bugs-n...@kde.org
          Reporter: jose_oli...@hotmail.com
  Target Milestone: ---

Created attachment 135076
  --> https://bugs.kde.org/attachment.cgi?id=135076&action=edit
Sample images exhibiting issue.

SUMMARY
Digikam is unable to read face tags correctly on certain images with more than
one Microsoft People Tags XMP in which some of the tags do not contain face
regions (MPReg:Rectangle) and/or People's names (MPReg:PersonDisplayName).
Sample images included as attachment.

STEPS TO REPRODUCE
1. Obtain a photo with multiple people tags in which only one has face regions
added (Refer to XMP snipplet included below).
2. Add photo to Digikam catalog 
3. View photo in Digikam.

OBSERVED RESULT
- MS People tags are not read and displayed by Digikam.

EXPECTED RESULT
- MS People tags should be read and displayed by Digikam.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
- It seems like an issue with certain images containing more that one People
Tag in which some do not contain face coordinates (MPReg:Rectangle) and/or
People's names (MPReg:PersonDisplayName). My guess is that the XMP is not being
read properly.

The following XMP Snipplet obtained using Exiftool from test2.jpg. None of the
3 people tags are displayed in Digikam, note that only one has face regions(
MPReg:Rectangle):

 <rdf:Description rdf:about='uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b'
  xmlns:MP='http://ns.microsoft.com/photo/1.2/'
  xmlns:MPRI='http://ns.microsoft.com/photo/1.2/t/RegionInfo#'
  xmlns:MPReg='http://ns.microsoft.com/photo/1.2/t/Region#'>
  <MP:RegionInfo rdf:parseType='Resource'>
   <MPRI:Regions>
    <rdf:Bag>
     <rdf:li rdf:parseType='Resource'>
      <MPReg:Rectangle>0.757813, 0.237776, 0.046094, 0.055609</MPReg:Rectangle>
     </rdf:li>
     <rdf:li rdf:parseType='Resource'>
      <MPReg:PersonDisplayName>Joseph Stallin</MPReg:PersonDisplayName>
     </rdf:li>
     <rdf:li rdf:parseType='Resource'>
      <MPReg:PersonDisplayName>Winston Churchill</MPReg:PersonDisplayName>
      <MPReg:Rectangle>0.211957, 0.265014, 0.051242, 0.062917</MPReg:Rectangle>
     </rdf:li>
     <rdf:li rdf:parseType='Resource'>
      <MPReg:PersonDisplayName>Harry Truman</MPReg:PersonDisplayName>
     </rdf:li>
    </rdf:Bag>
   </MPRI:Regions>
  </MP:RegionInfo>
 </rdf:Description>

- The MS People Tag schema allows for Region info items to contain a Rectangle
region without an associated person's name as well as PersonDisplayName tags
with no regions associated to it.
- Reference: Microsoft People Tags Schema Refence:
https://docs.microsoft.com/en-us/windows/win32/wic/-wic-people-tagging#schema-reference

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to