{"id":19119720,"url":"https://github.com/enoxsoftware/natcamwithopencvforunityexample","last_synced_at":"2025-05-05T15:11:12.343Z","repository":{"id":81994336,"uuid":"128084696","full_name":"EnoxSoftware/NatCamWithOpenCVForUnityExample","owner":"EnoxSoftware","description":"An example of improving performance of video preview on mobile platform by replacing WebCamTexture of Unity standard API with NatCam.","archived":false,"fork":false,"pushed_at":"2020-03-27T22:31:19.000Z","size":724,"stargazers_count":25,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T22:01:33.158Z","etag":null,"topics":["assetstore","natcam-api","opencv","opencvforunity","unity","unity-3d","unity-asset","unity3d"],"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":"2018-04-04T15:45:21.000Z","updated_at":"2024-12-09T02:59:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5d0196b-b707-46c7-81e6-e9d41c4312d7","html_url":"https://github.com/EnoxSoftware/NatCamWithOpenCVForUnityExample","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FNatCamWithOpenCVForUnityExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FNatCamWithOpenCVForUnityExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FNatCamWithOpenCVForUnityExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnoxSoftware%2FNatCamWithOpenCVForUnityExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EnoxSoftware","download_url":"https://codeload.github.com/EnoxSoftware/NatCamWithOpenCVForUnityExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252522172,"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":["assetstore","natcam-api","opencv","opencvforunity","unity","unity-3d","unity-asset","unity3d"],"created_at":"2024-11-09T05:10:49.270Z","updated_at":"2025-05-05T15:11:12.330Z","avatar_url":"https://github.com/EnoxSoftware.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NatCam has been deprecated. \r\n**An example using the new asset \"NatDevice\" has been published.** \r\n[https://github.com/EnoxSoftware/NatDeviceWithOpenCVForUnityExample](https://github.com/EnoxSoftware/NatDeviceWithOpenCVForUnityExample)\r\n\r\n---\r\n\r\n# NatCam With OpenCVForUnity Example\r\n- An example of a benchmark test integrating NatCam and OpenCVForUnity. (Comparison between WebCamTexture and NatCam API)  \r\n- An example of replacing WebCamTextureToMatHelper with NatCamPreviewToMatHelper.\r\n- An example of native sharing and save to the camera roll using NatShare API.\r\n\r\n\r\n\u003c!--\r\n## Benchmark\r\n![benchmark.jpg](benchmark.jpg) \r\n--\u003e\r\n\r\n\r\n## Environment\r\n- Anddroid (Pixel, Nexus 7) / iOS (iPhone8, iPhone6s)\r\n- Unity \u003e= 2018.3+\r\n- Scripting backend MONO / IL2CPP\r\n- [NatCam - WebCam API](https://assetstore.unity.com/packages/tools/integration/natcam-pro-webcam-api-52154?aid=1011l4ehR) 2.3.1+\r\n- [NatShare - Mobile Sharing API](https://assetstore.unity.com/packages/tools/integration/natshare-mobile-sharing-api-117705?aid=1011l4ehR) 1.2.1+\r\n- [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.3.7+\r\n\r\n\r\n## Demo\r\n- Android [NatCamWithOpenCVForUnityExample.apk](https://github.com/EnoxSoftware/NatCamWithOpenCVForUnityExample/releases)\r\n\r\n\r\n## Setup\r\n1. Download the latest release unitypackage. [NatCamWithOpenCVForUnityExample.unitypackage](https://github.com/EnoxSoftware/NatCamWithOpenCVForUnityExample/releases)\r\n1. Create a new project. (NatCamWithOpenCVForUnityExample)\r\n1. Import NatCam.\r\n1. Import NatShare.\r\n1. Import OpenCVForUnity.\r\n    * Setup the OpenCVForUnity. (Tools \u003e OpenCV for Unity \u003e Set Plugin Import Settings)\r\n1. Import the NatCamWithOpenCVForUnityExample.unitypackage.\r\n1. Change the \"Minimum API Level\" to 22 or higher in the \"Player Settings (Androd)\" Inspector.\r\n1. Change the \"Target minimum iOS Version\" to 11 or higher in the \"Player Settings (iOS)\" Inspector.\r\n    * Set the reason for accessing the camera in \"cameraUsageDescription\".\r\n1. Add the \"Assets/NatCamWithOpenCVForUnityExample/*.unity\" files to the \"Scenes In Build\" list in the \"Build Settings\" window.\r\n1. Build and Deploy to Android and iOS.\r\n\r\n\r\n## iOS Instructions\r\nAfter building an Xcode project from Unity, add the following keys to the `Info.plist` file with a good description:\r\n- `NSPhotoLibraryUsageDescription`\r\n- `NSPhotoLibraryAddUsageDescription`\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoxsoftware%2Fnatcamwithopencvforunityexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenoxsoftware%2Fnatcamwithopencvforunityexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoxsoftware%2Fnatcamwithopencvforunityexample/lists"}