Read the statement by Michael Teeuw here.
Facial Recognition Module - Step by Step Guide
-
reserved
-
Hi @konradwalsh Maybe you have an idea for my problem: https://forum.magicmirror.builders/topic/9055/usb-cam-is-not-recognized-but-works
thanks very much and greeetings
michael -
@michimauch said in Facial Recognition Module - Step by Step Guide:
Hi @konradwalsh Maybe you have an idea for my problem: https://forum.magicmirror.builders/topic/9055/usb-cam-is-not-recognized-but-works
thanks very much and greeetings
michaelRemember to set the name list environment variable FACE_USERS Using default FACE_ALGORITM: 1 Loading training data... mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/picam.py", line 27, in run with picamera.PiCamera() as camera: File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 431, in __init__ self._init_camera(camera_num, stereo_mode, stereo_decimate) File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 460, in _init_camera "Camera is not enabled. Try running 'sudo raspi-config' " PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled. Training data loaded! OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /build/opencv-U1UwfN/opencv-2.4.9.1+dfsg1/modules/imgproc/src/color.cpp, line 3737 Traceback (most recent call last): File "facerecognition.py", line 58, in <module> image = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY) cv2.error: /build/opencv-U1UwfN/opencv-2.4.9.1+dfsg1/modules/imgproc/src/color.cpp:3737: error: (-215) scn == 3 || scn == 4 in function cvtColor
-
@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.