Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -10,4 +10,51 @@ pinned: false
|
|
10 |
license: mit
|
11 |
---
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
+
# AutoSelfie
|
14 |
+
It is a python program which takes selfie automatically on smiling
|
15 |
+
|
16 |
+
## Real-Time Selfie Capture with Facial Recognition
|
17 |
+
|
18 |
+
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.
|
19 |
+
|
20 |
+
## Features
|
21 |
+
|
22 |
+
- Real-time camera feed using OpenCV.
|
23 |
+
- Face detection using Haar Cascade classifiers.
|
24 |
+
- Smile detection on recognized faces.
|
25 |
+
- Selfie capture with timestamp.
|
26 |
+
- Spoken feedback using Pyttsx3.
|
27 |
+
|
28 |
+
## Prerequisites
|
29 |
+
|
30 |
+
- Python 3
|
31 |
+
- OpenCV (`cv2`) library
|
32 |
+
- Pyttsx3 library
|
33 |
+
|
34 |
+
## How to Run
|
35 |
+
|
36 |
+
1. **Install the required libraries:**
|
37 |
+
```bash
|
38 |
+
pip install opencv-python pyttsx3
|
39 |
+
```
|
40 |
+
2. **Download Haar Cascade XML Files:**
|
41 |
+
Download the Haar Cascade XML files for face, smile, and eye detection from OpenCV's official repository or other sources.
|
42 |
+
|
43 |
+
3. **Save XML Files:**
|
44 |
+
Save the downloaded XML files in the same directory as the script.
|
45 |
+
|
46 |
+
4. **Run the Script:**
|
47 |
+
|
48 |
+
```bash
|
49 |
+
python autoselfie.py
|
50 |
+
```
|
51 |
+
5. **Capture Selfies:**
|
52 |
+
|
53 |
+
The webcam will start, and the script will detect smiles on recognized faces, capturing selfies automatically.
|
54 |
+
|
55 |
+
6. **Quit the Application:**
|
56 |
+
|
57 |
+
Press the 'q' key to quit the application.
|
58 |
+
|
59 |
+
|
60 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|