• 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
  1. Home
  2. ghiesseldorf
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
G
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 4
  • Posts 13
  • Groups 0

ghiesseldorf

@ghiesseldorf

3
Reputation
9
Profile views
13
Posts
0
Followers
0
Following
Joined Jul 3, 2020, 8:34 PM
Last Online Nov 27, 2020, 9:15 PM

ghiesseldorf Unfollow Follow

Best posts made by ghiesseldorf

  • RE: MMM-Face-Reco-DNN TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'

    FIXED: updated the ap.add_argument statement (line 66) of facerecognition.py to include “type=float” on the --tolerance variable

    posted in Troubleshooting
    G
    ghiesseldorf
    Jul 20, 2020, 9:33 PM
  • MMM-Facial-Recognition-OCV3 FATAL: OpenCV Major Version must be 3

    I’m working a new install of MagicMirror MMM-Facial-Recognition-OCV3 module on Raspberry Pi Buster 10 with CV2 version 4.3.0. When running the training module, it ends with the message FATAL: OpenCV Major Version must be 3. Is there a known fix without backing CV2 back to version 3.x?

    posted in Troubleshooting
    G
    ghiesseldorf
    Jul 17, 2020, 1:44 AM

Latest posts made by ghiesseldorf

  • RE: MMM-MyStandings stops

    @sdetweil No joy. No errors being posted for mystandings. I am using facial reco as well. And I see messages showing when mystandings (and myscores) indicating the module being hidden, suspended, and resumed according to the personna set in the config file. The same messages are being posted for the myscores module using the same personna definitions which works just fine. But mystands doesn’t appear to be resuming (or unhidden?) on the screen like it should.

    posted in Troubleshooting
    G
    ghiesseldorf
    Sep 5, 2020, 8:29 PM
  • RE: MMM-MyStandings stops

    @sdetweil my console log captures 12 hours before it wraps, but no errors are present when I notice the module has stopped. If it stopped within this timeframe I’ve not found errors.

    posted in Troubleshooting
    G
    ghiesseldorf
    Sep 4, 2020, 12:17 AM
  • MMM-MyStandings stops

    After an indeterminate period if time ( hours, days??), the MMM-MyStandings module either stops or just disappears from the screen. I don’t know exactly when it happens but haven’t found any related messages written to the console log. Does anyone have thoughts on how to catch if errors are being issued? Also is there a way to restart a single module without restarting everything ?

    posted in Troubleshooting
    G
    ghiesseldorf
    Sep 3, 2020, 11:29 PM
  • RE: MMM-Face-Reco-DNN - All new Face Recognition

    @nischi If a user who isn’t known by Face-Reco-DNN moves in front of the camera, is a notification message generated and picked up by MMM-MotionControl? It doesn’t look like the “default” and/or “everyone” classes toggles the screen to un-blank. I was expecting that ANY motion (changes in the capture frames from the camera) would un-blank, but I’m not seeing this behavior. No log-in message gets written to the log.

    posted in Utilities
    G
    ghiesseldorf
    Jul 25, 2020, 11:29 PM
  • RE: MMM-Facial-Recognition-OCV3 FATAL: OpenCV Major Version must be 3

    My dataclass boolean operation error got solved. https://forum.magicmirror.builders/post/78948

    posted in Troubleshooting
    G
    ghiesseldorf
    Jul 21, 2020, 11:23 PM
  • RE: MMM-Face-Reco-DNN TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'

    @sdetweil “after all this time” is right! I kept telling myself the issue couldn’t be the code itself because there were no posts about it on the forum, so it had to be something I (or my environment) was doing wrong.

    posted in Troubleshooting
    G
    ghiesseldorf
    Jul 21, 2020, 11:20 PM
  • RE: MMM-Face-Reco-DNN TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'

    FIXED: updated the ap.add_argument statement (line 66) of facerecognition.py to include “type=float” on the --tolerance variable

    posted in Troubleshooting
    G
    ghiesseldorf
    Jul 20, 2020, 9:33 PM
  • RE: MMM-Face-Reco-DNN TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'

    It does look like there is a dataclass issue with the “tolerance” variable. Running facerecognition.py from the commandline with only the --cascade & --encodings parameters, the module executes. However, if adding the --tolerance parameter which alters the variable from the default value, it fails on the boolean statement. Also, even commenting out the variable in the MM config.js file apparently still passes something to the module for this variable, because it fails the same as including the --tolerance value at stand alone startup. So, any thoughts on how to fix it??

    posted in Troubleshooting
    G
    ghiesseldorf
    Jul 20, 2020, 8:45 PM
  • RE: MMM-Face-Reco-DNN TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'

    @ghiesseldorf ```
    [ERROR] Whoops! There was an uncaught exception…
    [2020-07-20 13:16:36.029] [ERROR] PythonShellError: TypeError: ‘<’ not supported between instances of ‘numpy.ndarray’ and ‘str’
    at PythonShell.parseError (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:246:21)
    at terminateIfNeeded (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:129:32)
    at ChildProcess. (/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)
    ----- Python Traceback -----
    File “modules/MMM-Face-Reco-DNN/tools/facerecognition.py”, line 143, in
    if minDistance < args[“tolerance”]: {
    traceback: 'Traceback (most recent call last):\n File ’ +
    '“modules/MMM-Face-Reco-DNN/tools/facerecognition.py”, line ’ +
    ‘143, in \n if minDistance < args[“tolerance”]:\n’ +
    "TypeError: ‘<’ not supported between instances of " +
    “‘numpy.ndarray’ and ‘str’\n”,
    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=1’,
    ‘–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

    posted in Troubleshooting
    G
    ghiesseldorf
    Jul 20, 2020, 7:17 PM
  • MMM-Face-Reco-DNN TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'

    Running on Raspberry Pi 3 and Pi-camera on Raspian buster latest. When testing the MMM-Face_Reco-DDN facerecognition.py module stand alone, faces are correctly identified in the camera and [names] output. However, when running from MagicMirror, the error occurs, and it looks like it is complaining about improper use of a boolean operator in the code. I don’t know python data class rules, but if this was a code issue, surely others woudl have seen it in this module? Do I maybe have a lost data class object or something? PythonSherrError: TypeError: ‘<’ not supported between instances of ‘numpy.ndarray’ and ‘str’ is received, and the python traceback seems to point to the facerecognition.py module.```

    [ERROR]  Whoops! There was an uncaught exception...
    [2020-07-20 13:16:36.029] [ERROR]  PythonShellError: TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'
        at PythonShell.parseError (/home/pi/MagicMirror/modules/MMM-Face-Reco-DNN/node_modules/python-shell/index.js:246: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)
        ----- Python Traceback -----
        File "modules/MMM-Face-Reco-DNN/tools/facerecognition.py", line 143, in <module>
          if minDistance < args["tolerance"]: {
      traceback: 'Traceback (most recent call last):\n  File ' +
        '"modules/MMM-Face-Reco-DNN/tools/facerecognition.py", line ' +
        '143, in <module>\n    if minDistance < args["tolerance"]:\n' +
        "TypeError: '<' not supported between instances of " +
        "'numpy.ndarray' and 'str'\n",
      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=1',
        '--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
    
    
    posted in Troubleshooting
    G
    ghiesseldorf
    Jul 20, 2020, 7:14 PM
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