https://github.com/enoxsoftware/videoplayerwithopencvforunityexample
This example shows how to convert VideoPlayer texture to OpenCV Mat using AsyncGPUReadback.
https://github.com/enoxsoftware/videoplayerwithopencvforunityexample
asyncgpureadback opencv untiy video video-player
Last synced: about 1 year ago
JSON representation
This example shows how to convert VideoPlayer texture to OpenCV Mat using AsyncGPUReadback.
- Host: GitHub
- URL: https://github.com/enoxsoftware/videoplayerwithopencvforunityexample
- Owner: EnoxSoftware
- Created: 2017-04-24T11:12:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T11:18:05.000Z (about 2 years ago)
- Last Synced: 2024-04-24T15:41:29.016Z (about 2 years ago)
- Topics: asyncgpureadback, opencv, untiy, video, video-player
- Language: C#
- Homepage:
- Size: 369 MB
- Stars: 10
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
-----
- Unity 2020.3.48f1+
- [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.5.9+
Demo
-----
- WebGL (simd)
- WebGL (simd, threads)
- Android
Setup
-----
1. Download the latest release unitypackage. [VideoPlayerWithOpenCVForUnityExample.unitypackage](https://github.com/EnoxSoftware/VideoPlayerWithOpenCVForUnityExample/releases)
1. Create a new project. (VideoPlayerWithOpenCVForUnityExample)
1. 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].


1. Import the VideoPlayerWithOpenCVForUnityExample.unitypackage.
1. Add the "Assets/VideoPlayerWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
1. Build and Deploy.
ScreenShot
-----



