MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. SdeGeata
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 42
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      @SdeGeata

      I have gone ahead and started the process over again, just in case i missed something. I uninstalled everything and did a fresh install. It won’t even capture anymore, never-mind training with the images i already have.

      I just want to get this thing going.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: Facial Recognition Module - Step by Step Guide

      Error on “python capture.py”

      pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ python capture.py
      Traceback (most recent call last):
        File "capture.py", line 18, in <module>
          import lib.capture as capture
        File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in <module>
          from . import config
        File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in <module>
          (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".")
      ValueError: need more than 3 values to unpack
      
      
      posted in Troubleshooting
      S
      SdeGeata
    • RE: How to add multiple UUIDs for each calendar to the collections array in vdirsyncer config.

      Hello Jimmy95!

      Thank you for your reply. I forgot to mark this as solved. I ended up finding a work-around by changing the URL in the vdirsyncer config file from a specific URL to “from b”. It downloads and syncs all my calendars and notes - more than i need in fact; then I just add the URL for each calendar i want to see to the module instead.

      Seems to be working well.

      Thank you for your help though, and I will take a look at that link you provided to see if I can clean up and streamline the operations on my end anyhow.

      posted in Tutorials
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      @nischi

      Yeah, all the photos load fine in preview app and they were all found, formatted and placed in the folder by the previous step. I don’t know why it is having a problem.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      @nischi

      Hello Nischi;

      Only got as far as “python tools.train.py”. That is what generates the error and it doesn’t generate the XML file that it should, so I can’t verify my training.

      Everything up until then is fine, and there are two named folders in the specified folder (training_data/) with pics of myself and my girlfriend. These photos were already processed by the previous function; “python tools.capture.py”. I don’t know why its bugging.

      posted in Troubleshooting
      S
      SdeGeata
    • Errors after python capture.py

      Re: Facial Recognition Module - Step by Step Guide

      I have followed all the directives here, but pull two errors upon trying to train:

      #1
      pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ pip install -r requirements.txt
      Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
      Collecting future (from -r requirements.txt (line 1))
        Using cached https://www.piwheels.org/simple/future/future-0.17.1-py3-none-any.whl
      Installing collected packages: future
      ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/libpasteurize'
      Consider using the `--user` option or check the permissions.
      
      #2
      pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ python capture.py
      Traceback (most recent call last):
        File "capture.py", line 18, in <module>
          import lib.capture as capture
        File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in <module>
          from . import config
        File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in <module>
          (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".")
      ValueError: need more than 3 values to unpack
      
      

      Can you help???

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      @SdeGeata Anyone got an answer to this one? I’m still stuck on this.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      Bump! Same error message.

      @alfi153 said in MMM-Facial-Recognition-OCV3 error at tools.train.py:

      Hello

      I use the version OCV3 of face recognition.
      My problem is when I try again my face to increase the hit rate, I get the error message when typing “python tools.train.py”:

      Remember to set the name list environment variable FACE_USERS
      Reading training images…

      Assign label 1 to Alfred

      OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /home/pi/opencv/modules/imgproc/src/imgwarp.cpp, line 3483
      Traceback (most recent call last):
      File “tools.train.py”, line 14, in
      ToolsTrain().train()
      File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/tools/train.py”, line 53, in train
      faces.append(self.prepareImage(filename))
      File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/tools/train.py”, line 29, in prepareImage
      return self.face.resize(cv2.imread(filename, cv2.IMREAD_GRAYSCALE),ToolsConfig.FACE_WIDTH, ToolsConfig.FACE_HEIGHT)
      File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/common/face.py”, line 113, in resize
      return cv2.resize(image, (face_width, face_height), interpolation=cv2.INTER_LANCZOS4)
      cv2.error: /home/pi/opencv/modules/imgproc/src/imgwarp.cpp:3483: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

      please help

      posted in Troubleshooting
      S
      SdeGeata
    • How to add multiple UUIDs for each calendar to the collections array in vdirsyncer config.

      Re: Sync private iCloud calendar with MagicMirror

      I can’t figure out how to add multiples to the array. I add one after another in the config to generate the local files and sync, but it only syncs the most recent one. I assume I need to have each one in the array? How is this done?

      posted in Tutorials
      S
      SdeGeata
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5