So I got it all running without any errors, but I'm not recognized when i use python tools.facerecognition.py
The point i have come to:
So I have taken pictures, got them converted into the folder named Daniel in MMM-Facial-Recognition-OCV3/training_data
I ran python tools.train.py. and got the training file and this output:
pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-OCV3 $ python tools.train.py
['Daniel']
Reading training images...
Assign label 1 to Daniel
Read 186 positive images and 400 negative images.
186 images from subject Daniel
Training model with threshold 80
('Training data saved to', 'training.xml')
Please add or update (if you added new people not just new images) ['Daniel'] inside config.js (mirror module) or config.py (model tester). You can change the names to whatever you want, just keep the same order and you'll be fine.`
if I use python tools.facerecognition.py it just says "None" when face recognized, and I get this:
pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-OCV3 $ python tools.facerecognition.py
['Daniel']
Loading PiCamera
PiCamera loaded
Loading training data...
Training data loaded!
1.79769313486e+308
None
1.79769313486e+308
None
I have tried to change User1 into Daniel within config.py in the folder MMM-Facial-Recognition-OCV3/lib/tools without success.
What do i do?
So I got it all running without any errors, but I'm not recognized when i use
python tools.facerecognition.py
The point i have come to: So I have taken pictures, got them converted into the folder named Daniel in MMM-Facial-Recognition-OCV3/training_data I ranpython tools.train.py.
and got the training file and this output:pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-OCV3 $ python tools.train.py ['Daniel'] Reading training images... Assign label 1 to Daniel Read 186 positive images and 400 negative images. 186 images from subject Daniel Training model with threshold 80 ('Training data saved to', 'training.xml')
Please add or update (if you added new people not just new images) ['Daniel'] inside config.js (mirror module) or config.py (model tester). You can change the names to whatever you want, just keep the same order and you'll be fine.`
if I use
python tools.facerecognition.py
it just says "None" when face recognized, and I get this:pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-OCV3 $ python tools.facerecognition.py ['Daniel'] Loading PiCamera PiCamera loaded Loading training data... Training data loaded! 1.79769313486e+308 None 1.79769313486e+308 None
I have tried to change User1 into Daniel within config.py in the folder MMM-Facial-Recognition-OCV3/lib/tools without success. What do i do?