#----code of YCC group-----year of 2023
import cv2
from PARAM import *
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, Lx)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, Ly)
t=0
while(t < 1501 and cap.isOpened()):
    ret, frame = cap.read()
    t+=1
    if ret == True:
        cv2.imshow('frame',frame)
        if cv2.waitKey(1) & 0xFF == ord('q'): break
    else: break
cap.release()
cv2.destroyAllWindows()