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 with PiCam doesn't start

      Same here, I’m getting the following errors on python tools.facerecognition.py

      Remember to set the name list environment variable FACE_USERS
      Loading PiCamera
      PiCamera loaded
      Loading training data...
      mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
      mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x6c405410 (ENOSPC)
      mmal: mmal_connection_enable: output port couldn't be enabled
      Exception in thread Thread-1:
      Traceback (most recent call last):
        File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
          self.run()
        File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/common/picam.py", line 25, in run
          with picamera.PiCamera() as camera:
        File "/usr/lib/python3/dist-packages/picamera/camera.py", line 433, in __init__
          self._init_preview()
        File "/usr/lib/python3/dist-packages/picamera/camera.py", line 513, in _init_preview
          self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
        File "/usr/lib/python3/dist-packages/picamera/renderers.py", line 558, in __init__
          self.renderer.inputs[0].connect(source).enable()
        File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2212, in enable
          prefix="Failed to enable connection")
        File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
          raise PiCameraMMALError(status, prefix)
      picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources
      
      Training data loaded!
      OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in imdecode_, file /home/pi/opencv/modules/imgcodecs/src/loadsave.cpp, line 637
      Traceback (most recent call last):
        File "tools.facerecognition.py", line 45, in <module>
          frame = camera.read()
        File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/common/picam.py", line 55, in read
          image = cv2.imdecode(data, 1)
      cv2.error: /home/pi/opencv/modules/imgcodecs/src/loadsave.cpp:637: error: (-215) !buf.empty() && buf.isContinuous() in function imdecode_
      
      
      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 trouble

      Change in capture.py

      from config import ToolsConfig -> from .config import ToolsConfig

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

      @SdeGeata

      Hey @Nischi! I got it going!!!

      Two things fixed it. The first was a directory error that was preventing capture. Fixed with:

      in capture.py:

      from config import ToolsConfig -> from .config import ToolsConfig
      

      the second was an outdated PIP that wasn’t getting updated without SUDO that was giving me the error on Training.

      sudo pip install future --upgrade
      

      Both are fixed now and XML is generated. Next on to configuration. Thanks to all for your help.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 cant run toold.capture.py

      @SdeGeata

      Nevermind, I just fixed it! It was an outdated PIP that wasn’t getting updated without SUDO.

      sudo pip install future --upgrade
      
      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 cant run toold.capture.py

      @Sebi76 said in MMM-Facial-Recognition-OCV3 cant run toold.capture.py:

      from .config import ToolsConfig

      Well this solved the first of two problems for me. I have been getting the same error on capture since i installed. Thanks!

      Now however, i get this error when trying to train:

      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 <module>
          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
      
      

      Any idea what that’s about???

      posted in Troubleshooting
      S
      SdeGeata
    • RE: Autohide problem

      @SdeGeata

      Does anyone have Autohide working properly on their set-up???

      posted in Troubleshooting
      S
      SdeGeata
    • Autohide problem

      Re: MMM-MotionEye - surveillance video stream on your mirror!

      So I have been all over these posts, and have seen the same question asked and answered a few times. I still however can not get the Autohide to unhide when motion is detected. I see the feed fine when it is unhidden. I get email notifications and photos uploaded, but the module will not show up. I have tried all kinds of options in the configs of both MotionEye and MM. Where am I going wrong???

      Here are some pics of my settings:

      ![alt text](0_1561224842109_Screen Shot on 2019-06-22 at 12-45-33.png image url)0_1561224856351_Screen Shot 2019-06-22 at 12.48.03 PM.png

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

      @nischi

      Sorry, i just saw your replies…

      I am working on a Mac via VNC viewer and Terminal, all the software is installed on the Rpi 3 b+ directly though. I followed the installation steps on the page thoroughly, so I don’t know what could have gone wrong.

      I did since then install MotionEye for another aspect I want to add to the mirror and I notice that it adds “boxes” around detected movement - I don’t think it does this normally, but rather is related to the OCV install; only the recognition wouldn’t work anyhow due to the fact its not been “trained” who’s who.

      Please let me know how your new version goes. I am desperate to get this facial recognition finally working on my mirror.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-MotionEye - surveillance video stream on your mirror!

      @Binog

      Thanks for the info. I’ll keep trying stuff out and see what happens.

      posted in Utilities
      S
      SdeGeata
    • RE: MMM-MotionEye - surveillance video stream on your mirror!

      @Binog

      Did you ever get an answer back on this one? I am having the same problem. I see everything fine without autohide active, but if I activate autohide, I see it for a bit during page load and never again after. I get detected motion emails and photo uploads so the detection isn’t the problem. It just doesn’t get fed to the mirror module somehow. Maybe my Web-hook config is off?

      It would be helpful to know if you fixed your issue and how you did it.

      posted in Utilities
      S
      SdeGeata
    • 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
    • 2 / 3