نظام ذكي لاكتشاف وتصنيف المركبات
AI-Powered Vehicle Detection and Classification System
This project is a vehicle detection and analysis system using YOLO and Google Gemini AI. It processes
surveillance video to detect and track vehicles, extract vehicle type, color, and manufacturer, and store
structured data for further analysis. The system also crops detected vehicles and uses multithreading for high
performance.
Project Overview
This AI-powered vehicle detection system leverages computer vision and deep learning to automatically detect,
track, and classify vehicles in real time. By integrating YOLO-based object detection with Google Gemini AI, the
system provides intelligent analysis of vehicle attributes such as type, color, and company from surveillance
footage.
Key Features
YOLO-Based Vehicle Detection
- 🚗 Detects cars and trucks in real-time video streams.
- ⚡ High-accuracy detection using Ultralytics YOLO.
Object Tracking
- 🆔 Assigns unique IDs to detected vehicles.
- 🔁 Ensures each vehicle is processed only once.
Automated Image Cropping
- ✂️ Crops detected vehicle images automatically.
- 📸 Saves images for analysis and record keeping.
Vehicle Classification using Gemini AI
- 🧠 Sends cropped images to Google Gemini AI.
- 🚙 Extracts vehicle type (car, truck, etc.).
- 🎨 Identifies vehicle color.
- 🏷️ Detects manufacturer or company.
Data Logging & Multithreading
- 📝 Logs vehicle details with timestamps.
- 🧵 Uses multithreading for fast, non-blocking processing.
Technology Stack
- 🐍 Programming Language: Python
- 🎥 Computer Vision: OpenCV
- 🧠 Object Detection: YOLO (Ultralytics)
- 🤖 AI Analysis: Google Gemini AI
- 🧵 Performance Optimization: Multithreading
- 🖥️ Visualization: cvzone
Use Cases
- 🚦 Traffic Management Systems – Monitor and analyze traffic flow.
- 👮 Law Enforcement – Assist in identifying suspicious or stolen vehicles.
- 🏢 Smart Surveillance – Enhance security in parking lots and highways.
- 📊 Fleet Management – Automate vehicle tracking for logistics companies.
Conclusion
This AI-powered vehicle detection and classification system combines deep learning and computer vision to
deliver accurate, real-time vehicle analysis. The integration of YOLO and Google Gemini AI makes it a powerful
solution for smart surveillance, traffic monitoring, and intelligent transportation systems.