Read the statement by Michael Teeuw here.
erreur : MMM-Face-Reco-DNN
-
jai un problème dans module
MMM-Face-Reco-DNN ,
aide moi svp[2024-05-05 17:48:59.807] [LOG] [MMM-Face-Reco-DNN] loading encodings + face detector…
[2024-05-05 17:49:01.806] [ERROR] Whoops! There was an uncaught exception…
[2024-05-05 17:49:01.818] [ERROR] PythonShellError: FileNotFoundError: [Errno 2] No such file or directory: ‘modules/MMM-Face-Reco-DNN/tools/encodings.pickle’
at PythonShell.parseError (/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:303:21)
at terminateIfNeeded (/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:193:32)
at ChildProcess. (/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:185:13)
at ChildProcess.emit (node:events:514:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
----- Python Traceback -----
File “/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/tools/recognition.py”, line 29, in
data = pickle.loads(open(Arguments.get(“encodings”), “rb”).read())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ {
traceback: ‘Traceback (most recent call last):\n’ +
’ File “/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/tools/recognition.py”, line 29, in \n’ +
’ data = pickle.loads(open(Arguments.get(“encodings”), “rb”).read())\n’ +
’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n’ +
“FileNotFoundError: [Errno 2] No such file or directory: ‘modules/MMM-Face-Reco-DNN/tools/encodings.pickle’\n”,
executable: ‘python3’,
options: null,
script: ‘modules/MMM-Face-Reco-DNN/tools/recognition.py’,
args: [
‘–cascade=modules/MMM-Face-Reco-DNN/tools/haarcascade_frontalface_default.xml’,
‘–encodings=modules/MMM-Face-Reco-DNN/tools/encodings.pickle’,
‘–rotateCamera=0’,
‘–method=dnn’,
‘–detectionMethod=hog’,
‘–interval=1000’,
‘–output=0’,
‘–outputmm=0’,
‘–extendDataset=False’,
‘–dataset=modules/MMM-Face-Reco-DNN/dataset/’,
‘–tolerance=0.6’,
‘–brightness=0’,
‘–contrast=0’,
‘–resolution=1920,1080’,
‘–processWidth=500’
],
exitCode: 1
}
[2024-05-05 17:49:01.820] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[2024-05-05 17:49:01.821] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues -
@admin said in erreur : MMM-Face-Reco-DNN:
PythonShellError: FileNotFoundError: [Errno 2] No such file or directory: ‘modules/MMM-Face-Reco-DNN/tools/encodings.pickle’
yes, you did not do the encoding of your user pictures
-
@sdetweil merci pour votre réponse
alors Jai utilise https://github.com/nischi/MMM-Face-Reco-DNN -
-
@sdetweil
mais dans dossier tools ne contient pas haarcascade_frontalface_default.xml et encodings.pickle -
@admin you must run a program to create those. that is the screenshot I provided from the module instructions
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login