https://github.com/mgthetrain/python-object-detection-with-ultralytics-ai-models-and-opencv
Simple Object detector app utilizing ultralytics AI models. The detector primarily utilizes RTDETR and YOLOv8 models.
https://github.com/mgthetrain/python-object-detection-with-ultralytics-ai-models-and-opencv
detr object-detection python sample
Last synced: 6 months ago
JSON representation
Simple Object detector app utilizing ultralytics AI models. The detector primarily utilizes RTDETR and YOLOv8 models.
- Host: GitHub
- URL: https://github.com/mgthetrain/python-object-detection-with-ultralytics-ai-models-and-opencv
- Owner: MGTheTrain
- Created: 2023-11-18T11:39:51.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-18T14:18:52.000Z (almost 2 years ago)
- Last Synced: 2023-11-18T15:28:46.099Z (almost 2 years ago)
- Topics: detr, object-detection, python, sample
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-object-detection-with-ultralytics-ai-models-and-opencv
## Table of Contents
+ [Summary](#summary)
+ [References](#references)
+ [How to use](#how-to-use)## Summary
Simple Object detector app utilizing [Ultralytics AI models](https://docs.ultralytics.com/models/). The detector primarily utilizes YOLOv8 and YOLO11 models.
**NOTE:** The initial object detector app including RTDETR models is available in the [experiment folder](./experiment/).
## References
- [Inference on video frames for Ultralytics YOLO](https://docs.ultralytics.com/modes/predict/#streaming-source-for-loop)
## Preconditions
- Setup Python trough an OS specific package manager (`brew` on Mac OS and `choco` on Windows) or download release from [from the official website]()
## How to use
**NOTE:** Tested on Windows 11 OS and Unix systems
### Install pip packages
Run following commands:
```sh
# Windows 11 OS
pip.exe install -r requirements.txt# Unix systems (NOTE: consider --break-system-packages only in case you encounter 'error: externally-managed-environment')
pip3 install -r requirements.txt --break-system-packages
```### Run object detector application
Run following commands on Windows 11 OS:
```sh
python.exe object_detector_app.py --help# Object detection with pretrained nano YOLO V8 model
python.exe object_detector_app.py --model nano_yolov8# Object detection with pretrained nano YOLO 11 model
python.exe object_detector_app.py --model nano_yolov11
```Run following commands on Unix systems:
```sh
python3 object_detector_app.py --help# Object detection with pretrained nano YOLO V8 model
python3 object_detector_app.py --model nano_yolov8# Object detection with pretrained nano YOLO 11 model
python3 object_detector_app.py --model nano_yolov11
```