نظام ذكي لاكتشاف وتصنيف الحقائب على سيور النقل
AI-Powered Bag Detection and Classification for Conveyor Belt Monitoring
This project leverages YOLO-based object detection and Google Gemini AI for
real-time bag detection, tracking, and classification on conveyor belts.
It identifies bag type and color, stores results in structured reports,
and optimizes processing with multi-threading. Ideal for airport security,
logistics, and industrial automation.
Project Overview
This project focuses on real-time bag detection, tracking, and classification
using YOLO-based object detection and Google Gemini AI for detailed analysis.
It is designed for monitoring conveyor belts in airports, warehouses, and
factories where identifying bag types and colors is critical.
Key Features
Real-Time Bag Detection & Tracking
- 🎒 Uses YOLO to detect and track bags in video streams.
- 🆔 Assigns unique Track IDs to avoid duplicate processing.
Bag Classification using Gemini AI
- ✂️ Crops detected bag images automatically.
- 🧠 Sends images to Google Gemini AI for analysis.
- 🎨 Extracts Bag Type (backpack, suitcase, handbag).
- 🎯 Identifies Bag Color (black, blue, red, etc.).
Automated Report Generation
- 📝 Saves bag classification results into text files.
- 📄 Structured format includes Timestamp, Track ID, Bag Type, and Color.
Detection Line Monitoring
- 📏 Uses a fixed detection line on the conveyor belt.
- ⚡ Triggers AI analysis only when bags cross the line.
- 🚀 Improves speed and avoids redundant detections.
Multi-Threaded Processing
- 🧵 Uses Python threading for asynchronous AI analysis.
- ⏱️ Prevents real-time video processing slowdowns.
Technology Stack
- 🐍 Programming Language: Python
- 🎥 Computer Vision: OpenCV
- 🧠 Object Detection: YOLO (Ultralytics)
- 🤖 AI Analysis: Google Gemini AI
- 🧵 Asynchronous Processing: Python Threading
- 📄 Data Storage: Text-based reports
Use Cases
- ✈️ Airport Security – Classify passenger luggage on conveyor belts.
- 📦 Logistics & Warehousing – Monitor and categorize packages.
- 🏭 Industrial Automation – Smart baggage sorting systems.
Custom Enhancement Options
- 🗄️ Database integration for structured data storage.
- 🚨 Real-time alerts for suspicious or prohibited items.
- 🔍 Expanded detection for internal bag content analysis.
Conclusion
This AI-powered bag detection and classification system significantly improves
efficiency and automation in conveyor belt monitoring. By combining YOLO for
object detection and Gemini AI for classification, it delivers accurate,
scalable, and high-performance solutions for security and logistics
environments.