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 update 1.0.5 2024-04-20 19:36:23 +09:00
ExampleAssetsDownloader.png update 1.0.2 2023-11-04 16:20:32 +09:00
README.md wasm2023 (simd, threads) 2024-04-24 20:18:00 +09:00
SetupTools.png update 1.0.4 2024-03-08 00:41:36 +09:00
screenshot01.png update 1.0.2 2023-11-04 16:20:32 +09:00
screenshot02.png update 1.0.2 2023-11-04 16:20:32 +09:00
screenshot03.png update 1.0.2 2023-11-04 16:20:32 +09:00
screenshot04.png update 1.0.2 2023-11-04 16:20:32 +09:00

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