[digikam] [Bug 337507] New: Face Detection gives no results, no matter the accuracy setting

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] New: Face Detection gives no results, no matter the accuracy setting

Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

            Bug ID: 337507
           Summary: Face Detection gives no results, no matter the
                    accuracy setting
           Product: digikam
           Version: 4.1.0
          Hardware: Debian unstable
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: NOR
         Component: Face Management
          Assignee: [hidden email]
          Reporter: [hidden email]

Face Detection does not work at all for me, every time I run the detection the
following happens:

Digikam starts scanning the files, this is gonna take about 13 seconds for 101
pictures. While it is scanning, nothing shows up apart from the progress bar.

The settings I use are: Detect faces; rescan and merge results; search by
tag->"any tag"; accuracy 80; use all processor kernels.

This is reproducable with pretty much any settings, I already tried searching
ALL collections and ALL tags, set accuracy to 80, 50, 20, tried using only one
kernel (which somehow results in the same speed).

I also tried to mark 1 face manually and rescanned hoping it would at least
detect that face then, but it didnt.

Reproducible: Always

Steps to Reproduce:
1. Start scanning for faces (face detection).
2. Wait for results.
3. Nothing happens!
Actual Results:  
Basically no actual results apart from a progress bar appearing.

Expected Results:  
I would expect a LOT of face markers to show up in my collections.

I have no idea how to give additional information, since I'm a linux newbie. If
anyone could give me instructions I will provide further info.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=337507

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Gilles Caulier <[hidden email]> ---
Look this comment here :

https://www.digikam.org/node/714#comment-20767

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Am.Tresen
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

--- Comment #2 from [hidden email] ---
(In reply to Gilles Caulier from comment #1)
> Look this comment here :
>
> https://www.digikam.org/node/714#comment-20767



This is what debug gave out for me:

digikam(6660)/KFACE KFaceIface::FaceDetector::Private::backend: OpenCV Haar
Cascades dir found at ()
digikam(6660)/KFACE: OpenCV Haar Cascade director cannot be found. Did you
install OpenCV XML data files?

I guess the problem is that the Cascades directory isnt found. It is at
/usr/share/opencv/haarcascades though, and i downloaded all the XML files from
the website you specified. Is there any workaround for this, like specifying
the directory for OpenCV or something?

Thanks in advance,

Tresen

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Gilles Caulier-4
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

--- Comment #3 from Gilles Caulier <[hidden email]> ---
No place files here :

[root@localhost haarcascades]# pwd
/usr/share/apps/libkface/haarcascades
[root@localhost haarcascades]# ls -al
total 11984
drwxr-xr-x 2 root root    4096 juin  23 14:12 ./
drwxr-xr-x 5 root root    4096 mars   4 15:29 ../
-rw-r--r-- 1 root root  837462 juin  18 15:05 haarcascade_frontalface_alt2.xml
-rw-r--r-- 1 root root 3644763 juin  18 15:05
haarcascade_frontalface_alt_tree.xml
-rw-r--r-- 1 root root  919871 juin  18 15:05 haarcascade_frontalface_alt.xml
-rw-r--r-- 1 root root 1254733 juin  18 15:05
haarcascade_frontalface_default.xml
-rw-r--r-- 1 root root  777721 juin  18 15:05 haarcascade_mcs_lefteye.xml
-rw-r--r-- 1 root root  719806 juin  18 15:05 haarcascade_mcs_mouth.xml
-rw-r--r-- 1 root root 1585210 juin  18 15:05 haarcascade_mcs_nose.xml
-rw-r--r-- 1 root root 1383113 juin  18 15:05 haarcascade_mcs_righteye.xml
-rw-r--r-- 1 root root 1125633 juin  18 15:05 haarcascade_profileface.xml
[root@localhost haarcascades]#

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Am.Tresen
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

--- Comment #4 from [hidden email] ---
Created attachment 87765
  --> https://bugs.kde.org/attachment.cgi?id=87765&action=edit
Screenshot of folder content

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Am.Tresen
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

--- Comment #5 from [hidden email] ---
Thanks for all your info, but it sadly still doesn't work. I've copied the
haarcascades directory to

/usr/share/apps/libkface/
/home/sebastian/libkface/ (this is the only libkface directory I have it seems.
Strange place, isn't it?)
and finally
/home/sebastian/libkface/libkface
/home/sebastian/libkface/libkface/detection

Neither of these worked. All the directories already existed (not containing
the haarcascades folder), except for the one you specified (the first one).
Error message is identical for each of the tries. I've attached a picture of
what the folder content looks like, but it seems complete to me.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Am.Tresen
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

--- Comment #6 from [hidden email] ---
Do I have to run the git in a specific directory for this link you provided?

https://projects.kde.org/projects/extragear/libs/libkface/repository/revisions/master/show/data

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Am.Tresen
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

--- Comment #7 from [hidden email] ---
Okay, I managed to make it work. I needed to copy the xml files into the
following directory:

/home/YOURUSERNAME/.kde/share/apps/libkface/haarcascades/

Thanks for the support :-)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Am.Tresen
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

--- Comment #8 from [hidden email] ---
(In reply to Am.Tresen from comment #7)
> Okay, I managed to make it work. I needed to copy the xml files into the
> following directory:
>
> /home/YOURUSERNAME/.kde/share/apps/libkface/haarcascades/
>
> Thanks for the support :-)

To add this: This was for Debian Sid.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Gilles Caulier-4
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DOWNSTREAM
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #9 from Gilles Caulier <[hidden email]> ---
Following explanations given on digiKam.org here :

https://www.digikam.org/node/714#comment-20767

It most relevant of DOWNSTREAM problem about libkface used to compile digiKam
under Debian...

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Gilles Caulier-4
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |4.2.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Gilles Caulier-4
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DOWNSTREAM                  |FIXED
      Latest Commit|                            |http://commits.kde.org/libk
                   |                            |face/488a97a8c8db3da7875b6c
                   |                            |b0dba55b7a8314e9b9

--- Comment #10 from Gilles Caulier <[hidden email]> ---
Git commit 488a97a8c8db3da7875b6cb0dba55b7a8314e9b9 by Gilles Caulier.
Committed on 19/07/2014 at 08:51.
Pushed by cgilles into branch 'master'.

add OPenCV cmake Install path in list of paths to search shared Haar Cascade
files

M  +3    -1    libkface/CMakeLists.txt
M  +6    -3    libkface/facedetector.cpp
R  +3    -0    libkface/libopencv.h.cmake.in [from: libkface/libopencv.h - 095%
similarity]
M  +1    -0    tests/CMakeLists.txt

http://commits.kde.org/libkface/488a97a8c8db3da7875b6cb0dba55b7a8314e9b9

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Bugzilla from pino@kde.org
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

Pino Toscano <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #11 from Pino Toscano <[hidden email]> ---
Gilles,

actually, when some months ago I implemented in libkface the way to use the
system versions of the XML files for the haar cascades, it was working fine.
Then, recently, you broke it:
http://commits.kde.org/libkface/b8a9b3f23f073e899cede16c351ca9119d8af510
you renamed the system directory from "opencv" to "OpenCV", thus no more
finding the files, at least on Debian (where they are installed under
/usr/share/opencv/).

I'm going to add also the old path back, so please do *not* remove it, to not
break this feature again, thanks.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Bugzilla from pino@kde.org
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

Pino Toscano <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|http://commits.kde.org/libk |http://commits.kde.org/libk
                   |face/488a97a8c8db3da7875b6c |face/4433a5ba8386641088fe0d
                   |b0dba55b7a8314e9b9          |606f8b18fd0e87e973

--- Comment #12 from Pino Toscano <[hidden email]> ---
Git commit 4433a5ba8386641088fe0d606f8b18fd0e87e973 by Pino Toscano.
Committed on 29/09/2014 at 22:22.
Pushed by pino into branch 'master'.

Restore the lowercase path to opencv shared data

Add back the lowercase path to the OpenCV data (e.g. the haar cascades),
as it was before commit b8a9b3f23f073e899cede16c351ca9119d8af510.

This makes likface able to use again system OpenCV data, at least on
Debian systems.

M  +2    -0    libkface/facedetector.cpp

http://commits.kde.org/libkface/4433a5ba8386641088fe0d606f8b18fd0e87e973

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Gilles Caulier-4
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|4.2.0                       |4.4.0

--- Comment #13 from Gilles Caulier <[hidden email]> ---
Thanks Pino to test back under Debian. I don't take a care about this possible
case with Haar cascade files path.

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

Bugzilla from pino@kde.org
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

--- Comment #14 from Pino Toscano <[hidden email]> ---
(In reply to Gilles Caulier from comment #13)
> I don't take a care about this possible case with Haar cascade files path.

Then please do not break it for no reason, thanks.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 337507] Face Detection gives no results, no matter the accuracy setting

bugzilla_noreply
In reply to this post by Am.Tresen
https://bugs.kde.org/show_bug.cgi?id=337507

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Faces-Management            |Faces-Detection

--
You are receiving this mail because:
You are the assignee for the bug.