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.

    MagicMirror With Face Recognition

    Scheduled Pinned Locked Moved Show your Mirror
    22 Posts 9 Posters 5.2k Views 9 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.
    • M Offline
      mchan @sdetweil
      last edited by

      @sdetweil Not currently. Right now it is just used to turn the screen on when it detects a recognized user and then turn the screen off when no recognized users are present. It can definitely be used to display different modules per user but I’ve not had the time to put additional modules in place.

      S 1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @mchan
        last edited by

        @mchan cool.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        O 1 Reply Last reply Reply Quote 0
        • mariosgourosM Offline
          mariosgouros
          last edited by

          Really great and unique idea!

          1 Reply Last reply Reply Quote 0
          • O Offline
            OliWer @sdetweil
            last edited by

            This looks pretty cool. Nice work with the styling.
            Can you let me know which hardware you are using? Like the sensors and where is MM running on?

            1 Reply Last reply Reply Quote 0
            • SnilleS Offline
              Snille Module Developer
              last edited by

              Nicely done!
              What computer hardware are you using? RPi5?

              If you cant find it, make it and share it!
              Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mchan @Snille
                last edited by

                @Snille @OliWer Here is the hardware for the project:

                • Raspberry Pi 4
                • Raspberry Pi Camera Module 3 (used for face recognition)
                • GroveGesture Sensor (Used for swipe commands)
                • I think the mirror was originally from IKEA. I swapped out the mirror with a piece of MirrorView glass
                M 1 Reply Last reply Reply Quote 3
                • M Offline
                  monark @mchan
                  last edited by

                  @mchan hi man, is awesome mirror.
                  Can you explain how you did it with opencv?
                  i get to the point of installing that and then i stop and it messes up the system and i have to do it all over again every time. i use an rpi4 and now i have a v3 camera, before i had a v2 camera.
                  thank you for answer me

                  S 1 Reply Last reply Reply Quote 0
                  • C Offline
                    cyberphox
                    last edited by

                    Get a GitHub and share that config! Wow!

                    Full time Dad, DJ and entertainer and lover of technology.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @monark
                      last edited by

                      @monark MMM-FaceReco-DNN has the whole setup to use CV and face database

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 2 Replies Last reply Reply Quote 0
                      • M Offline
                        monark @sdetweil
                        last edited by sdetweil

                        @sdetweil my cmd error

                        pip install face-recognition numpy dlib picamera2 opencv-python
                        Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                        Collecting face-recognition
                          Downloading https://www.piwheels.org/simple/face-recognition/face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
                        Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.19.5)
                        Collecting dlib
                          Downloading https://www.piwheels.org/simple/dlib/dlib-19.24.6-cp39-cp39-linux_armv7l.whl (3.4 MB)
                             |################################| 3.4 MB 1.3 MB/s 
                        Requirement already satisfied: picamera2 in /usr/lib/python3/dist-packages (0.3.12)
                        Collecting opencv-python
                          Downloading opencv-python-4.10.0.84.tar.gz (95.1 MB)
                             |################################| 95.1 MB 59 kB/s 
                          Installing build dependencies ... done
                          Getting requirements to build wheel ... done
                            Preparing wheel metadata ... done
                        Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (from face-recognition) (8.1.2)
                        Collecting face-recognition-models>=0.3.0
                          Downloading https://www.piwheels.org/simple/face-recognition-models/face_recognition_models-0.3.0-py2.py3-none-any.whl (100.6 MB)
                             |################################| 100.6 MB 83 kB/s 
                        Requirement already satisfied: Click>=6.0 in /usr/lib/python3/dist-packages (from face-recognition) (7.1.2)
                        Requirement already satisfied: v4l2-python3 in /usr/lib/python3/dist-packages (from picamera2) (0.3.2)
                        Building wheels for collected packages: opencv-python
                          Building wheel for opencv-python (PEP 517) ... error
                          ERROR: Command errored out with exit status 1:
                           command: /usr/bin/python3 /tmp/tmpxl4fq1u5_in_process.py build_wheel /tmp/tmpdgg843yi
                               cwd: /tmp/pip-install-681jn0xe/opencv-python_e610009f30624d9ea2b1e3ef82a9824f
                          Complete output (11 lines):
                          patching file opencv/3rdparty/openexr/IlmImf/ImfSystemSpecific.cpp
                          /tmp/pip-build-env-im9uh8sr/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
                          Traceback (most recent call last):
                            File "/tmp/pip-build-env-im9uh8sr/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 639, in setup
                              cmkr = cmaker.CMaker(cmake_executable)
                            File "/tmp/pip-build-env-im9uh8sr/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 145, in __init__
                              self.cmake_version = get_cmake_version(self.cmake_executable)
                            File "/tmp/pip-build-env-im9uh8sr/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 102, in get_cmake_version
                              raise SKBuildError(msg) from err
                          
                          Problem with the CMake installation, aborting build. CMake executable is /tmp/pip-build-env-im9uh8sr/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake
                          ----------------------------------------
                          ERROR: Failed building wheel for opencv-python
                        Failed to build opencv-python
                        ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
                        
                        
                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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
                          OSZAR »