wjs/yolo_safehat_num_v8/examples/YOLOv8-OpenCV-ONNX-Python
wjs 3966978f53 YOLO projects init 2024-05-15 14:46:56 +08:00
..
README.md YOLO projects init 2024-05-15 14:46:56 +08:00
main.py YOLO projects init 2024-05-15 14:46:56 +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"