Advanced AI-Powered Car Brand Detection System
A sophisticated web application that uses YOLOv11 deep learning model to detect and identify car brands from images with high accuracy. Features a modern cyberpunk-themed interface and real-time AI processing.
- π€ Advanced AI Model: YOLOv11 Medium architecture with 87.4% mAP50 accuracy
- π― 18 Car Brands: Supports major automotive brands including BMW, Mercedes, Toyota, Tesla, and more
- β‘ Real-time Detection: Lightning-fast inference (~100ms processing time)
- π¨ Modern Interface: Cyberpunk-themed responsive web design
- π± Cross-Platform: Works on desktop, tablet, and mobile devices
- πΌοΈ Advanced Features: Drag & drop upload, bounding box visualization, full-screen viewer
- π§ RESTful API: Complete backend API for integration with other applications
- Python 3.8 or higher
- Modern web browser
- 4GB+ RAM recommended
-
Clone the repository
git clone https://github.com/everyoneexe/CarBrandsAI.git cd CarBrandsAI -
Install dependencies
pip install -r requirements.txt
-
Run the application
./start.sh
-
Open in browser
- Web Interface: http://localhost:8080
- API Endpoint: http://localhost:5000
| Luxury | Japanese | Korean | American | European | Chinese |
|---|---|---|---|---|---|
| Audi | Toyota | Hyundai | Ford | Volkswagen | BYD |
| BMW | Honda | KIA | Chevrolet | Mercedes-Benz | |
| Lexus | Nissan | Tesla | |||
| Mercedes-Benz | Mazda | ||||
| Mitsubishi |
Total: 18 Brands with continuous expansion planned.
- Upload Image: Drag & drop or click to select a car image
- Analyze: Click "MarkayΔ± Bul" button to start AI detection
- View Results: See detected brand, confidence score, and bounding box
- Full Screen: Use "Tam Ekran GΓΆrΓΌntΓΌle" for detailed view
- Save Results: Download annotated image or copy JSON data
POST /api/detect
Content-Type: multipart/form-data
{
"image": <file>
}Response:
{
"brand": "BMW",
"confidence": 0.92,
"latency": "0.15s",
"box": {
"x": 120,
"y": 80,
"w": 160,
"h": 160
},
"model_info": {
"name": "CarBrandsAI YOLOv11m",
"version": "V5",
"accuracy": "87.4% mAP50"
}
}GET /- Health checkGET /api/brands- List supported brandsGET /api/model-info- Model specifications
- Framework: Vanilla JavaScript (ES6+)
- Styling: Advanced CSS3 with animations
- Features: Canvas API for visualization, Fetch API for backend communication
- Theme: Cyberpunk-inspired design with particle effects
- Framework: Flask (Python)
- AI Model: YOLOv11 Medium (Ultralytics)
- Computer Vision: OpenCV for image processing
- APIs: RESTful design with CORS support
- Architecture: YOLOv11 Medium
- Training Dataset: 12,000+ labeled car images
- Accuracy: 87.4% mAP50
- Input Resolution: 640x640 pixels
- Training Epochs: 35 epochs with optimized hyperparameters
- Inference Time: ~100ms (CPU), ~50ms (GPU)
CarBrandsAI/
βββ π Frontend
β βββ index.html # Main web interface
β βββ app.js # JavaScript application logic
βββ π€ Backend
β βββ backend.py # Flask API server
β βββ requirements.txt # Python dependencies
β βββ start.sh # Quick start script
βββ π§ AI Model
β βββ model/
β βββ best.pt # Trained YOLOv11 model
βββ π Documentation
βββ README.md # This file
βββ START.md # Quick start guide
- mAP50: 87.4% (Mean Average Precision at IoU 0.5)
- Precision: 89%
- Recall: 85%
- Model Size: ~45MB
- Memory Usage: ~2GB RAM during inference
- JPEG (.jpg, .jpeg)
- PNG (.png)
- WebP (.webp)
- Maximum file size: 16MB
- Chrome 80+
- Firefox 75+
- Safari 13+
- Edge 80+
-
Clone and enter directory
git clone https://github.com/everyoneexe/CarBrandsAI.git cd CarBrandsAI -
Install dependencies
pip install -r requirements.txt
-
Run backend only
python3 backend.py
-
Run frontend only
python3 -m http.server 8080
# Test health endpoint
curl http://localhost:5000/
# Test brand detection
curl -X POST -F "image=@test_car.jpg" http://localhost:5000/api/detect
# Get supported brands
curl http://localhost:5000/api/brandsBackend fails to start
# Check if model file exists
ls -la model/best.pt
# Verify Python dependencies
pip install -r requirements.txt --force-reinstallPort already in use
# Find and kill process using port 5000
lsof -i :5000
kill -9 <PID>Model loading errors
- Ensure
model/best.ptexists and is not corrupted - Check available memory (requires 2GB+ RAM)
- Verify PyTorch installation
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow PEP 8 for Python code
- Use meaningful commit messages
- Add tests for new features
- Update documentation as needed
This project is licensed under the MIT License - see the LICENSE file for details.
- Ultralytics for the YOLOv11 framework
- OpenCV for computer vision utilities
- Flask for the lightweight web framework
- Car manufacturers for inspiring this project
- Mobile App: React Native application
- Video Processing: Real-time video analysis
- More Brands: Expand to 50+ car brands
- Cloud Deployment: AWS/Azure integration
- API Authentication: Secure API access
- Batch Processing: Multiple image analysis
- GitHub Issues: Report bugs or request features
- Discussions: Community discussions
Made with β€οΈ and AI by everyoneexe
"Advancing automotive AI, one detection at a time."