Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created June 10, 2020 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/cfe41c6a447fe52cb12b65837f68885d to your computer and use it in GitHub Desktop.
Save prateekjoshi565/cfe41c6a447fe52cb12b65837f68885d to your computer and use it in GitHub Desktop.
# specify path to the working directory
path = ".../"
# read logo image
logo = cv2.imread(path+"opencv_logo.png")
# read the first frame of the video
cap = cv2.VideoCapture(path+"Pexels Videos 2675513.mp4")
ret, frame = cap.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment