Bug 437708 - Face tag spanning entire image added for photos taken with Windows Phone
Summary: Face tag spanning entire image added for photos taken with Windows Phone
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (show other bugs)
Version: 7.2.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-26 18:23 UTC by sr3000
Modified: 2021-05-26 20:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sr3000 2021-05-26 18:23:04 UTC
SUMMARY

When importing photos taken on a Lumia 930, every photo shows up under the "Unknown" face tag, with a rectangle spanning the entire image.


EXPECTED RESULT

Nothing happens until I run "detect faces", in which case only actual faces should be tagged.


SOFTWARE/OS VERSIONS

Build date: 22/03/2021 18:09 (target: RelWithDebInfo)
Rev.: e98a50e68f76f630a7d1ae22c716324b9d1987a7

The images are too large to attach here and I can't seem to resize it without "fixing" the problem, so here is a sample on an external host: https://file.io/hgPLo1eOZ3mN
Comment 1 sr3000 2021-05-26 18:26:18 UTC
Well that failed. :-(

Sorry, finding a simple hosting site seems to suck, Let's try https://easyupload.io/clpc17
Comment 2 Maik Qualmann 2021-05-26 18:44:47 UTC
Well, you will have to turn to the camera/phone manufacturer. digiKam does everything right. In the metadata of the image, the entire image is stored as a facel region that digiKam correctly displays.

Maik
Comment 3 sr3000 2021-05-26 19:23:43 UTC
Given that the device is from 2014 that sounds like a futile attempt. :-(
Does digikam have some kind of quirks list for stuff like that, that this could be added to? That'd sound like a pragmatic attempt that would also help anybody else ending up with such a device.

Otherwise, can I disable importing face tags? I found Settings -> Metadata -> Behaviour -> "Write this information to the metadata", but nothing in this list is checked anyways, so I assume it's for the other direction (DB to Image).
Comment 4 Maik Qualmann 2021-05-26 19:48:57 UTC
Excluding the device in general would be bad, I think we just ignore a full-size face rectangle. A test with Picasa shows that it ignores this "face" too.

Maik
Comment 5 Maik Qualmann 2021-05-26 20:07:38 UTC
Git commit d0598287c06ae9d6800e81762c2655af56c72bec by Maik Qualmann.
Committed on 26/05/2021 at 20:06.
Pushed by mqualmann into branch 'master'.

ignore the full size face region from Xmp.mwg-rs.Regions
FIXED-IN: 7.3.0

M  +2    -1    NEWS
M  +8    -2    core/libs/metadataengine/dmetadata/dmetadata_faces.cpp

https://invent.kde.org/graphics/digikam/commit/d0598287c06ae9d6800e81762c2655af56c72bec
Comment 6 Maik Qualmann 2021-05-26 20:10:13 UTC
If a digiKam version with this change is available to you, you have to temporarily activate the cleaning of the database when rereading the metadata (in the metadata settings) and read the metadata again from the images in question.

Maik
Comment 7 sr3000 2021-05-26 20:18:30 UTC
> I think we just ignore a full-size face rectangle.

It sounds like an acceptable special case. If other software does it too, it might not be the only device.

I'll check out the next nightly build.

Thank you for making digikam!