Bug 466083

Summary: Search photos with exactly 1 face regions and not tagged
Product: [Applications] digikam Reporter: Petr Schonmann <pschonmann>
Component: Searches-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.0.0
Sentry Crash Report:
Attachments: digikam filter to search one person in photo untagged
multiple persons found

Description Petr Schonmann 2023-02-19 13:13:53 UTC
Created attachment 156490 [details]
digikam filter to search one person in photo untagged

SUMMARY
***
Trying to search photos where only one person is and not tagged yet.
***


STEPS TO REPRODUCE
1. CTRL+ALT+F
2. Select not tagged images and exactly 1 face tags region - look at attachement


OBSERVED RESULT
Query returns zero results
When i uncheck not tagged, the results returns photos where are photos with many face regions but one of them is tagged. See 2nd attachement

EXPECTED RESULT
Expecting to return photos where one person is (tagged / untagged )


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Petr Schonmann 2023-02-19 13:14:20 UTC
Created attachment 156491 [details]
multiple persons found
Comment 2 Maik Qualmann 2023-02-19 15:13:46 UTC
This is not a bug. When we talk about face regions to be found, these are currently confirmed faces. However, confirmed faces always have a tag. Are therefore not found by the search because tags are excluded.

Maik
Comment 3 Maik Qualmann 2023-02-19 15:33:39 UTC
Git commit c42dea16e88b4f808a16cd11f59507393acb293e by Maik Qualmann.
Committed on 19/02/2023 at 15:32.
Pushed by mqualmann into branch 'master'.

also include unknown face regions in the advanced search
FIXED-IN: 8.0.0

M  +2    -1    NEWS
M  +9    -6    core/libs/database/item/query/itemquerybuilder.cpp

https://invent.kde.org/graphics/digikam/commit/c42dea16e88b4f808a16cd11f59507393acb293e