I am working with a Raspberry Pi Face Detection program and Espeak to tell that
Human Face Detected. I'm using Pi Camera for face detection. The face detection program works fine. But the problem is after detecting faces the program keeps saying Human Face Detected like 8 or 9 times. I want it to say
Human Face Detected for once and then it will stop saying that for the next
10 seconds even though if there have any human face. I've used
time.sleep(10), but it just delays the frames and lag too much. Is there any way that after detecting face it will say
Human Face Detected once and after 10 seconds it will again reopen freshly and keep searching for faces?
Please note that
time.sleep() doesn't allow to do that. It just delays the program and renders the previous frames. It doesn't open freshly.