NatCamWithOpenCVForUnityExample
An example of improving performance of video preview on mobile platform by replacing WebCamTexture of Unity standard API with NatCam.
Install / Use
/learn @EnoxSoftware/NatCamWithOpenCVForUnityExampleREADME
This example project has been deprecated.
The “NatCam” and “NatShare” assets that the integration example depends on have been deprecated in the Unity Asset Store. These features appear to have been merged and evolved into a new asset called VideoKit (https://www.videokit.ai/).
NatCam With OpenCVForUnity Example
- An example of a benchmark test integrating NatCam and OpenCVForUnity. (Comparison between WebCamTexture and NatCam API)
- An example of replacing WebCamTextureToMatHelper with NatCamPreviewToMatHelper.
- An example of native sharing and save to the camera roll using NatShare API.
Environment
- Anddroid (Pixel, Nexus 7) / iOS (iPhone8, iPhone6s)
- Unity >= 2018.3+
- Scripting backend MONO / IL2CPP
- NatCam - WebCam API 2.3.1+
- NatShare - Mobile Sharing API 1.2.1+
- OpenCV for Unity 2.3.7+
Demo
Setup
- Download the latest release unitypackage. NatCamWithOpenCVForUnityExample.unitypackage
- Create a new project. (NatCamWithOpenCVForUnityExample)
- Import NatCam.
- Import NatShare.
- Import OpenCVForUnity.
- Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
- Import the NatCamWithOpenCVForUnityExample.unitypackage.
- Change the "Minimum API Level" to 22 or higher in the "Player Settings (Androd)" Inspector.
- Change the "Target minimum iOS Version" to 11 or higher in the "Player Settings (iOS)" Inspector.
- Set the reason for accessing the camera in "cameraUsageDescription".
- Add the "Assets/NatCamWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
- Build and Deploy to Android and iOS.
iOS Instructions
After building an Xcode project from Unity, add the following keys to the Info.plist file with a good description:
NSPhotoLibraryUsageDescriptionNSPhotoLibraryAddUsageDescription
ScreenShot

Related Skills
qqbot-channel
350.1kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.4k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
350.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
