{"id":19119719,"url":"https://github.com/enoxsoftware/yolov5withopencvforunityexample","last_synced_at":"2025-05-05T15:08:49.494Z","repository":{"id":81994397,"uuid":"595617403","full_name":"EnoxSoftware/YOLOv5WithOpenCVForUnityExample","owner":"EnoxSoftware","description":"An example of using OpenCV dnn module with YOLOv5. (ObjectDetection, Segmentation, Classification)","archived":false,"fork":false,"pushed_at":"2024-03-09T19:50:14.000Z","size":270415,"stargazers_count":12,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T04:51:57.517Z","etag":null,"topics":["dnn","object-detection","opencv","unity","unity3d-plugin","yolo","yolov5"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EnoxSoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-01-31T13:11:15.000Z","updated_at":"2024-03-15T04:51:57.517Z","dependencies_parsed_at":"2024-03-09T20:46:34.573Z","dependency_job_id":null,"html_url":"https://github.com/EnoxSoftware/YOLOv5WithOpenCVForUnityExample","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FYOLOv5WithOpenCVForUnityExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FYOLOv5WithOpenCVForUnityExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FYOLOv5WithOpenCVForUnityExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FYOLOv5WithOpenCVForUnityExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EnoxSoftware","download_url":"https://codeload.github.com/EnoxSoftware/YOLOv5WithOpenCVForUnityExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223786713,"owners_count":17202603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dnn","object-detection","opencv","unity","unity3d-plugin","yolo","yolov5"],"created_at":"2024-11-09T05:10:49.244Z","updated_at":"2025-05-05T15:08:49.472Z","avatar_url":"https://github.com/EnoxSoftware.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YOLOv5 With OpenCVForUnity Example\r\n- An example of using OpenCV dnn module with YOLOv5. [https://github.com/ultralytics/yolov5](https://github.com/ultralytics/yolov5)\r\n- This example can also work for [YOLOv6](https://github.com/meituan/YOLOv6), [YOLOv7](https://github.com/WongKinYiu/yolov7) models, which has the same input/output shapes as the YOLOv5 model.\r\n\r\n![YOLOv5_output_shapes.png](YOLOv5_output_shapes.png) \r\n\r\n## Environment\r\n- Windows / Mac / Linux / WebGL / Android / iOS\r\n- Unity \u003e= 2021.3.35f1+\r\n- Scripting backend MONO / IL2CPP\r\n- [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.6.5+\r\n\r\n\r\n## Setup\r\n1. Download the latest release unitypackage. [YOLOv5WithOpenCVForUnityExample.unitypackage](https://github.com/EnoxSoftware/YOLOv5WithOpenCVForUnityExample/releases)\r\n1. Create a new project. (YOLOv5WithOpenCVForUnityExample)\r\n1. Import OpenCVForUnity.\r\n1. Import the YOLOv5WithOpenCVForUnityExample.unitypackage.\r\n1. Add the \"Assets/YOLOv5WithOpenCVForUnityExample/*.unity\" files to the \"Scenes In Build\" list in the \"Build Settings\" window.\r\n1. Build and Deploy.\r\n\r\n\r\n## Export YOLOv5 model to ONNX\r\n1. [YOLOv5_export_to_OpenCVDNN_ONNX.ipynb](https://github.com/EnoxSoftware/YOLOv5WithOpenCVForUnityExample/tree/master/models/YOLOv5/YOLOv5_export_to_OpenCVDNN_ONNX.ipynb)\r\n1. [YOLOv5_segment_export_to_OpenCVDNN_ONNX.ipynb](https://github.com/EnoxSoftware/YOLOv5WithOpenCVForUnityExample/tree/master/models/YOLOv5_segment/YOLOv5_segment_export_to_OpenCVDNN_ONNX.ipynb)\r\n1. [YOLOv5_classify_export_to_OpenCVDNN_ONNX.ipynb](https://github.com/EnoxSoftware/YOLOv5WithOpenCVForUnityExample/tree/master/models/YOLOv5_classify/YOLOv5_classify_export_to_OpenCVDNN_ONNX.ipynb)\r\n\r\n\r\n## Works with Multi-Object Tracking (MOT)\r\n1. [MultiObjectTrackingExample](https://github.com/EnoxSoftware/OpenCVForUnity/tree/master/Assets/OpenCVForUnity/Examples/Advanced/MultiObjectTrackingExample)\r\n\r\n\r\n## ScreenShot\r\n![screenshot01.jpg](screenshot01.jpg) \r\n![screenshot02.jpg](screenshot02.jpg) \r\n![screenshot03.jpg](screenshot03.jpg) \r\n\r\n\r\n## Tutorials\r\n1. [How to Train YOLO v5 on a Custom Dataset](https://www.youtube.com/watch?v=MdF6x6ZmLAY)\r\n2. [Example of custom training for dice roll detection](https://qiita.com/DiNOV-Tokyo/items/1333ff4a6d9b4b5b79c0)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoxsoftware%2Fyolov5withopencvforunityexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenoxsoftware%2Fyolov5withopencvforunityexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoxsoftware%2Fyolov5withopencvforunityexample/lists"}