Skip to content

Instantly share code, notes, and snippets.

@codewithpom
Created July 14, 2021 14:13
Show Gist options
  • Save codewithpom/ee4116277a16fe5813c0414ced8443c5 to your computer and use it in GitHub Desktop.
Save codewithpom/ee4116277a16fe5813c0414ced8443c5 to your computer and use it in GitHub Desktop.
import cv2
# for in-built camera
cam = cv2.VideoCapture(0)
# for external camera
cam = cv2.VideoCapture(0, cv2.CAP_DSHOW)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment