• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Facial Recognition - customize your mirror for every user!

Scheduled Pinned Locked Moved Troubleshooting
215 Posts 55 Posters 448.4k Views 57 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    paviro Admin
    last edited by paviro Jan 20, 2017, 11:46 PM Jan 20, 2017, 7:44 PM

    Sorry guys :D Has been a while since I last coded MM modules… It’s fixed now :)
    @benkej Could you provide me a zip containing your complete MM directory?

    We're all stories in the end. Just make it a good one, eh?

    – The Doctor

    B 1 Reply Last reply Jan 22, 2017, 1:14 AM Reply Quote 0
    • B Offline
      benkej @paviro
      last edited by benkej Jan 22, 2017, 1:15 AM Jan 22, 2017, 1:14 AM

      @paviro sure, thank you!
      here are my MMM-Facial-Recognition-Tools and MMM-Facial-Recognition folders in tar.bz2 format. My config is included in the second archive.

      1 Reply Last reply Reply Quote 0
      • P Offline
        PointPubMedia
        last edited by Jan 24, 2017, 2:47 PM

        @paviro You think it would be possible to display somewhere in MM2 the output from the camera at the same time as your module with a “debug” option?

        It would be easier to place the camera at the right location while working on MM!

        1 Reply Last reply Reply Quote 1
        • S Offline
          s1084836
          last edited by yawns Jan 31, 2017, 7:27 PM Jan 31, 2017, 7:25 PM

          Hello,

          Thanks for building this great module. When I run the “npm start” I keep getting the following message:

          [MMM-Facial-Recognition] Webcam Found...
          [MMM-Facial-Recognition] User undefined with confidence null logged in.
          [MMM-Facial-Recognition] User undefined logged out.
          [MMM-Facial-Recognition] User undefined with confidence null logged in.
          [MMM-Facial-Recognition] User undefined logged out.
          [MMM-Facial-Recognition] User undefined with confidence null logged in.
          

          Sometimes it regoonizes my face, but it is like a 1/1000 change. I’m wondering why, when I run the test script my it recognizes my face really fast and always. I uploaded like 350 photo’s. I’ve tryed diffrend back grounds, with enough light.

          I just dont understand why it won’t see my face while the test script is 95% of the time right.

          My config File:

          `/* Magic Mirror Config Sample
           *
           * By Michael Teeuw http://michaelteeuw.nl
           * MIT Licensed.
           */
          
          var config = {
          	port: 8080,
          
          	language: 'en',
          	timeFormat: 24,
          	units: 'metric',
          
          	modules: [
          
          		{
          			module: 'clock',
          			position: 'top_left',
          			classes: 'default',
          		},
          
          		
          		{
          		    module: 'MMM-Facial-Recognition',
          		    classes: 'default',
          			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: '/home/pi/Desktop/MagicMirror/modules/MMM-Facial-Recognition/training.xml',
          		        // recognition intervall in seconds (smaller number = faster but CPU intens!)
          		        interval: 1,
          		        // 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: 5,
          		        // Array with usernames (copy and paste from training script)
          		        users: ['test', 'tom', '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"
          			
          		    }
          		},
          		
          
          		{
          		        module: 'helloworld',
          		        position: 'lower_third', // This can be any of the regions.
          			classes: 'default',
          		        config: {
          		            // See 'Configuration options' for more information.
          		            text: 'OMG, look at you!'
          		     }
            		},
          
          
          		{
          			module: 'compliments',
          			position: 'upper_third',
          			classes: 'Tom',
          		},
          
          
          			{
          			module: 'newsfeed',
          			position: 'bottom_left',
          			classes: 'Tom',
          			config: {
          				feeds: [
          					{
          						title: "Nu Algemeen nieuws!",
          						url: "http://www.nu.nl/rss/Algemeen"
          					}
          				],
          				showSourceTitle: true,
          				showPublishDate: true
          			
          			}
          		},
          		
          		
          	]
          
          };
          
          /*************** DO NOT EDIT THE LINE BELOW ***************/
          if (typeof module !== 'undefined') {module.exports = config;}
          
          B 1 Reply Last reply Jan 31, 2017, 11:27 PM Reply Quote 0
          • B Offline
            benkej @s1084836
            last edited by Jan 31, 2017, 11:27 PM

            @s1084836 like my mirror. I have the same problem

            S 1 Reply Last reply Feb 1, 2017, 9:00 AM Reply Quote 0
            • S Offline
              s1084836 @benkej
              last edited by Feb 1, 2017, 9:00 AM

              @benkej Oh, its really strange. Did you manage to work around it?

              B 1 Reply Last reply Feb 15, 2017, 12:40 PM Reply Quote 0
              • B Offline
                benkej @s1084836
                last edited by Feb 15, 2017, 12:40 PM

                @s1084836 unfortunately not. I switched off the facial recognition

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  yakko2001
                  last edited by Mar 16, 2017, 12:23 PM

                  Hey,

                  my issue is, i cannt select my USB Cam.
                  I set “useUSBCam” to “true”, but still get piCam as the choosen one. (PiCam ausgewählt)

                  MMM-Facial-Recognition] ALGORITHM: LBPH
                  [MMM-Facial-Recognition] Training data loaded!
                  [MMM-Facial-Recognition] --------------------
                  [MMM-Facial-Recognition] PiCam ausgewählt...
                  Whoops! There was an uncaught exception...
                  { Error: mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
                  
                  
                  {
                  		    module: 'MMM-Facial-Recognition',
                  		    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,
                  		        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: ['Yakko'],
                  		        //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",
                  		        // Boolean to toggle welcomeMessage
                  		        welcomeMessage: true
                  		    }
                  		},
                  

                  Any Ideas how to force it to take my USB cam?
                  Thanks,
                  Yakko

                  1 Reply Last reply Reply Quote 0
                  • piedanielP Offline
                    piedaniel
                    last edited by Mar 25, 2017, 2:21 AM

                    Hi everyone. I try to make work the face recognition but always tell me that I´m strange, but when I do test with the facialreconition.py test alway recognize me. Someone know why I have this problem? How can I solve the problem? Thanks

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      eliddell
                      last edited by Apr 9, 2017, 1:10 PM

                      I have not loaded this on the mirror yet but did you change the face users and algorithm on the mirror and it’s config?

                      I’m having an issue where if I train it to recognize two different people the test script recognizes both as the same person :(

                      strawberry 3.141S 1 Reply Last reply Apr 9, 2017, 4:03 PM Reply Quote 0
                      • 1
                      • 2
                      • 14
                      • 15
                      • 16
                      • 17
                      • 18
                      • 21
                      • 22
                      • 16 / 22
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy