File size: 801 Bytes
5a94609
 
 
 
 
 
 
 
 
 
ff90953
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: RemoveWatermark
emoji: 🧼
colorFrom: yellow
colorTo: blue
sdk: docker
pinned: false
license: mit
---

# Watermark Remover (Hugging Face Space)

A simple FastAPI + OpenCV inpainting service to remove watermarks.  
Deployable for free on Hugging Face Spaces using Docker.

## API
Endpoint: `POST /api/remove-watermark`

### Fields (multipart/form-data)
- `image`: file (required)
- `mask`: file (optional)
- `engine`: `opencv` (default) or `lama`
- `method`: `telea` (default) or `ns`
- `radius`: int (default 3, OpenCV only)
- `auto_mask`: 1 or 0 (default 1)

### Example
```bash
curl -X POST https://<your-space>.hf.space/api/remove-watermark \
  -F image=@your_image.jpg \
  -F engine=opencv -F method=telea -F radius=3 -F auto_mask=1 \
  --output result.png
```

## License
MIT License