Bug 495944 - Righclick -> scan for faces on a single picture is not the same as rightclick -> scan for faces on a folder
Summary: Righclick -> scan for faces on a single picture is not the same as rightclick...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Workflow (show other bugs)
Version: 8.5.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-07 21:46 UTC by Eugen Albiker
Modified: 2024-11-09 18:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.5.0
Sentry Crash Report:


Attachments
debug.log (165.82 KB, text/x-log)
2024-11-08 21:13 UTC, Eugen Albiker
Details
Video (2.99 MB, video/x-matroska)
2024-11-08 21:14 UTC, Eugen Albiker
Details
the problematic picture (689.93 KB, image/jpeg)
2024-11-08 22:03 UTC, Eugen Albiker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugen Albiker 2024-11-07 21:46:01 UTC
SUMMARY
I have a picture (scan of a newspaper) with 14 faces on it. All 14 faces are marked as "ignored"
If I rightclick on the picture --> "scan for faces" no new faces are detected. Which is correct
If I rightclick on the folder where the picture (and more pictures) is in --> "scan for faces": Then on this picture 2 of the already "ignored" faces are "new" and I can click confirm/remove/ignore or assign a people tag

STEPS TO REPRODUCE
1. Download digiKam-8.5.0-20241107T170120-Qt6-x86-64.appimage
2. Scan a Picture for faces
3. Scan a Folder for faces

OBSERVED RESULT
The is a difference in scan for faces. I think already "ignored" faces should never be found as "new"

EXPECTED RESULT
Scan or faces on a single picture and on a folder should make no difference in "how to handle already ignored faces"

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.10
KDE Plasma Version: 
KDE Frameworks Version:  6.6.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2024-11-07 22:00:59 UTC
The only difference is that we also perform face recognition in the album tree view, which has to be done manually in the image view.
OK, I haven't tested it yet, but ignored faces should no longer be used for recognition.

Maik
Comment 2 cyclikov 2024-11-08 06:22:35 UTC
In order not to create an additional post, I'll just add: it's not quite clear what settings are used to search for faces in a folder in this way (right-click - search for faces by catalog in the tree). Judging by the recognition quality, YOLO and OpenFace are used instead of YuNet and SFace configured in the widget. The same behavior in the “search for faces on new objects” settings when finding new objects.
Comment 3 Maik Qualmann 2024-11-08 07:21:05 UTC
I cannot reproduce the problem of ignored faces being available for face confirmation again.

The settings for face detection/recognition are those from the People sidebar.

Maik
Comment 4 Eugen Albiker 2024-11-08 21:13:27 UTC
Created attachment 175661 [details]
debug.log
Comment 5 Eugen Albiker 2024-11-08 21:14:25 UTC
Created attachment 175662 [details]
Video

sadly there are no context-menus visible in the video but the problems with "face search"  you see
Comment 6 Eugen Albiker 2024-11-08 21:14:57 UTC
Hi,

I have uploaded a video and the debug.log
Perhaps it helps

Greetings
Eugen
Comment 7 Maik Qualmann 2024-11-08 21:41:38 UTC
I suspect that because the face size can now be adjusted, overlapping faces are no longer recognized correctly. Try changing the face size in the settings in the People view.

Maik
Comment 8 Eugen Albiker 2024-11-08 22:02:27 UTC
Hi,

I have tried all face size for "finding faces" and it happens all the time, but only when I use folder --> scan for faces

Then I tried:
- clear all faces on the picture
- set face size to "extra large"
- rescan the picture from the folder context menu --> Only a few faces (that ok). But on rescan from the folder context menu with same settings the same problem. Already found  ignored faces sometimes reappear as new one
- decrace face size .... the same .....
- decrace face size .... the same .....

Next try:
- clear all faces on the picture
- set face size to "extra large"
- rescan the picture from the preview context menu --> Only a few faces (that ok). And on rescan from the preview context menu: No ignored faces are reapearing! That is correct

The is a difference between "scan from the folder context menu" and "scan from the preview context menu" - but why? Did I missing something?!?!

I have also uploaded the picture in my video for testing

Greetings
Eugen
Comment 9 Eugen Albiker 2024-11-08 22:03:11 UTC
Created attachment 175663 [details]
the problematic picture
Comment 10 Maik Qualmann 2024-11-09 17:45:58 UTC
Git commit 634a4b736718b27a7ec67fd872d84316c2390487 by Maik Qualmann.
Committed on 09/11/2024 at 17:44.
Pushed by mqualmann into branch 'master'.

detect and recognize faces does not currently work in one step

M  +1    -1    core/libs/album/treeview/albumselectiontreeview.cpp

https://invent.kde.org/graphics/digikam/-/commit/634a4b736718b27a7ec67fd872d84316c2390487
Comment 11 Maik Qualmann 2024-11-09 18:10:58 UTC
Git commit 8794e34b0b2811e2b3dfabc2573ebcbcd41a1eff by Maik Qualmann.
Committed on 09/11/2024 at 18:10.
Pushed by mqualmann into branch 'master'.

for face recognition we take a second step
FIXED-IN: 5.8.0

M  +1    -1    NEWS
M  +6    -6    core/app/views/stack/itemiconview_search.cpp
M  +21   -1    core/libs/album/treeview/albumselectiontreeview.cpp

https://invent.kde.org/graphics/digikam/-/commit/8794e34b0b2811e2b3dfabc2573ebcbcd41a1eff