Read the statement by Michael Teeuw here.
Facial Recognition Module - Step by Step Guide
-
@konradwalsh said in Facial Recognition Module - Step by Step Guide:
trainingFile: ‘modules/MMM-Facial-Recognition/training.xml’,
I got a issue when i add the facial module. the Facial-tools work fine, it’s seems like python script issues.
Could anyone help me with this issue ?
Whoops! There was an uncaught exception…
TypeError: PythonShell is not a constructor
at Class.python_start (/home/csc/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:11:21)
at Class.socketNotificationReceived (/home/csc/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:40:14)
at Socket. (/home/csc/MagicMirror/modules/node_modules/node_helper/index.js:113:11)
at Socket.emit (events.js:182:13)
at /home/csc/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
at process._tickCallback (internal/process/next_tick.js:61:11)
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
^CShutting down server… -
@paulgu Hi I am having the same issue. Were you able to resolve it?
-
I also have same issue can anybody help me
Whoops! There was an uncaught exception…
TypeError: PythonShell is not a constructor
at Class.python_start (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:11:21)
at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:40:14) -
@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.pyyou 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 -
@aniketdongare07 you need the rest of the line cv2… I am on my phone, so cut/paste is a pain
(CV_MAJOR_VER, CV_MINOR_VER, mv1) = cv2.__version__.split(".") -
@konradwalsh
I’m using Raspberry pi CSI camera.
How to do with it.
Please help me. -
@sdetweil Hey, buddy… I’m not sure what it is you’re telling me to do here. I wrote what you sent into the terminal but it didn’t do anything. In fact, it’s treating the = sign as a syntax error… what am I doing wrong?
-
@ogelijah u have to edit the failing py script
and change the failing line -
@sdetweil I get you! I was being an idiot and I went into the wrong script. But now I’ve reached the point where it says “no module named cv2”
-
@ogelijah no idea. that’s a python lib, which should have been installed from the prior setup steps
-
@sdetweil Ah, okay. I’ll keep on working on this. Cheers
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login