#!/usr/bin/env python3 import cv2 cap = cv2.VideoCapture(0) while True: success, frame = cap.read() cv2.imshow("aa", frame) if (cv2.waitKey(1) & 0xFF == ord('q')): break