본문 바로가기
STUDY/Jetson Nano

webcam.py

by brown_board 2022. 6. 26.
728x90

import cv2
 
cam = cv2.VideoCapture(0)
 
while True:
    check, frame = cam.read()
 
    cv2.imshow('video', frame)
 
    key = cv2.waitKey(1)
    if key == 27:
        break
 
cam.release()
cv2.destroyAllWindows()

728x90

'STUDY > Jetson Nano' 카테고리의 다른 글

젯슨나노 opencv with cuda 설치  (0) 2022.06.26

댓글