Bug 474357 - Face Tag shown at wrong location
Summary: Face Tag shown at wrong location
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Engine (show other bugs)
Version: 8.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-10 08:56 UTC by joerg.meier
Modified: 2023-10-15 03:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Photo of the sea with sun - the sun should have a face tag (695.85 KB, image/jpeg)
2023-09-10 08:56 UTC, joerg.meier
Details
Same photo as before, now with additional tag (695.85 KB, image/jpeg)
2023-09-10 09:39 UTC, joerg.meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joerg.meier 2023-09-10 08:56:16 UTC
Created attachment 161531 [details]
Photo of the sea with sun - the sun should have a face tag

SUMMARY
For some of my photos the face-tags (generated by Microsoft Photo Galery) are not shown in the right location in the DigiKam-Preview.

STEPS TO REPRODUCE
1. Open the image attached in DigiKam Preview.
2. Select "Show Face Tags"

OBSERVED RESULT
The "sun"-Face-tag is shown on the water near to the bottom of the photo.

EXPECTED RESULT
The "sun"-Face-tag is shown on the sun near to the top of the photo.

SOFTWARE/OS VERSIONS
Windows: Win 10 

ADDITIONAL INFORMATION
- The photo is rotaed by meta-data. Could this be part of the problem? 
- For a lot of other photos the face tags are shown at the right loction.
- Without being able to prove this: I suspect that face-tags added by DigiKam are then displayed incorrectly in other sofware.
- The face tag for this photo is obviosly nonsense. But it does not violate any personal rights. ;)
Comment 1 Maik Qualmann 2023-09-10 09:10:16 UTC
This problem has been discussed many times before. In short, there is no standard whether the face coordinates are saved to the aligned or unaligned image. As a standard, many programs have emerged to assume the face coordinates for the unaligned image. Unfortunately, the Windows Photo Editor does it differently.

Maik
Comment 2 joerg.meier 2023-09-10 09:20:05 UTC
Dear Maik, Thank you for the quick reply and the clear description of the reason.
Comment 3 Maik Qualmann 2023-09-10 09:26:05 UTC
I want to add a detection from Microsoft Photo Tool. However, this sample image appears to have already been rotated as the orientation flag is set to normal. Can you upload an original image from Microsoft Photo?

Maik
Comment 4 joerg.meier 2023-09-10 09:39:20 UTC
Created attachment 161532 [details]
Same photo as before, now with additional tag

I manually added a secend face tag in "Windows Photo Gallery 2012" Build 16.4.3528.331. In the "Windows Photo Gallery 2012" the tag was added on the left hand side where water and sky meet. In DigiKam the Tag in shown on the right hand side of the picture.
Comment 5 Maik Qualmann 2023-09-10 15:56:08 UTC
Git commit 862032217ac8af283db5cae4e0f7f7c2b0a1adbf by Maik Qualmann.
Committed on 10/09/2023 at 17:54.
Pushed by mqualmann into branch 'master'.

add Microsoft Photo Editor detection for face region rotation
Related: bug 447674
FIXED-IN: 8.2.0

M  +1    -1    NEWS
M  +19   -2    core/libs/database/item/scanner/itemscanner_photo.cpp

https://invent.kde.org/graphics/digikam/-/commit/862032217ac8af283db5cae4e0f7f7c2b0a1adbf
Comment 6 joerg.meier 2023-09-10 17:41:06 UTC
Dear Maik, Sounds great! Thank you so much! Jörg
Comment 7 Maik Qualmann 2023-09-11 05:44:21 UTC
Git commit 3937123d76f2c1cc1b5aea0f3ab477a77355266e by Maik Qualmann.
Committed on 11/09/2023 at 07:43.
Pushed by mqualmann into branch 'master'.

revert Microsoft Photo Editor detection for face region rotation
Related: bug 447674

M  +2    -3    NEWS
M  +2    -19   core/libs/database/item/scanner/itemscanner_photo.cpp

https://invent.kde.org/graphics/digikam/-/commit/3937123d76f2c1cc1b5aea0f3ab477a77355266e
Comment 8 caulier.gilles 2023-10-15 03:05:39 UTC
@joerg.meier@vint.de,


This problem still reproducible with the new digiKam 8.2.0 pre-release Windows
installer available at usual place:

https://files.kde.org/digikam/

This new bundle is based on last Qt framework 5.15.11 and KDE framework 5.110.

Thanks in advance

Gilles Caulier