- An example of using OpenCV dnn module with YOLOv8. https://docs.ultralytics.com/models/yolov8/
- This example can also work for YOLOv5u, YOLOv9,
YOLOv10, YOLOv11, YOLOv12 models, which has the same input/output shapes as the YOLOv8 model.
- Windows / Mac / Linux / WebGL / Android / iOS
- Unity >= 2021.3.35f1+
- Scripting backend MONO / IL2CPP
- OpenCV for Unity 3.0.0+
- Download the latest release unitypackage. YOLOv8WithOpenCVForUnityExample.unitypackage
- Create a new project. (YOLOv8WithOpenCVForUnityExample)
- Import OpenCVForUnity.
- Import the YOLOv8WithOpenCVForUnityExample.unitypackage.
- Add the "Assets/YOLOv8WithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
- Build and Deploy.