Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,5 +8,34 @@ sdk_version: 4.44.1
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
+
# Makeup Application
|
| 12 |
+
|
| 13 |
+
This project applies makeup to faces in images using dlib and OpenCV.
|
| 14 |
+
|
| 15 |
+
## Installation
|
| 16 |
+
|
| 17 |
+
1. Install system dependencies for dlib:
|
| 18 |
+
```sh
|
| 19 |
+
apt-get update
|
| 20 |
+
apt-get install -y cmake
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
2. Install Python packages:
|
| 24 |
+
```sh
|
| 25 |
+
pip install -r requirements.txt
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
3. Download and extract the facial landmark predictor:
|
| 29 |
+
```sh
|
| 30 |
+
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
|
| 31 |
+
bunzip2 shape_predictor_68_face_landmarks.dat.bz2
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Usage
|
| 35 |
+
|
| 36 |
+
Run the application:
|
| 37 |
+
```sh
|
| 38 |
+
python app.py
|
| 39 |
+
|
| 40 |
|
| 41 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|