Documentation
¶
Index ¶
- func Argmax(slice []float32) int
- func BytesToFloat32Slice(data []byte) ([]float32, error)
- func CalcFaceDistance(faceEmbedding, referenceFaceEmbedding []float32) float64
- func CalculateMean2f(points []gocv.Point2f) gocv.Point2f
- func ClipMat(mat gocv.Mat, minVal, maxVal float32)
- func CreateStaticBoxMask(cropSize Size, faceMaskBlur float64, faceMaskPadding Padding) gocv.Mat
- func InvertAffineMatrix(affineMatrix gocv.Mat) gocv.Mat
- func MatSubtract(mat gocv.Mat, v float64)
- func PasteBack(targetVisionFrame gocv.Mat, cropVisionFrame gocv.Mat, cropMask gocv.Mat, ...) gocv.Mat
- func ReduceMinimum(mats []gocv.Mat) gocv.Mat
- func WarpFaceByFaceLandmark5(visionFrame gocv.Mat, faceLandmark5 []gocv.Point2f, ...) (gocv.Mat, gocv.Mat)
- func WarpFaceByTranslation(visionFrame gocv.Mat, translation Translation, scale float64, ...) (gocv.Mat, gocv.Mat)
- type BoundingBox
- type Model
- type ModelMeta
- type Padding
- type Size
- type Translation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToFloat32Slice ¶
func CalcFaceDistance ¶
CalcFaceDistance to calculate the distance between two face embeddings
func CalculateMean2f ¶
CalculateMean2f calculates the mean of a slice of gocv.Point2f
func ClipMat ¶
ClipMat clips the values of a gocv.Mat within a specified range. mat need to be float32 type
func CreateStaticBoxMask ¶
CreateStaticBoxMask create a static box mask with specified size, blur, and padding.
func PasteBack ¶
func PasteBack(targetVisionFrame gocv.Mat, cropVisionFrame gocv.Mat, cropMask gocv.Mat, affineMatrix gocv.Mat) gocv.Mat
PasteBack paste cropVisionFrame back to targetVisionFrame
func ReduceMinimum ¶
ReduceMinimum finds the element-wise minimum of a list of gocv.Mat
func WarpFaceByFaceLandmark5 ¶
Types ¶
type BoundingBox ¶
type BoundingBox struct {
X1, Y1, X2, Y2 float64
}
Click to show internal directories.
Click to hide internal directories.