In [ ]:
import cv2
import numpy as np

In [ ]:
cap = cv2.VideoCapture(0)
ret, frame = cap.read()
cv2.startWindowThread()
cv2.imshow('Tracking', frame)
cv2.waitKey(1)
cv2.destroyWindow('Tracking')
cv2.waitKey(1)
cap.release()

In [ ]:
cap.release()

In [ ]: