viserion999's picture
Update README.md
f8e1ac3 verified
|
Raw
History Blame Contribute Delete
555 Bytes
---
title: Image Preprocessor
emoji: 🤖
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: "4.44.0"
app_file: app.py
pinned: false
python_version: "3.11"
---
# Image Preprocessor — MTCNN Face Detection
Detects a face in an uploaded image, crops it with a small context margin,
and returns a clean **224 × 224 RGB** image ready for downstream emotion
classification.
## API
```
POST /preprocess
Input : image (multipart file)
Output: preprocessed face image (PNG)
```
Used internally by the LyricMind backend (`image_to_emotion` pipeline).