Hey
When i run npm start in “/home/pi/MagicMirror” i am struck at below message:
pi@raspberrypi:~/MagicMirror $ npm start
> magicmirror@2.1.1 start /home/pi/MagicMirror
> sh run-start.sh
Starting MagicMirror: v2.1.1
Loading config ...
Loading module helpers ...
Initializing new module helper ...
Module helper loaded: MMM-Facial-Recognition
No helper found for module: alert.
Initializing new module helper ...
Module helper loaded: updatenotification
No helper found for module: clock.
No helper found for module: compliments.
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper ...
Module helper loaded: newsfeed
All module helpers loaded.
Starting server on port 8080 ...
Starting server op port 8080 ...
Server started ...
Connecting socket for: MMM-Facial-Recognition
Staring module helper: MMM-Facial-Recognition
Connecting socket for: updatenotification
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started ...
Launching application.
Create new news fetcher for url: http://www.20min.ch/rss/rss.tmpl?type=channel&get=4 - Interval: 300000
[MMM-Facial-Recognition] Facerecognition started...
[MMM-Facial-Recognition] Loading training data...
[MMM-Facial-Recognition] ALGORITHM: LBPH
[MMM-Facial-Recognition] Training data loaded!
[MMM-Facial-Recognition] --------------------
[MMM-Facial-Recognition] PiCam ausgewählt...
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
var config = {
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.
language: "en",
timeFormat: 24,
units: "metric",
modules: [
{
module: "MMM-Facial-Recognition",
classes: "default everyone",
config: {
recognitionAlgorithm: 1,
lbphThreshold: 50,
fisherThreshold: 250,
eigenThreshold: 3000,
useUSBCam: false,
trainingFile: "modules/MMM-Facial-Recognition/training.xml",
interval: 2,
logoutDelay: 15,
users: ["Stefan"],
defaultClass: "default",
everyoneClass: "everyone",
welcomeMessage: true
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
python facerecongnition.py also not work:
pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ python facerecognition.py
['Stefan']
Using FACE_ALGORITM: 1
Loading training data...
Training data loaded!
Strong:Stefan
No windowing system, writing face.jpg image
Traceback (most recent call last):
File "facerecognition.py", line 153, in
clean_shutdown()
TypeError: clean_shutdown() takes exactly 2 arguments (0 given)