<?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[MMM-Facial-Recognition-OCV3 cant run toold.capture.py]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I followed the steps for installation. I have not had any problems.<br />
However, when I run the <a href="http://tools.capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">tools.capture.py</a> file I get the following error.</p>
<p dir="auto">RESTART: /home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/tools.capture.py<br />
Traceback (most recent call last):<br />
File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/tools.capture.py”, line 9, in<br />
from lib.tools.capture import ToolsCapture<br />
File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/tools/capture.py”, line 19, in<br />
from config import ToolsConfig<br />
ImportError: No module named ‘config’</p>
<blockquote>
<blockquote>
<blockquote></blockquote>
</blockquote>
</blockquote>
<p dir="auto">Can you help me?</p>
]]></description><link>https://forum.magicmirror.builders/topic/6981/mmm-facial-recognition-ocv3-cant-run-toold-capture-py</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 23:00:12 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6981.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 14 Apr 2018 12:27:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-Facial-Recognition-OCV3 cant run toold.capture.py on Tue, 25 Jun 2019 20:54:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdegeata" aria-label="Profile: SdeGeata">@<bdi>SdeGeata</bdi></a></p>
<p dir="auto">Nevermind, I just fixed it! It was an outdated PIP that wasn’t getting updated without SUDO.</p>
<pre><code>sudo pip install future --upgrade
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/58222</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/58222</guid><dc:creator><![CDATA[SdeGeata]]></dc:creator><pubDate>Tue, 25 Jun 2019 20:54:41 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Facial-Recognition-OCV3 cant run toold.capture.py on Tue, 25 Jun 2019 20:41:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sebi76" aria-label="Profile: Sebi76">@<bdi>Sebi76</bdi></a> said in <a href="/post/48428">MMM-Facial-Recognition-OCV3 cant run toold.capture.py</a>:</p>
<blockquote>
<p dir="auto">from .config import ToolsConfig</p>
</blockquote>
<p dir="auto">Well this solved the first of two problems for me. I have been getting the same error on capture since i installed. Thanks!</p>
<p dir="auto">Now however, i get this error when trying to train:</p>
<pre><code>OpenCV Error: Assertion failed (ssize.width &gt; 0 &amp;&amp; ssize.height &gt; 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 &lt;module&gt;
    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 &gt; 0 &amp;&amp; ssize.height &gt; 0 in function resize

</code></pre>
<p dir="auto">Any idea what that’s about???</p>
]]></description><link>https://forum.magicmirror.builders/post/58221</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/58221</guid><dc:creator><![CDATA[SdeGeata]]></dc:creator><pubDate>Tue, 25 Jun 2019 20:41:53 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Facial-Recognition-OCV3 cant run toold.capture.py on Sat, 22 Dec 2018 13:06:26 GMT]]></title><description><![CDATA[<p dir="auto">I found the issue.</p>
<p dir="auto">Change in <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a></p>
<p dir="auto"><strong>from config import ToolsConfig -&gt; from .config import ToolsConfig</strong></p>
]]></description><link>https://forum.magicmirror.builders/post/48428</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48428</guid><dc:creator><![CDATA[Sebi76]]></dc:creator><pubDate>Sat, 22 Dec 2018 13:06:26 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Facial-Recognition-OCV3 cant run toold.capture.py on Sat, 22 Dec 2018 12:29:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello ,</p>
<p dir="auto">i had the same Problem. Clean Install from here…<br />
" <a href="https://github.com/normyx/MMM-Facial-Recognition-OCV3" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/normyx/MMM-Facial-Recognition-OCV3</a> "</p>
<p dir="auto">pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-OCV3 $ sudo python3 <a href="http://tools.capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">tools.capture.py</a><br />
Traceback (most recent call last):<br />
File “<a href="http://tools.capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">tools.capture.py</a>”, line 9, in <br />
from lib.tools.capture import ToolsCapture<br />
File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/tools/capture.py”, line 19, in <br />
from config import ToolsConfig<br />
ImportError: cannot import name ‘ToolsConfig’</p>
]]></description><link>https://forum.magicmirror.builders/post/48426</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48426</guid><dc:creator><![CDATA[Sebi76]]></dc:creator><pubDate>Sat, 22 Dec 2018 12:29:46 GMT</pubDate></item></channel></rss>