import cv2


#create video capture object (0 is camera number)
cap = cv2.VideoCapture(1)
cap.set(3, 1080)
cap.set(4, 1920)


while(True):
    #capture frame by frame
    ret, frame = cap.read()

    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

    #threshold
    _,thresh = cv2.threshold(gray, 75, 255, cv2.THRESH_BINARY)


    #display the resulting frame
    cv2.imshow('frame', thresh)

    #wait for user exit (press 'q')
    if cv2.waitKey(1) & 0xFF == ord('q'):
           break;

#when everything done, release the capture (important!)
cap.release()
cv2.destroyAllWindows()

7c072d675008c8aa0ee1a13381c31a2c7dde29f0
<mask token>

<mask token>
cap.set(3, 1080)
cap.set(4, 1920)
while True:
    ret, frame = cap.read()
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
    _, thresh = cv2.threshold(gray, 75, 255, cv2.THRESH_BINARY)
    cv2.imshow('frame', thresh)
    if cv2.waitKey(1) & 255 == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()

<mask token>
cap = cv2.VideoCapture(1)
cap.set(3, 1080)
cap.set(4, 1920)
while True:
    ret, frame = cap.read()
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
    _, thresh = cv2.threshold(gray, 75, 255, cv2.THRESH_BINARY)
    cv2.imshow('frame', thresh)
    if cv2.waitKey(1) & 255 == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()

import cv2
cap = cv2.VideoCapture(1)
cap.set(3, 1080)
cap.set(4, 1920)
while True:
    ret, frame = cap.read()
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
    _, thresh = cv2.threshold(gray, 75, 255, cv2.THRESH_BINARY)
    cv2.imshow('frame', thresh)
    if cv2.waitKey(1) & 255 == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()

import cv2


#create video capture object (0 is camera number)
cap = cv2.VideoCapture(1)
cap.set(3, 1080)
cap.set(4, 1920)


while(True):
    #capture frame by frame
    ret, frame = cap.read()

    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

    #threshold
    _,thresh = cv2.threshold(gray, 75, 255, cv2.THRESH_BINARY)


    #display the resulting frame
    cv2.imshow('frame', thresh)

    #wait for user exit (press 'q')
    if cv2.waitKey(1) & 0xFF == ord('q'):
           break;

#when everything done, release the capture (important!)
cap.release()
cv2.destroyAllWindows()
