{"id":19119727,"url":"https://github.com/enoxsoftware/arfoundationwithopencvforunityexample","last_synced_at":"2025-05-05T15:20:44.633Z","repository":{"id":81994217,"uuid":"419276511","full_name":"EnoxSoftware/ARFoundationWithOpenCVForUnityExample","owner":"EnoxSoftware","description":"An example of converting an ARFoundation camera image to OpenCV's Mat format.","archived":false,"fork":false,"pushed_at":"2024-12-11T16:31:47.000Z","size":337,"stargazers_count":21,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T22:02:51.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2021-10-20T10:03:14.000Z","updated_at":"2024-12-11T16:31:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"5292a862-45c1-4367-b668-1ed8fb55c319","html_url":"https://github.com/EnoxSoftware/ARFoundationWithOpenCVForUnityExample","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%2FARFoundationWithOpenCVForUnityExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FARFoundationWithOpenCVForUnityExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FARFoundationWithOpenCVForUnityExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FARFoundationWithOpenCVForUnityExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EnoxSoftware","download_url":"https://codeload.github.com/EnoxSoftware/ARFoundationWithOpenCVForUnityExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252522178,"owners_count":21761685,"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":[],"created_at":"2024-11-09T05:10:51.225Z","updated_at":"2025-05-05T15:20:44.627Z","avatar_url":"https://github.com/EnoxSoftware.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ARFoundation With OpenCVForUnity Example\r\n- An example of integrating ARFoundation with OpenCVForUnity.\r\n- An example of replacing WebCamTextureToMatHelper with ARFoundationCameraToMatHelper.\r\n- An example of ArUco marker detection from an ARFoundation camera image.\r\n\r\n\r\n## Environment\r\n- Android (Pixel, Galaxy S10+) / iOS (iPhoneSE2)\r\n- Unity \u003e= 2021.3.35f1+\r\n- Scripting backend MONO / IL2CPP\r\n- [AR Foundation] 5.1.5+\r\n- [ARCore XR Plugin] 5.1.5+\r\n- [ARKit XR Plugin] 5.1.5+\r\n- [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.6.4+\r\n\r\n\r\n## Demo\r\n- Android [ARFoundationWithOpenCVForUnityExample.apk](https://github.com/EnoxSoftware/ARFoundationWithOpenCVForUnityExample/releases)\r\n\r\n\r\n## Setup\r\n1. Download the latest release unitypackage. [ARFoundationWithOpenCVForUnityExample.unitypackage](https://github.com/EnoxSoftware/ARFoundationWithOpenCVForUnityExample/releases)\r\n1. Create a new project. (ARFoundationWithOpenCVForUnityExample)\r\n1. Install AR Foundation from Package Manager.\r\n1. Install ARCore XR Plugin from Package Manager.\r\n1. Install ARKit XR Plugin from Package Manager.\r\n1. Import OpenCVForUnity.\r\n    * Setup the OpenCVForUnity. (Tools \u003e OpenCV for Unity \u003e Set Plugin Import Settings)\r\n1. Import the ARFoundationWithOpenCVForUnityExample.unitypackage.\r\n1. Change the \"Player Settings (Androd)\" Inspector as follows.\r\n    * Graphics APIs : OpenGLES 3 (Remove \"Vulkan\" from the Graphics APIs list)\r\n    * Minimum API Level : Android 7.0 (API Level 24)\r\n1. Open the menu \"Edit =\u003e Project Settings =\u003e XR Plug-in Management (Android)\" and check \"ARCore\".\r\n1. Change the \"Player Settings (iOS)\" Inspector as follows.\r\n    * Camera Usage Description : \"Required for augmented reality support.\"\r\n    * Target minimum iOS Version : 12.0\r\n    * Architecture : ARM64\r\n1. Open the menu \"Edit =\u003e Project Settings =\u003e XR Plug-in Management (iOS)\" and check \"ARKit\".\r\n    * (It seems that the camera cannot switch to the inner camera unless the Face tracking subsystem is enabled here.)\r\n1. Add the \"Assets/ARFoundationWithOpenCVForUnityExample/*.unity\" files to the \"Scenes In Build\" list in the \"Build Settings\" window.\r\n1. Build and Deploy to Android and iOS.\r\n    *  (Print the AR marker \"CanonicalMarker-d10-i1-sp500-bb1.pdf\" on an A4 size paper)  \r\n\r\n\r\n## ScreenShot\r\n![screenshot01.jpg](screenshot01.jpg) \r\n![screenshot02.jpg](screenshot02.jpg) \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoxsoftware%2Farfoundationwithopencvforunityexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenoxsoftware%2Farfoundationwithopencvforunityexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoxsoftware%2Farfoundationwithopencvforunityexample/lists"}