switchkiller / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

qt-facetrainer does not recognize UVC camera #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have an UVC camery in my laptop, internally connected to the USB bus, which 
works fine through v4l (Video4Linux) in any application I like.

However, qt-facetrainer claims that it cannot find a camera.

Original issue reported on code.google.com by natureshadow on 7 Sep 2010 at 4:49

GoogleCodeExporter commented 9 years ago
Were you able to test the video output using cheese?
Does the problem occur when using the current stable (0.3) or the SVN rev?

Original comment by feichtne...@gmail.com on 7 Sep 2010 at 7:59

GoogleCodeExporter commented 9 years ago
 $ dmesg | grep video
[    0.779149] pci 0000:00:02.0: Boot video device
[    9.286509] Linux video capture interface: v2.00
[    9.479520] uvcvideo 2-5:1.0: usb_probe_interface
[    9.479525] uvcvideo 2-5:1.0: usb_probe_interface - got id
[    9.479539] uvcvideo: Found UVC 1.00 device HP Webcam (064e:c116)
[    9.492780] usbcore: registered new interface driver uvcvideo

Works with cheese 
but with qt-facetrainet cannot open

i put the path of v4l1compat.so under /etc/ld.so.preload

and too not work
any ideas ?

Original comment by knight....@gmail.com on 27 Sep 2010 at 6:10

GoogleCodeExporter commented 9 years ago
and too, I follow tutorial and put this under src/opencvWebcam.cpp

code:

int opencvWebcam::startCamera()
{
     // capture =cvCaptureFromAVI("/home/rohananil/ggm2.avi");
    capture =cvCaptureFromCAM(0);
    if(capture==0)
    return 0;
    else
    // 
    cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, 640);
    cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_HEIGHT, 480);
    return 1;

too not work

Original comment by knight....@gmail.com on 27 Sep 2010 at 6:13

GoogleCodeExporter commented 9 years ago
Did you try the latest SVN version from SVN?

I can't see why the use of cvSetCaptureProperty would make it working...
Please also have a look at 
http://pam-face-authentication.org/wiki/index.php?title=Installation

Original comment by feichtne...@gmail.com on 27 Sep 2010 at 7:00

GoogleCodeExporter commented 9 years ago
I tried the latest version of svn, but cannot compile, an error with gtk, it't 
possible compile without gtk, I use qt ( KDE 4 )

Original comment by knight....@gmail.com on 27 Sep 2010 at 7:57

GoogleCodeExporter commented 9 years ago
oh, sry the version with gtk is no longer in use. we just should clean the SVN 
;)

the current SVN trunk is right here: 
https://pam-face-authentication.googlecode.com/svn/trunk/qtbranch/

Original comment by feichtne...@gmail.com on 27 Sep 2010 at 8:56

GoogleCodeExporter commented 9 years ago
I tried from svn

but same thing, "camera not found" when I execute qt-facetrainer

any idea ?

Regards

Original comment by knight....@gmail.com on 28 Sep 2010 at 1:13

GoogleCodeExporter commented 9 years ago
what version of OpenCV are you using?

Original comment by rohan.a...@gmail.com on 28 Sep 2010 at 1:22

GoogleCodeExporter commented 9 years ago
what version of OpenCV are you using?

Original comment by rohan.a...@gmail.com on 28 Sep 2010 at 1:22

GoogleCodeExporter commented 9 years ago
I use gentoo

the version of my opencv is 2.1.0

Original comment by knight....@gmail.com on 28 Sep 2010 at 1:26

GoogleCodeExporter commented 9 years ago
EI MEN !!!!!!!!!!!!!!!!!!!!!!!!!
Works !

really !

my opencv was without v4l 

I compiled it with v4l and gstreamer support and now works a charm

very very thanks !!!!!!!!

Original comment by knight....@gmail.com on 28 Sep 2010 at 1:38

GoogleCodeExporter commented 9 years ago
Buy us beer next time any of us meet :)

Original comment by rohan.a...@gmail.com on 28 Sep 2010 at 1:43

GoogleCodeExporter commented 9 years ago
Of course ! come here at brazil and I will pay bears and wisks to you

other problem ...

with svn and 0.3 when I click "capture" button, 

the follow error segmentation faul, plugin work with kdm , I see me , but not 
authenticate.

what i have do ? downgrade some lib? my system are completly updated

Regards

Original comment by knight....@gmail.com on 28 Sep 2010 at 2:38

GoogleCodeExporter commented 9 years ago
Hello There ! 

In this morning I recompiled opencv 2.1.0 with v4l,gstreamer and jpeg2k
Now NO segmentantion fault and my gentoo with kde 4.5 authentique with face

Thanks for all support, You are very very prestative

Congratulation

Excelent work ! 

Regards 

Original comment by knight....@gmail.com on 28 Sep 2010 at 1:34

GoogleCodeExporter commented 9 years ago
Any instructions on how to compile opencv 2.1.0 with v4l, gstreamer and jpeg2k?

Original comment by pgmi...@googlemail.com on 28 Sep 2010 at 3:42

GoogleCodeExporter commented 9 years ago
Never mind, I got it working like this

sudo LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so qt-facetrainer

There is no direct access to the v4l libraries, one needs root priveleges for 
qt-facetrainer to work. The above command allows that.

These instructions were found here:
http://repat.de/2010/05/pam_face_authentication-with-ubuntu-9-10karmic-koala-gdm
-speedlink-webcam/

Original comment by pgmi...@googlemail.com on 28 Sep 2010 at 4:06

GoogleCodeExporter commented 9 years ago
I too have the segmentation fault when using SUDO:
sudo apt-get update
Face Verification Pluggable Authentication Module Started
Keep proper distance with the camera.
Verifying Face ...
Verification successful.
Segmentation fault

I removed the opencv and installed opencv 2.1, but then PFA would no longer 
recognize my camera.  I have since removed opencv 2.1 and gone back to the 
dependency list given in the wiki installation page.  Updated (detailed) 
instructions for using opencv 2.1 that will maintain the camera use is needed 
on the wiki, in my opinion.

Original comment by scarabdrowner@gmail.com on 1 Oct 2010 at 8:37

GoogleCodeExporter commented 9 years ago
Please have a look at:
http://code.google.com/p/pam-face-authentication/issues/detail?id=25
and
http://code.google.com/p/pam-face-authentication/issues/detail?id=46

They should match your problem...

Original comment by feichtne...@gmail.com on 1 Oct 2010 at 9:44