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.
-
@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??