arcface

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package to provide face-detection and features-retrieving

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FaceDetect

func FaceDetect(src image.Image) ([][]float32, [][]float32, error)

Detect face in src image, return face boxes and landmarks, ordered by predict scores.

func FaceFeatures

func FaceFeatures(src image.Image, lmk []float32) ([]float32, image.Image, error)

Get face features by Arcface Parameter src is original image, lmk is face landmark detected by FaceDetect(), return features in a arrary, and norm_crop image

func LoadOnnxModel

func LoadOnnxModel(onnxmodel_path string) (err error)

Load onnx model from infightface, based on "buffalo_l" (det_10g.onnx, w600k_r50.onnx). onnxmodel_path is the path way to onnx models.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL