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

    cala

    @cala

    0
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    cala Unfollow Follow

    Latest posts made by cala

    • RE: problems wanting to use MMM-Face-Reco-DNN and MMM-MotionDetector at the same time

      @sdetweil motion mounted and feeding the modules of Magic Mirror through the stream direction that motion creates, and they are working pretty well.
      There is a little more consumption in the resources, but in the absence of testing it more I would say that the problem is solved.

      posted in Troubleshooting
      C
      cala
    • RE: problems wanting to use MMM-Face-Reco-DNN and MMM-MotionDetector at the same time

      @sdetweil thank you very much for your answer.
      I will try to configure it in the way in which you are indicating me.
      I will update this post if I can get it to work on that way.
      Best regards.

      posted in Troubleshooting
      C
      cala
    • problems wanting to use MMM-Face-Reco-DNN and MMM-MotionDetector at the same time

      Hello averyone mates,

      I write because I am having problems when wanting to use several modules that both need access to the camera. Specifically, they are MMM-Face-Reco-DNN and MMM-MotionDetector.
      The error that the console shows me is the following:

      [28.04.2021 19:38.32.307] [LOG] [MMM-Face-Reco-DNN] starting video stream…
      [28.04.2021 19:38.37.680] [ERROR] Whoops! There was an uncaught exception…
      [28.04.2021 19:38.37.763] [ERROR] PythonShellError: [ WARN:0] global /home/pi/opencv/opencv-4.5.0/modules/videoio/src/cap_gstreamer.cpp (1761) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Device ‘/dev/video0’ is busy
      [ WARN:0] global /home/pi/opencv/opencv-4.5.0/modules/videoio/src/cap_gstreamer.cpp (888) open OpenCV | GStreamer warning: unable to start pipeline
      [ WARN:0] global /home/pi/opencv/opencv-4.5.0/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
      [ WARN:0] global /home/pi/opencv/opencv-4.5.0/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can’t open camera by index
      Traceback (most recent call last):
      File “modules/MMM-Face-Reco-DNN/tools/facerecognition.py”, line 111, in
      frame = imutils.resize(originalFrame, width=500)
      File “/home/pi/.local/lib/python3.7/site-packages/imutils/convenience.py”, line 69, in resize
      (h, w) = image.shape[:2]
      AttributeError: ‘NoneType’ object has no attribute ‘shape’

      at PythonShell.parseError (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:254:21)
      at terminateIfNeeded (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:129:32)
      at ChildProcess.<anonymous> (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:121:13)
      at ChildProcess.emit (events.js:315:20)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) {
      

      executable: ‘python3’,
      options: null,
      script: ‘modules/MMM-Face-Reco-DNN/tools/facerecognition.py’,
      args: [
      ‘–cascade=modules/MMM-Face-Reco-DNN/tools/haarcascade_frontalface_default.xml’,
      ‘–encodings=modules/MMM-Face-Reco-DNN/tools/encodings.pickle’,
      ‘–usePiCamera=0’,
      ‘–source=0’,
      ‘–rotateCamera=0’,
      ‘–method=dnn’,
      ‘–detectionMethod=hog’,
      ‘–interval=2000’,
      ‘–output=0’,
      ‘–extendDataset=False’,
      ‘–dataset=modules/MMM-Face-Reco-DNN/dataset/’,
      ‘–tolerance=0.6’
      ],
      exitCode: 1
      }

      Does anyone know how it could be solved? the camera used is an “eye ps3” and everything about a rapsberry pi 3.

      Thanks in advance!

      posted in Troubleshooting
      C
      cala