- 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 >= 2019.4.31f1+
- Scripting backend MONO / IL2CPP
- OpenCV for Unity 2.5.1+
- 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.