OpenCV for Unity is an asset plugin for using OpenCV from within Unity.
Scriptable Render Pipeline (SRP) Compatibility
The Unity Scriptable Render Pipeline (SRP) allows you to control rendering from C# scripts. SRP is the underlying technology behind the Universal Render Pipeline (URP) and the High Definition Render Pipeline (HDRP).
Unity Version: 2021.3.35f1
Built-in Render Pipeline: Compatible
Universal Render Pipeline (URP): Compatible
High Definition Render Pipeline (HDRP): Compatible
Description
Works with Unity Cloud Edition
Supports iOS and Android
Supports Windows 10 UWP
Supports Lumin (MagicLeap)
Supports WebGL
Supports Win, Mac, and Linux platforms
Supports in-editor preview
OpenCV for Unity is an asset plugin that enables you to use OpenCV 4.4.0 in Unity.
Features:
- Since this asset package is a clone of OpenCV Java, you can use the same API as OpenCV Java 4.4.0 (link).
- You can use Unity's WebCamTexture feature for real-time image processing. (Real-time face detection runs smoothly on an iPhone 5.)
- Provides methods for converting between Unity's Texture2D and OpenCV's Mat.
- IDisposable is implemented in many classes. You can manage resources using the "using" statement.
- Provides examples for integrating with other publisher resources (e.g., PlayMaker, NatDevice, NatCorder).
Provides code examples for using OpenCV for Unity.
Marker-Based AR Example
Marker-Independent AR Example
FaceTracker Example
FaceSwapper Example
FaceMask Example
Real-Time Face Recognition Example
GoogleVR Example Using OpenCV for Unity
Kinect Example Using OpenCV for Unity
AVPro Example Using OpenCV for Unity
HoloLens Example Using OpenCV for Unity
PlayMakerActions Using OpenCV for Unity
NatDevice Example Using OpenCV for Unity
NatCorder Example Using OpenCV for Unity
MagicLeap Example Using OpenCV for Unity
OpenCV for Unity uses OpenCV under a 3-Clause BSD License; see the Third-Party Notices.txt file in the source package for details.
System Requirements
Windows Standalone Builds and Preview Editor: Windows 8 or later
Mac Standalone Builds and Preview Editor: OS X 10.9 or later
Linux Builds and Preview Editor: Ubuntu 16.04 or later