nischi / MMM-Face-Reco-DNN

Face recognition with opencv and deep neural network
MIT License
91 stars 46 forks source link

face is recognized once and modules do not disappear over time #124

Closed eurtnl closed 1 year ago

eurtnl commented 1 year ago

Hello, I'm not sure if it is a mistake or if I have to adjust my expectations, but I run into the following problem: I have set all modules to everyone or a specific user. When I start MagicMirror, a face is recognized after a few seconds But when I walk away the modules remain visible, even after a few minutes of waiting. I expected that at some point the modules would be invisible again

My config: Logoutdelay: 5000, Check interval: 2000,

MagicMirror is installed on Raspbian Bullseye 64-bit and I use a USB camera

Any idea what I can adjust to get it working?

nischi commented 1 year ago

Hmm this should actualy work. not sure why it go away. can you send me the log and the full config?

eurtnl commented 1 year ago

Even when I start MM and wait for a minute or two before standing for the mirror the camera/module doesn't do anything.

config.txt localhost-1672566623801.log MagicMirror-error.log MagicMirror-out.log

nischi commented 1 year ago

Hmm i do not see any issue here. Is there a task which use maybe 100% CPU? Maybe the video stream of your camera is break down. Not sure whats wrong, seems all fine on Magic Mirror site.

eurtnl commented 1 year ago

Also, I have extendDataset: true and when I've recognized it takes a picture and puts it in dataset/my-name but sometimes it won't recognize me (I can see the light on the camera) and also there's no picture taken and put in dataset/unknown. I will try another webcam see if that helps.

Btw Raspbian is installed on a SSD-drive and I use a 15w power adapter

eurtnl commented 1 year ago

Did a new install with Raspbian Buster and Pi camera. Now it's working. Guess it has something to do with camera support in Bullseye