Downloads · 30 days
0
Mahir1426/face-shape-detection-backend
face-shape-detection-backend is a machine learning model from Mahir1426. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a full-stack application that analyzes face shapes using AI. It consists of a Flask backend for face detection and analysis, and a Next.js frontend with two different result display components.
Downloads · 30 days
0
Access
Public
Updated Sep 10, 2025
Repo size
4.1 MB
Likes
0
Public
Click a slice to open those files.
.task3.8 MB · 92%
From the Hugging Face model README
This is a full-stack application that analyzes face shapes using AI. It consists of a Flask backend for face detection and analysis, and a Next.js frontend with two different result display components.
Face_Detection/
├── app.py # Flask backend with face analysis logic
├── app/ # Next.js frontend
│ ├── page.tsx # Main application page
│ └── api/ # API routes for frontend-backend communication
├── components/ # React components
│ ├── result-section.tsx # Detailed measurements display
│ ├── analysis-card.tsx # Enhanced result display with personality insights
│ └── upload-section.tsx # File upload component
├── uploads/ # Directory for uploaded images
├── templates/ # Flask templates
└── requirements.txt # Python dependencies
pip install -r requirements.txt
npm install
# or
pnpm install
python app.py
The Flask server will run on http://localhost:5000
npm run dev
# or
pnpm dev
The Next.js app will run on http://localhost:3000
POST /analyze - Analyzes a face image and returns face shape results with measurementsGET /uploads/<filename> - Serves processed imagesPOST /upload - Handles file uploads (Next.js API route)Run the test script to verify the backend is working:
python test_setup.py