normyx / MMM-Facial-Recognition-OCV3

MIT License
51 stars 18 forks source link

Face not recognized. Does have have training file #32

Open Blauenfeldt opened 5 years ago

Blauenfeldt commented 5 years ago

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?

P0labrD commented 4 years ago

Hello Blauenfeldt, I got it running with no problem but I encountered the same problem. Have you by any chance managed to find a solution?