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 + ProfileSwitcher

    Scheduled Pinned Locked Moved Troubleshooting
    21 Posts 3 Posters 6.5k Views 3 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
      Stardyze
      last edited by

      Has anyone had any luck trying to use the two modules together? I have tried editing the .js in the Face-Reco module to fit with the other one like said in the documentation of the ProfileSwitcher module but since it is a different module not all things line up.

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

        @stardyze they are both doing the same thing, switching to different profiles… so that seems troublesome

        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
          Stardyze @sdetweil
          last edited by Stardyze

          @sdetweil Sorry I’m new where in the Face-Reco can you set profiles instead of using MMM-ProfileSwitcher? Can you have different layouts for different people using just the MMM-Face-Reco-DNN module?

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

            @stardyze yes, facereco uses the ‘classes’ field of the module to organize module display by ‘person’

            u set modules for me (sam) by adding a classname ‘sam’

            u can have multiple people share the same one, classes:‘sam bob sue’

            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
              Stardyze @sdetweil
              last edited by

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

                @sdetweil I have all the modules selected with the class name I want for them do I set the class name in the config.js or MMM-Face-Reco-DNN.js?

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

                  @stardyze in config.js, on each module set the classes per person

                  module: “clock:,
                  classes:” fred sue",
                  config: {
                  }

                  same for every module

                  u have to set allowed users in facreco of course

                  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
                    Stardyze @sdetweil
                    last edited by

                    @sdetweil Yeah I set all the classes for each module in the config.js but for so that it knows the allowed users is that in the MMM-Face-Reco-DNN.js? Like the first declaration of the classname.

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

                      @stardyze there is no ‘actual’ class… Facereco just looks at the classes field to match against user names

                      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
                        Stardyze @sdetweil
                        last edited by

                        @sdetweil So I can’t have specific classes or layouts for each person?

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

                          @stardyze https://github.com/nischi/MMM-Face-Reco-DNN

                          Yes, and you can share…

                          layout is a challenge… like profile u need multiple instances of the same module,
                          for different users…

                          MM can only show or hide modules… so, you have one instance for sam, and another for bob

                          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
                            Stardyze @sdetweil
                            last edited by

                            @sdetweil I do have classes set in each module but it doesn’t switch the profiles when a face is recognized. In the terminal, it says that the right user is recognized and is logged in but the layout doesn’t change.

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

                              @stardyze see
                              https://github.com/nischi/MMM-Face-Reco-DNN#classes

                              case of the names matters… Sam does not equal sam

                              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
                                Stardyze @sdetweil
                                last edited by

                                @sdetweil I did look through that page and all the case names are the same (lowercase) from my dataset folders for each person to the class names for each module and it still doesn’t switch modules in the mirror. Do I have to classify the each class first in the .js in the facereco module first?

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

                                  @stardyze u now know everything I know…

                                  I set the module up once, and it worked on the 1st try. haven’t used it since (as I am the only user)

                                  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
                                    Stardyze @sdetweil
                                    last edited by

                                    @sdetweil Okay haha thank you so much for your time

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

                                      @stardyze the mosdule classes are space separated… right?

                                      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
                                        Stardyze @sdetweil
                                        last edited by

                                        @sdetweil you mean like the name of the class is not right next to the colon?

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

                                          @stardyze no

                                          classes: “sam bob sue fred”

                                          not

                                          classes: “sam, bob, sue, fred”

                                          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
                                            Stardyze @sdetweil
                                            last edited by

                                            @sdetweil Oh yeah of course for each module I have a space like “sam bob sue fred”

                                            1 Reply Last reply Reply Quote 1

                                            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