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