Spaces:
Runtime error
Runtime error
| title: Labasni Cloth Detection | |
| emoji: 👔 | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 5.9.1 | |
| app_file: app.py | |
| pinned: false | |
| # 🧥 Labasni - API de Détection de Vêtements | |
| API d'intelligence artificielle pour la détection automatique de vêtements. | |
| ## 🎯 Fonctionnalités | |
| - **Détection** : Identification du type de vêtement (haut, pantalon, robe, etc.) | |
| - **Couleur** : Extraction de la couleur dominante (format hex) | |
| - **Style** : Classification (casual, formal, sport) | |
| - **Saison** : Prédiction de la saison appropriée | |
| ## 🚀 Utilisation | |
| ### Via l'interface web | |
| Visitez : https://dam-styleto-labasni-detection.hf.space | |
| ### Via l'API REST | |
| ```bash | |
| curl -X POST "https://dam-styleto-labasni-detection.hf.space/api/predict" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "data": ["data:image/jpeg;base64,YOUR_BASE64_IMAGE"] | |
| }' | |
| ``` | |
| ### Réponse attendue | |
| ```json | |
| { | |
| "data": [ | |
| { | |
| "success": true, | |
| "detection": { | |
| "type": "top", | |
| "color": "#3B5998", | |
| "style": "casual", | |
| "season": "summer" | |
| }, | |
| "confidence": { | |
| "detection": "95.23%", | |
| "style": "87.45%", | |
| "season": "82.11%" | |
| } | |
| } | |
| ] | |
| } | |
| ``` | |
| ## 🧠 Modèles IA | |
| - **YOLO** (best.pt - 6.22 MB) : Détection d'objets | |
| - **MobileNetV2** (style_season_model.h5 - 9.51 MB) : Classification | |
| - **K-Means** : Extraction de couleurs | |
| ## 👨💻 Développement | |
| Développé par l'équipe Labasni pour l'application de dressing virtuel. | |
| ## 📝 Licence | |
| Propriétaire - Tous droits réservés | |