Read the statement by Michael Teeuw here.
Facial Recognition Module - Step by Step Guide
-
@MichiMauch Are You using Webcam ?
-
specify your user labels in the environment with
export FACE_USERS=Alice,Bob,Casey,Doug
im not sure what to do with this. do i have to write this in the terminal? because everytime i restart my pi, the facial recognition doesnt recognize my face
-
@naktah u need to put that in your logon profile
-
@sdetweil im not sure how to do that. can you show me how? im pretty much new to this stuff and this issue has been bothering me for days now.
-
@naktah after writing the following command in the terminal:
python tools.train.py
you get some output with the users you have setup (remember the order). Assuming it gives you Alice,Bob,Casey,Doug, then you run this in the terminal:
export FACE_USERS=Alice,Bob,Casey,Doug
-
@Irfan-ali yes!
-
Error on “python capture.py”
pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-Tools $ python capture.py Traceback (most recent call last): File "capture.py", line 18, in <module> import lib.capture as capture File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in <module> from . import config File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in <module> (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".") ValueError: need more than 3 values to unpack
-
@SdeGeata Got the same error, did you resolve it?
-
@aniketdongare07 @SdeGeata the newer version of python only provide 3 version info strings. So that code needs to drop the 4th parm from the parse request
(CV_MAJOR_VER, CV_MINOR_VER, mv1) = cv2.
-
@sdetweil I tried to do what you said and in turn I got the following error:```
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 21, in
from . import config
File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py”, line 15, in
(CV_MAJOR_VER, CV_MINOR_VER, mv1) = cv2
TypeError: ‘module’ object is not iterable