normyx / MMM-Facial-Recognition-OCV3

MIT License
51 stars 18 forks source link

integration with PIR SENSOR MODULE #11

Open bimbim2401 opened 6 years ago

bimbim2401 commented 6 years ago

Hi,

first of all, good job for your works. I want to integrate the facial recognition with the pir sensor to preserve CPU load. So I want to start a facial recognition only when a USER_PRESENCE is send by PIR SENSOR.

I saw on your code (facerecognition.py) : if detecion is true, will be used to disable detection if you use a PIR sensor and no motion is detected if detection_active is True:

but do not understand how to change the status of this variable as the python script is running.

My other idea is to start the python script when USER_PRESENCE is true and try to stop it when USER_PRESENCE is false, but i do not know how to stop it properly.

what do you think about it ? can you give me the right direction in order to do it ?

harveyyoyo commented 5 years ago

@bimbim2401 Was thinking of doing the same thing. Did you make any progress?

bimbim2401 commented 5 years ago

Nop lake of time but still interested if you succeed

nickbeaulieu98 commented 5 years ago

I was also thinking about having it set up to do the exact same thing.