- Added feature to conditionally trigger face recognition to start and stop via a Magic Mirror notification. Use of this feature is optional. Use for example with MMM-Pir to turn off face recognition when monitor is off, and back on when monitor is on.
- node_helper sends commands to the python child process via its std input upon receiving an external notfication.
- CPU utilization of python process is substatially reduced while face recognition is paused. RPi power consumption also reduced
- Added SIGTERM signal handling to recognition.py so python process reliably stops when Magic Mirror application is terminated
- Improved recognition.py loop timing so the target interval specified by
checkInterval
is better enforced by the main loop
- After a lot of install issues. We removed
pipenv
again and changed the install-instructions- For Bookworm we added an extra install step for an virtual environment
- Following Settings have changed and are breaking changes
cascade
- chnage default path according to the new folder structureencodings
- chnage default path according to the new folder structureusePiCamera
andsource
- not avialable anymore because of auto-detection withpicamera2
librarybrightness
- new possible values are 0-100contrast
- new possible values are 0-127rotateCamera
- new possible values are -1 = no rotation, 0 = 90°, 1 = 180°, 2 = 270°pythonPath
- still works if you like to use it, but it is not necessary anmore with pipenvresolution
- default resolution was changed from[1280, 960]
to[1920,1080]
- Some old OS images are not supported anymore according to
picamera2
- Move haarcascade from
tools
tomodel
encodings.pickle
is now by default in foldermodel
Dockerfile
was removed because of new simple setupMakefile
was removed because of new simple setupfacerecognition.py
was renamed torecognition.py
- Split
recognition.py
functions into mulitple utils files
- To be sure everything is installed what is needed for this module we
implemented pipenv and add all dependencies automaticly with pip and pipenv.
It will be installed after
npm install
.
- We use the new
picamera2
library to read the camera image. It should support all the picameras and some third party cameras.
-
Because we use the
picamera2
libary, we support Raspberry Pi OS Bullseye (or later) 32bit and 64bit. -
Picamera2 is not supported on:
- Images based on Buster or earlier releases.
- Raspberry Pi OS Legacy images.
- Bullseye (or later) images where the legacy camera stack has been re-enabled.
- We have new npm scripts which helps to setup the module
npm run encode
npm run recognition