Bug 463605

Summary: In case of heic images the scan for faces function adds new empty face tags for the persons already tagged
Product: [Applications] digikam Reporter: Tamas <tamas>
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.9.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.0.0
Sentry Crash Report:

Description Tamas 2022-12-29 22:33:59 UTC
In an album I have both heic files and jpgs. If I run the face detection for the first time everything works as it should. After that I do the manual classification. However, if I try to redetect the faces either for a single image or for an album folder, for the heic images that already have people tagged new empty face tags appear. The position of the empty facetags is at a specific offset from the actual person in the picture. If a folder has jps and heic, I think it only happens to the heic files.

STEPS TO REPRODUCE
1.  scan for faces on a heic
2.  assign people
3.  scan for faces again

OBSERVED RESULT
New tags for the same people that are already tagged appear

EXPECTED RESULT
As with the jpgs, should not duplicate tags for a single person

SOFTWARE/OS VERSIONS
Windows: 11
Comment 1 Maik Qualmann 2022-12-30 07:34:13 UTC
This problem should be fixed in digiKam-8.0.0. The cause is face regions stored in the HEIC image or sidecar. These now replaced a face region in the DB in digiKam-8.0.0 if it hasn't been confirmed yet.

Maik