Read the statement by Michael Teeuw here.
MMM-FacialRecognition Training tool
-
Seems to be a problem in the config.py it was setting label to 0 no matter what
Erik
-
Hi. I face the same issue as you, Erik. I can’t make captures via camera (same error as you wrote), and if i train my own jpgs, i can not run the face recognation without issues. Did you solve the problem ?
-
got the same problem…
-
Hey,
I hopüe I understand your problem and maybe I can help you. I use this modul since about one year. At first I had many problems but now it works perfect.What I do: I use the trainer on my pi. Because of my experince whit an other modul, i rember its better not to use other sources (like your laptop…)
I use a usb cam not the pi cam. Because of that the traine wouldn´t work whit option one (take pictures from your webcam) So I have to choose option to (use jpg pictures)
for this i use fswebcam whit the option --no-Banner. So i take about 50 pictures of myself. Then I copied all pictures in one Folder, Pictures for example. Choose in the trainer option 2 use your own jpg pictures and paste the path to your folder. I think now or before you choose your path the trainer ask you for a name. Lets work it… After this you have a new folder in your folder facetrainer. now you can start the train.py and everthing should Ok.
Greets gismo
-
Hello everyone,
i also have a problem withe Facial Recognition Tool. When i start “python capture.py” i get this error.
pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ sudo python capture.py
Traceback (most recent call last):
File “capture.py”, line 18, in
import lib.capture as capture
File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py”, line 12, in
from builtins import input
ImportError: No module named builtinsI deleted and cloned the module twice. The installation of the OpenCV dependencies where successfull. The installation of the python dependencies (“pip install -r requirements.txt”) failed, because there where no requirements.txt.
I hope you can help me. Thanks.
-
OK, I found a sollution by my self. The Problem was realy the python dependency. It seems in the missing “requirements.txt” where the python future package listed so I installed it by my self with
sudo pip install future --upgrade
I hope paviro fix the missing file in his project, because I like it very much.
-
-
This is aweome - I needed that fix as well - one step closer, thanx!