• 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
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 Utilities
9 Posts 2 Posters 1.0k Views 2 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.
  • P Offline
    Parvez
    last edited by Sep 14, 2020, 12:55 PM

    docker build --build-arg UID=1000 --build-arg GID=1000 -t mmm-face-reco-dnn-dataset-runner .
    make: docker: Command not found
    make: *** [Makefile:6: image] Error 127
    

    any one help me ??

    Parvez Ahmed

    S 1 Reply Last reply Sep 14, 2020, 12:58 PM Reply Quote 0
    • S Offline
      sdetweil @Parvez
      last edited by Sep 14, 2020, 12:58 PM

      @Parvez install docker. google is your friend

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • P Offline
        Parvez
        last edited by Sep 14, 2020, 1:01 PM

        @sdetweil thank you so much … you always help me.

        can i use https://forum.magicmirror.builders/topic/10488/mm-server-mode-in-docker-on-raspberry -this link.

        Parvez Ahmed

        S 1 Reply Last reply Sep 14, 2020, 1:48 PM Reply Quote 0
        • S Offline
          sdetweil @Parvez
          last edited by Sep 14, 2020, 1:48 PM

          @Parvez i don’t understand what you are doing…

          docker for the facereco runner… why?

          and that links makes MM in docker… but why?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • P Offline
            Parvez
            last edited by Sep 14, 2020, 2:43 PM

            @sdetweil i was install docker on google .
            but when i run

            make
            

            this is the next error .

            Capture.PNG

            Parvez Ahmed

            S 1 Reply Last reply Sep 14, 2020, 3:10 PM Reply Quote 0
            • S Offline
              sdetweil @Parvez
              last edited by Sep 14, 2020, 3:10 PM

              @Parvez but I don’t know WHY you need to install docker for this module ??? makes no sense

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • P Offline
                Parvez
                last edited by Sep 14, 2020, 3:14 PM

                @sdetweil when i run

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

                this command then show this error

                > docker build --build-arg UID=1000 --build-arg GID=1000 -t mmm-face-reco-dnn-dataset-runner .
                > make: docker: Command not found
                > make: *** [Makefile:6: image] Error 127
                

                that’s reason i install docker

                Parvez Ahmed

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Parvez
                  last edited by Sep 14, 2020, 4:41 PM

                  Sove any one ?

                  [2020-09-14 21:38:46.198] [ERROR]  Whoops! There was an uncaught exception...
                  [2020-09-14 21:38:46.199] [ERROR]  PythonShellError: [ WARN:0] global /tmp/pip-install-6juqj78y/opencv-python/opencv/modules/videoio/src/cap_gstreamer.cpp (713) open OpenCV | GStreamer warning: Error opening bin: no element "0"
                  [ WARN:0] global /tmp/pip-install-6juqj78y/opencv-python/opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
                  Traceback (most recent call last):
                    File "modules/MMM-Face-Reco-DNN/tools/facerecognition.py", line 106, in <module>
                      frame = imutils.resize(originalFrame, width=500)
                    File "/home/pi/.local/lib/python3.7/site-packages/imutils/convenience.py", line 69, in resize
                      (h, w) = image.shape[:2]
                  AttributeError: 'NoneType' object has no attribute 'shape'
                  
                      at PythonShell.parseError (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:254:21)
                      at terminateIfNeeded (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:129:32)
                      at ChildProcess.<anonymous> (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:121:13)
                      at ChildProcess.emit (events.js:200:13)
                      at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) {
                    executable: 'python3',
                    options: null,
                    script: 'modules/MMM-Face-Reco-DNN/tools/facerecognition.py',
                    args: [
                      '--cascade=modules/MMM-Face-Reco-DNN/tools/haarcascade_frontalface_default.xml',
                      '--encodings=modules/MMM-Face-Reco-DNN/tools/encodings.pickle',
                      '--usePiCamera=0',
                      '--source=0',
                      '--rotateCamera=0',
                      '--method=dnn',
                      '--detectionMethod=hog',
                      '--interval=2000',
                      '--output=0',
                      '--extendDataset=False',
                      '--dataset=modules/MMM-Face-Reco-DNN/dataset/',
                      '--tolerance=0.6'
                    ],
                    exitCode: 1
                  }
                  
                  

                  Parvez Ahmed

                  S 1 Reply Last reply Sep 14, 2020, 4:55 PM Reply Quote 0
                  • S Offline
                    sdetweil @Parvez
                    last edited by Sep 14, 2020, 4:55 PM

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

                    object has no attribute

                    https://github.com/nischi/MMM-Face-Reco-DNN/issues/44

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 / 1
                    • First post
                      3/9
                      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