A real-world clothing size recommendation system API inspired by SizeCharter.com.
This Flask-based REST API provides personalized size recommendations based on detailed body measurements and morphology, with intelligent analysis and real-world sizing logic for women’s, men’s, and maternity categories.
- Overview
- Features
- Getting Started
- API Usage
- Input Parameters
- Response Format
- Algorithm Highlights
- Examples
- Contributing
- License
The SizeCharter Mimic API intelligently recommends clothing sizes based on:
- Comprehensive body measurements (chest, waist, hips, inseam, shoulders, neck, thigh, calf)
- Body morphology including body shape, abdomen shape, and hip shape
- Realistic health checks and measurement consistency warnings
- Multi-gender support: women's, men's, and maternity sizing rules
The API is designed for integration with any app or platform, offering JSON REST endpoints with CORS enabled.
- Advanced body shape inference using multiple body metrics
- Dominant measurement detection for personalized size impact analysis
- Morphology-based measurement adjustments for a tailored fit
- Health and consistency warnings to alert unusual inputs
- Multi-category sizing: women's, men's, maternity
- Lightweight Flask REST API with CORS support
- Ready for easy integration with web, mobile, or desktop apps
- Python 3.8+
pip
package manager
git clone https://github.com/foudhilriahi/sizecharter.git
cd Folder
pip install Flask Flask-CORS
python sizecharter_api.py
API Usage
Endpoint
bash
Copy
Edit
POST /api/size
Content-Type: application/json
Example Request
json
Copy
Edit
{
"gender": "womens",
"chest": 85,
"waist": 68,
"hips": 94,
"shoulders": 40,
"neck": 33,
"thigh": 55,
"calf": 36,
"abdomen_shape": "hourglass",
"hip_shape": "curved"
}