• 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 460.5k 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.
  • J Offline
    j.e.f.f Project Sponsor Module Developer @reaper81
    last edited by Jul 23, 2017, 3:26 PM

    @reaper81 I think you also need to include the class default as the facial recognition app spends most of its time logged out.

    1 Reply Last reply Reply Quote 0
    • R Offline
      reaper81
      last edited by reaper81 Jul 23, 2017, 3:32 PM Jul 23, 2017, 3:32 PM

      @j.e.f.f

      the default-class works fine but i whould like to show modules only if a person is in the room. thats why the class “everyone” exist. Do you use it? does it work?

      J 1 Reply Last reply Jul 23, 2017, 8:36 PM Reply Quote 1
      • J Offline
        j.e.f.f Project Sponsor Module Developer @reaper81
        last edited by Jul 23, 2017, 8:36 PM

        @reaper81 yeah in that case it should work for what you’re trying to do. If it isn’t then I don’t know why.

        You could also try using a motion sensor to turn the screen on and off. Essentially when someone walks up to the screen it shows modules, and after a specified time out of no motion sensed, if turns itself back off.

        1 Reply Last reply Reply Quote 1
        • R Offline
          reaper81
          last edited by Jul 24, 2017, 12:32 PM

          So i repeat my question: does anybody use the “everyone”-class and it work?

          1 Reply Last reply Reply Quote 0
          • M Offline
            mc_landin
            last edited by Jul 24, 2017, 12:35 PM

            I am struggling to get modules using a name class to work. Still waiting for an answer as well

            T 1 Reply Last reply Nov 20, 2017, 8:32 PM Reply Quote 1
            • J Offline
              JavierTSalas
              last edited by Aug 15, 2017, 6:34 PM

              Hey guys. I’m having difficulty using my webcam with the capture.py script. I’m able to use fswebcame and motion to capture video but I keep getting errors running the script. I’m using a the playstion eye as a webcam. Any ideas?

              1 Reply Last reply Reply Quote 0
              • S Offline
                salamures
                last edited by Nov 1, 2017, 10:04 PM

                Hi there, maybe someone is able to help me out.
                I am trying to run capture.py but getting this Error

                Traceback (most recent call last):
                   File "capture.py", line 18, in 
                      import lib.capture as capture
                   File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in 
                     from . import config
                   File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in 
                     (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".")
                ValueError: not enough values to unpack (expected 4, got 3)
                
                A 1 Reply Last reply Nov 2, 2017, 4:28 PM Reply Quote 0
                • A Offline
                  avinash @salamures
                  last edited by Nov 2, 2017, 4:28 PM

                  @salamures said in Facial Recognition - customize your mirror for every user!:

                  Hi there, maybe someone is able to help me out.
                  I am trying to run capture.py but getting this Error

                  Traceback (most recent call last):
                     File "capture.py", line 18, in 
                        import lib.capture as capture
                     File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in 
                       from . import config
                     File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in 
                       (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".")
                  ValueError: not enough values to unpack (expected 4, got 3)
                  

                  I am also facing the same issue. Any effort to resolve it will be appreciated.

                  S 1 Reply Last reply Nov 2, 2017, 5:59 PM Reply Quote 0
                  • S Offline
                    salamures @avinash
                    last edited by salamures Nov 2, 2017, 8:25 PM Nov 2, 2017, 5:59 PM

                    Are you using OpenCV 3.3? Then i might can help you.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      salamures
                      last edited by Nov 2, 2017, 6:03 PM

                      Got another problem. My picam is not able to open. I am using opencv 3.3.

                      Remember to set the name list environment variable FACE_USERS
                      Using default FACE_ALGORITM: 1
                      Traceback (most recent call last):
                      File "facerecognition.py", line 30, in 
                      camera = config.get_camera(preview)
                      File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 101, in get_camera
                      return webcam.OpenCVCapture(device_id=0)
                      File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/webcam.py", line 29, in __init__
                      self._camera.open()
                      TypeError: Required argument 'device' (pos 1) not found
                      

                      any suggestions?

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