Read the statement by Michael Teeuw here.
Facial Recognition - customize your mirror for every user!
-
@s1084836 like my mirror. I have the same problem
-
@benkej Oh, its really strange. Did you manage to work around it?
-
@s1084836 unfortunately not. I switched off the facial recognition
-
Hey,
my issue is, i cannt select my USB Cam.
I set “useUSBCam” to “true”, but still get piCam as the choosen one. (PiCam ausgewählt)MMM-Facial-Recognition] ALGORITHM: LBPH [MMM-Facial-Recognition] Training data loaded! [MMM-Facial-Recognition] -------------------- [MMM-Facial-Recognition] PiCam ausgewählt... Whoops! There was an uncaught exception... { Error: mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
{ module: 'MMM-Facial-Recognition', config: { // 1=LBPH | 2=Fisher | 3=Eigen recognitionAlgorithm: 1, // Threshold for the confidence of a recognized face before it's considered a // positive match. Confidence values below this threshold will be considered // a positive match because the lower the confidence value, or distance, the // more confident the algorithm is that the face was correctly detected. lbphThreshold: 50, fisherThreshold: 250, eigenThreshold: 3000, useUSBCam: true, // Path to your training xml trainingFile: 'modules/MMM-Facial-Recognition/training.xml', // recognition intervall in seconds (smaller number = faster but CPU intens!) interval: 2, // Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror for a few seconds logoutDelay: 15, // Array with usernames (copy and paste from training script) users: ['Yakko'], //Module set used for strangers and if no user is detected defaultClass: "default", //Set of modules which should be shown for every user everyoneClass: "everyone", // Boolean to toggle welcomeMessage welcomeMessage: true } },
Any Ideas how to force it to take my USB cam?
Thanks,
Yakko -
Hi everyone. I try to make work the face recognition but always tell me that I´m strange, but when I do test with the facialreconition.py test alway recognize me. Someone know why I have this problem? How can I solve the problem? Thanks
-
I have not loaded this on the mirror yet but did you change the face users and algorithm on the mirror and it’s config?
I’m having an issue where if I train it to recognize two different people the test script recognizes both as the same person :(
-
@eliddell you must be twins :D
-
Actually I found a problem in the config.py
If I comment out the line i= min(0, i-1) and return i-1 in the user_label method it works… Now just want to make sure we don’t get an index out of bounds…
Not terribley familiar with python. So what does that min(int, int) do exactly
-
Hi, I seem to be having an issue when trying to implement the face recognition tester. When I run the tester on the file I am getting an error, I cannot seem to resolve it.
This is what displays in terminal:
Loading training data... ALGORITHM: LBPH Training data loaded! Picam selected... Traceback (most recent call last): File "facerecognition.py", line 61, in label, confidence = model.predict(crop) TypeError: 'int' object is not iterable
My picamera stays active but I can see that it has stopped on my face in the background, Do you have any idea how to resolve this issue, as I am at a loss here.
-
Hello
This module looks freaking amazing!! I want to give this a try, but I have a few questions that I haven’t been able to find answers for.
-
Do you recommend I used the NoIR camera, or just the regular Pi Camera? The mirror will be in my front hall by the doorway, under what should be adequate light whenever someone will want to use it. No expectation that this should work in the dark
-
Where is the best place to mount the camera? My mirror will be based on a 32" TV mounted such that the top of the frame would be slightly higher than my eye level (I’m 188 cm tall), and my wife’s eye level would be at about the halfway point of the mirror. I also have two young boys, aged 8 and 6 and I’d want the camera to recognize them as well. I’m thinking of either mounting the camera on the frame at the top of the mirror, aimed slightly downward, or on one side of the frame at about the vertical center of the mirror. I’ve also read about people mounting the camera behind the mirror, but with mixed results. If that is an option, I could theoretically mount the camera right in the center of the mirror. What’s the best way to route the cable in this case? I don’t plan on having anything in the middle of the screen from the top down to about the center, so I could run the cable from the camera straight up and over the top of the screen. Suppose I would need to colour the cable black or purchase a black cable. Anyone have insight here?
-
Given that the Pi Camera has a relatively narrow field of view (approx 35 mm) would you suggest I use one of those phone camera wide angle attachments so that the cam can pick up a wider image and have a better chance of getting the face in the image, or do I just increase the likelihood that several faces will be in the picture, defeating the facial recognition routine?
Thanks!
-Jeff -