AutoSelfie
This Python script utilizes OpenCV and Pyttsx3 to create a real-time selfie capture application with facial recognition features. It captures a selfie when a smile is detected on a recognized face, and the user is notified through spoken feedback.
Install / Use
/learn @sumitjhaleriya/AutoSelfieREADME
AutoSelfie
It is a python program which takes selfie automatically on smiling
Real-Time Selfie Capture with Facial Recognition
This Python script utilizes OpenCV and Pyttsx3 to create a real-time selfie capture application with facial recognition features. It captures a selfie when a smile is detected on a recognized face, and the user is notified through spoken feedback.
Features
- Real-time camera feed using OpenCV.
- Face detection using Haar Cascade classifiers.
- Smile detection on recognized faces.
- Selfie capture with timestamp.
- Spoken feedback using Pyttsx3.
Prerequisites
- Python 3
- OpenCV (
cv2) library - Pyttsx3 library
How to Run
-
Install the required libraries:
pip install opencv-python pyttsx3 -
Download Haar Cascade XML Files: Download the Haar Cascade XML files for face, smile, and eye detection from OpenCV's official repository or other sources.
-
Save XML Files: Save the downloaded XML files in the same directory as the script.
-
Run the Script:
python autoselfie.py -
Capture Selfies:
The webcam will start, and the script will detect smiles on recognized faces, capturing selfies automatically.
- Quit the Application:
Press the 'q' key to quit the application.
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
