This project is a FastAPI-based REST API that uses a YOLO model to detect the condition of a car (clean, dirty, damaged, or both).
It classifies an uploaded image into one of four categories based on detected objects (car, dirt, rust, dent, scratch).
- FastAPI backend with
/checkendpoint (POST). - Accepts image upload (
.jpg,.png). - Uses YOLO model for object detection.
- Returns classification result:
clean_cardirty_cardamaged_cardamaged_dirty_car
Python 3.10 (recommended)
Check version:
python --versiongit clone https://github.com/AlisherKaziz/AI_InDrive.git
cd AI_InDrivepython -m venv .venvActivate the environment
pip install -r requirements.txtpython -m uvicorn main:app