[Bug 271679] New: Digikam detects but does not recognize faces.

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

[Bug 271679] New: Digikam detects but does not recognize faces.

Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679

           Summary: Digikam detects but does not recognize faces.
           Product: digikam
           Version: 2.0.0
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Face Detection
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           2.0.0 (using KDE 4.6.2)
OS:                Linux

Digikam does a decent job at detecting faces (which is excellent), but once it
does, it is absolutely incapable of recognizing and sorting them.

Even after manually tagging a large number of the faces it detected, digikam
cannot automatically tag any of the faces in the "unknown" folder.

Also the processing speed for face recognition is suspiciously fast: the job is
completed in a matter of a few seconds, even though the catalog has many
hundreds faces in it. Just detecting faces takes ages and much computing power
(understandably), but it's strange that face recognition is so much faster (but
non functional!).

Reproducible: Always

Steps to Reproduce:
open "scan for faces dialog"
select "recognize faces"
click "scan"

Actual Results:  
no faces tagged as "unknown" are recognized, no matter how many times the
people in those images have been tagged already (manually).

Expected Results:  
"mike's" face tagged as unknown should be automatically tagged as "mike" and
put in the "mike" folder, provided the user already manually tagged "mike"
enough times for the software to "know" his face.

Also it would be helpful it digikam sorted all faces in different tags e.g.
unknown#1, unknown#2, etc, so it would be easier to perform batch tagging.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from Thomas.Eschenbacher@gmx.de
https://bugs.kde.org/show_bug.cgi?id=271679





--- Comment #1 from Thomas Eschenbacher <Thomas Eschenbacher gmx de>  2011-04-26 19:27:26 ---
I can confirm all points mentioned above too!
Here: Gentoo Linux, media-gfx/digikam-2.0.0_beta4, media-libs/opencv-2.1.0

Any clues why this does not work?
Is it a "bug" for which I could help debugging,
or is it just "not (yet) implemented" functionality?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from mrzanda@yahoo.co.uk
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679





--- Comment #2 from Flavio <mrzanda yahoo co uk>  2011-04-26 20:52:37 ---
Ok just repeated the procedure to get the bugrunning Digikam in a terminal.

This is the kind of error message I get:

A few hundred of these messages

OpenCV Error: Assertion failed (ssize.area() > 0) in resize, file
/build/buildd/opencv2.2-2.2.0/modules/imgproc/src/imgwarp.cpp, line 1391
digikam(6608)/KFACE: cv::Exception:
/build/buildd/opencv2.2-2.2.0/modules/imgproc/src/imgwarp.cpp:1391: error:
(-215) ssize.area() > 0 in function resize

then some of these

QImage::scaled: Image is a null image
QImage::scaled: Image is a null image
QImage::scaled: Image is a null image

and so on....

The two kind of messages alternate in a seemingly random way, but there are way
more OpenCV errors than QImage errors. I think each of these errors correspond
to a face it is trying to recognize.

So yes, it appears to be a bug, because digikam is surely trying do do
something and but gets OpenCV errors. This feature is already implemented, it's
just buggy, at least in my case.

Does this feature work for any of you guys out there or is it buggy for
everyone?

Thanks

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from Thomas.Eschenbacher@gmx.de
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679





--- Comment #3 from Thomas Eschenbacher <Thomas Eschenbacher gmx de>  2011-05-01 11:14:42 ---
just some update on this:
I ugraded opencv to version 2.2.0, as this was mentioned on the project
homepage, and rebuilt kipi-plugins + digikam, but nothing changed, the
recognition still does not work at all.
I do not see any error messages coming from opencv, but always the same debug
output when I scan my test album, which contains only one image with 2 faces.

-------------- snip --------------

digikam(20292)/digikam (core) Digikam::FaceScanDialog::doLoadState: "Face
Detection Dialog"
digikam(20292)/digikam (core) Digikam::FaceScanDialog::doSaveState: "Face
Detection Dialog"
digikam(20292)/digikam (core) Digikam::BatchFaceDetector::startAlbumListing:
Total is 1
digikam(20292)/digikam (core) Digikam::BatchFaceDetector::continueAlbumListing:
false false
digikam(20292)/digikam (core) Digikam::BatchFaceDetector::continueAlbumListing:
Album "__TEST"
Object::disconnect: Unexpected null parameter
Object::disconnect: Unexpected null parameter
digikam(20292)/digikam (core) Digikam::BatchFaceDetector::continueAlbumListing:
false true
digikam(20292)/digikam (core) Digikam::DImg::load:
"/var/tmp/test-album/__TEST/12280009.jpg"  : JPEG file identified
digikam(20292)/digikam (core) Digikam::DMetadata::getIccProfile: Exif
color-space tag is sRGB. Using default sRGB ICC profile.
Cascade directory located as : /usr/share/opencv/haarcascades
digikam(20292)/digikam (core) Digikam::DetectionWorker::process: Found 2 faces
in "12280009.jpg" QSize(2048, 1536) QSize(2048, 1536)
Cascade directory located as : /usr/share/opencv/haarcascades
digikam(20292)/digikam (core) Digikam::FaceIface::databaseFaces: rect found as
QRect(594,333 325x325) ""QVariant(QRect, QRect(594,333 325x325) ) for attribute
"autodetectedFace" tag 30
digikam(20292)/digikam (core) Digikam::FaceIface::databaseFaces: rect found as
QRect(1083,379 312x312) ""QVariant(QRect, QRect(1083,379 312x312) ) for
attribute "autodetectedFace" tag 30
digikam(20292)/digikam (core) Digikam::FaceIface::writeUnconfirmedResults:
Entry QRect(1083,379 312x312) ""QVariant(QRect, QRect(1083,379 312x312) ) 30
overlaps QRect(1083,379 312x312) ""QVariant(QRect, QRect(1083,379 312x312) ) 30
, skipping
digikam(20292)/digikam (core) Digikam::FaceIface::writeUnconfirmedResults:
Entry QRect(594,333 325x325) ""QVariant(QRect, QRect(594,333 325x325) ) 30
overlaps QRect(594,333 325x325) ""QVariant(QRect, QRect(594,333 325x325) ) 30 ,
skipping
digikam(20292)/digikam (core)
Digikam::FacePipeline::FacePipelinePriv::checkFinished: Check for finish:  0
packages, 0 infos to filter, hasFinished() true
digikam(20292)/digikam (core) Digikam::BatchFaceDetector::continueAlbumListing:
false false
-------------- snap --------------

Can anyone of the developers see what goes wrong here?
How could I help debugging this?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from terri.bugs@gmx.com
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


[hidden email] changed:

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




--- Comment #4 from  <terri bugs gmx com>  2011-05-30 11:51:27 ---
I have the same problem (faces detected, but never recognized) with beta5.
Installation was done using ppa (philip5) with opencv 2.2.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from spamtrap13@gmail.com
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1




--- Comment #5 from  <spamtrap13 gmail com>  2011-06-10 10:59:24 ---
*** This bug has been confirmed by popular vote. ***

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from gareth.glaccum@btopenworld.com
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


Gareth <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gareth.glaccum@btopenworld.
                   |                            |com




--- Comment #6 from Gareth <gareth glaccum btopenworld com>  2011-06-15 17:20:59 ---
Still suspiciously quick on performing a scan of 80 'unknown' marks (1000+
images) from a GIT pull 1800 hrs GMT 14 Jun 2011
I am not seeing the CV errors reported though, only the QImage

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from leif@dkstat.com
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


Leif Huhn <[hidden email]> changed:

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




--- Comment #7 from Leif Huhn <leif dkstat com>  2011-07-09 03:48:01 ---
I am having the same problem "QImage::scaled: Image is a null image".

I was searching for where digikam keeps the face DB.  On some forum, they
suggested the DB is pointed to be the following file:

~/.kde/share/apps/libkface/database/libface-config.xml

I do not have that file.  Could that be related?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from synanceaverrucosa@abwesend.de
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


J Appel <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |synanceaverrucosa@abwesend.
                   |                            |de




--- Comment #8 from J Appel <synanceaverrucosa abwesend de>  2011-08-06 22:44:33 ---
I can confirm the behavior on archlinux, x64

digikam 2.0
opencv 2.3

haarcascades in
/usr/share/opencv/haarcascades/

Face detection works, recognition does not, message in console is:

QImage::scaled: Image is a null image

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from michel.lafonpuyo@gmail.com
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


Michel Lafon-Puyo <[hidden email]> changed:

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




--- Comment #9 from Michel Lafon-Puyo <michel lafonpuyo gmail com>  2011-08-10 20:37:38 ---
Same as #8.

Tested on arch 32bits too and the problem is exactly the same.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

cave-man
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


[hidden email] changed:

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




--- Comment #10 from  <christian cegetel net>  2011-08-21 10:48:11 ---
The same with digikam 2.0 and opencv 2.3.1 (32b on Fedora).

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from felix_mauch@web.de
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


[hidden email] changed:

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




--- Comment #11 from  <felix_mauch web de>  2011-09-11 08:41:53 ---
Yep, same here.

Archlinux: Digikam 2.1.0, opencv 2.3.1

I also get errors like this:
digikam(16439)/digikam (core) Digikam::FaceTagsEditor::databaseFaces: rect
found as  QRect(584,448 415x415) for attribute "autodetectedFace" tag 84
digikam(16439)/digikam (core)
Digikam::FacePipeline::FacePipelinePriv::checkFinished: Check for finish:  0
packages, 3 infos to filter, hasFinished() false
QImage::scaled: Image is a null image

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from bartotten@kde.nl
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


BartOtten <[hidden email]> changed:

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




--- Comment #12 from BartOtten <bartotten kde nl>  2011-09-30 00:41:46 ---
Here the same. No other related messages then:

QImage::scaled: Image is a null image
QImage::scaled: Image is a null image
QImage::scaled: Image is a null image
etc etc

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from bartotten@kde.nl
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679





--- Comment #13 from BartOtten <bartotten kde nl>  2011-09-30 00:57:32 ---
Created an attachment (id=64081)
 --> (http://bugs.kde.org/attachment.cgi?id=64081)
Log Digikam not recognizing faces

Here is a full log from Digikam about not recognizing people/faces.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from Thomas.Eschenbacher@gmx.de
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


Thomas Eschenbacher <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.0.0                       |2.2.0




--- Comment #14 from Thomas Eschenbacher <Thomas Eschenbacher gmx de>  2011-10-31 18:14:41 ---
even after upgrading to a newer opencv version this still does not work on my
Gentoo system:

digikam-2.2.0
media-plugins/kipi-plugins-2.2.0
media-libs/opencv-2.3.0-r1

(I get practically the same output as above in #13, even with a new created
test user account)

Even on a new Kbuntu 11.10 installation it behaves the same, and the same on
two other machines I had access to.

I more and more get the impression that this feature has never worked for
anyone - or is there some "reference system" around there where this feature
really works?

INFO REQUEST:
dear author, please tell us how your system looks like: which distribution and
version of kipi, kde, opencv and so on did you use when developing that
feature?
Did you also test it with a new user account?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from zack23evans@gmail.com
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


Zack Evans <[hidden email]> changed:

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




--- Comment #15 from Zack Evans <zack23evans gmail com>  2011-12-05 23:38:50 ---
So over in bug 269720 the author himself explains that in libkface, the face
detection works but face recognition is not implemented.

So "is this a face, or a building or a tree" can detect the faces... but it
cannot recognise which face this is at all. So we should not expect it to work
yet.

Perhaps we should have a bug for the documentation, as everything you read
seems to say that it should work...

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Gilles Caulier-4
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679





--- Comment #16 from Gilles Caulier <caulier gilles gmail com>  2011-12-14 13:45:17 ---
*** Bug 262212 has been marked as a duplicate of this bug. ***

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from bartotten@kde.nl
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679





--- Comment #17 from BartOtten <bartotten kde nl>  2011-12-14 20:50:45 ---
Maybe it should be removed from the GUI?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Bugzilla from bubukind@web.de
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


[hidden email] changed:

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




--- Comment #18 from  <bubukind web de>  2011-12-14 21:18:15 ---
+1 on that.
This most definitely is an unfinished feature and as such should not be present
in the production GUI and/or feature list.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 271679] Digikam detects but does not recognize faces.

Gilles Caulier-4
In reply to this post by Bugzilla from mrzanda@yahoo.co.uk
https://bugs.kde.org/show_bug.cgi?id=271679


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
            Version|2.2.0                       |2.5.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
12