Robust Car Detection & Modification System - RCDMS
AI-Powered Car Part Detection & Modification, Made Effortless.
RCDMS (Robust Car Detection & Modification System) is a smart web-based SaaS platform that uses advanced AI models like YOLO and SAM to detect and segment car parts from real images. Users can visualize modifications—such as headlights, bumpers & side mirrors etc—in real time, overlaid on their actual vehicle. This not only improves customer satisfaction but also reduces errors and streamlines the entire customization workflow, making the process faster, smarter, and more cost-efficient.
Overview
This project is an end-to-end web platform that leverages state-of-the-art AI to detect, segment, extract, and visually modify car parts in images. Designed for automotive professionals, insurance companies, car enthusiasts, and researchers, it provides a seamless workflow from image upload to part replacement—all in your browser.
Features
- Advanced Detection: YOLO-based car part detection with high accuracy.
- Interactive Segmentation: Visualize and select car parts with color-coded masks.
- Part Extraction & Removal: Instantly extract or mask out detected parts.
- Visual Replacement: Upload and blend new parts into the original image.
- Modern UI: Beautiful, responsive, and intuitive interface inspired by industry leaders.
- Secure & Private: All processing is local to your session; your data is never shared.
How It Works
- Landing Page: Welcomes users with a modern, animated design and a clear call to action.
- Step-by-Step Workflow:
- Upload Image: Start with any car image.
- Detect Parts: AI model finds and labels car parts with visible bounding boxes.
- Segmentation: Color-coded masks highlight each part for easy selection.
- Extract/Remove: Instantly extract or mask out any detected part.
- Replace: Upload a new part image and blend it into the original.
- Results: Download or share your modified image.
Tech Stack
- Frontend: HTML5, CSS3, Bootstrap 5, JavaScript (vanilla)
- Backend: Python 3, Flask
- AI Models:
- YOLO (for detection)
- SAM (Segment Anything Model)
- PyTorch, OpenCV, NumPy
- Other:
- Responsive design
- SVG pattern backgrounds
Setup Instructions
- Clone the Repository
bash git clone <your-repo-url> cd "RCDMS" - (Optional) Create a Virtual Environment
bash python -m venv ml # On Windows: ml\Scripts\activate # On Mac/Linux: source ml/bin/activate Download Segment Anything Model Link Here
Install Dependencies
pip install -r requirements.txtIf you don't have a requirements.txt, install at least:
pip install flask ultralytics segment-anything opencv-python numpyRun the App
python app.pyOpen in Browser
- Go to http://127.0.0.1:5000/ to see magic
Usage Guide
- Landing Page: Click "Get Started".
- Step 1: Upload a car image.
- Step 2: Click "Detect Parts" to see bounding boxes and labels.
- Step 3: Click "Apply Segmentation" for color-coded masks.
- Step 4: Select and extract/remove parts as needed.
- Step 5: Upload a replacement part and blend it in.
- Download or share your results!
Folder Structure
Machine Learning Hackathon/
├── app.py
├── requirements.txt
├── static/
│ ├── js/
│ │ └── main.js
│ ├── uploads/
│
├── templates/
│ ├── landing.html
│ └── index.html
├── car_parts_detector.pt
├── sam_vit_h_4b8939.pth
├── yolo11s-seg.pt
└── ...
Special Thanks: Open-source contributors and the hackathon organizers.
Built With
- css
- html
- javascript
- numpy
- open-cv
- python
- yolov11-segment
- yolov8

Log in or sign up for Devpost to join the conversation.