robinduckett / pam-face-authentication

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

PAM-face-authentication to trigger events (a need not a bug) #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Dear Rohan,

I just discovered your PAM Face Authentication program.

I though to use it but not to login but well to be recognized by my computer.

I mean that when I come back home it can recognize me and tell me if I got some 
mails.
Then I want to know if it is possible to trigger events with your PAM Face 
Recognition program.
As I saw on this video from 3:16 to 3:27 the test result displayed that the 
"Verification successful" after having verified your face : 
http://www.youtube.com/watch?v=XOZ8ifKjCIw&feature=player_embedded

Then I presume it can be triggered in place of simply displaying the message.
If it is not yet done it could be interesting to add a second parameter after 
the enableX like "enableT" (for enabling trigger). And then if this "enableT" 
has been passed as parameter it automatically log the successful face 
authentication in a log file.
Log file example (each line is created when the face appeared (or changed) in 
front of the webcam. I mean that when I am in front of my webcam it recognized 
me then it does not need to continue to log authentication. But if my wife 
comes on my place it will log her authentication.
Then the log file can be composed like this (by creating a new log file each 
month (for each 1 day of the month it will create a new log file by example 
called YYYMM-PAMFaceAuth.log where YYY is the year and MM the month number)) :
Each line in the log file will be : 
YYYYMMDDhhmmss-RecognizedName-ComputerNameRecognizer
Then here by example : 20110822071205-root-homecomputer
Then I know I was recognized the 22 august 2011 at 07 hr 12 min 05 sec as root 
on my home computer

I hope you will be able to do it as soon as possible because I want to use this 
log file to trigger events for my home automation. But I know it can be used 
for all other kind of use.

I hope it can integrated in the 0.4 version.

Sincerely thanks and have a nice day,

Miguipda ;-)

Original issue reported on code.google.com by migui...@gmail.com on 21 Aug 2011 at 3:39

GoogleCodeExporter commented 8 years ago
That would indeed be possible. If we would log to syslog, you could write a 
kind of wrapper which extracts the face logins. A general logging function as 
proposed by you is not really universal; we would have to predefine a 
(writable) save path and if another user would want another logging format, it 
might not be changable.

So the most general solution would probably be to log all face logins to syslog 
from where you may process them further...

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