1
0
Форкнуть 0
This example shows how to convert VideoPlayer texture to OpenCV Mat using AsyncGPUReadback.
Перейти к файлу
EnoxSoftware 70fe7012a4 wasm2023 (simd, threads) 2024-04-24 20:18:00 +09:00
Assets
ExampleAssetsDownloader.png
README.md
SetupTools.png
screenshot01.png
screenshot02.png
screenshot03.png
screenshot04.png

README.md

VideoPlayer With OpenCVForUnity Example

Overview

This example shows how to convert VideoPlayer texture to OpenCV Mat using AsyncGPUReadback.

  • VideoPlayerOnlyExample
  • VideoPlayerWithOpenCVForUnitySyncExample
  • VideoPlayerWithOpenCVForUnityAsyncExample
  • VideoPlayerToMatHelperExample
  • FaceDetectionYuNetV2Example
  • ObjectDetectionYOLOXExample
  • HandPoseEstimationMediaPipeExample
  • PoseEstimationMediaPipeExample
  • VideoCaptureTrackingExample
  • VideoPlayerTrackingExample

Environment

Demo

Setup

  1. Download the latest release unitypackage. VideoPlayerWithOpenCVForUnityExample.unitypackage
  2. Create a new project. (VideoPlayerWithOpenCVForUnityExample)
  3. Import OpenCVForUnity.
    • Select MenuItem[Tools/OpenCV for Unity/Open Setup Tools].
    • Click the [Open Example Assets Downloader] button, then click the [FaceDetectionYuNetV2Example],[ObjectDetectionYOLOXExample],[HandPoseEstimationMediaPipeExample],[PoseEstimationMediaPipeExample],[TrackingExample] buttons.
    • Click the [Move StreamingAssets Folder] button.
    • [WebGL] Click the [Enable MultiThreads Support] button or the [Enable SIMD Support] button. Set [Project Settings]-[Other Settings]-[Color Space] to [Gamma]. SetupTools.png ExampleAssetsDownloader.png
  4. Import the VideoPlayerWithOpenCVForUnityExample.unitypackage.
  5. Add the "Assets/VideoPlayerWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
  6. Build and Deploy.

ScreenShot

screenshot01.png screenshot02.png screenshot03.png screenshot04.png