I Use CV 4.1.2 on Raspberry 3 B1.2.
MagicMirror │ default │ 2.14.0
"Raspbian GNU/Linux 10 (buster)
I have install CV this way "OpenCV 4.1.2 quick installation (without compliation) for Raspbian Buster"
Please help. I have created datasets with 10 pics directly from the raspi cam.
I get the same errr if i start only this:
python3 facerecognition.py --cascade haarcascade_frontalface_default.xml --encodings encodings.pickle -t 0.6 --detection-method hog
Hi i cant get facerecognition to work. The cam get on (red Led lights and if i get near to the pi cam it get off an i get the Error)
0|MagicMirror | [MMM-Face-Reco-DNN] loading encodings + face detector... 0|MagicMirror | [04.02.2021 20:28.23.958] [LOG] 0|MagicMirror | [MMM-Face-Reco-DNN] starting video stream... 0|MagicMirror | [04.02.2021 20:29.07.497] [ERROR] 0|MagicMirror | Whoops! There was an uncaught exception... 0|MagicMirror | [04.02.2021 20:29.07.519] [ERROR] 0|MagicMirror | PythonShellError: ValueError: min() arg is an empty sequence 0|MagicMirror | at PythonShell.parseError (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:246:21) 0|MagicMirror | at terminateIfNeeded (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:129:32) 0|MagicMirror | at ChildProcess. (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:121:13)
0|MagicMirror | at ChildProcess.emit (events.js:210:5)
0|MagicMirror | at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
0|MagicMirror | ----- Python Traceback -----
0|MagicMirror | File "modules/MMM-Face-Reco-DNN/tools/facerecognition.py", line 143, in
0|MagicMirror | minDistance = min(distances) {
0|MagicMirror | traceback: 'Traceback (most recent call last):\n' +
0|MagicMirror | ' File "modules/MMM-Face-Reco-DNN/tools/facerecognition.py", line 143, in \n' +
0|MagicMirror | ' minDistance = min(distances)\n' +
0|MagicMirror | 'ValueError: min() arg is an empty sequence\n',
0|MagicMirror | executable: 'python3',
0|MagicMirror | options: null,
0|MagicMirror | script: 'modules/MMM-Face-Reco-DNN/tools/facerecognition.py',
0|MagicMirror | args: [
0|MagicMirror | '--cascade=modules/MMM-Face-Reco-DNN/tools/haarcascade_frontalface_default.xml',
0|MagicMirror | '--encodings=modules/MMM-Face-Reco-DNN/tools/encodings.pickle',
0|MagicMirror | '--usePiCamera=1',
0|MagicMirror | '--source=0',
0|MagicMirror | '--rotateCamera=0',
0|MagicMirror | '--method=dnn',
0|MagicMirror | '--detectionMethod=hog',
0|MagicMirror | '--interval=2000',
0|MagicMirror | '--output=0',
0|MagicMirror | '--extendDataset=False',
0|MagicMirror | '--dataset=modules/MMM-Face-Reco-DNN/dataset/',
0|MagicMirror | '--tolerance=1'
0|MagicMirror | ],
0|MagicMirror | exitCode: 1
I Use CV 4.1.2 on Raspberry 3 B1.2. MagicMirror │ default │ 2.14.0 "Raspbian GNU/Linux 10 (buster)
I have install CV this way "OpenCV 4.1.2 quick installation (without compliation) for Raspbian Buster"
Please help. I have created datasets with 10 pics directly from the raspi cam.
I get the same errr if i start only this: python3 facerecognition.py --cascade haarcascade_frontalface_default.xml --encodings encodings.pickle -t 0.6 --detection-method hog