DeepFace Emotion Detection API Setup
Budget: ₹1,500 – ₹12,500 INR
I need an API set up using Python and Flask that utilizes the DeepFace emotion detection model. The API should take in JPEG images via URL input and return the results in JSON format.
You will be responsible for:
✅ Setting up a Python + Flask-based REST API
✅ Integrating DeepFace with enforce_detection=False
✅ Accepting JSON payload like:
{
"image": "https://s3.mybucket.com/path/to/image.jpg"
}
✅ Returning response like:
{
"dominant_emotion": "neutral",
"emotion_scores": {
"angry": 0.01,
"disgust": 0.0,
"fear": 0.0,
"happy": 0.12,
"sad": 0.22,
"surprise": 0.15,
"neutral": 0.50
}
}
Technical Requirements:
Python 3.8+
Flask or FastAPI (Flask preferred)
DeepFace (latest version)
Flask-CORS and image download handling (e.g., with requests, PIL)
Docker (optional, but preferred for portability)
Deliverables:
Working Python API with /analyze POST endpoint
Accepts image URL and returns emotion scores
Instructions to run locally via Python or Docker
Help deploying to a basic VPS
You will be responsible for:
✅ Setting up a Python + Flask-based REST API
✅ Integrating DeepFace with enforce_detection=False
✅ Accepting JSON payload like:
{
"image": "https://s3.mybucket.com/path/to/image.jpg"
}
✅ Returning response like:
{
"dominant_emotion": "neutral",
"emotion_scores": {
"angry": 0.01,
"disgust": 0.0,
"fear": 0.0,
"happy": 0.12,
"sad": 0.22,
"surprise": 0.15,
"neutral": 0.50
}
}
Technical Requirements:
Python 3.8+
Flask or FastAPI (Flask preferred)
DeepFace (latest version)
Flask-CORS and image download handling (e.g., with requests, PIL)
Docker (optional, but preferred for portability)
Deliverables:
Working Python API with /analyze POST endpoint
Accepts image URL and returns emotion scores
Instructions to run locally via Python or Docker
Help deploying to a basic VPS