Socket
Socket
Sign inDemoInstall

ai.natml.vision.yunet

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ai.natml.vision.yunet

Ultra-high performance face detection in Unity Engine.


Version published
Maintainers
1
Created

Readme

Source

YuNet

YuNet high performance face detection from libfacedetection.

Installing YuNet

Add the following items to your Unity project's Packages/manifest.json:

{
  "scopedRegistries": [
    {
      "name": "NatML",
      "url": "https://registry.npmjs.com",
      "scopes": ["ai.natml"]
    }
  ],
  "dependencies": {
    "ai.natml.vision.yunet": "1.0.3"
  }
}

Detecting Faces in an Image

First, create the YuNet predictor:

// Create the YuNet predictor
var predictor = await YuNetPredictor.Create();

Then detect faces in the image:

// Create image feature
Texture2D image = ...;
// Detect faces
Rect[] faces = predictor.Predict(image);

Requirements

  • Unity 2022.3+

Quick Tips

Thank you very much!

Keywords

FAQs

Last updated on 23 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc