Bug 440773 - Check for overlapping face regions
Summary: Check for overlapping face regions
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (other bugs)
Version First Reported In: 7.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-09 08:57 UTC by mike_t_bike
Modified: 2022-10-12 20:47 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike_t_bike 2021-08-09 08:57:56 UTC
SUMMARY
In a historically grown photo collection persons have already been tagged. Digikam now detects faces where already rectangles show a face with a name. But it suggests someone completely different or leaves the field empty.
As ordinary user I'd expect that either overlapping regions with only one face are merged or at least existing names are used as suggestion.

STEPS TO REPRODUCE
1. Take a large image collection with faces already tagged.
2. Start face detection and recognition.
3. Look into suggestions.

OBSERVED RESULT
Overlapping rectangles show a name and digikam suggests a different name or nothing for the recently detected face.

EXPECTED RESULT
Rectangles are merged or at least the existing name of the overlapping face is used.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-08-09 10:03:28 UTC
Duplicate of Bug 415777 ?

In fact, we are checking for overlapping areas of the face, we may just need to increase the radius a little.

Maik
Comment 2 Maik Qualmann 2021-08-09 10:04:55 UTC
A test image with existing face regions would be good.

Maik
Comment 3 mike_t_bike 2021-08-09 19:51:23 UTC
I just sent an email.

Kind regards,
Michael
Comment 4 Maik Qualmann 2021-08-09 20:19:11 UTC
Thank you for the test image. The problem has already been reported to us once, but I have not yet been able to reproduce it and unfortunately I cannot reproduce it with this image either. When I do a face scan with the active Yolo v3 engine, 4 more faces are found in the background, the two in front remain unchanged and are also not doubled. Tomorrow I will test it on a Windows machine to see if there are any differences.

Maik
Comment 5 Maik Qualmann 2021-08-22 16:34:30 UTC
*** Bug 441378 has been marked as a duplicate of this bug. ***
Comment 6 Maik Qualmann 2021-09-26 16:00:06 UTC
Git commit 7253440154529ab5d986c2869b08b5281639028e by Maik Qualmann.
Committed on 26/09/2021 at 15:57.
Pushed by mqualmann into branch 'master'.

check for existing faces in the database
when reading face metadata.
Related: bug 441378, bug 415777
FIXED-IN: 7.4.0

M  +2    -2    NEWS
M  +37   -11   core/libs/database/item/scanner/itemscanner_photo.cpp

https://invent.kde.org/graphics/digikam/commit/7253440154529ab5d986c2869b08b5281639028e
Comment 7 Maik Qualmann 2022-10-12 20:47:41 UTC
*** Bug 460321 has been marked as a duplicate of this bug. ***