Read the statement by Michael Teeuw here.
Facial Recognition - customize your mirror for every user!
-
@rajbadri Have you added the classes: (with a value) to all the other modules in the config.js? If you get a plain black screen without errors it might be that no modules were loaded.
-
@rvdgeer OK, replying to my own post for future reference:
I got it working by doing the following:
- cropped the pictures to only show my face;
- copied the cropped pictures and transformed them to greyscale;
- copied the grey pictures and upped the contact;
- moved all pictures (originals and copies) to a direct sub folder of the facetrainer folder;
- started the capture.py, pressed 2, entered my name, entered the name of the sub folder (only the sub folder, not the entire path) and waited.
This way I got it to recognize about 10 of the pictures…
Not bad!Getting it to recognize me is still not easy, but that because of the lighting conditions in my ManCave where I’m putting it together.
-
@paviro Hi,
I am getting this error while running facerecognition.py
and also need to know in //Facerecognition Test Tool Readme
Intools/facerecognition_tester/lib/config.py
add add your training labels fromtools/facetrainer
underpersonen = []
( what need to enter in this personen= []) -
@shashank If you run the facetrainer (capture.py and train.py) first, you should know what to enter here…
-
@rvdgeer hi,
After running capture.py a folder created by name ‘sasi’ in the
/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/facetrainer/training_data
then by running train.py a training.xml created in the path
/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/facetrainer
and also in
/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/facerecognition_tester/lib
i mentioned name inpersonen = ["sasi"]
my config.js file as below
{ module: 'MMM-Facial-Recognition', position: 'top_left', config: { // 1=LBPH | 2=Fisher | 3=Eigen recognitionAlgorithm: 1, // Threshold for the confidence of a recognized face before it's considered a // positive match. Confidence values below this threshold will be considered // a positive match because the lower the confidence value, or distance, the // more confident the algorithm is that the face was correctly detected. lbphThreshold: 50, fisherThreshold: 250, eigenThreshold: 3000, // force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically) useUSBCam: false, // Path to your training xml trainingFile: 'modules/MMM-Facial-Recognition/training.xml', // recognition intervall in seconds (smaller number = faster but CPU intens!) interval: 2, // Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror for a few seconds logoutDelay: 15, // Array with usernames (copy and paste from training script) users: ['sasi'], //Module set used for strangers and if no user is detected defaultClass: "default", //Set of modules which should be shown for every user forAllClass: "for_all" } }, { module: 'clock', position: 'top_left', //Set your classes here seperated by a space. //Shown for all users classes: 'for_all' },
when i run pm2 start mm i am struck at below message
can someone help me on this error
-
Potentially stupid question here, apologies in advance if I’ve missed something obvious. I have the mirror and the face recognition working (Yay!) but when it’s running, on the left side of the screen it shows “MMM-Facial-Recognition” and module-10-mmm-facial-recognition underneath. I though about removing the position tag, but that’s there in the readme version so did not. How do I remove the text showing the running facial recognition module?
Thanks!Zach -
-
This post is deleted! -
yes , i copied the training file from //MMM-Facial-Recognition-Tools/facetrainer
to // Path to your training xml
trainingFile: ‘modules/MMM-Facial-Recognition/training.xml’, -
Hello, First of all thanks a lot for building this great module!
I am trying to get it to work, I’ve installed the module and it looks like It doens’t start:
Output when I start the NPM:
`pi@raspberrypi:~/MagicMirror $ npm start magicmirror@2.0.0 start /home/pi/MagicMirror electron js/electron.js Loading config ... Loading module helpers ... Initializing new module helper ... Initializing new module helper ... All module helpers loaded. Starting server op port 8080 ... Server started ... Connecting socket for: camera camera helper started ... Connecting socket for: MMM-Facial-Recognition Staring module helper: MMM-Facial-Recognition Sockets connected & modules started ... Launching application. initializing nodemailer ` It looks like its installed fine, because of the starting module helper: MMM-Facial-Recognition. But I am not getting the normal output like I see by other people: [MMM-Facial-Recognition] Facerecognition started... [MMM-Facial-Recognition] Loading training data... My Config.json file: `/* Magic Mirror Config Sample * By Tom & Joey MIT Licensed. */ var config = { port: 8080, language: 'nl', timeFormat: 24, units: 'metric', modules: [ { module: 'camera', position: 'top_center', config: { selfieInterval: 3, // Time interval in seconds before the photo will be taken. emailConfig: { service: 'Hotmail', // Email provider to use to send email with a photo. auth: { user: '<s1084836@hotmail.com>', // Your email account pass: '<test12345>' // Your password for email account } } } }, { module: 'MMM-Facial-Recognition', position: 'top_left', config: { // 1=LBPH | 2=Fisher | 3=Eigen recognitionAlgorithm: 1, // Threshold for the confidence of a recognized face before it's considered a // positive match. Confidence values below this threshold will be considered // a positive match because the lower the confidence value, or distance, the // more confident the algorithm is that the face was correctly detected. lbphThreshold: 50, fisherThreshold: 250, eigenThreshold: 3000, // force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically) useUSBCam: true, // Path to your training xml trainingFile: 'modules/MMM-Facial-Recognition/training.xml', // recognition intervall in seconds (smaller number = faster but CPU intens!) interval: 2, // Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror for a few seconds logoutDelay: 15, // Array with usernames (copy and paste from training script) users: ['Tom'], //Module set used for strangers and if no user is detected defaultClass: "default", //Set of modules which should be shown for every user everyoneClass: "everyone" } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
Is there anything I’m doing wrong ? :D
Note from admin: Please use Markdown on code snippets for easier reading!