📷
Selfie with Python
Opens the webcam in an OpenCV window; press Space to capture a selfie (saved as a JPG) and Escape to quit.
Opens the webcam in an OpenCV window; press Space to capture a selfie (saved as a JPG) and Escape to quit.
Opens the webcam in an OpenCV window; press Space to capture a selfie (saved as a JPG) and Escape to quit.
Press Space-bar to click Selfie
Press Escape key to terminate the window
Selfie_0.jpg is saved in the current directory and Selfie taken! is printed.Selfie_1.jpg, and so on.Escape hit, closing the window is printed.pip install opencv-python
python Selfie_with_Python.py