Bug 512040 - The existence of a regular tag named the same as a tag under People prevents face detection
Summary: The existence of a regular tag named the same as a tag under People prevents ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Recognition (other bugs)
Version First Reported In: 8.6.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-13 17:40 UTC by Michał Kosmulski
Modified: 2025-12-25 10:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Kosmulski 2025-11-13 17:40:55 UTC
SUMMARY
If a face tag under People is named the same as a normal tag elsewhere in the tag tree, detection of this face becomes impossible.

STEPS TO REPRODUCE
1. Make a regular tag named e.g. "Person1" somewhere in the tag structure (in my case it was one level deep)
2. Create a tag with the same name under People in order to detect and find an associated face
3. Assign some detected faces to the People/Person1 tag
4. Run face detection on pictures which contain the same face
5. The face is not tagged (or maybe it's just a display thing - it does not appear under People/Person1, but the label does appear when I view faces in Preview for a specific image).
6. Re-running faces detection doesn't help
7. After removing the regular tag and re-running face detection, faces for Person1 are detected automatically in images based on the manually tagged examples, just as they should.

It seems that despite being under a different path, the tag in People and the regular tag somehow conflict and prevent the face from being detected.

OBSERVED RESULT
The face is not detected in images in which it is detected if the non-People tag is removed.

EXPECTED RESULT
The existence of a regular tag with the same name as a tag under People should not affect face detection.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 13
KDE Plasma Version: 6.3.4
KDE Frameworks Version: ?
Qt Version: ?

ADDITIONAL INFORMATION
-
Comment 1 Maik Qualmann 2025-11-13 20:09:42 UTC
I can't reproduce the problem here with digiKam-8.9.0. New code has just been written for face detection/recognition in digiKam-8.6.0 and later versions. We also fixed a bug in digiKam-8.9.0 that could cause incorrect settings to be used for face detection/recognition.

I'd like to close this bug report. Keep in mind that if you test digiKam-8.9.0 via AppImage, the face database will be updated, and you'll need to rebuild the face training database.

Maik
Comment 2 Michał Kosmulski 2025-11-13 21:42:33 UTC
OK, thank you. Closing then, and I'll reopen in case it pops up in a newer version.