Sleeping-post-detection-fir.../examples/YOLOv8-OpenCV-ONNX-Python
Eportant dbb2eccad0 提交项目 2024-09-08 14:08:46 +08:00
..
README.md 提交项目 2024-09-08 14:08:46 +08:00
main.py 提交项目 2024-09-08 14:08:46 +08:00

README.md

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"