Skip to content

EnoxSoftware/VideoPlayerWithOpenCVForUnityExample

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages