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.

    MMM-Face-Reco-DNN

    Scheduled Pinned Locked Moved Tutorials
    26 Posts 4 Posters 10.5k Views 5 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.
    • S Offline
      sdetweil @Parvez
      last edited by sdetweil

      @Parvez what happens when u run the script?

      Facial Recognition Embeddings
      After you set up your dataset, we need to go to the embeddings for the recognitions. I prepared a script for that. It took a while to run on my Macbook and will take much longer on a Raspberry Pi, so if possible, use it on a computer with more power and then transfer the resulting file.
      
      You will find a script called encode.py in folder tools of the module. The following arguments are default:
      
      python3 encode.py -i ../dataset/ -e encodings.pickle -d hog
      
      

      linux us case sensitive… so Parvez is not the same as parvez

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • ParvezP Offline
        Parvez
        last edited by

        if any one make a vedio for me is very helpful . i will submit this project my university

        Parvez Ahmed

        1 Reply Last reply Reply Quote 0
        • ParvezP Offline
          Parvez
          last edited by

          @sdetweil said in MMM-Face-Reco-DNN:

          python3 encode.py -i …/dataset/ -e encodings.pickle -d hog

          how to run this script
          ss.PNG

          Parvez Ahmed

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Parvez
            last edited by

            @Parvez

            you will find a script called encode.py in folder tools of the module
            

            so,

            cd tools
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • ParvezP Offline
              Parvez
              last edited by

              sssss.PNG

              Parvez Ahmed

              S 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @Parvez
                last edited by

                @Parvez looks like it is trying to detect text in the images… don’t know why

                https://raspberrypi.stackexchange.com/questions/89231/tesseract-ocr-4-x-beta-for-raspberry-pi

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Parvez
                  last edited by

                  @Parvez dist-packages/cv2 seems pretty old… cv3 is current, cv4 is also out…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  ParvezP 1 Reply Last reply Reply Quote 0
                  • ParvezP Offline
                    Parvez @sdetweil
                    last edited by

                    @sdetweil ok i will download open cv3

                    Parvez Ahmed

                    1 Reply Last reply Reply Quote 0
                    • ParvezP Offline
                      Parvez
                      last edited by

                      i can’t solve it

                      Parvez Ahmed

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Parvez
                        last edited by

                        @Parvez sorry, no idea…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • ParvezP Offline
                          Parvez
                          last edited by

                          @sdetweil Thank you for your help…

                          Parvez Ahmed

                          J 1 Reply Last reply Reply Quote 0
                          • J Offline
                            jimbydude @Parvez
                            last edited by jimbydude

                            @Parvez hi,

                            I took a fork of SMAI that uses recoDNN an doesn’t require any external python running (recoDNN does that), i also detail training.

                            https://github.com/jimbydude/MMM-AI-Face-Login

                            Cheers

                            S 1 Reply Last reply Reply Quote 1
                            • S Offline
                              Seregeth @jimbydude
                              last edited by

                              Hi,
                              i have done all to import my fotos. i worked all along without any error.
                              is it possible to test the importet Foto set?
                              As i set up the Module, i will not recognice me. Is it possible to test anyway?

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @Seregeth
                                last edited by

                                @Seregeth I do not know. this would have to be provided by the OCV (Open computer vision)
                                code, not ours

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  Seregeth @sdetweil
                                  last edited by

                                  @sdetweil
                                  Thank you very much for the feedback.

                                  I almost thought so. But maybe someone knows, so I can narrow down where my mistake is.

                                  If it’s because the person isn’t recognised, it’s different than if I’ve set a parameter incorrectly.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @Seregeth
                                    last edited by

                                    @Seregeth the module hasn’t been supported for a number of years, and I don’t remember any debugging assistance provided

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    S 2 Replies Last reply Reply Quote 0
                                    • S Offline
                                      Seregeth @sdetweil
                                      last edited by

                                      This post is deleted!
                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @Seregeth
                                        last edited by

                                        @Seregeth I think you posted this to the wrong topic

                                        has nothing to do with face reco

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          Seregeth @sdetweil
                                          last edited by

                                          I have now managed to get the module to recognise me. Following this nice success, I now wanted to add other people to it.

                                          But that is no longer possible, the process always stops:

                                          I start:
                                          python3 encode.py -i …/dataset/ -e encodings.pickle -d hog

                                          then comes:
                                          [INFO] quantifyng faces…
                                          [INFO] processing image 1/17 - …/dataset/Pauline/img01.jpg
                                          Killed

                                          I then tried deleting the first image (img01.jpg) once and trying again. It worked better then, but it still broke. This time, image img01.jpg came first, then image img04.jpg, then Killed.

                                          What could be the reason that the process is no longer executed?

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @Seregeth
                                            last edited by

                                            @Seregeth the images are not the right quality or size?

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            S 2 Replies 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
                                            • 1 / 2
                                            • 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