yolov10/examples/YOLOv8-OpenCV-ONNX-Python
Glenn Jocher 9d27e7ada4
New ASSETS and trackers GMC cleanup (#4425)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-17 18:19:05 +02:00
..

YOLOv8 - OpenCV

Implementation YOLOv8 on OpenCV using ONNX Format.

Just simply clone and run

pip install -r requirements.txt
python main.py --model yolov8n.onnx --img image.jpg

If you start from scratch:

pip install ultralytics
yolo export model=yolov8n.pt imgsz=640 format=onnx opset=12

*Make sure to include "opset=12"