-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi there,
I want to create a "party greeter", similar to this one: https://robotzero.one/face-recognition-party-greeter-raspberry-pi/, but using my IP Camera and Ubuntu OS. The intend is to make a web request when a face is recognized. The web request will make echo dot say something using IFTTT.
I commented the line "cv2.imshow('camera', frame)", because I don't need to see the streaming video, and inserted a print function that shows the name of the found person:
for name, (top, right, bottom, left) in predictions:
print("- Found {}".format(name))
The problem is that when a face is detected it keeps printing the message in the console. Few seconds of a face showing results in dozens of lines in the console with the same message.
I need somehow to limit this and make it shows the message only once. The http request also should be send only once.
Can I get some help with this? Thanks in advance.