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 ?
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 ?