Read the statement by Michael Teeuw here.
Facial Recognition - Where do elements go go?
-
No modules get installed in the /modules/default folder, just in /modules.
-
Many thanks @KirAsh4 .
I’ve tried it there, still no joy though… -
Yeah, you’d have to ask the module’s author for help, or others who use this module.
-
From one rookie to another:
I had to add ‘classes’ in config.js with ‘default’, ‘for_all’ or person’s name in all modules I wanted to be shown.
Eksample:
{ module: 'alert', classes: 'default' }, -
That should not be necessary. If you had to do that and MM² loaded up after that, then there’s something seriously wrong with the module for it to “leak” like that.
-
It is because I hide every module that is not for everyone at startup.
defaultmodules are for users that are not recognized or if there is no user at all.
for_allare modules shown for everyone. -
@paviro Would it make more sence to say that no “classes” equals to “default” and therefore would be visible?
-
@Cato i think there was a reason why I did not do that but if you would like to look into it you can send me a pull request! :)
-
Hello,
I’m trying to use facial trainer but i got this error ( when executing python capture.py)
reference : https://github.com/paviro/MMM-Facial-Recognition-Tools/tree/master/facetrainer
What do you want to do?
[1] Capture training images from webcam
[2] Convert ‘*.jpg’ pictures from other cameras to training images
–> 1Enter the name of the person you want to capture or convert images for.
–> plumcraft
Images will be placed in ./training_data/plumcraft
Starting process…
Capturing positive training images.
Press enter to capture an image.
Press Ctrl-C to quit.Capturing image…
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp, line 3737
Traceback (most recent call last):
File “capture.py”, line 35, in
capture.capture()
File “/home/pi/MMM-Facial-Recognition-Tools/facetrainer/lib/capture.py”, line 57, in capture
image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
cv2.error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp:3737: error: (-215) scn == 3 || scn == 4 in function cvtColorI’m using a raspberry pi 3 with pi camera.
Looking forward to use this module.
Thanks
-
@plumcraft said in Facial Recognition - Where do elements go go?:
Hello,
I’m trying to use facial trainer but i got this error ( when executing python capture.py)
reference : https://github.com/paviro/MMM-Facial-Recognition-Tools/tree/master/facetrainer
What do you want to do?
[1] Capture training images from webcam
[2] Convert ‘*.jpg’ pictures from other cameras to training images
–> 1Enter the name of the person you want to capture or convert images for.
–> plumcraft
Images will be placed in ./training_data/plumcraft
Starting process…
Capturing positive training images.
Press enter to capture an image.
Press Ctrl-C to quit.Capturing image…
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp, line 3737
Traceback (most recent call last):
File “capture.py”, line 35, in
capture.capture()
File “/home/pi/MMM-Facial-Recognition-Tools/facetrainer/lib/capture.py”, line 57, in capture
image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
cv2.error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/imgproc/src/color.cpp:3737: error: (-215) scn == 3 || scn == 4 in function cvtColorI’m using a raspberry pi 3 with pi camera.
Looking forward to use this module.
Thanks
I have the same error. Can everybody help me? I also use Raspberry Pi 3 with pi Camera.
Thanks a lot!
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