import cv2

cap = cv2.VideoCapture(0)

while True:
    _, frame = cap.read()
    cv2.imshow('take a picture ',frame)
    if cv2.waitKey(1) & 0xFF == ord('y') :
        cv2.imwrite('etcodetech.jpg', frame)
        break

cap.release()
cv2.destroyAllWindows()
db805a21e6f1a3ae1e86cb11aa4c0a3e4add27e0
<mask token>

<mask token>
while True:
    _, frame = cap.read()
    cv2.imshow('take a picture ', frame)
    if cv2.waitKey(1) & 255 == ord('y'):
        cv2.imwrite('etcodetech.jpg', frame)
        break
cap.release()
cv2.destroyAllWindows()

<mask token>
cap = cv2.VideoCapture(0)
while True:
    _, frame = cap.read()
    cv2.imshow('take a picture ', frame)
    if cv2.waitKey(1) & 255 == ord('y'):
        cv2.imwrite('etcodetech.jpg', frame)
        break
cap.release()
cv2.destroyAllWindows()

import cv2
cap = cv2.VideoCapture(0)
while True:
    _, frame = cap.read()
    cv2.imshow('take a picture ', frame)
    if cv2.waitKey(1) & 255 == ord('y'):
        cv2.imwrite('etcodetech.jpg', frame)
        break
cap.release()
cv2.destroyAllWindows()

import cv2

cap = cv2.VideoCapture(0)

while True:
    _, frame = cap.read()
    cv2.imshow('take a picture ',frame)
    if cv2.waitKey(1) & 0xFF == ord('y') :
        cv2.imwrite('etcodetech.jpg', frame)
        break

cap.release()
cv2.destroyAllWindows()