/NativeGalleryWithOpenCVForUnityExample

This example shows how to use the NativeGallery plugin to retrieve an image or video file path from the in-device storage gallery in an Android/iPhone device via a file picker and apply image processing using OpenCVForUnity.

Primary LanguageC#MIT LicenseMIT

NativeGallery With OpenCVForUnity Example

Overview

This example shows how to use the NativeGallery plugin to retrieve an image or video file path from the in-device storage gallery in an Android/iPhone device via a file picker and apply image processing using OpenCVForUnity.

  • NativeGalleryImageExample
  • NativeGalleryVideoExample

Environment

Demo App

Setup

  1. Download the latest release unitypackage. NativeGalleryWithOpenCVForUnityExample.unitypackage
  2. Create a new project. (NativeGalleryWithOpenCVForUnityExample)
  3. Import OpenCVForUnity.
  4. Import Native Gallery for Android & iOS.
  5. Import the NativeGalleryWithOpenCVForUnityExample.unitypackage.
  6. Add the "Assets/NativeGalleryWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
  7. Build and Deploy.