title: Capture image from video every 5 seconds, and save picutres using Python & OpenCV
body: <p>The person who is making the ocr program. I want to capture the image of the video every 5 seconds and inspect it in real time.</p>
  
  <pre><code>cap = cv2.VieoCapture(0)
  
  while(True)
      ret,frame = cap.read()
  
      cv2.imwrite('Test.png'),frame,params=[cv2.IMWRITE_PNG_COMPRESSION,2]
      ocrcheck()    #Function to read 'Test.png' and check with ocr program
  </code></pre>
  
  <p>I want to get a frame in real time every 5 seconds, save it and print the saved image to the ocr program.
  Please tell me the answer</p>