Versions in this module Expand all Collapse all v3 v3.0.9 Nov 1, 2023 Changes in this version + const ColorFormatBGR24 + const ColorFormatI420 + const ColorFormatNV12 + const ColorFormatNV21 + const ColorFormatYUYV + const DetectModeImage + const DetectModeVideo + const EnableAge + const EnableFace3DAngle + const EnableFaceDetect + const EnableFaceRecognition + const EnableGender + const EnableIRLiveness + const EnableLiveness + const EnableNone + const OrientPriority0 + const OrientPriority180 + const OrientPriority270 + const OrientPriority90 + const OrientPriorityAllOut + func Activation(appId, sdkKey string) (err error) + func OnlineActivation(appId, sdkKey string) (err error) + type ActiveFileInfo struct + AppId string + EndTime string + FileVersion string + Platform string + SdkKey string + SdkType string + SdkVersion string + StartTime string + func GetActiveFileInfo() (ActiveFileInfo, error) + type AgeInfo struct + AgeArray []int32 + Num int32 + type EngineError struct + Code int + Text string + func (err EngineError) Error() string + type Face3DAngle struct + Num int32 + Pitch []float32 + Roll []float32 + Status []int32 + Yaw []float32 + type FaceEngine struct + func NewFaceEngine(dm, op uint32, faceScale, maxFaceNum, combinedMask C.MInt32) (*FaceEngine, error) + func (engine *FaceEngine) Destroy() error + func (engine *FaceEngine) DetectFaces(width, height int, format C.MInt32, imgData []byte) (faceInfo MultiFaceInfo, err error) + func (engine *FaceEngine) DetectFacesEx(imageData ImageData) (faceInfo MultiFaceInfo, err error) + func (engine *FaceEngine) FaceFeatureCompare(feature1, feature2 FaceFeature) (float32, error) + func (engine *FaceEngine) FaceFeatureExtract(width, height int, format C.MInt32, imgData []byte, faceInfo SingleFaceInfo) (faceFeature FaceFeature, err error) + func (engine *FaceEngine) FaceFeatureExtractEx(imageData ImageData, faceInfo SingleFaceInfo) (feature FaceFeature, err error) + func (engine *FaceEngine) GetAge() (AgeInfo, error) + func (engine *FaceEngine) GetFace3DAngle() (Face3DAngle, error) + func (engine *FaceEngine) GetGender() (GenderInfo, error) + func (engine *FaceEngine) GetLivenessScore() (LivenessInfo, error) + func (engine *FaceEngine) GetLivenessScoreIR() (LivenessInfo, error) + func (engine *FaceEngine) GetVersion() Version + func (engine *FaceEngine) Process(width, height int, format C.MInt32, imgData []byte, ...) error + func (engine *FaceEngine) ProcessEx(imageData ImageData, faceInfo MultiFaceInfo, combinedMask C.MInt32) error + func (engine *FaceEngine) ProcessIR(width, height int, format C.MInt32, imgData []byte, ...) error + func (engine *FaceEngine) SetLivenessParam(threshold LivenessThreshold) error + type FaceFeature struct + Feature []byte + FeatureSize int32 + func ReadFaceFeatureFromBytes(bytes []byte) (feature FaceFeature) + func (feature *FaceFeature) Release() + type GenderInfo struct + GenderArray []int32 + Num int32 + type ImageData struct + Height int + ImageData [4][]uint8 + PixelArrayFormat C.MUInt32 + Width int + WidthStep [4]int + type LivenessInfo struct + IsLive []int32 + Num int32 + type LivenessThreshold struct + ThresholdModelBGR float32 + ThresholdModelIR float32 + type MultiFaceInfo struct + FaceID []int32 + FaceNum int32 + FaceOrient []int32 + FaceRect []Rect + type Rect struct + Bottom int32 + Left int32 + Right int32 + Top int32 + type SingleFaceInfo struct + FaceOrient int32 + FaceRect Rect + func GetSingleFaceInfo(multiFaceInfo MultiFaceInfo) (faceInfo []SingleFaceInfo) + type Version struct + BuildDate string + CopyRight string + Version string Other modules containing this package github.com/iwindy/face-engine/v4