MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Facial Recognition - customize your mirror for every user!

    Scheduled Pinned Locked Moved Troubleshooting
    215 Posts 55 Posters 520.2k Views 57 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • paviroP Offline
      paviro @Wilco89
      last edited by

      @Wilco89 No will do but I have so much stuff on my hand at the moment… Moving to Berlin in August etc…

      We're all stories in the end. Just make it a good one, eh?

      – The Doctor

      1 Reply Last reply Reply Quote 0
      • Wilco89W Offline
        Wilco89
        last edited by

        @paviro wir warten noch ein Moment. Viel Spaß im Berlin.

        I hope everything is going well with the move to Berlin. So everybody will be happy in a few weeks.

        1 Reply Last reply Reply Quote 0
        • X Offline
          xdker
          last edited by paviro

          why?

          ^CTraceback (most recent call last):
            File "capture.py", line 35, in <module>
              capture.capture()
            File "/home/pi/MagicMirror/MMM-Facial-Recognition-Tools/facetrainer/lib/capture.py", line 53, in capture
              if is_letter_input('c'):
            File "/home/pi/MagicMirror/MMM-Facial-Recognition-Tools/facetrainer/lib/capture.py", line 23, in is_letter_input
              input_char = raw_input()
          KeyboardInterrupt
          

          Note from admin: Please use Markdown on shell snippets!

          1 Reply Last reply Reply Quote 0
          • X Offline
            xdker
            last edited by paviro

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • paviroP Offline
              paviro
              last edited by

              Looks like you terminated the process by pressing ctrl-C or strg-C, just press c and then enter and no other key with the c.

              We're all stories in the end. Just make it a good one, eh?

              – The Doctor

              X 1 Reply Last reply Reply Quote 0
              • X Offline
                xdker @paviro
                last edited by xdker

                @paviro
                Oh sorry, I’m sorry I didn’t notice.
                But there are the following tips.
                where is capture.pgm not in the name of the folder.

                Could not detect single face!  Check the image in capture.pgm to see what was captured and try again with only one face visible.
                
                1 Reply Last reply Reply Quote 0
                • P Offline
                  plumcraft
                  last edited by

                  Hi everyone,

                  I have the same issue.


                  What do you want to do?
                  [1] Capture training images from webcam
                  [2] Convert ‘*.jpg’ pictures from other cameras to training images
                  –> 1

                  Enter the name of the person you want to capture or convert images for.
                  –> olifier
                  Images will be placed in ./training_data/olifier


                  Starting process…

                  Capturing positive training images.
                  Type c (and press enter) to capture an image.
                  Press Ctrl-C to quit.

                  c
                  Capturing image…
                  Could not detect single face! Check the image in capture.pgm to see what was captured and try again with only one face visible.

                  Thanks a lot

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sarthak18593 @plumcraft
                    last edited by

                    @plumcraft Are you using the Pi camera module or a usb webcam ?

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      plumcraft @sarthak18593
                      last edited by

                      @sarthak18593

                      I’m using the pi camera module. It’s correctly enable from the raspi config tool.

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        plumcraft
                        last edited by

                        I’ve tried to capture an image from my pi camera with :

                        pi@pi:~ $ raspistill -o output.jpg

                        the raspistill tool hang…

                        The pi camera might be broken ? someone got the same issue ?

                        Do you have any good usb webcam compatible with raspberry pi 3 and opencv ? I would like to use the MMM Face recognition module…

                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          plumcraft
                          last edited by

                          After retrying couple of times to make it work, it looks like the issue was coming the raspbian distribution or python package issue.

                          After reflashing my sd card with a fresh raspbian image, my camera works…

                          1 Reply Last reply Reply Quote 1
                          • B Offline
                            bobbob601
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • paviroP Offline
                              paviro
                              last edited by

                              It checks every second or so but you can configure the interval.You can buy longer cables for the Pi cam :)

                              We're all stories in the end. Just make it a good one, eh?

                              – The Doctor

                              S 1 Reply Last reply Reply Quote 1
                              • B Offline
                                bobbob601
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  rajbadri
                                  last edited by

                                  i am having a problem that the screen remains blank after i am logged in

                                  (1_1473950091065_2.jpg 0_1473950091063_1.jpg image url)

                                  Thanks

                                  R 1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    rvdgeer
                                    last edited by

                                    Very nice module.
                                    However I keep ruinning into the same error when I try capture.py to convert them to pgm files:
                                    Could not detect single face!

                                    I’ve taken ‘selfies’ with different camera’s in different lighting conditions, but not even one is good enough to convert into a pgm file…
                                    Can you please give me some clues on what conditions my pictures have to meet?
                                    Am I doing something wrong?
                                    All help and advice appreciated!

                                    R 1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      rvdgeer @rajbadri
                                      last edited by

                                      @rajbadri Have you added the classes: (with a value) to all the other modules in the config.js? If you get a plain black screen without errors it might be that no modules were loaded.

                                      1 Reply Last reply Reply Quote 0
                                      • R Offline
                                        rvdgeer @rvdgeer
                                        last edited by rvdgeer

                                        @rvdgeer OK, replying to my own post for future reference:

                                        I got it working by doing the following:

                                        • cropped the pictures to only show my face;
                                        • copied the cropped pictures and transformed them to greyscale;
                                        • copied the grey pictures and upped the contact;
                                        • moved all pictures (originals and copies) to a direct sub folder of the facetrainer folder;
                                        • started the capture.py, pressed 2, entered my name, entered the name of the sub folder (only the sub folder, not the entire path) and waited.

                                        This way I got it to recognize about 10 of the pictures…
                                        Not bad!

                                        Getting it to recognize me is still not easy, but that because of the lighting conditions in my ManCave where I’m putting it together.

                                        paviroP 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          shashank @paviro
                                          last edited by

                                          @paviro Hi,

                                          I am getting this error while running facerecognition.py0_1474901812661_upload-7d382f42-082d-4217-9aaa-2306d35ef583

                                          and also need to know in //Facerecognition Test Tool Readme
                                          In tools/facerecognition_tester/lib/config.py add add your training labels from tools/facetrainer under personen = [] ( what need to enter in this personen= [])

                                          R 1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            rvdgeer @shashank
                                            last edited by

                                            @shashank If you run the facetrainer (capture.py and train.py) first, you should know what to enter here…

                                            S 1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 10
                                            • 11
                                            • 4 / 11
                                            • First post
                                              Last post
                                            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