• 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 464.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.
  • R Offline
    reaper81
    last edited by Jun 11, 2017, 10:30 AM

    hello everyone,

    after update to the new version of the FR-Module i get this error-Massage while starting the MM.

    Starting MagicMirror: v2.1.1
    Loading config …
    Loading module helpers …
    No helper found for module: alert.
    WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘node_helper’
    Loading module helpers …
    No helper found for module: alert.
    App threw an error during load
    Error: Cannot find module ‘node_helper’
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object. (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:6:18)
    at Object. (/home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:89:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions…js (module.js:580:10)
    at Module.load (module.js:488:32)
    …

    Can anybody help me?

    1 Reply Last reply Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer
      last edited by Jun 15, 2017, 7:04 PM

      @paviro I’ve switched to using the Pi cam for facial recognition, and my confidence numbers have improved significantly, but it still takes a good 5 seconds of standing absolutely still looking right at the camera to get it to work. I’ve trained the model with about 40 images of myself standing at various distances from the camera, sometimes looking right at it, other times staring blankly ahead (as if I were looking in the mirror).

      Is 5 seconds the best I can hope for, or does it work faster for others? I have the frequency configured to interval : 1 although I don’t see much difference between 1 and 2 (or anything smaller than 1).

      1 Reply Last reply Reply Quote 0
      • L Offline
        lepetitnicolas
        last edited by lepetitnicolas Jun 15, 2017, 8:35 PM Jun 15, 2017, 8:30 PM

        hello,
        After a few months of sleep, I wake up my mirror
        i’ve just update the raspberry and the MagicMirror to the last version
        also this module (facial recognition) to see if it works better
        but when i try to make the training.xml with train.py, i’ve this error :

        Reading training images...
        --------------------
        Assign label 1 to Gael
        Assign label 2 to lepetitnicolas
        --------------------
        
        OpenCV Error: Assertion failed (ssize.area() > 0) in resize, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/imgwarp.cpp, line 1834
        Traceback (most recent call last):
          File "train.py", line 98, in 
            faces.append(prepare_image(filename))
          File "train.py", line 56, in prepare_image
            return face.resize(cv2.imread(filename, cv2.IMREAD_GRAYSCALE))
          File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/face.py", line 100, in resize
            interpolation=cv2.INTER_LANCZOS4)
        cv2.error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/imgwarp.cpp:1834: error: (-215) ssize.area() > 0 in function resize
        

        anyone could help me ?
        Thanks

        N 1 Reply Last reply Jun 18, 2017, 12:48 AM Reply Quote 0
        • N Offline
          nuckinfutz @lepetitnicolas
          last edited by Jun 18, 2017, 12:48 AM

          @lepetitnicolas Just saw this but here is the fix

          cd home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools
          sudo pip install future --upgrade

          L 1 Reply Last reply Jun 19, 2017, 7:24 PM Reply Quote 0
          • E Offline
            EdChamberlain
            last edited by Jun 19, 2017, 9:59 AM

            This may not be an appropriate place but is there a good resource / tutorial for setting up / configuring the modules for the mirror? I’m specifically interested in facial recognition and the calendars - so far I only have the basic mirror installed.

            1 Reply Last reply Reply Quote 0
            • L Offline
              lepetitnicolas @nuckinfutz
              last edited by Jun 19, 2017, 7:24 PM

              @nuckinfutz
              thanks, i do what you saw but i have the same error…

              1 Reply Last reply Reply Quote 0
              • C Offline
                chengyuanfei
                last edited by chengyuanfei Jul 16, 2017, 11:02 AM Jul 16, 2017, 10:57 AM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • M Offline
                  mc_landin
                  last edited by Jul 16, 2017, 5:54 PM

                  I can’t seem to get the module to work properly. I made pictures and generated a training.xml file. When I test said file it does identify me.

                  However, I can’t find a user array in the training file to add to the config.xml. When I add the only user present it still doesn’t work

                  1 Reply Last reply Reply Quote 0
                  • X Offline
                    xchribiza
                    last edited by Jul 23, 2017, 2:43 AM

                    I have managed to make this module to work finally…BUT …
                    I have one user (since I have just set it up) and it recognises me well etc…but it recognises other people as ME ???
                    Why ??
                    Is there something to be done ?

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mc_landin
                      last edited by Jul 23, 2017, 7:44 AM

                      Anyone able to help me out with this? :)

                      https://forum.magicmirror.builders/topic/4206/facial-recognition-no-users

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 16
                      • 17
                      • 18
                      • 19
                      • 20
                      • 21
                      • 22
                      • 18 / 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