Bug 440773

Summary: Check for overlapping face regions
Product: [Applications] digikam Reporter: mike_t_bike
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles, metzpinguin, natmo, pschonmann
Priority: NOR    
Version First Reported In: 7.3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.4.0
Sentry Crash Report:

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. ***