title: Error in reading video using opencv in Python
body: <p>Not able to read a video file using openCV in Python3.</p>
  
  <p>Code:</p>
  
  <pre><code>import numpy as np
  import cv2
  
  cap = cv2.VideoCapture('C:\Users\u266772\Desktop\Video\video2.mp4')
  
  while(cap.isOpened()):
      ret, frame = cap.read()
  
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
  
      cv2.imshow('frame',gray)
      if cv2.waitKey(1) &amp; 0xFF == ord('q'):
          break
  
  cap.release()
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>File "", line 4
        cap = cv2.VideoCapture('C:\Users\u266772\Desktop\Video\video2.mp4')
                              ^
    SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape</p>
  </blockquote>