<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[problems wanting to use MMM-Face-Reco-DNN and MMM-MotionDetector at the same time]]></title><description><![CDATA[<p dir="auto">Hello averyone mates,</p>
<p dir="auto">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.<br />
The error that the console shows me is the following:</p>
<p dir="auto">[28.04.2021 19:38.32.307] [LOG]   [MMM-Face-Reco-DNN] starting video stream…<br />
[28.04.2021 19:38.37.680] [ERROR] Whoops! There was an uncaught exception…<br />
[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<br />
[ 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<br />
[ 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<br />
[ 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<br />
Traceback (most recent call last):<br />
File “modules/MMM-Face-Reco-DNN/tools/facerecognition.py”, line 111, in <br />
frame = imutils.resize(originalFrame, width=500)<br />
File “/home/pi/.local/lib/python3.7/site-packages/imutils/convenience.py”, line 69, in resize<br />
(h, w) = image.shape[:2]<br />
AttributeError: ‘NoneType’ object has no attribute ‘shape’</p>
<pre><code>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.&lt;anonymous&gt; (/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) {
</code></pre>
<p dir="auto">executable: ‘python3’,<br />
options: null,<br />
script: ‘modules/MMM-Face-Reco-DNN/tools/facerecognition.py’,<br />
args: [<br />
‘–cascade=modules/MMM-Face-Reco-DNN/tools/haarcascade_frontalface_default.xml’,<br />
‘–encodings=modules/MMM-Face-Reco-DNN/tools/encodings.pickle’,<br />
‘–usePiCamera=0’,<br />
‘–source=0’,<br />
‘–rotateCamera=0’,<br />
‘–method=dnn’,<br />
‘–detectionMethod=hog’,<br />
‘–interval=2000’,<br />
‘–output=0’,<br />
‘–extendDataset=False’,<br />
‘–dataset=modules/MMM-Face-Reco-DNN/dataset/’,<br />
‘–tolerance=0.6’<br />
],<br />
exitCode: 1<br />
}</p>
<p dir="auto">Does anyone know how it could be solved? the camera used is an “eye ps3” and everything about a rapsberry pi 3.</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://forum.magicmirror.builders/topic/14998/problems-wanting-to-use-mmm-face-reco-dnn-and-mmm-motiondetector-at-the-same-time</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 08:08:28 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14998.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Apr 2021 17:48:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problems wanting to use MMM-Face-Reco-DNN and MMM-MotionDetector at the same time on Thu, 29 Apr 2021 19:54:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> motion mounted and feeding the modules of Magic Mirror through the stream direction that motion creates, and they are working pretty  well.<br />
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.</p>
]]></description><link>https://forum.magicmirror.builders/post/91160</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/91160</guid><dc:creator><![CDATA[cala]]></dc:creator><pubDate>Thu, 29 Apr 2021 19:54:55 GMT</pubDate></item><item><title><![CDATA[Reply to problems wanting to use MMM-Face-Reco-DNN and MMM-MotionDetector at the same time on Thu, 29 Apr 2021 16:08:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cala" aria-label="Profile: cala">@<bdi>cala</bdi></a> I was saying it would be nice if.</p>
<p dir="auto">it does not work that way today</p>
]]></description><link>https://forum.magicmirror.builders/post/91156</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/91156</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 29 Apr 2021 16:08:13 GMT</pubDate></item><item><title><![CDATA[Reply to problems wanting to use MMM-Face-Reco-DNN and MMM-MotionDetector at the same time on Thu, 29 Apr 2021 15:44:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> thank you very much for your answer.<br />
I will try to configure it in the way in which you are indicating me.<br />
I will update this post if I can get it to work on that way.<br />
Best regards.</p>
]]></description><link>https://forum.magicmirror.builders/post/91155</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/91155</guid><dc:creator><![CDATA[cala]]></dc:creator><pubDate>Thu, 29 Apr 2021 15:44:33 GMT</pubDate></item><item><title><![CDATA[Reply to problems wanting to use MMM-Face-Reco-DNN and MMM-MotionDetector at the same time on Wed, 28 Apr 2021 23:34:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cala" aria-label="Profile: cala">@<bdi>cala</bdi></a> there is no camera sharing. I have thought about looking into that. but no time yet.</p>
<p dir="auto">use linux  motion project (handles all the cameras and has data and events for motion and frame capture)</p>
<p dir="auto">and allow registration for movement info, pub/sub</p>
<p dir="auto">either just info<br />
motion start/stop<br />
and/or<br />
video frames for  opencv for reco<br />
and/or<br />
a stream of video to be used however</p>
]]></description><link>https://forum.magicmirror.builders/post/91144</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/91144</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 28 Apr 2021 23:34:08 GMT</pubDate></item></channel></rss>