Spaces:
Runtime error
Runtime error
File size: 555 Bytes
a227dbf 7045a9e a227dbf 7045a9e a227dbf f8e1ac3 a227dbf 7045a9e | 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 | ---
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).
|