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