haolinwei / pam-face-authentication

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

Problems to capture the image in 0.2 #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run gtk-facemanager
2. Click to add

What is the expected output? What do you see instead?
I guess this should show my webcam

What version of the product are you using? On what operating system?
0.2, Ubuntu 9.04

Please provide any additional information below.

I'm try to use "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" after
this, when i click in "add" i got a segmention fault. 

I tried to install 0.3 but i don't know how to do it. 

Original issue reported on code.google.com by xsal...@gmail.com on 12 Aug 2009 at 12:45

GoogleCodeExporter commented 9 years ago
This is the How-to , it should work for 0.3

http://lifeasiknow-it.blogspot.com/2009/08/pam-face-authentication-musings-how-t
o.html

just install those libraries and you can compile it easily

let me know if you need any more help

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 12:49

GoogleCodeExporter commented 9 years ago

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 12:49

GoogleCodeExporter commented 9 years ago

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 12:49

GoogleCodeExporter commented 9 years ago
when using, "cmake -D CMAKE_INSTALL_DIR=/usr .." got this... 

-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1472 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  CMakeLists.txt:73 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!

And i guess i already have:
    Opencv 1.0.0 + (http://opencv.willowgarage.com/wiki/InstallGuide_Linux installed
and tested)

    libpam ( also the devel package) (verified in synaptic)

    libX11 (also the devel package ) (verified in synaptic)

    Qt4.5 (Not tested with lower versions) (verified in qtconfig, about.)

Original comment by xsal...@gmail.com on 12 Aug 2009 at 1:20

GoogleCodeExporter commented 9 years ago
PS: I haven't removed the libs and other things that i used in older version.

Original comment by xsal...@gmail.com on 12 Aug 2009 at 1:21

GoogleCodeExporter commented 9 years ago
After i install qt4.5 dev i tryed again and got this:

-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.0
-- Checking GNUCXX version 3/4 to determine  OpenCV /opt/net/ path
-- Performing Test PAM_MESSAGE_CONST
-- Performing Test PAM_MESSAGE_CONST - Success
-- Found PAM: /usr/lib/libpam.so;/usr/lib/libdl.so
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/x-warrior/Desktop/pam-face-authentication-0.3/build"

Now i'm trying to use make and make install. I will post the results here.

Original comment by xsal...@gmail.com on 12 Aug 2009 at 1:33

GoogleCodeExporter commented 9 years ago
make ok, make install i guess its ok. 

but when i try to use qt-facetrainer, it runs but i get a black screen with 
colored
dots. and in my console i got this error: 
"libv4l2: error dequeuing buf: Resource temporarily unavailable"

Original comment by xsal...@gmail.com on 12 Aug 2009 at 1:37

GoogleCodeExporter commented 9 years ago
unset this and  try
export LD_PRELOAD=

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 1:44

GoogleCodeExporter commented 9 years ago
# qt-facetrainer
HIGHGUI ERROR: V4L: index 0 is not correct!

# ls /dev/video0 
/dev/video0

Original comment by xsal...@gmail.com on 12 Aug 2009 at 1:48

GoogleCodeExporter commented 9 years ago
could you reconnect the cam and try this , or best do a restart

i have never seen this error before , so i am not sure

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 1:51

GoogleCodeExporter commented 9 years ago
I try to reconnect it. Doesn't work. 

Then i try to reboot. Doesn't work. 

Then i try to reconnect it again. Doesn't work. 

I try to use 'cheese' to see if webcam is working i can see the image but i get 
alot of 

libv4lconvert: Error decompressing JPEG: unknown huffman code: 0000fffb
libv4lconvert: Error decompressing JPEG: unknown huffman code: 0000fffb
libv4lconvert: Error decompressing JPEG: unknown huffman code: 0000ffff
libv4lconvert: Error decompressing JPEG: unknown huffman code: 0000fff6
libv4lconvert: Error decompressing JPEG: unknown huffman code: 0000ffff

Don't know if its related, just sending more informations to help. 

I will try to fix this, if i can i will post here. If you have another idea, 
tell me. 

Original comment by xsal...@gmail.com on 12 Aug 2009 at 2:00

GoogleCodeExporter commented 9 years ago
what webcam do you use

reconnect
and do dmesg
you can get product id and vendor id from there

also the output of lsmod

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 2:04

GoogleCodeExporter commented 9 years ago
after that
do modprobe -r  (gspca or uvcvideo)

and load it again
modprobe (gspca or uvcvideo)

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 2:07

GoogleCodeExporter commented 9 years ago
what kernel version do you use?

also consider updating the kernel

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 2:09

GoogleCodeExporter commented 9 years ago
dmesg

[ 1147.152047] usb 5-2: USB disconnect, address 3
[ 1147.152544] gspca: disconnect complete
[ 1149.516026] usb 5-2: new full speed USB device using uhci_hcd and address 4
[ 1149.709586] usb 5-2: configuration #1 chosen from 1 choice
[ 1149.712301] gspca: probing 0ac8:307b
[ 1150.483236] zc3xx: probe 2wr ov vga 0x7648
[ 1150.602244] zc3xx: probe 3wr vga 1 0x4001
[ 1150.784250] zc3xx: probe sensor -> 7648
[ 1150.784255] zc3xx: Find Sensor OV7648
[ 1150.787401] gspca: probe ok

lsmod:

$ lsmod
Module                  Size  Used by
ipt_REDIRECT           10240  1 
xt_tcpudp              11776  3 
ipt_MASQUERADE         11520  1 
iptable_nat            14724  1 
nf_nat                 30100  3 ipt_REDIRECT,ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      24216  3 iptable_nat,nf_nat
nf_conntrack           84752  4 
ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4         10496  1 nf_conntrack_ipv4
iptable_filter         11392  1 
ip_tables              28304  2 iptable_nat,iptable_filter
x_tables               31624  5
ipt_REDIRECT,xt_tcpudp,ipt_MASQUERADE,iptable_nat,ip_tables
tun                    20868  0 
binfmt_misc            18572  1 
vboxnetadp            107308  0 
vboxnetflt            114796  0 
vboxdrv              1719308  1 vboxnetflt
lp                     19588  0 
gspca_zc3xx            59392  0 
gspca_main             34560  1 gspca_zc3xx
snd_hda_intel         557364  3 
snd_pcm_oss            52352  0 
snd_mixer_oss          24960  1 snd_pcm_oss
compat_ioctl32         18304  1 gspca_main
snd_pcm                99336  2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy          11524  0 
snd_seq_oss            41984  0 
snd_seq_midi           15744  0 
snd_rawmidi            33920  1 snd_seq_midi
snd_seq_midi_event     16512  2 snd_seq_oss,snd_seq_midi
snd_seq                66272  6 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              34064  2 snd_pcm,snd_seq
snd_seq_device         16276  5
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
videodev               45184  2 gspca_main,compat_ioctl32
snd                    78792  15
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,
snd_timer,snd_seq_device
i2c_viapro             17304  0 
v4l1_compat            23940  1 videodev
ppdev                  16904  0 
pcspkr                 11136  0 
soundcore              16800  1 snd
snd_page_alloc         18704  2 snd_hda_intel,snd_pcm
shpchp                 44572  0 
nvidia               8123768  26 
parport_pc             45096  1 
parport                49584  3 lp,ppdev,parport_pc
via_agp                18048  1 
usbhid                 47040  0 
r8169                  46596  0 
mii                    14464  1 r8169
floppy                 75816  0 
fbcon                  49792  0 
tileblit               11264  1 fbcon
font                   17024  1 fbcon
bitblit                14464  1 fbcon
softcursor             10368  1 bitblit

uname -a

Linux x-warrior-desktop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 
UTC 2009
x86_64 GNU/Linux

After try modprobe -r uvcvideo and modprobe uvcvideo i got the same problem.

Original comment by xsal...@gmail.com on 12 Aug 2009 at 2:14

GoogleCodeExporter commented 9 years ago
Do you think i should update my kernel?

Original comment by xsal...@gmail.com on 12 Aug 2009 at 4:32

GoogleCodeExporter commented 9 years ago
i had issues with 2.6.27 , now i am running .30 , it works smooth
yup update the kernel

Original comment by rohan.a...@gmail.com on 12 Aug 2009 at 4:34

GoogleCodeExporter commented 9 years ago
I used this
linux-headers-2.6.30-020630_2.6.30-020630_all.deb

* AMD64: linux-headers-2.6.30-020630-generic_2.6.30-020630_amd64.deb.
* AMD64: linux-image-2.6.30-020630-generic_2.6.30-020630_amd64.deb.

from http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30/

now: 
$ uname -a
Linux x-warrior-desktop 2.6.30-020630-generic #020630 SMP Wed Jun 10 09:04:38 
UTC
2009 x86_64 GNU/Linux

But i can't use it yet. I already have the same problem, the webcam is 
connected and
it says it isnt. 

I tryed the other things but it doesn't work. 

Any idea? :/

Original comment by xsal...@gmail.com on 12 Aug 2009 at 6:31

GoogleCodeExporter commented 9 years ago
Hey man,

I formated my computer and installed Ubuntu 9.10 alpha 4 and try again 
verifying all
the steps and now its working for me. 

So, if you need some help talk to me ;) 

See you 

Original comment by xsal...@gmail.com on 19 Aug 2009 at 3:55

GoogleCodeExporter commented 9 years ago
thats cool ,
You could try if it works with gdm
add line into /etc/pam.d/gdm
auth sufficient pam_face_authentication.so enableX

if this does not work
auth sufficient pam_face_authentication.so gdmlegacy

Original comment by rohan.a...@gmail.com on 19 Aug 2009 at 3:59

GoogleCodeExporter commented 9 years ago
I already try it. 

It works sometimes but i receive a lot of 
"Corrupt JPEG data: premature end of data segment"

How many Sets of images is recommended? 

I used "auth sufficient pam_face_authentication.so enableX" now i try 
"auth sufficient pam_face_authentication.so gdmlegacy" and got alot of the same 
error
but i don't see my face in window, so i can't see if its "cool" 

Original comment by xsal...@gmail.com on 19 Aug 2009 at 4:05

GoogleCodeExporter commented 9 years ago
I changed my webcam position and recreated a facetraine, and use both methods
gdmlegacy and enableX. I get now much sucess then failures. 

but i still receive 

"Face Verification Pluggable Authentication Module Started
Corrupt JPEG data: premature end of data segment
Verifying Face ...
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Verification successful."

Another question, if i want that 2 people have access to this account, i create 
one
set to each people?

Original comment by xsal...@gmail.com on 20 Aug 2009 at 4:30

GoogleCodeExporter commented 9 years ago
yes, you can create a set or more (under different illumination) sets for each 
person
, it should work

Original comment by rohan.a...@gmail.com on 20 Aug 2009 at 7:18

GoogleCodeExporter commented 9 years ago

Original comment by rohan.a...@gmail.com on 8 Jul 2010 at 11:00