• 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 Module - Step by Step Guide

Scheduled Pinned Locked Moved Troubleshooting
28 Posts 14 Posters 31.1k Views 22 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.
  • O Offline
    OGElijah @sdetweil
    last edited by Nov 2, 2021, 9:18 PM

    @sdetweil Hey, buddy… I’m not sure what it is you’re telling me to do here. I wrote what you sent into the terminal but it didn’t do anything. In fact, it’s treating the = sign as a syntax error… what am I doing wrong?

    S 1 Reply Last reply Nov 2, 2021, 11:46 PM Reply Quote 0
    • S Away
      sdetweil @OGElijah
      last edited by Nov 2, 2021, 11:46 PM

      @ogelijah u have to edit the failing py script
      and change the failing line

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      O 1 Reply Last reply Nov 6, 2021, 12:57 PM Reply Quote 1
      • O Offline
        OGElijah @sdetweil
        last edited by Nov 6, 2021, 12:57 PM

        @sdetweil I get you! I was being an idiot and I went into the wrong script. But now I’ve reached the point where it says “no module named cv2”

        S 1 Reply Last reply Nov 6, 2021, 1:02 PM Reply Quote 0
        • S Away
          sdetweil @OGElijah
          last edited by Nov 6, 2021, 1:02 PM

          @ogelijah no idea. that’s a python lib, which should have been installed from the prior setup steps

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          O 1 Reply Last reply Nov 6, 2021, 1:27 PM Reply Quote 0
          • O Offline
            OGElijah @sdetweil
            last edited by Nov 6, 2021, 1:27 PM

            @sdetweil Ah, okay. I’ll keep on working on this. Cheers

            S 1 Reply Last reply Nov 6, 2021, 1:32 PM Reply Quote 0
            • S Away
              sdetweil @OGElijah
              last edited by Nov 6, 2021, 1:32 PM

              @ogelijah because you replaced a line that used cv2, with another line that used cv2

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                mraeymaekers @sdetweil
                last edited by mraeymaekers Jan 1, 2022, 2:03 PM Jan 1, 2022, 1:58 PM

                @sdetweil
                This fix worked! Thank you.

                My error message:

                python capture.py
                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: need more than 3 values to unpack

                Steps to fix:

                cd ~/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/
                nano config.py

                go to line 15 … I commented out the original line and added a line with ‘,mv2’ removed.

                #(CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.version.split(“.”)
                (CV_MAJOR_VER, CV_MINOR_VER, mv1) = cv2.version.split(“.”)

                1 Reply Last reply Reply Quote 1
                • O Offline
                  OGElijah
                  last edited by Jan 2, 2022, 11:35 AM

                  I can’t get the .xml file no matter how hard I try… I keep running the train.py file and wait, but nothing happens

                  S 1 Reply Last reply Jan 2, 2022, 2:12 PM Reply Quote 0
                  • S Away
                    sdetweil @OGElijah
                    last edited by Jan 2, 2022, 2:12 PM

                    @ogelijah how many images do you have for different people,?

                    what pi is this?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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