File size: 788 Bytes
5972a85
 
 
 
 
 
 
 
 
 
0c5ab56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5972a85
 
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
---
title: A VirtualMakeup
emoji: πŸ“š
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
---
# Makeup Application

This project applies makeup to faces in images using dlib and OpenCV.

## Installation

1. Install system dependencies for dlib:
    ```sh
    apt-get update
    apt-get install -y cmake
    ```

2. Install Python packages:
    ```sh
    pip install -r requirements.txt
    ```

3. Download and extract the facial landmark predictor:
    ```sh
    wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
    bunzip2 shape_predictor_68_face_landmarks.dat.bz2
    ```

## Usage

Run the application:
```sh
python app.py


Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference