Update README.md
Browse files
README.md
CHANGED
|
@@ -11,9 +11,51 @@ pinned: false
|
|
| 11 |
short_description: Streamlit template space
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
short_description: Streamlit template space
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# π§ Facial Keypoints Detection
|
| 15 |
|
| 16 |
+
A Streamlit application that predicts facial keypoints using a trained ResNet model.
|
| 17 |
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## π What this app does
|
| 21 |
+
|
| 22 |
+
- Upload a face image
|
| 23 |
+
- Converts image to grayscale
|
| 24 |
+
- Resizes to 96x96
|
| 25 |
+
- Predicts facial keypoints (eyes, nose, mouth, etc.)
|
| 26 |
+
- Visualizes the keypoints directly on the image
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
## πΌ Example Workflow
|
| 31 |
+
|
| 32 |
+
1. Upload a front-facing face image
|
| 33 |
+
2. Model predicts keypoints
|
| 34 |
+
3. Red dots appear on facial landmarks
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## π Model
|
| 39 |
+
|
| 40 |
+
- Architecture: ResNet-based CNN
|
| 41 |
+
- Input shape: 96x96 grayscale
|
| 42 |
+
- Output: (x, y) coordinates for facial landmarks
|
| 43 |
+
- Loss used during training: MSE
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
## π Tech Stack
|
| 48 |
+
|
| 49 |
+
- Streamlit
|
| 50 |
+
- TensorFlow / Keras
|
| 51 |
+
- NumPy
|
| 52 |
+
- Matplotlib
|
| 53 |
+
- Pillow
|
| 54 |
+
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## π Run locally
|
| 58 |
+
|
| 59 |
+
```bash
|
| 60 |
+
pip install -r requirements.txt
|
| 61 |
+
streamlit run src/streamlit_app.py
|