This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fetch the MediaPipe BlazeFace model data from Hub | |
var modelData = await MLModelData.FromHub("@natsuite/blazeface"); | |
// Deserialize the model | |
var model = modelData.Deserialize(); | |
// Create a BlazeFace predictor | |
var predictor = new BlazeFacePredictor(model); | |
// Detect faces in an image | |
Texture2D image = ...; | |
Rect[] faces = predictor.Predict(image); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment