face detection scanning, but no faces come up

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

face detection scanning, but no faces come up

Simon Oosthoek-6
Hi

I've been playing with the new face detection on my laptop and now I
wanted to try the same on my desktop/server.
Both are running kubuntu 11.04, though with a different install history.
Both are using backports and Philip Johnson's ppa for digikam 2.0.0.

On the laptop face thumbnails appear when scanning, but not on the other
machine. Any idea what can be wrong? I suspect some plugin or library
that is missing or not installed, but I don't know which one that could
be...

Cheers

Simon
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: face detection scanning, but no faces come up

Philip Johnsson
Sounds like you have some sort of glitch with Digikam 2.0 that doesn't
work as it should. Either with the install or your configuration
files.

For starters just check that the installed components are the same
versions in both. You can easily do this from within Digikam. Go to
the Help menu and select "Components Information". Compare them and
see if there are any differences between the two systems you use.

If they look the same the next step would be to see if Digikam really
finds the data files for face detection.  The easy way to do this is
to start Digikam from your favorite console/terminal by just typing
digikam and hit enter. Digikam will start any you likely see some
messages. Now go to the  "People" section within Digikam where you do
the face detection scan and do a scan (you might need to select scan
again and merge" in the drop down menu in "Scanning faces"). When you
do this you should look in your console/terminal again and hopefully
get a message that Digikam have found your Cascade directory. You
should see a line like this "Cascade directory located as :
/usr/share/kde4/apps/libkface/haarcascades" or maybe but not likely
"Cascade directory located as : /usr/share/opencv". If you see that
then that's good so far.

If both the components information are the same and it finds the
haarcascades then the problem might be with your users digikam
configuration files or something more arcane.

Start with this and see what you find.

Regards,

Philip



On Tue, Aug 9, 2011 at 11:18 AM, Simon Oosthoek <[hidden email]> wrote:

> Hi
>
> I've been playing with the new face detection on my laptop and now I
> wanted to try the same on my desktop/server.
> Both are running kubuntu 11.04, though with a different install history.
> Both are using backports and Philip Johnson's ppa for digikam 2.0.0.
>
> On the laptop face thumbnails appear when scanning, but not on the other
> machine. Any idea what can be wrong? I suspect some plugin or library
> that is missing or not installed, but I don't know which one that could
> be...
>
> Cheers
>
> Simon
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: face detection scanning, but no faces come up

Marcel Wiesweg
In reply to this post by Simon Oosthoek-6

> I've been playing with the new face detection on my laptop and now I
> wanted to try the same on my desktop/server.
> Both are running kubuntu 11.04, though with a different install history.
> Both are using backports and Philip Johnson's ppa for digikam 2.0.0.
>
> On the laptop face thumbnails appear when scanning, but not on the other
> machine. Any idea what can be wrong? I suspect some plugin or library
> that is missing or not installed, but I don't know which one that could
> be...

With this problem, typically the Haar cascades are not installed. (here in
/usr/share/opencv/haarcascades/). They are part of OpenCV but may be contained
in a separate package.
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: face detection scanning, but no faces come up

Gilles Caulier-4
2011/8/9 Marcel Wiesweg <[hidden email]>:

>
>> I've been playing with the new face detection on my laptop and now I
>> wanted to try the same on my desktop/server.
>> Both are running kubuntu 11.04, though with a different install history.
>> Both are using backports and Philip Johnson's ppa for digikam 2.0.0.
>>
>> On the laptop face thumbnails appear when scanning, but not on the other
>> machine. Any idea what can be wrong? I suspect some plugin or library
>> that is missing or not installed, but I don't know which one that could
>> be...
>
> With this problem, typically the Haar cascades are not installed. (here in
> /usr/share/opencv/haarcascades/). They are part of OpenCV but may be contained
> in a separate pack
age.

Marcel,

Not with current code from git, where i copied files from OpenCV to
libkface, to turn around a big problem under windows, where it's not
possible to locate haar files at run-time if digiKam is relocated at
install (in setup you can change standard install dir). 2.0.0 is fixed
like this, not RC.

With this solution, also, haar files must be always found...

Look here for details :

https://projects.kde.org/projects/extragear/libs/libkface/repository/revisions/9e3fafe7b6db043435a4e3fae1ee54b401765bd0

Gilles Caulier
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: face detection scanning, but no faces come up

Simon Oosthoek-6
In reply to this post by Philip Johnsson
On 09/08/11 16:57, Philip Johnsson wrote:
> Sounds like you have some sort of glitch with Digikam 2.0 that doesn't
> work as it should. Either with the install or your configuration
> files.
>
> For starters just check that the installed components are the same
> versions in both. You can easily do this from within Digikam. Go to
> the Help menu and select "Components Information". Compare them and
> see if there are any differences between the two systems you use.
>
They are identical.

> If they look the same the next step would be to see if Digikam really
> finds the data files for face detection.  The easy way to do this is
> to start Digikam from your favorite console/terminal by just typing
> digikam and hit enter. Digikam will start any you likely see some
> messages. Now go to the  "People" section within Digikam where you do
> the face detection scan and do a scan (you might need to select scan
> again and merge" in the drop down menu in "Scanning faces"). When you
> do this you should look in your console/terminal again and hopefully
> get a message that Digikam have found your Cascade directory. You
> should see a line like this "Cascade directory located as :
> /usr/share/kde4/apps/libkface/haarcascades" or maybe but not likely
> "Cascade directory located as : /usr/share/opencv". If you see that
> then that's good so far.

Again, this checks ok
Cascade directory located as : /usr/share/kde4/apps/libkface/haarcascades


> If both the components information are the same and it finds the
> haarcascades then the problem might be with your users digikam
> configuration files or something more arcane.
>
> Start with this and see what you find.
Thanks for the checks, unfortunately the situation is probably due to
some configuration file problem, because the program seems to be just fine.

I can scan albums and it appears to be working (it takes time), but no
face thumbnails are put in the Unknown folder.

In album view I can select the people+ icon and draw a rectangle around
a face and give it a tag. This is my brain doing the work of course ;-)

I tried moving digikamrc to another name and again scanning faces
resulted in no face thumbs. So the digikamrc file seems not to be the
problem...

Cheers

Simon
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users