SkillAgentSearch skills...

BarracudaWithOpenCVForUnityExample

An example of integrating Barracuda with OpenCVForUnity.

Install / Use

/learn @EnoxSoftware/BarracudaWithOpenCVForUnityExample
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Barracuda With OpenCVForUnity Example

  • An example of integrating Barracuda with OpenCVForUnity.
  • A rewritten version of Keijiro's Barracuda examples (https://github.com/search?q=user%3Akeijiro+Barracuda).

Environment

  • Windows / Android (Pixel3a) / iOS (iPhoneSE2)
  • Unity >= 2020.3.19f1+
  • Scripting backend MONO / IL2CPP
  • [Barracuda] 2.1.0-preview+
  • OpenCV for Unity 2.4.7+

Demo

Setup

  1. Download the latest release unitypackage. BarracudaWithOpenCVForUnityExample.unitypackage
  2. Create a new project. (BarracudaWithOpenCVForUnityExample)
  3. Install Barracuda from Package Manager.
  4. Install Keijiro's package.
  5. Import OpenCVForUnity.
    • Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
  6. Import the BarracudaWithOpenCVForUnityExample.unitypackage.
  7. Change the "Player Settings (Androd)" Inspector as follows.
    • Graphics APIs : Vulkan (Remove "OpenGLES 3" from the Graphics APIs list)
  8. Change the "Player Settings (iOS)" Inspector as follows.
    • Camera Usage Description : "Required for camera support."
  9. Add the "Assets/BarracudaWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
  10. Build and Deploy to Android and iOS.

How to install Keijiro's package

This package uses the scoped registry feature to resolve package dependencies. Please add the following sections to the manifest file (Packages/manifest.json).

To the scopedRegistries section:

{
  "name": "Keijiro",
  "url": "https://registry.npmjs.com",
  "scopes": [ "jp.keijiro" ]
}

To the dependencies section:

"jp.keijiro.mediapipe.blazeface": "1.1.1"

After changes, the manifest file should look like below:

{
  "scopedRegistries": [
    {
      "name": "Keijiro",
      "url": "https://registry.npmjs.com",
      "scopes": [ "jp.keijiro" ]
    }
  ],
  "dependencies": {
    "jp.keijiro.mediapipe.blazeface": "1.1.1",
...

ScreenShot

screenshot01.jpg screenshot02.jpg screenshot03.jpg screenshot04.jpg

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated1y ago
Forks1

Languages

C#

Security Score

55/100

Audited on Mar 28, 2025

No findings