Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
ai.natml.vision.ultraface
Advanced tools
Ultra-light Fast Generic Face Detector for high performance face detection.
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.ultraface": "1.0.0"
}
}
First, create the UltraFace predictor:
// Fetch the model data from NatML Hub
var modelData = await MLModelData.FromHub("@natsuite/ultraface");
// Deserialize the model
var model = modelData.Deserialize();
// Create the UltraFace predictor
var predictor = new UltraFacePredictor(model);
Then detect faces in the image:
// Create image feature
Texture2D image = ...;
var imageFeature = new MLImageFeature(image); // This also accepts a `Color32[]` or `byte[]`
(imageFeature.mean, imageFeature.std) = modelData.normalization;
imageFeature.aspectMode = modelData.aspectMode;
// Detect faces
Rect[] faces = predictor.Predict(imageFeature);
Thank you very much!
FAQs
Ultra-light fast generic face detector.
The npm package ai.natml.vision.ultraface receives a total of 18 weekly downloads. As such, ai.natml.vision.ultraface popularity was classified as not popular.
We found that ai.natml.vision.ultraface demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.