title: How to 'mirror' live webcam video when using OpenCV?
body: <p>I want to have two different outputs of webcam videos, one being the normal webcam footage and the other to be the &quot;mirrored&quot; version of it.  Is that possible with OpenCV?</p>
  <pre class="lang-py prettyprint-override"><code>import time, cv2
  
  video = cv2.VideoCapture(0)
  a = 0
  while True:
      a = a+1
      check, frame = video.read()
  
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
      cv2.imshow(&quot;Capturing&quot;, gray)
  
      key = cv2.waitKey(1)
  
      if key == ord('q'):
          break
  
  print(a)
  
  video.release()
  cv2.destroyAllWindows()
  </code></pre>