title: Print out and make http request only once in a python face recognition script?
body: <p>First of all, I would like to wish good health to everyone!</p>
  
  <p>I want to create a "party greeter", similar to this one: <a href="https://robotzero.one/face-recognition-party-greeter-raspberry-pi/" rel="nofollow noreferrer">https://robotzero.one/face-recognition-party-greeter-raspberry-pi/</a>, 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.</p>
  
  <p>I am using this script to face recognition: <a href="https://github.com/ageitgey/face_recognition/blob/master/examples/facerec_ipcamera_knn.py" rel="nofollow noreferrer">https://github.com/ageitgey/face_recognition/blob/master/examples/facerec_ipcamera_knn.py</a></p>
  
  <p>I commented the line 210, because I don't need to see the streaming video, and inserted a print function that shows the name of the found person:</p>
  
  <pre><code>        for name, (top, right, bottom, left) in predictions:
            print("- Found {}".format(name))
  </code></pre>
  
  <p>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.</p>
  
  <p>I need somehow to limit this and make it shows the message only once. The http request also should be send only once.</p>
  
  <p>Can anyone help me with this?</p>