AVProWithOpenCVForUnityExample/README.md

1.5 KiB

AVPro With OpenCV for Unity Example

Overview

This example shows how to convert AVProVideo and AVProLiveCamera texture to OpenCV Mat using AsyncGPUReadback.

  • AVProVideoGetReadableTextureExample
  • AVProVideoAsyncGPUReadbackExample
  • AVProVideoExtractFrameExample
  • AVProLiveCameraGetFrameAsColor32Example
  • AVProLiveCameraAsyncGPUReadbackExample

Environment

Setup

  1. Download the latest release unitypackage. AVProWithOpenCVForUnityExample.unitypackage
  2. Create New Project. (AVProWithOpenCVForUnityExample)
  3. Import OpenCVForUnity from AssetStore
  4. Import UnityPlugin-AVProVideo-Latest-Trial.unitypackage
  5. Import UnityPlugin-AVProLiveCamera-Latest-Trial.unitypackage
  6. Import AVProWithOpenCVForUnityExample.unitypackage
  7. Add the "Assets/AVProWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
  8. Build and Deploy.

Screen Shot

ScreenShot.PNG