robinduckett / pam-face-authentication

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

Change video source /dev/video0 to /dev/video1 #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install OK! 
2. After install no problem and total functionality
3. After reboot take de tv-capture card (/dev/video0) instead webcam 
(/dev/video1)

What is the expected output? What do you see instead?
I see the TV in the face recognition window insted my face from the webcam.

What version of the product are you using? On what operating system?
Ubuntu 10.04

Please provide any additional information below.
All function flawless until reboot.

(I know this may be a very simple problem, but I'm a linux beginner; an english 
isn't my mother tongue, :)

Original issue reported on code.google.com by tutucavo...@gmail.com on 30 Sep 2010 at 3:41

GoogleCodeExporter commented 8 years ago
Yes! We added a new feature in the svn to use /dev/videoX by setting X in 
configuration. Version 0.4 will be released soon :)

Original comment by rohan.a...@gmail.com on 30 Sep 2010 at 3:44

GoogleCodeExporter commented 8 years ago
Thanks, really fast response. I'm very glad about that.
But... (sorry!)
I must wait for 0.4 version to fix the problen?
Or simply I must edit a file and change video source? Wich file?

Original comment by tutucavo...@gmail.com on 30 Sep 2010 at 3:57

GoogleCodeExporter commented 8 years ago
cvCaptureFromCAM(0); -> cvCaptureFromCAM(1);
in opencvWebcam.cpp

Original comment by rohan.a...@gmail.com on 30 Sep 2010 at 4:20

GoogleCodeExporter commented 8 years ago
Could you tell me where os located the file please ?

Thanks.

Original comment by louis.ch...@gmail.com on 23 Oct 2010 at 10:20

GoogleCodeExporter commented 8 years ago
Louis, simply edit /usr/share/config.xml and set <CAMERA_INDEX> to 1,2,3 etc.
Doing the interface change this way, you don't have to modify the sourcecode.

Original comment by feichtne...@gmail.com on 23 Oct 2010 at 10:57

GoogleCodeExporter commented 8 years ago
I openned /usr/share/config.xml and it's a blank file, there's nothing. Can you 
show me how to make the entry to set the camera index?

Original comment by tutucavo...@gmail.com on 27 Oct 2010 at 6:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ok, on my system (Ubuntu) it's /usr/share/config.xml.
In your case, just do like Rohan propsed and change the line 
cvCaptureFromCam(0) to cvCaptureFromCam(1) in the file openCvWebcam.cpp,
then recompile

Original comment by feichtne...@gmail.com on 27 Oct 2010 at 8:52

GoogleCodeExporter commented 8 years ago
Ok, on my system (Ubuntu) it's /usr/share/config.xml.
In your case, just do like Rohan propsed and change the line 
cvCaptureFromCam(0) to cvCaptureFromCam(1) in the file openCvWebcam.cpp,
then recompile

Original comment by feichtne...@gmail.com on 27 Oct 2010 at 8:52

GoogleCodeExporter commented 8 years ago
Ok, on my system (Ubuntu) it's /usr/share/config.xml.
In your case, just do like Rohan propsed and change the line 
cvCaptureFromCam(0) to cvCaptureFromCam(1) in the file openCvWebcam.cpp,
then recompile

Original comment by feichtne...@gmail.com on 27 Oct 2010 at 8:52

GoogleCodeExporter commented 8 years ago
Ok, on my system (Ubuntu) it's /usr/share/config.xml.
In your case, just do like Rohan propsed and change the line 
cvCaptureFromCam(0) to cvCaptureFromCam(1) in the file openCvWebcam.cpp,
then recompile

Original comment by feichtne...@gmail.com on 27 Oct 2010 at 8:53