This example shows how to convert AVProVideo and AVProLiveCamera texture to OpenCV Mat using AsyncGPUReadback.
- AVProVideoGetReadableTextureExample
- AVProVideoAsyncGPUReadback2MatHelperExample
- AVProVideoExtractFrameExample
- AVProLiveCameraGetFrameAsColor32Example
- AVProLiveCameraAsyncGPUReadback2MatHelperExample
- Unity 2021.3.35f1+
- OpenCVForUnity 3.0.0+
- UnityPlugin-AVProVideo 3.2.7+ (Latest-Trial)
- UnityPlugin-AVProLiveCamera 2.9.3+ (Latest-Trial)
- Download the latest release unitypackage. AVProWithOpenCVForUnityExample.unitypackage
- Create New Project. (AVProWithOpenCVForUnityExample)
- Import OpenCVForUnity from AssetStore
- Import UnityPlugin-AVProVideo-Latest-Trial.unitypackage
- Import UnityPlugin-AVProLiveCamera-Latest-Trial.unitypackage
- Import AVProWithOpenCVForUnityExample.unitypackage
- Add the "Assets/AVProWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
- Build and Deploy.