Created
July 14, 2021 14:13
-
-
Save codewithpom/ee4116277a16fe5813c0414ced8443c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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