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.

    erreur : MMM-Face-Reco-DNN

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 201 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.
    • A Offline
      admin
      last edited by

      jai un problème dans module
      MMM-Face-Reco-DNN ,
      aide moi svp

      [2024-05-05 17:48:59.807] [LOG] [MMM-Face-Reco-DNN] loading encodings + face detector…
      [2024-05-05 17:49:01.806] [ERROR] Whoops! There was an uncaught exception…
      [2024-05-05 17:49:01.818] [ERROR] PythonShellError: FileNotFoundError: [Errno 2] No such file or directory: ‘modules/MMM-Face-Reco-DNN/tools/encodings.pickle’
      at PythonShell.parseError (/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:303:21)
      at terminateIfNeeded (/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:193:32)
      at ChildProcess. (/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:185:13)
      at ChildProcess.emit (node:events:514:28)
      at ChildProcess._handle.onexit (node:internal/child_process:294:12)
      ----- Python Traceback -----
      File “/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/tools/recognition.py”, line 29, in
      data = pickle.loads(open(Arguments.get(“encodings”), “rb”).read())
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ {
      traceback: ‘Traceback (most recent call last):\n’ +
      ’ File “/home/raspberrypi/MagicMirror/modules/MMM-Face-Reco-DNN/tools/recognition.py”, line 29, in \n’ +
      ’ data = pickle.loads(open(Arguments.get(“encodings”), “rb”).read())\n’ +
      ’ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n’ +
      “FileNotFoundError: [Errno 2] No such file or directory: ‘modules/MMM-Face-Reco-DNN/tools/encodings.pickle’\n”,
      executable: ‘python3’,
      options: null,
      script: ‘modules/MMM-Face-Reco-DNN/tools/recognition.py’,
      args: [
      ‘–cascade=modules/MMM-Face-Reco-DNN/tools/haarcascade_frontalface_default.xml’,
      ‘–encodings=modules/MMM-Face-Reco-DNN/tools/encodings.pickle’,
      ‘–rotateCamera=0’,
      ‘–method=dnn’,
      ‘–detectionMethod=hog’,
      ‘–interval=1000’,
      ‘–output=0’,
      ‘–outputmm=0’,
      ‘–extendDataset=False’,
      ‘–dataset=modules/MMM-Face-Reco-DNN/dataset/’,
      ‘–tolerance=0.6’,
      ‘–brightness=0’,
      ‘–contrast=0’,
      ‘–resolution=1920,1080’,
      ‘–processWidth=500’
      ],
      exitCode: 1
      }
      [2024-05-05 17:49:01.820] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [2024-05-05 17:49:01.821] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues

      S 1 Reply Last reply Reply Quote -1
      • S Offline
        sdetweil @admin
        last edited by

        @admin said in erreur : MMM-Face-Reco-DNN:

        PythonShellError: FileNotFoundError: [Errno 2] No such file or directory: ‘modules/MMM-Face-Reco-DNN/tools/encodings.pickle’

        yes, you did not do the encoding of your user pictures

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          admin @sdetweil
          last edited by

          @sdetweil merci pour votre réponse
          alors Jai utilise https://github.com/nischi/MMM-Face-Reco-DNN

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

            @admin yes

            see https://github.com/nischi/MMM-Face-Reco-DNN?tab=readme-ov-file#facial-recognition-embeddings

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              admin @sdetweil
              last edited by

              @sdetweil
              mais dans dossier tools ne contient pas haarcascade_frontalface_default.xml et encodings.pickle

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

                @admin you must run a program to create those. that is the screenshot I provided from the module instructions

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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