Bug 286463 - Face detection does nothing in digiKam 2.3.0 windows 7 using the "official" installer
Summary: Face detection does nothing in digiKam 2.3.0 windows 7 using the "official" i...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Detection (show other bugs)
Version: 2.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-13 03:28 UTC by blacksmith_john_50
Modified: 2017-07-26 17:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description blacksmith_john_50 2011-11-13 03:28:35 UTC
Version:           2.3.0
OS:                MS Windows

I upgraded digiKam from version 2.0.0r2 because face detection did not work. I used the Windows installer advertise here:

http://www.digikam.org/drupal/node/632

(The URL is: http://sourceforge.net/projects/digikam/files/digikam/2.3.0/digiKam-installer-2.3.0-win32.exe/download)

This installed to C:/Program Files/digiKam/

When I click on the Face detection tag and the "Scan collection for faces" and then "Scan" I receive a window that says it is detecting faces, it completes almost instantly and says it is finished. No faces are detected.

I have almost 20,000 photos, thumbnailing and fingerprinting these took a long time (about half and hour each). I do not believe the face detection is even trying to find faces and fails before it has started.

Reproducible: Always

Steps to Reproduce:
I have tried this with every setting in the Scan window with exactly the same results (except the time is longer when I ask it to "Clear and rebuild all training data").

Actual Results:  
No face detections.

Expected Results:  
Approximately 40,000 face detections based on the results of another face detection program that I would like to transfer from to digiKam.

I can provide any information you ask for in relation to this bug but I do not know where to start so I will give you some things that might be relevant. Please ask me for anything that might help you.

I am running Windows 7 Starter Service Pack 1.
I used the 2.3.0 Windows installer for digiKam 2.3.0.
It installed to C:/Program Files/digiKam

The icons in the Windows menu pointed to C:/Program Files/digiKam/kde4, I tried using the installation where it was and then moved it to C:/Program Files/digiKam/kde4 but this also did not work (I did this in case there were hard coded directories... I don't know where else to try putting it if this is the problem).

If this is still the ioslaves problem (I don't understand how it can be with an all inclusive installation package) please direct me to where I can find updated files to replace the ones that came with the installation package.

If you would like me to reinstall from scratch please tell me all the folders I should delete to completely remove the old installation after I have used the uninstall program (I'm aware that some are sometimes left even after use of uninstall programs).

digiKam version 2.3.0
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibClapack: internal library
LibExiv2: 0.21
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.7.2 (4.7.2)
LibKExiv2: 2.0.0
LibKGeoMap: 2.0.0
LibKdcraw: 2.0.0
LibLCMS: 119
LibPGF: 6.11.42 - internal library
LibPNG: 1.4.4
LibQt: 4.7.4
LibRaw: 0.13.8
LibTIFF: LIBTIFF, Version 3.9.2 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.12.2 (stable release)
Parallelized demosaicing: Yes
Database backend: QSQLITE
LibKface: 2.0.0
LibKipi: 1.2.0
LibOpenCV: 2.3.0
Libface: 0.2


digiKam version 2.3.0
Images:
GIF: 1
JPG: 19570
PNG: 111
total: 19682
:
:
Total Items: 19682
Albums: 629
Tags: 46
Database backend: QSQLITE
Comment 1 Ananta Palani 2011-11-14 21:01:06 UTC
Sorry you are having trouble! I just tested on my copy of windows with around 23,000 photos and it scans fine. Note that detection works, but not recognition (i.e. it will find faces in photos, but it will not be able to identify who they are yet).

Firstly, the reason that your shortcuts pointed to a kde4 directory was due to the old installer and was moved for consistency with other ported apps.

Second, just to confirm did you try selecting specific albums in the 'Scanning faces' dialog? I tried with 'Detect and recognize faces' chosen and 'Scan again and merge results' chosen from the drop-down. Then, from the albums tab I have 'Any albums' and 'Any tags' for 'Search in'. On the parameters tab I have it set to 80. On the advanced tab I have 'Work on all processor cores' checked. I'm not sure this is an option on Windows Starter. You could try unchecking this.

If that doesn't work, run the uninstaller and restart your computer. Then delete the 'digikam' folder (if it still exists) from C:\Program Files\ and from the Start Menu. You can then reinstall digiKam from the installer. If you don't mind losing all of your preferences you could also delete the entire directory here (maybe make a backup of your digikamrc file within first):

C:\Users\<your windows username>\AppData\Roaming\.kde
Comment 2 blacksmith_john_50 2011-11-15 01:39:20 UTC
So given your comments I shifted everything back to the original install directory (without the "kde4").

I then started everything up and took another look at the "Scanning Faces" dialog. I deselected my root album and it changed the option to say "Any Albums" (surely this is the same thing... no?), checked the other settings so thy matched what you had a ran it, it is now detecting faces (I realise the recognition is not there yet but that's okay, this is a major step forward and enough that'll probably be shifting everything to digiKam from the mishmash we currently have!

So this bug is not that there is no face detection working but that the default chosen for the user is broken. This default is a clearly obvious one that the user will look at and go "Yup, that's right" and leave alone (users never play with things in the real world - they're not geeks like us and are scared of the computer, weird but I've seen it all too often *sigh*).

Having the default option to scan the root album without it cascading to scanning all albums is a bad choice (especially as the users first ever view of this feature (and definitely since there is no documentation - which dates from version 1.2.0 of digiKam!!!)) I would strongly suggest that the default be the same type as the tags default i.e. "Any albums" because surely this is the default choice of face scanning isn't it? (At least for the average user going forward now that you have a Windows installation that is hassle free and working...)

It might well also be worth telling the user which albums were scanned once the scan is finished... had I realised that my root album was the only one being scanned I might have guessed that the choosing of that album did not cascade (which is a pretty common way for these things to work though I can see reasons not to; for example if you really do only want to scan that one album).

I realise there is also an assumption that maybe users will only have one directory for all their images so this shouldn't be an issue... with the advent of FaceBook that is a very bad assumption to make, most people get that putting photos into separate albums is the the way things work so I would suggest that the majority of people now do this leaving an empty root album/directory that causes more confusion and suggestion of a bigger bug than is true.

Anyway, enough from me... if you are needing help with the face recognition and can point me to a good set of instructions for getting to the repository for that then I might be able to help (I've done some machine vision in the past with robots).

Thank you for your help with my tiny support bug ;) and a huge thank you for packaging this for Windows (I curse the day I got stuck on a Windows box *sigh*)
Comment 3 Dennis Schridde 2012-10-19 08:29:24 UTC
I have apparently the same issue on Linux. In digikam 2.9.0 I click the Persons tab, Scan Collections For Faces, Delete Results And Search Again. No job is added to the list, and digikam just does nothing at all.
Comment 4 Dennis Schridde 2012-10-19 08:38:00 UTC
(In reply to comment #3)
> I have apparently the same issue on Linux. In digikam 2.9.0 I click the
> Persons tab, Scan Collections For Faces, Delete Results And Search Again. No
> job is added to the list, and digikam just does nothing at all.
Ok, it does *something*. But it is far from satisfactory:
* Digikam tells me there is "no active process" on the lower right.
* But it is accessing the disk and using the CPU, so it must be doing something.
* It added a new tag under "Family" (why TH there?).
* This tag is empty when I look in the tags tab, but in the persons tab it shows a bunch of faces. (why not in both?)

I will open a new bug about this.
Comment 5 Dennis Schridde 2012-10-19 08:53:52 UTC
(In reply to comment #4)
> I will open a new bug about this.
bug #308642
Comment 6 caulier.gilles 2014-07-15 08:00:43 UTC
A pre 4.2.0 release installer for Windows has face detection and recognition suitable.

https://drive.google.com/file/d/0B7yq-xFihT0_TTZTaXlUaExlaWs/edit?usp=sharing

Gilles Caulier