nagyistoce / pam-face-authentication

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

camera reversed in qt face trainer #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
I should see my preview in normal way, but i see my preview from camera 
reversed by 180 degrees.

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

Original issue reported on code.google.com by zuber...@gmail.com on 16 Feb 2011 at 4:24

GoogleCodeExporter commented 9 years ago
Me too. I tried this: move qt-facetrainer to qt-facetrainer2 then I created a 
script call qt-facetrainer with this sentence : 
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so.

If you execute in console this: "LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so 
qt-facetrainer" before do that it works and flip the camera, but it doesn't 
work in the access screen. Some idea wil be welcomed

Original comment by guilloti...@gmail.com on 3 Sep 2011 at 10:05

GoogleCodeExporter commented 9 years ago
It might be a problem of OpenCV. After doing some research I found this bug 
report:
https://bugzilla.redhat.com/show_bug.cgi?id=570420

Actually we are using the old OpenCV bindings and opencvWebcam.cpp acts 
according to:
http://opencv.willowgarage.com/wiki/FaceDetection
(have a particular look for cvFlip)

Probably the problem gets solved by the newer OpenCV 2 bindings. Though we 
could add a kind of switch tag to config.xml in order to omit/redo the flip if 
necessary...

Original comment by feichtne...@gmail.com on 4 Sep 2011 at 9:40