The Smart Inventory Management System is an AI-powered solution designed for farmers and warehouses to track, analyze, and manage agricultural products in real-time.
It leverages YOLO (You Only Look Once) object detection, MongoDB for inventory storage, and Streamlit for visualization. Real-time alerts are sent via Twilio SMS/WhatsApp when stock is low or products are near expiry.
- 👁️ Automated Visual Tracking: Real-time object detection and counting using a live camera feed and YOLOv11.
- 📱 SMS Notifications: Instant Twilio-powered alerts when stock levels hit minimum thresholds.
- 📊 Interactive Dashboard: Clean React.js UI to view current stock, item status (
OK/LOW), and update history. - ⚙️ Flexible Management: Easily add new items, set initial stock, and define custom thresholds.
- ✏️ Manual Stock Control: Allows for manual adjustments and overrides to ensure data accuracy.
graph TD
A[Camera Feed] --> B(OpenCV Video Capture)
B --> C{YOLOv11 Object Detection}
C -- Object Crossed Line --> D[Update Database]
D --> E{Stock < Threshold?}
E -- Yes --> F[Trigger Twilio SMS API]
F --> G[Farmer Receives Alert]
D --> H[React Frontend]
H -- REST API --> I[Flask Backend]
I -- CRUD Operations --> J[( Database)]
YOLO (You Only Look Once) is chosen because:
- ✅ Real-time object detection suitable for farms/warehouses
- ✅ High accuracy for small + large object tracking
- ✅ Efficient for edge devices (Raspberry Pi/ESP32-CAM)
Reference Papers:
- Augmented using Roboflow for better YOLO training
- Python 3.9+
- YOLOv5/YOLOv8 (for detection)
- OpenCV (image preprocessing & camera feed)
- MongoDB (NoSQL database for inventory)
- Streamlit (UI Dashboard)
- Twilio API (alerts & notifications)
git clone https://github.com/your-username/smart-inventory.git
cd smart-inventorypython -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windows
pip install -r requirements.txtstreamlit run app.py
npm start- ✅ 92% detection accuracy on crop dataset
- ✅ Real-time inventory tracking with MongoDB backend
- ✅ Automatic alerts & insights improve efficiency
- 🚀 Integration with AR for farmer training & visualization
- 🌍 Multilingual chatbot for crop/fertilizer recommendations
- 📦 AI-powered supply chain optimization
- 🤖 AI Agents for autonomous decision-making
This project is licensed under the MIT License – see the LICENSE file for details.


