to open up your camera in python codes

import cv2
capture = cv2.VideoCapture(0)

while(capture.isOpened()):
    ret,imagen= capture.read()
    if ret == True:
        cv2.imshow("video",imagen)
        if cv2.waitKey(1) & 0xFF ==ord("s"):
            break

capture.release()
cv2.destroyAllWindows()

Comments

Popular posts from this blog

environment creation on python

what is good dataset?

Project 2: pdf extractor using python