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.

    Questions about adding MMM-Facial-Recognition to the config.js

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 1 Posters 950 Views 1 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.
    • D Offline
      diverdennis
      last edited by

      Hello,

      i followed al instructions on the MMM-Facial-Recognition github page and added this part to my config:

      {
      	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,
      		// 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/MagicMirror/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: [Dennis],
      		//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
      	}
      },
      

      MagicMirror start fails because of syntax errors… but i can´t find syntax errors and also “npm run config:check” end up with no errors…

      Can´t find out whats wrong… Anyboy has an idea about this?

      I would appreciate any help.

      1 Reply Last reply Reply Quote 0
      • D Offline
        diverdennis
        last edited by

        Found it!

        If you use MMM-system-stat togehter with MMM-Facial-Recognition, MagicMirror start will fail… this is because MMM-system-stats also uses classes: in the config.js i think…

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • 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