• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. benkej
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
B
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 0
  • Posts 11
  • Groups 0

benkej

@benkej

0
Reputation
736
Profile views
11
Posts
0
Followers
0
Following
Joined Jan 7, 2017, 5:48 PM
Last Online 26 days ago

benkej Unfollow Follow

Latest posts made by benkej

  • RE: Facial Recognition - customize your mirror for every user!

    @s1084836 unfortunately not. I switched off the facial recognition

    posted in Troubleshooting
    B
    benkej
    Feb 15, 2017, 12:40 PM
  • RE: Facial Recognition - customize your mirror for every user!

    @s1084836 like my mirror. I have the same problem

    posted in Troubleshooting
    B
    benkej
    Jan 31, 2017, 11:27 PM
  • RE: Facial Recognition - customize your mirror for every user!

    @paviro sure, thank you!
    here are my MMM-Facial-Recognition-Tools and MMM-Facial-Recognition folders in tar.bz2 format. My config is included in the second archive.

    posted in Troubleshooting
    B
    benkej
    Jan 22, 2017, 1:14 AM
  • RE: Facial Recognition - customize your mirror for every user!

    @paviro every trained face identify as the last person in the user list. If is only single face is trained working the tester without problem. I tried LBPH and fisher algorithm also. Already changed the picam to webcam but I get the same result :(

    posted in Troubleshooting
    B
    benkej
    Jan 19, 2017, 10:43 PM
  • RE: Facial Recognition - customize your mirror for every user!

    @paviro it’s working now! Thank you :) I changed the algorithm from LBPH to Fisher regenerated the training.xml with train.py and my mirror can identify me :-D
    unfortunately I have new problem.
    Everything working great until only one person is in training.xml if it’s more then one person face is trained identify mirror the face but the name is always from the last person in the user list.

    posted in Troubleshooting
    B
    benkej
    Jan 18, 2017, 10:42 PM
  • RE: Facial Recognition - customize your mirror for every user!

    @paviro ok, thank you

    posted in Troubleshooting
    B
    benkej
    Jan 16, 2017, 11:16 PM
  • RE: Facial Recognition - customize your mirror for every user!

    @paviro 223 positive images and no success :( maybe I have to add more :blush:
    What is the best practice to take the pictures? Sit closer to picam and rotate the face or not move and shoot few picture?

    posted in Troubleshooting
    B
    benkej
    Jan 16, 2017, 10:17 PM
  • RE: Facial Recognition - customize your mirror for every user!

    @paviro Thanks! I’ll add more images and try to recognize my face.
    But It’s very interesting that facerecognition_tester can identify me only from this three images

    posted in Troubleshooting
    B
    benkej
    Jan 16, 2017, 9:37 PM
  • RE: Facial Recognition - customize your mirror for every user!

    @YourhighnessLeender unfortunately yes :angry:
    I try to reinstall the whole system

    posted in Troubleshooting
    B
    benkej
    Jan 16, 2017, 11:22 AM
  • RE: Facial Recognition - customize your mirror for every user!

    @YourhighnessLeender only for trial but I changed everything back to the default. I’m using raspberry pi 3 model b, here is part of my config:

    {
        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,
            // force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically)
            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: 3,
            // 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: ["Jani"],
            //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"
        }
    }
    

    and part of console log:

    [MMM-Facial-Recognition] Facerecognition started...
    [MMM-Facial-Recognition] Loading training data...
    [MMM-Facial-Recognition] ALGORITHM: LBPH
    [MMM-Facial-Recognition] Training data loaded!
    [MMM-Facial-Recognition] --------------------
    [MMM-Facial-Recognition] Webcam ausgewählt...
    [MMM-Facial-Recognition] User undefined with confidence null logged in.
    [MMM-Facial-Recognition] User undefined logged out.
    [MMM-Facial-Recognition] User undefined with confidence null logged in.
    [MMM-Facial-Recognition] User undefined logged out.
    [MMM-Facial-Recognition] User undefined with confidence null logged in.
    [MMM-Facial-Recognition] User undefined logged out.
    ^C[MMM-Facial-Recognition] Shutdown: Cleaning up camera...
    [MMM-Facial-Recognition] Terminating..
    

    @YourhighnessLeender and the output of train.py:

    Which algorithm do you want to use?
    [1] LBPHF (recommended)
    [2] Fisherfaces
    [3] Eigenfaces
    --> 1
    
    Reading training images...
    --------------------
    Assign label 1 to Jani
    --------------------
    
    Read 3 positive images and 400 negative images.
    
    3 images from subject Jani
    --------------------
    
    Training model...
    Training data saved to training.xml
    
    Please add or update (if you added new people not just new images) ['Jani'] inside config.js (mirror module) or config.py (model tester). You can change the names to whatever you want, just keep the same order and you'll be fine.
    Please add 1 as your choosen algorithm inside config.js (mirror module) or config.py (model tester).
    

    Note from admin: Please use Markdown on code snippets for easier reading!

    posted in Troubleshooting
    B
    benkej
    Jan 16, 2017, 8:51 AM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy