<?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[Facial Recognition - customize your mirror for every user!]]></title><description><![CDATA[<p dir="auto">Would it be possible to use this, but also make it wake up the mirror too?</p>
<p dir="auto">I’d like to use facial recognition to load personal modules, but I don’t want to hook up a PIR sensor too</p>
]]></description><link>https://forum.magicmirror.builders/topic/210/facial-recognition-customize-your-mirror-for-every-user</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 21:11:06 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/210.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 May 2016 20:30:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Thu, 19 Mar 2026 12:17:21 GMT]]></title><description><![CDATA[<p dir="auto">Getting the orientation right for the training images was the trickiest part for me. If your PiCam or USB cam is mounted at an odd angle (or upside down for cable management), the recognition often fails because the training set doesn’t match the live feed.<br />
If anyone is struggling with mirrored images in their preview or while testing their training data, I found this quick tool helpful to flip them before feeding them into the trainer- <a href="https://www.thetoolapp.com/mirror-image-online/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.thetoolapp.com/mirror-image-online/</a>. It’s a lot faster than script-flipping every individual JPEG when you’re just trying to troubleshoot the dataset.</p>
]]></description><link>https://forum.magicmirror.builders/post/130441</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130441</guid><dc:creator><![CDATA[BiaGen]]></dc:creator><pubDate>Thu, 19 Mar 2026 12:17:21 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Fri, 29 Mar 2019 11:35:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yourhighnessleender" aria-label="Profile: YourhighnessLeender">@<bdi>YourhighnessLeender</bdi></a> Hi bro</p>
]]></description><link>https://forum.magicmirror.builders/post/55039</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55039</guid><dc:creator><![CDATA[Irfan ali]]></dc:creator><pubDate>Fri, 29 Mar 2019 11:35:21 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Fri, 15 Mar 2019 07:47:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nano79" aria-label="Profile: nano79">@<bdi>nano79</bdi></a><br />
Fist of all, thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/michmich" aria-label="Profile: MichMich">@<bdi>MichMich</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/paviro" aria-label="Profile: paviro">@<bdi>paviro</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/tosti007" aria-label="Profile: tosti007">@<bdi>tosti007</bdi></a> gave me provided these fantastic applications and modules!</p>
<p dir="auto">Secondly, thanks for your help!  According to your method, I installed python-shell 0.4.0 and resolved the issue of “PythonShell is not a constructor” .</p>
<p dir="auto">Now I had another issue in the followed steps.</p>
<p dir="auto">I have installed and configured MMM-Facial-Recognition-Tools, MMM-Facial-Recognition and MMM-ProfileSwitcher. I passed the <a href="http://facerecognition.py" target="_blank" rel="noopener noreferrer nofollow ugc">facerecognition.py</a> test:</p>
<pre><code>pi@MagicMirror2:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ export FACE_ALGORITHM=1
pi@MagicMirror2:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ export FACE_USERS=
pi@MagicMirror2:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ export FACE_USERS=Xueping
pi@MagicMirror2:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ 
pi@MagicMirror2:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ export FACE_ALGORITHM=1
pi@MagicMirror2:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ export FACE_USERS=Xueping
pi@MagicMirror2:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ python facerecognition.py 
['Xueping']
Using FACE_ALGORITM: 1
Loading training data...
Training data loaded!
Strong:Xueping
Strong:Xueping
Strong:Xueping
Strong:Xueping
Strong:Xueping
Strong:Xueping
</code></pre>
<p dir="auto">Now I added the configuration in config.js as followings:</p>
<pre><code>modules: [
		{
            module: 'MMM-Logging',
            classes: 'default everyone',
            config: {
            }
        },

		{
			module: "alert",
			classes: 'default everyone'
		},
		{
			module: "updatenotification",
			position: "top_bar",
			classes: 'default everyone'
		},

		{
			module: "compliments",
			position: "lower_third",
			classes: 'Xueping',
			config: {
				compliments: {
					anytime: [
						"Hello！THIS IS TESTING！"
					],
				}
			}
		},
		{
			module: "clock",
			position: "top_left",
			classes: 'everyone'
		},
		{
			module: 'MMM-Facial-Recognition',
			position: "top_right",
			config: {
				// 1=LBPH | 2=Fisher | 3=Eigen
				recognitionAlgorithm: 1,
				lbphThreshold: 50,
				fisherThreshold: 250,
				eigenThreshold: 3000,
				alwaysShowLeave: false,
				useUSBCam: false,
				trainingFile: '/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/training.xml',
				interval: 2,
				logoutDelay: 30,
				users: ['Xueping'],
				defaultClass: "default",
				everyoneClass: "everyone",
				welcomeMessage: true,
			}
		},
		{
			module: 'MMM-ProfileSwitcher',
			config: {
				// Disable the enter messages for everyone but me and Kevin
				enterMessages: {
					"Xueping": "Hello :D", // Kevin has a custom message
					"everyone": "Hello :D",
					"default": "No Users were detected"
				},
				// Everyone has a custom message
				leaveMessages: {
					// %profile% will be replaced with the correct name
					"everyone": "Hey %person%, already leaving?",
					// I have a custom and the default message
					//  this is not the same as everyone since we changed it
					"Xueping": ["Bye bye!"], 
					"default": "Goodbye"
				}
			}
		},
		{
			module: "MMM-ping",
			position: "bottom_right",
			classes: 'default',
			config: {
				colored: true,
				font: "xsmall",
				updateInterval: 1,
				hosts: [
					"192.168.1.1",
					"forum.magicmirror.builders"
				]
			}
		},

	]
</code></pre>
<p dir="auto"><strong>When I run MagicMirror, the screen layout changed from default classes mode into user classes mode. the icons, which is in default classes mode, disappeared as I want. BUT in user classes mode, the very module (compliments) did not appeared! the whole screen is still black.</strong></p>
<p dir="auto">The whole process log is as following:</p>
<pre><code>2019-03-15T15:08:50 &lt;log&gt; [MMM-Facial-Recognition] Facerecognition started... (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:16 PythonShell.&lt;anonymous&gt;)
2019-03-15T15:08:50 &lt;log&gt; [MMM-Facial-Recognition] Loading training data... (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:16 PythonShell.&lt;anonymous&gt;)
2019-03-15T15:08:50 &lt;log&gt; [MMM-Facial-Recognition] ALGORITHM: LBPH (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:16 PythonShell.&lt;anonymous&gt;)
2019-03-15T15:08:55 &lt;log&gt; [MMM-Facial-Recognition] Training data loaded! (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:16 PythonShell.&lt;anonymous&gt;)
2019-03-15T15:08:55 &lt;log&gt; [MMM-Facial-Recognition] -------------------- (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:16 PythonShell.&lt;anonymous&gt;)
2019-03-15T15:08:55 &lt;log&gt; [MMM-Facial-Recognition] PiCam ausgewählt... (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:16 PythonShell.&lt;anonymous&gt;)



2019-03-15T15:09:07 &lt;log&gt; [MMM-Facial-Recognition] User Xueping with confidence 29.2076146738 logged in. (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:19 PythonShell.&lt;anonymous&gt;)
[3656:0315/150907.528143:INFO:CONSOLE(205)] "MMM-ping is resumed.", source: http://10.133.26.219:8080/js/module.js (205)
[3656:0315/150907.532130:INFO:CONSOLE(154)] "clock received a module notification: CURRENT_USER from sender: MMM-Facial-Recognition", source: http://10.133.26.219:8080/js/module.js (154)
[3656:0315/150907.533400:INFO:CONSOLE(154)] "MMM-ping received a module notification: CURRENT_USER from sender: MMM-Facial-Recognition", source: http://10.133.26.219:8080/js/module.js (154)
2019-03-15T15:09:07 &lt;log&gt;  payload: undefined (/home/pi/MagicMirror/modules/MMM-Logging/node_helper.js:34 Class.socketNotificationReceived)
[3656:0315/150907.543631:INFO:CONSOLE(205)] "compliments is resumed.", source: http://10.133.26.219:8080/js/module.js (205)
[3656:0315/150907.544869:INFO:CONSOLE(275)] "Will not show compliments. LockStrings active: module_6_MMM-ProfileSwitcher", source: http://10.133.26.219:8080/js/main.js (275)
[3656:0315/150907.545862:INFO:CONSOLE(154)] "clock received a module notification: CURRENT_USER from sender: MMM-Facial-Recognition", source: http://10.133.26.219:8080/js/module.js (154)
[3656:0315/150907.546709:INFO:CONSOLE(154)] "MMM-ping received a module notification: CURRENT_USER from sender: MMM-Facial-Recognition", source: http://10.133.26.219:8080/js/module.js (154)
[3656:0315/150907.552615:INFO:CONSOLE(154)] "clock received a module notification: SHOW_ALERT from sender: MMM-Facial-Recognition", source: http://10.133.26.219:8080/js/module.js (154)
[3656:0315/150907.554160:INFO:CONSOLE(154)] "MMM-ping received a module notification: SHOW_ALERT from sender: MMM-Facial-Recognition", source: http://10.133.26.219:8080/js/module.js (154)
2019-03-15T15:09:07 &lt;log&gt;  payload: undefined (/home/pi/MagicMirror/modules/MMM-Logging/node_helper.js:34 Class.socketNotificationReceived)
2019-03-15T15:09:07 &lt;log&gt;  payload: undefined (/home/pi/MagicMirror/modules/MMM-Logging/node_helper.js:34 Class.socketNotificationReceived)
[3656:0315/150908.582237:INFO:CONSOLE(198)] "MMM-ping is suspended.", source: http://10.133.26.219:8080/js/module.js (198)
[3656:0315/150908.587425:INFO:CONSOLE(60)] "MMM-ping is hidden.", source: http://10.133.26.219:8080/modules/MMM-Facial-Recognition//MMM-Facial-Recognition.js (60)



2019-03-15T15:11:08 &lt;log&gt; [MMM-Facial-Recognition] User Xueping logged out. (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:23 PythonShell.&lt;anonymous&gt;)
[3656:0315/151108.702056:INFO:CONSOLE(205)] "MMM-ping is resumed.", source: http://10.133.26.219:8080/js/module.js (205)
[3656:0315/151108.712169:INFO:CONSOLE(154)] "clock received a module notification: CURRENT_USER from sender: MMM-Facial-Recognition", source: http://10.133.26.219:8080/js/module.js (154)
[3656:0315/151108.712959:INFO:CONSOLE(154)] "MMM-ping received a module notification: CURRENT_USER from sender: MMM-Facial-Recognition", source: http://10.133.26.219:8080/js/module.js (154)
2019-03-15T15:11:08 &lt;log&gt;  payload: undefined (/home/pi/MagicMirror/modules/MMM-Logging/node_helper.js:34 Class.socketNotificationReceived)
[3656:0315/151109.703213:INFO:CONSOLE(198)] "compliments is suspended.", source: http://10.133.26.219:8080/js/module.js (198)
[3656:0315/151109.703561:INFO:CONSOLE(78)] "compliments is hidden.", source: http://10.133.26.219:8080/modules/MMM-Facial-Recognition//MMM-Facial-Recognition.js (78)
[3656:0315/151109.709930:INFO:CONSOLE(84)] "MMM-ping is shown.", source: http://10.133.26.219:8080/modules/MMM-Facial-Recognition//MMM-Facial-Recognition.js (84)




^C
pi@MagicMirror2:~/MagicMirror $
</code></pre>
<p dir="auto">Could you or anyone give me some suggestions? Thanks in advance.</p>
]]></description><link>https://forum.magicmirror.builders/post/54306</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54306</guid><dc:creator><![CDATA[lovesicker]]></dc:creator><pubDate>Fri, 15 Mar 2019 07:47:18 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Tue, 12 Mar 2019 18:13:53 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/user/paviro" aria-label="Profile: paviro">@<bdi>paviro</bdi></a> ! I’m having an issue with the module. This module worked only once for me. Now it just logs into the “everyone” page and doesn’t recognize me anymore. How do I fix this?</p>
]]></description><link>https://forum.magicmirror.builders/post/54165</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54165</guid><dc:creator><![CDATA[nano79]]></dc:creator><pubDate>Tue, 12 Mar 2019 18:13:53 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Sun, 10 Mar 2019 07:59:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eviltrooper" aria-label="Profile: eviltrooper">@<bdi>eviltrooper</bdi></a> you can also install an older version of python-shell (0.4.0 ) and it works without modifying the node_helper.js file! You can install this specific version of python-shell by this command:</p>
<pre><code>npm install python-shell@0.4.0
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/54012</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54012</guid><dc:creator><![CDATA[nano79]]></dc:creator><pubDate>Sun, 10 Mar 2019 07:59:06 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Fri, 05 Oct 2018 12:16:23 GMT]]></title><description><![CDATA[<p dir="auto">Hello, have some Proplem with this Modul:</p>
<pre><code>0|mm  | &gt; magicmirror@2.5.0 start /home/pi/MagicMirror
0|mm  | &gt; sh run-start.sh

0|mm  | Starting MagicMirror: v2.5.0
0|mm  | Loading config ...
0|mm  | Loading module helpers ...
0|mm  | No helper found for module: alert.
0|mm  | Initializing new module helper ...
0|mm  | Module helper loaded: updatenotification
0|mm  | No helper found for module: clock.
0|mm  | Initializing new module helper ...
0|mm  | Module helper loaded: MMM-Facial-Recognition
0|mm  | Initializing new module helper ...
0|mm  | Module helper loaded: calendar
0|mm  | Initializing new module helper ...
0|mm  | Module helper loaded: MMM-EARTH
0|mm  | No helper found for module: currentweather.
0|mm  | No helper found for module: weatherforecast.
0|mm  | Initializing new module helper ...
0|mm  | Check MagicMirror version for node helper 'MMM-LocalTemperature' - Minimum version:  2.2.1 - Current version: 2.5.0
0|mm  | Version is ok!
0|mm  | Module helper loaded: MMM-LocalTemperature
0|mm  | Initializing new module helper ...
0|mm  | Module helper loaded: mmm-systemtemperature
0|mm  | Initializing new module helper ...
0|mm  | Module helper loaded: newsfeed
0|mm  | All module helpers loaded.
0|mm  | Starting server on port 8080 ...
0|mm  | Server started ...
0|mm  | Connecting socket for: updatenotification
0|mm  | Connecting socket for: MMM-Facial-Recognition
0|mm  | Starting module helper: MMM-Facial-Recognition
0|mm  | Connecting socket for: calendar
0|mm  | Starting node helper for: calendar
0|mm  | Connecting socket for: MMM-EARTH
0|mm  | Starting module: MMM-EARTH
0|mm  | Connecting socket for: MMM-LocalTemperature
0|mm  | MMM-LocalTemperature: module loaded! Path: /home/pi/MagicMirror/modules/MMM-LocalTemperature
0|mm  | Connecting socket for: mmm-systemtemperature
0|mm  | Starting node helper: mmm-systemtemperature
0|mm  | Connecting socket for: newsfeed
0|mm  | Starting module: newsfeed
0|mm  | Sockets connected &amp; modules started ...
0|mm  | (node:11742) [DEP0025] DeprecationWarning: sys is deprecated. Use util instead.
0|mm  | Launching application.
0|mm  | libGL error: MESA-LOADER: failed to retrieve device information
0|mm  | MESA-LOADER: failed to retrieve device information
0|mm  | MESA-LOADER: failed to retrieve device information
0|mm  | Create new calendar fetcher for url: http://.... - Interval: 300000
0|mm  | Whoops! There was an uncaught exception...
0|mm  | TypeError: PythonShell is not a constructor
0|mm  |     at Class.python_start (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:11:21)
0|mm  |     at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:40:14)
0|mm  |     at Socket.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:113:11)
0|mm  |     at emitTwo (events.js:126:13)
0|mm  |     at Socket.emit (events.js:214:7)
0|mm  |     at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:513:12
0|mm  |     at _combinedTickCallback (internal/process/next_tick.js:131:7)
0|mm  |     at process._tickCallback (internal/process/next_tick.js:180:9)
0|mm  | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
0|mm  | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
0|mm  | Create new calendar fetcher for url: http://i.cal.to/.....ics - Interval: 300000
0|mm  | https://epic.gsfc.nasa.gov/api/natural
0|mm  | MMM-LocalTemperature: Socket Notification Received: "INIT".
0|mm  | MMM-LocalTemperature: Socket Notification Received: "GET_DATA".
0|mm  | Create new news fetcher for url: https://www.ofc.de/rss-feed.xml - Interval: 300000
0|mm  | Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
</code></pre>
<p dir="auto">TypeError: PythonShell is not a constructor</p>
<p dir="auto">anyone an idea?</p>
]]></description><link>https://forum.magicmirror.builders/post/45012</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/45012</guid><dc:creator><![CDATA[eviltrooper]]></dc:creator><pubDate>Fri, 05 Oct 2018 12:16:23 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Tue, 01 May 2018 17:03:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi… will there be any possibility to use Facial Recognition along with motion detection for turning on/off the Display ?</p>
<p dir="auto">Regards,<br />
Wolfgang</p>
]]></description><link>https://forum.magicmirror.builders/post/39146</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39146</guid><dc:creator><![CDATA[WookyDO]]></dc:creator><pubDate>Tue, 01 May 2018 17:03:13 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Thu, 22 Mar 2018 21:09:17 GMT]]></title><description><![CDATA[<p dir="auto">Ah yes, thank you.  It was the “updatenotification” module in the top bar.  I took myself off of that, and now it works as expected.  Now that I think about it, that makes sense.</p>
<p dir="auto">Still have a lot of tinkering to do, but this solved the annoying issue I caused.</p>
<p dir="auto">Thank  you kindly for the help.</p>
]]></description><link>https://forum.magicmirror.builders/post/37314</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37314</guid><dc:creator><![CDATA[Prestitivo]]></dc:creator><pubDate>Thu, 22 Mar 2018 21:09:17 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Thu, 22 Mar 2018 20:48:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/prestitivo" aria-label="Profile: Prestitivo">@<bdi>Prestitivo</bdi></a> It means you’ve configured that module to be displayed when you are recognized, and hidden when you are not.  Take a look at your config to see if you can pinpoint which module is making this happen.</p>
]]></description><link>https://forum.magicmirror.builders/post/37313</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37313</guid><dc:creator><![CDATA[j.e.f.f]]></dc:creator><pubDate>Thu, 22 Mar 2018 20:48:47 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Thu, 22 Mar 2018 20:24:54 GMT]]></title><description><![CDATA[<p dir="auto">I got this module working after a bit of trial and error, and it’s awesome.  I only have 1 issue so far.  When I’m recognized, all of the modules drop by about 30 pixels.  I’m not a programmer by any stretch of the imagination, but have no issues looking around at code trying to figure out what it does.  I used Firebug to see what was going, and from what I can see, the one of the div’s updates from style=“display: none;” to style=“display: block;”.  The part that’s really confusing me is that it only does this when it recognizes me.  When it recognizes a stranger, none of the modules shift.  I can provide anything requested, but I wasn’t sure if anyone else was experiencing this issue.</p>
]]></description><link>https://forum.magicmirror.builders/post/37310</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/37310</guid><dc:creator><![CDATA[Prestitivo]]></dc:creator><pubDate>Thu, 22 Mar 2018 20:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Sun, 28 Jan 2018 22:16:29 GMT]]></title><description><![CDATA[<p dir="auto">So I figured out my own problem. Seems like it doesn’t like it when I changed the language file. Restored the old one and everything works as it should. Also, I find raising the threshold to 250 for the LBPH Algorithm helps a lot to get more accurate results. The confidence seems to hover around 49-52 for me but I couldn’t get any results with 50, constantly thought I was “stranger”. Thanks for all the hard work on this module. It’s really fun to play with!</p>
]]></description><link>https://forum.magicmirror.builders/post/34839</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/34839</guid><dc:creator><![CDATA[jer78]]></dc:creator><pubDate>Sun, 28 Jan 2018 22:16:29 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Sun, 28 Jan 2018 07:35:25 GMT]]></title><description><![CDATA[<p dir="auto">I have the same issue. Training went fine. I got everything working but then after a reboot it seems to load the module but then nothing. It doesn’t seem to want to do anything. No errors just no facial recognition.</p>
]]></description><link>https://forum.magicmirror.builders/post/34779</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/34779</guid><dc:creator><![CDATA[jer78]]></dc:creator><pubDate>Sun, 28 Jan 2018 07:35:25 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Sun, 26 Nov 2017 17:49:40 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for spaming,</p>
<p dir="auto">but I tried to refresh everything. So I installed the Rasbian new, the Magic Mirror, the Facial Recognition and the Tools. It worked… ONCE. After rebooting the system I have the same error as bevor:</p>
<p dir="auto">It load training data and select the PiCam and then it doesn’t go on. No error-message.</p>
<p dir="auto">Any idea which component was active when I reinstalled everything and isn’t active after rebooting?<br />
The camera is enabled.</p>
]]></description><link>https://forum.magicmirror.builders/post/31624</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31624</guid><dc:creator><![CDATA[PrivatVoidMarmot]]></dc:creator><pubDate>Sun, 26 Nov 2017 17:49:40 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Sun, 26 Nov 2017 17:49:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paviro" aria-label="Profile: paviro">@<bdi>paviro</bdi></a> I have the same problem like <a class="plugin-mentions-user plugin-mentions-a" href="/user/shashank" aria-label="Profile: shashank">@<bdi>shashank</bdi></a>, but I don’t figure out any mistake… the trainingfile is in the right direction… It doesn’t work with PiCam and with an webcam neither…</p>
]]></description><link>https://forum.magicmirror.builders/post/31597</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31597</guid><dc:creator><![CDATA[PrivatVoidMarmot]]></dc:creator><pubDate>Sun, 26 Nov 2017 17:49:55 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Fri, 24 Nov 2017 13:01:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I use your Facial Recognition modul. I have create some user and everything work fine.</p>
<p dir="auto">But now I install MMM-Motion-Detection modul. I works fine, too. But if I use this modul your modul didn´t work. When I cut off the MMM-Motion-Detection module from config.js and start again your modul will work fine again.</p>
<p dir="auto">Can someone help me?</p>
<p dir="auto">greets gismo</p>
]]></description><link>https://forum.magicmirror.builders/post/31555</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31555</guid><dc:creator><![CDATA[gismo2006]]></dc:creator><pubDate>Fri, 24 Nov 2017 13:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Tue, 21 Nov 2017 00:26:00 GMT]]></title><description><![CDATA[<p dir="auto">OK after lots and lots of trial and error I hope this helps people… these are the settings and results I had and as far as I can tell the everyone setting doesnt do what I would expect…</p>
<p dir="auto">I don’t hink you have a way of identifying a stranger and do something specific for them?</p>
<pre><code>defaultClass: "default", //Module set used for strangers and if no user is detected
</code></pre>
<p dir="auto">It looks like when everyone is specified on its own then the logic doesnt seem to work. See classes: “everyone” below…</p>
<pre><code>                                users: ['martin'], // Array with usernames (copy and paste from training script)
                                defaultClass: "default", //Module set used for strangers and if no user is detected
                                everyoneClass: "everyone", //Set of modules which should be shown for every user
                                welcomeMessage: false // Boolean to toggle welcomeMessage
                        }
                },
                {
                        module: "clock",
                        position: "top_left",
                        classes: "default" // displays with no face detection (OK) - not displayed when martin detected (OK) - displayed with no specific user detected (OK?)
                },
                {
                        module: "clock",
                        position: "top_right",
                        classes: "default everyone" // displays with no face detection (OK) - displayed with no specific user and martin (OK)
                },
                {
                        module: "clock",
                        position: "bottom_right",
                        classes: "default martin" // displays with no face detection (OK) - displayed with no specific user and martin (OK)
                },
                {
                        module: "clock",
                        position: "bottom_left",
                        classes: "everyone" // never displays (??? I would expect this to display when Martin is detected - or any other user)
                },
                {
                        module: "compliments",
                        position: "lower_third",
                        classes: "martin" // only displayed when martin detected (OK)
                },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/31394</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31394</guid><dc:creator><![CDATA[thebeetleuk]]></dc:creator><pubDate>Tue, 21 Nov 2017 00:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Mon, 20 Nov 2017 22:58:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi All, I have found out that if you want to use your USB webcam for training you can update the file <a href="https://github.com/paviro/MMM-Facial-Recognition-Tools/blob/master/lib/config.py" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/paviro/MMM-Facial-Recognition-Tools/blob/master/lib/config.py</a> in the appropriate directory with the following. for some reason it doesnt seem to want to fall over to the webcam so I just commented out the pi web cam and added the usb one.</p>
<pre><code>def get_camera(preview=True):
    try:
#        from . import picam
#        capture = picam.OpenCVCapture(preview)
#        capture.start()
#        return capture
        from . import webcam
        return webcam.OpenCVCapture(device_id=0)
        capture.start()
        return capture
    except Exception:
        from . import webcam
        return webcam.OpenCVCapture(device_id=0)
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/31392</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31392</guid><dc:creator><![CDATA[thebeetleuk]]></dc:creator><pubDate>Mon, 20 Nov 2017 22:58:45 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Mon, 20 Nov 2017 20:32:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mc_landin" aria-label="Profile: mc_landin">@<bdi>mc_landin</bdi></a> I’m at this stage as well! for some reason the classes dont change whats displayed when a new face is seen. So in this example the “default” is seen all the time and then when a generic face is seen then the “everyone” class isnt shown. Has anyone got this working?</p>
<pre><code>            {
                    module: "updatenotification",
                    position: "top_bar",
                    classes: 'default'
            },
            {
                    module: "clock",
                    position: "top_left",
                    classes: 'everyone'
            },
            {
                    module: 'MMM-Facial-Recognition',
                    config: {
                            recognitionAlgorithm: 1, // 1=LBPH | 2=Fisher | 3=Eigen
                            // Threshold for the confidence of a recognized face before it's considered a
                            // positive match.  Confidence values below this threshold will be considered
                            // a positive match because the lower the confidence value, or distance, the
                            // more confident the algorithm is that the face was correctly detected.
                            lbphThreshold: 50,
                            fisherThreshold: 250,
                            eigenThreshold: 3000,
                            useUSBCam: true, // force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically)
                            trainingFile: 'modules/MMM-Facial-Recognition-Tools/training.xml', // Path to your training xml
                            interval: 2, // recognition intervall in seconds (smaller number = faster but CPU intens!)
                            logoutDelay: 15, // Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror f$
                            users: [], // Array with usernames (copy and paste from training script)
                            defaultClass: "default", //Module set used for strangers and if no user is detected
                            everyoneClass: "everyone", //Set of modules which should be shown for every user
                            welcomeMessage: true // Boolean to toggle welcomeMessage
                    }
            },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/31386</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31386</guid><dc:creator><![CDATA[thebeetleuk]]></dc:creator><pubDate>Mon, 20 Nov 2017 20:32:27 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Sat, 18 Nov 2017 09:15:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I have an problem wirth the Facial Regonition Module. I have tried it with the PiCam and an normal webcam. It worked not really good with die webcam and after i’ve tried it with die PiCam it doesn’t work any more. I’ve updatet the config.js.</p>
<p dir="auto">This is the npm output:</p>
<p dir="auto"><img src="/assets/uploads/files/1510996318017-mmm.png" alt="0_1510996315204_mmm.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">config.js:</p>
<pre><code>On the mirror nothing is shown. {
			module: 'MMM-Facial-Recognition',
			config: {
				// 1=LBPH | 2=Fisher | 3=Eigen
				recognitionAlgorithm: 1,
				// Threshold for the confidence of a recognized face before it's considered a
				// positive match.  Confidence values below this threshold will be considered
				// a positive match because the lower the confidence value, or distance, the
				// more confident the algorithm is that the face was correctly detected.
				lbphThreshold: 50,
				fisherThreshold: 250,
				eigenThreshold: 3000,
				// force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically)
				useUSBCam: true,
				// Path to your training xml
				trainingFile: 'modules/MMM-Facial-Recognition-Tools/training.xml',
				// recognition intervall in seconds (smaller number = faster but CPU intens!)
				interval: 1,
				// Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror for a few seconds
				logoutDelay: 15,
				// Array with usernames (copy and paste from training script)
				users: ['Jenny'],
				//Module set used for strangers and if no user is detected
				defaultClass: "default",
				//Set of modules which should be shown for every user
				everyoneClass: "everyone",
				// Boolean to toggle welcomeMessage
				welcomeMessage: true
			}
</code></pre>
<p dir="auto">Any suggestions?</p>
]]></description><link>https://forum.magicmirror.builders/post/31297</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31297</guid><dc:creator><![CDATA[PrivatVoidMarmot]]></dc:creator><pubDate>Sat, 18 Nov 2017 09:15:24 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Thu, 02 Nov 2017 18:03:22 GMT]]></title><description><![CDATA[<p dir="auto">Got another problem. My picam is not able to open. I am using opencv 3.3.</p>
<pre><code>Remember to set the name list environment variable FACE_USERS
Using default FACE_ALGORITM: 1
Traceback (most recent call last):
File "facerecognition.py", line 30, in 
camera = config.get_camera(preview)
File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 101, in get_camera
return webcam.OpenCVCapture(device_id=0)
File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/webcam.py", line 29, in __init__
self._camera.open()
TypeError: Required argument 'device' (pos 1) not found
</code></pre>
<p dir="auto">any suggestions?</p>
]]></description><link>https://forum.magicmirror.builders/post/30600</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/30600</guid><dc:creator><![CDATA[salamures]]></dc:creator><pubDate>Thu, 02 Nov 2017 18:03:22 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Thu, 02 Nov 2017 20:25:37 GMT]]></title><description><![CDATA[<p dir="auto">Are you using OpenCV 3.3? Then i might can help you.</p>
]]></description><link>https://forum.magicmirror.builders/post/30598</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/30598</guid><dc:creator><![CDATA[salamures]]></dc:creator><pubDate>Thu, 02 Nov 2017 20:25:37 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Thu, 02 Nov 2017 16:28:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/salamures" aria-label="Profile: salamures">@<bdi>salamures</bdi></a> said in <a href="/post/30521">Facial Recognition - customize your mirror for every user!</a>:</p>
<blockquote>
<p dir="auto">Hi there, maybe someone is able to help me out.<br />
I am trying to run <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a> but getting this Error</p>
<pre><code>Traceback (most recent call last):
   File "capture.py", line 18, in 
      import lib.capture as capture
   File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in 
     from . import config
   File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in 
     (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".")
ValueError: not enough values to unpack (expected 4, got 3)
</code></pre>
</blockquote>
<p dir="auto">I am also facing the same issue. Any effort to resolve it will be appreciated.</p>
]]></description><link>https://forum.magicmirror.builders/post/30596</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/30596</guid><dc:creator><![CDATA[avinash]]></dc:creator><pubDate>Thu, 02 Nov 2017 16:28:23 GMT</pubDate></item><item><title><![CDATA[Reply to Facial Recognition - customize your mirror for every user! on Wed, 01 Nov 2017 22:04:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi there, maybe someone is able to help me out.<br />
I am trying to run <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a> but getting this Error</p>
<pre><code>Traceback (most recent call last):
   File "capture.py", line 18, in 
      import lib.capture as capture
   File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in 
     from . import config
   File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in 
     (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".")
ValueError: not enough values to unpack (expected 4, got 3)
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/30521</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/30521</guid><dc:creator><![CDATA[salamures]]></dc:creator><pubDate>Wed, 01 Nov 2017 22:04:42 GMT</pubDate></item></channel></rss>