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.

    capture.py in MMM-Facial-Recognition-Tools error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    1 Posts 1 Posters 1.0k 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.
    • E Offline
      emrhssla
      last edited by emrhssla

      https://forum.magicmirror.builders/topic/6345/facial-recognition-module-step-by-step-guide
      Referring to the above link, I was following the guidelines. But while following the guide, an error occurred in the Python capture.py part.
      I am trying to run capture.py but getting this Error. I am using a webcam…

      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 12, in
      from builtins import input
      ImportError: No module named builtins
      

      python3 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: not enough values to unpack (expected 4, got 3)
      

      Then im tring to sudo pip install future --upgrade,
      I modified the code in config.py
      from CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2 = cv2.version.split(“.”)
      to CV_MAJOR_VER, CV_MINOR_VER, type = cv2.version.split(“.”)

      try: python3 capture.py // python capture.py

      success!!

      I’m still worried. Is there anything wrong with it later?

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • 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