Bug 469805 - No Subfolders in Albums from External Drives During Face Recognition, and Inefficient Rescan Process
Summary: No Subfolders in Albums from External Drives During Face Recognition, and Ine...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Workflow (show other bugs)
Version: 8.0.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-15 13:51 UTC by reportthebug
Modified: 2025-01-20 21:41 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description reportthebug 2023-05-15 13:51:28 UTC
SUMMARY
***
In digiKam, when using the face recognition feature from within the Album view, it appears that subfolders contained in albums from external drives are not being scanned. The software only scans the main folder, omitting any images that might be present in the subfolders.

Additionally, when attempting to perform face recognition on large collections, if the process is interrupted and then restarted, it seems to start from the beginning each time. This makes scanning large collections impractical, especially if interruptions are necessary due to the size of the collection.
***


STEPS TO REPRODUCE
1.    Connect an external drive with an album that contains subfolders.
2.    Open digiKam and navigate to the People view.
3.    There is no subfolders for albums on external hard drives
4.    Notice that only the main folder of the album is scanned, and the subfolders are ignored.

Also if I scan for faces from within the Album-view, where the subfolders are actually shown the following happens
1. Connect an external drive with an album that contains subfolders.
2. Open digiKam and navigate to the Album view.
3. Initiate the face recognition process.
4. Subfolders are scanned.
5. Interrupt the face recognition process and close digiKam.
6. Reopen digiKam and resume the face recognition process.
7. Notice that the face-detection process restarts from the beginning, rather than picking up where it left off.


OBSERVED RESULT
1. There is no subfolders for albums on external hard drives in People view
2. When the face recognition process is initiated from the Album view, only the main folder of the album is scanned. Subfolders within the album are ignored.
3. If the face recognition process is interrupted and then restarted, it starts over from the beginning, rather than resuming from where it left off.


EXPECTED RESULT
1. When initiating the face recognition process from within people view, the software should scan not only the main album folders but also any subfolders, ensuring all images are processed.
2. The face recognition process should remember its progress between sessions or give an option in Album view, allowing for it to be paused and resumed without starting from the beginning each time.


SOFTWARE/OS VERSIONS
Linux Debian: 11.7.0 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.15.9

ADDITIONAL INFORMATION
digiKam installed through flatpak
Comment 1 Maik Qualmann 2023-05-15 14:14:26 UTC
In the People view and others, subfolders are not automatically selected, note that all folders must have a check mark to be scanned. Use the right mouse button menu and select Children's Albums to include all subfolders.

Maik
Comment 2 Maik Qualmann 2023-05-15 14:16:43 UTC
We currently have a merge request to automatically select all subfolders via an option:

https://invent.kde.org/graphics/digikam/-/merge_requests/209

Maik
Comment 3 Maik Qualmann 2023-05-15 14:19:36 UTC
If you don't see any subfolders in general, it's because of your sandbox of the Flatpak version. Configure the rights accordingly with Flatseal. Or better yet, use our AppImage.

Maik
Comment 4 Maik Qualmann 2023-05-15 20:34:20 UTC
Git commit 01284d5560ecea9f44cf5cb8a58d1926ebceba3f by Maik Qualmann.
Committed on 15/05/2023 at 20:33.
Pushed by mqualmann into branch 'master'.

enable recursive selection option in the People View and others

M  +3    -1    core/utilities/facemanagement/widgets/facescanwidget.cpp
M  +1    -1    core/utilities/fuzzysearch/fuzzysearchview_similar.cpp
M  +1    -1    core/utilities/fuzzysearch/fuzzysearchview_sketch.cpp
M  +2    -1    core/utilities/maintenance/maintenancedlg.cpp

https://invent.kde.org/graphics/digikam/commit/01284d5560ecea9f44cf5cb8a58d1926ebceba3f
Comment 5 Robert Perkins 2023-05-30 18:10:17 UTC
As a workaround, in the People interface, if you right click on the top level external drive folder, it will present you with a choice to select the children subfolders.   It then (for me) selects the 972 nested folders.   BUT, the folder tree is not visible in the interface.
Comment 6 Maik Qualmann 2023-05-30 18:50:59 UTC
I can't imagine that, why shouldn't the folder tree be visible? Can you please take a screenshot?

Maik
Comment 7 caulier.gilles 2023-10-11 05:05:58 UTC
Robert,

Do you seen the last comments from Maik ?

Gilles Caulier
Comment 8 Maik Qualmann 2025-01-20 11:36:07 UTC
I think this is a duplicate of bug 498910.
Users don't know how to expand the collection root by double clicking in the album selector.

Maik
Comment 9 Maik Qualmann 2025-01-20 21:41:18 UTC
Git commit 580810407d62a1cfaf1eaa8a337a09e8035dbb58 by Maik Qualmann.
Committed on 20/01/2025 at 21:39.
Pushed by mqualmann into branch 'master'.

show root item expander in the album selector
Related: bug 498910
FIXED-IN: 8.6.0

M  +2    -2    NEWS
M  +1    -0    core/libs/album/widgets/albumselectcombobox.cpp

https://invent.kde.org/graphics/digikam/-/commit/580810407d62a1cfaf1eaa8a337a09e8035dbb58