Forgot to add the errors:
0|mm | model.load(config.get("trainingFile"))
0|mm | cv2.error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/contrib/src/facerec.cpp:325: error: (-2) File can't be opened for writing! in function load
0|mm |
0|mm |
0|mm | at PythonShell.parseError (/home/pi/MagicMirror/modules/node_modules/python-shell/index.js:190:17)
0|mm | at terminateIfNeeded (/home/pi/MagicMirror/modules/node_modules/python-shell/index.js:98:28)
0|mm | at ChildProcess. (/home/pi/MagicMirror/modules/node_modules/python-shell/index.js:88:9)
0|mm | at emitTwo (events.js:106:13)
0|mm | at ChildProcess.emit (events.js:191:7)
0|mm | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
0|mm | executable: 'python',
0|mm | options: null,
0|mm | script: 'modules/MMM-Facial-Recognition/facerecognition/facerecognition.py',
0|mm | args: [ '{"recognitionAlgorithm":1,"lbphThreshold":80,"fisherThreshold":250,"eigenThreshold":3000,"useUSBCam":false,"trainingFile":"modules/MMM-Facial-Recognition/Training.xml","interval":2,"logoutDelay":15,"users":["Sander"],"defaultClass":"default","everyoneClass":"everyone","welcomeMessage":true}' ],
0|mm | exitCode: 1 }