Bug 519915 - Face Recognition engine fails to process Tag-only selections and ignores Tag constraints when Albums are selected
Summary: Face Recognition engine fails to process Tag-only selections and ignores Tag ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Workflow (other bugs)
Version First Reported In: 9.0.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-05-08 13:48 UTC by phenrypereira
Modified: 2026-05-10 14:42 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description phenrypereira 2026-05-08 13:48:32 UTC
DESCRIPTION

STEPS TO REPRODUCE
1. Assign a specific tag (e.g., "Unrecognized Faces") to a subset of images (e.g., 300+ items).

2. Navigate to the People / Face Management tab and open the "Search for faces" tool.

3. Scenario A (Tag Only): In the search parameters, select only the specific tag under the "Tags" tab. Ensure no Albums are selected. Start the scan.

4. Scenario B (Album + Tag): Select the aforementioned tag AND the Album containing those images. Start the scan.
OBSERVED RESULT
In Scenario A, the scan terminates immediately (00:00) without processing any of the tagged images, outputting "0 faces found".
In Scenario B, the engine completely ignores the Tag constraint and proceeds to scan the entire selected Album, bypassing the intended intersection filter.

EXPECTED RESULT
In Scenario A, the engine must process the exact subset of images associated with the selected Tag across the entire database.
In Scenario B, the engine must execute an intersection query (AND logic), scanning only the images within the selected Album that strictly bear the selected Tag.

SOFTWARE/OS VERSIONS
Operating System Ubuntu Studio 26.04
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.24
Qt Version: 6.10.2

ADDITIONAL INFORMATION
This issue appears to be compounded by the removal of the explicit filtering priority options ("albums, but not tags", "tags, but not albums", etc.) that existed in prior versions. In digiKam 9.0.0, the absence of these toggles leaves the user with no workaround to force the engine to respect tag-based boundaries during facial recognition sweeps.
Comment 1 Maik Qualmann 2026-05-08 19:19:50 UTC
Git commit 317a40473a1c55277185ee8dce1de66a7a31e283 by Maik Qualmann.
Committed on 08/05/2026 at 19:18.
Pushed by mqualmann into branch 'master'.

fix correct album type retrieval for face detection/recognition.
Skipping already scanned images is currently not
supported for tags, this will be fixed later.
FIXED-IN: 9.1.0

M  +1    -1    NEWS
M  +13   -3    core/utilities/facemanagement/pipelines/detectrecognize/facepipelinedetectrecognize.cpp
M  +13   -3    core/utilities/facemanagement/pipelines/recognize/facepipelinerecognize.cpp
M  +2    -1    core/utilities/maintenance/tools/facesmanagement/facesengine.cpp

https://invent.kde.org/graphics/digikam/-/commit/317a40473a1c55277185ee8dce1de66a7a31e283