Smart Object Detection is a modern, real-time object detection system powered by YOLOv8, OpenCV, and PyTorch. It detects multiple objects in both images and videos, displaying and saving annotated results automatically in dedicated folders.
- 🖼️ Detect objects in images and videos
- ⚡ Real-time FPS tracking for video detection
- 💾 Automatically saves processed outputs in organized folders
- 🔍 Powered by Ultralytics YOLOv8 — the latest in real-time computer vision
- 🧰 Easy to customize and extend
smart-object-detection/
│
├── Input Frame/ # Place your input videos here
├── Input Images/ # Place your input images here
├── Output Frame/ # Processed videos with detection boxes
├── Output images/ # Processed images with bounding boxes
│
├── image_detection_yolov8.py # Script for image detection
├── video_detection_yolov8.py # Script for video detection
├── yolov8n.pt # YOLOv8 Nano weights
├── Requirements.txt # Dependencies list
├── README.md # Documentation
└── .gitignore # Ignored files (e.g. venv, runs, media)
git clone https://github.com/mazharsnow/smart-object-detection.git
cd smart-object-detectionpython -m venv venv
.\venv\Scripts\activatepip install -r Requirements.txt- Place your image in the
Input Imagesfolder. - Run the script:
python image_detection_yolov8.py- The processed image will be saved in the
Output imagesfolder.
- Place your video in the
Input Framefolder. - Run the script:
python video_detection_yolov8.py- The processed video will be saved in the
Output Framefolder. FPS and detection results will be displayed in real time.
- Python >= 3.8
- opencv>=4.10.0.84
- numpy>=1.26.3
- pandas>=2.2.3
- torch>=2.3.0
- ultralytics>=8.3.0
- matplotlib>=3.9.2
- scikit-learn>=1.5.2
- albumentations>=1.4.8
Install everything using:
pip install -r Requirements.txt| Library | Purpose |
|---|---|
| YOLOv8 (Ultralytics) | Object detection model |
| OpenCV | Image and video processing |
| PyTorch | Deep learning framework |
| NumPy / Pandas | Data handling |
| Matplotlib | Visualization (optional) |
| Input | Output |
|---|---|
![]() |
![]() |
| Input | Output |
|---|---|
![]() |
![]() |
- Add object counting and tracking
- Integrate with webcam/live stream
- Add distance estimation and object measurement
- Deploy as a web app with Streamlit
Mazharul Islam Tusar
📧 mazharul.tusar@outlook.com
💻 GitHub: @mazharsnow
object-detection, yolov8, computer-vision, deep-learning, pytorch, opencv,
ultralytics, real-time-detection, ai-project, python
This project is released under the MIT License — free to use, modify, and distribute with attribution.



