Spaces:
Sleeping
Sleeping
File size: 1,564 Bytes
37a4079 e61793b 37a4079 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
---
title: AutoSelfie
emoji: π
colorFrom: yellow
colorTo: purple
sdk: streamlit
sdk_version: 1.31.0
app_file: app.py
pinned: false
license: mit
---
# 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
1. **Install the required libraries:**
```bash
pip install opencv-python pyttsx3
```
2. **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.
3. **Save XML Files:**
Save the downloaded XML files in the same directory as the script.
4. **Run the Script:**
```bash
python autoselfie.py
```
5. **Capture Selfies:**
The webcam will start, and the script will detect smiles on recognized faces, capturing selfies automatically.
6. **Quit the Application:**
Press the 'q' key to quit the application.
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|