EnoxSoftware / YOLOv8WithOpenCVForUnityExample

An example of using OpenCV dnn module with YOLOv8. (ObjectDetection, Segmentation, Classification, PoseEstimation)
17 stars 2 forks source link
dnn object-detection opencv unity unity3d-plugin yolo yolov8n

YOLOv8 With OpenCVForUnity Example

Environment

Setup

  1. Download the latest release unitypackage. YOLOv8WithOpenCVForUnityExample.unitypackage
  2. Create a new project. (YOLOv8WithOpenCVForUnityExample)
  3. Import OpenCVForUnity.
  4. Import the YOLOv8WithOpenCVForUnityExample.unitypackage.
  5. Add the "Assets/YOLOv8WithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
  6. Build and Deploy.

Export YOLOv8 model to ONNX

  1. YOLOv8_export_to_OpenCVDNN_ONNX.ipynb

Works with Multi-Object Tracking (MOT)

  1. MultiObjectTrackingExample

ScreenShot

screenshot01.jpg screenshot02.jpg screenshot03.jpg screenshot03.jpg

Tutorials

  1. How to Train Ultralytics YOLOv8 models on Your Custom Dataset in Google Colab