Read the statement by Michael Teeuw here.
I'm also getting an error while running the final magic mirror script after installing and adding all the face recognition module.
-
Re: Facial Recognition Module - Step by Step Guide
Can anyone help me to sort out this issue ?
[ERROR] Whoops! There was an uncaught exception…
[05.06.2021 13:32.51.510] [ERROR] 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)
at Socket. (/home/pi/MagicMirror/js/node_helper.js:109:11)
at Socket.emit (events.js:315:20)
at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22)
at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:428:39
at processTicksAndRejections (internal/process/task_queues.js:79:11)
[05.06.2021 13:32.51.524] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[05.06.2021 13:32.51.525] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues@paulGu Hi, were you able to resolve it?
-
@tolin said in I'm also getting an error while running the final magic mirror script after installing and adding all the face recognition module.:
PythonShell is not a constructor
Your node_helper use of the pythonshell library doesn’t match the code
Edit the node_helper.js and change the line to this
const { PythonShell } = require('pythonshell') -
@sdetweil Thanks!! that worked for me… !! but now another error is showing
crop = face.crop(image, x, y, w, h)
File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/face.py”, line 93, in crop
return image[y1:y2, x:x + w]
TypeError: slice indices must be integers or None or have an index methodHardware using:
Pi Camera
Raspberry pi 3 model b+Software details:
Phython version - 3.7.3
OpenCV version - 4.4.0
Numpy - 1.20.3 -
@tolin no idea … maybe there aren’t any images for this face? (just guessing)
don’t know how the module does its work -
@sdetweil Thanks for the reply.
-
-
@stacywebb Hi, I have completed the training and also I done with the face recognition trial. But this error comes in between, sometime it works but often this error shows. Any luck??
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