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.

    MMM-Face-Reco-DNN

    Scheduled Pinned Locked Moved Solved Troubleshooting
    20 Posts 2 Posters 7.6k Views 2 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.
    • S Offline
      sdetweil @danningson
      last edited by sdetweil

      @danningson the code just sends the name of the user up to the module, which hides all the modules without that name as a class

      I don’t know if there is any debug info provided

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        danningson @sdetweil
        last edited by

        @sdetweil yes, that’s one of the things I loved about this module. It’s like a free screen saver when no face is detected. I had to set several modules ad always for my trouble shooting since it is not detecting anything.

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

          @danningson you should see messages where you start MM

          I STRONGLY suggest NOT using pm2 during modules dev and testing
          pm2 stop all

          cd ~/MagicMirror
          npm start >somefile.txt 2>&1
          

          then all the messages will be in somefile.txt

          ctrl-c in terminal window or ctrl-q on MM web page to stop

          here is a message in the node_helper that should be triggered
          console.log(‘[’ + self.name + '] ’ + ‘Users ’ + message.login.names.join(’ - ‘) + ’ logged in.’);

          there is also a camera frame event but no logging, you could add a message there

          all the CV work is done in python in the background, and its outputs messages to the handlers in node_helper

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Reply Quote 1
          • D Offline
            danningson @sdetweil
            last edited by

            @sdetweil Wow excelent advice thank you. I will try that.! I think something else may be going on. As mentioned in my original post, I was able to take several pictures with my camera and on a whim decided to add those to my dataset. When i tried to run the encode program I got a message that the module could not be found, even after running a ls and staring at the engode program it claimed it could not be found. I’m starting to think I may have a corupt install. I am not sure what to do but I might flash another SD card and try a fresh install. Thanks for all your help!

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

              @danningson you ARE in the root of the module folder when you did npm run encode, right??

              cd ~/MagicMirror/modules/MMM-Face-Reco-DNN
              

              then you can run encode per the instructions

              npm run encode
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                Correct. I actuallly tride it from the MMM-Face-Reco-DNN and got the error message. I then went to tool and say the file and ecen tried to run it from there but got the same message.

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

                  @danningson this could be because of the need for the python virtual environment not being set up

                  I know he made a bunch of changes recently which require the venv…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    danningson @sdetweil
                    last edited by

                    @sdetweil Hi Sam - first, thank you for your time and expertise. I really do appreciate all the help. looks like you were right. I went back and ran the script again and noticed the environment additions. After running those I was able to run the encode.py program and it added several of the new pics i took. To further my troublshooting i added several classes as unknow. My thought was if the camera is seeing me but not recognizing me at least those moduels would show up and tell me the program was working correctly. Unfortunatly I got no reaction when looking into the camera either known or unknown. the camera is still wotking with the libcamera-still -o test.jpg so I am not sure why the program is failing to pic up anything. Again, thanks for your help

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

                      @danningson is mm running under that venv?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        danningson @sdetweil
                        last edited by

                        @sdetweil I’m not sure. I typed in env and got back a whole bunch of stuff i don’t understand

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