nischi / MMM-Face-Reco-DNN

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

GPIO #152

Open grssll opened 5 months ago

grssll commented 5 months ago

Hi, Just wondering if its possible to add configuration of GPIO high/low when face is recognized by the module. High when known face recognized and low when timer expires. It will be good to control external lighting for example. Thank you

nischi commented 5 months ago

Hi @grssll Thanks for your request. I think it make no sense to add this into this Module. But what this module is providing are some Notifications. The Magic Mirror has a notification (eventing) system where you as a module can send messages and other module can listen to them. My Module send following messsages:

USERS_LOGIN USERS_LOGOUT

So if you find a module which can listen to some messages and control the GPIO, i think you can do what you want :)

Kind Regards