Versions in this module Expand all Collapse all v4 v4.1.16 Nov 2, 2023 v4.1.15 Nov 1, 2023 Changes in this version + const ColorFormatBGR24 + const ColorFormatI420 + const ColorFormatNV12 + const ColorFormatNV21 + const ColorFormatYUYV + const DetectModeImage + const DetectModeVideo + const EnableAge + const EnableFaceDetect + const EnableFaceRecognition + const EnableGender + const EnableIRLiveness + const EnableImageQuality + const EnableLiveness + const EnableMaskDetect + const EnableNone + const EnableUpdateFaceData + const OrientPriority0 + const OrientPriority180 + const OrientPriority270 + const OrientPriority90 + const OrientPriorityAllOut + const RecognitionPhoto + const RegisterPhoto + func GetActiveDeviceInfo() ([]byte, error) + func OfflineActivation(filePath string) (err error) + func OnlineActivation(appID, sdkKey, activeKey string) (err error) + type ActiveFileInfo struct + ActiveKey string + 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 Face3DAngleInfo struct + Pitch []float32 + Roll []float32 + Yaw []float32 + type FaceEngine struct + func NewFaceEngine(detectMode C.ASF_DetectMode, orientPriority C.ASF_OrientPriority, ...) (*FaceEngine, error) + func (engine *FaceEngine) Destroy() (err error) + func (engine *FaceEngine) DetectFaces(width int, 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) (confidenceLevel float32, err error) + func (engine *FaceEngine) FaceFeatureExtract(width int, height int, format C.MInt32, imgData []byte, ...) (faceFeature FaceFeature, err error) + func (engine *FaceEngine) FaceFeatureExtractEx(imageData ImageData, faceInfo SingleFaceInfo, registerOrNot int, mask int) (feature FaceFeature, err error) + func (engine *FaceEngine) GetAge() (AgeInfo, error) + func (engine *FaceEngine) GetGender() (GenderInfo, error) + func (engine *FaceEngine) GetLivenessScore() (LivenessInfo, error) + func (engine *FaceEngine) GetLivenessScoreIR() (LivenessInfo, error) + func (engine *FaceEngine) GetMask() (maskInfo MaskInfo, err error) + func (engine *FaceEngine) GetVersion() Version + func (engine *FaceEngine) ImageQualityDetect(width int, height int, format C.MInt32, imgData []byte, ...) (confidenceLevel float32, err error) + func (engine *FaceEngine) Process(width int, height int, format C.MInt32, imgData []byte, ...) error + func (engine *FaceEngine) ProcessEx(imageData ImageData, faceInfo MultiFaceInfo, combinedMask C.MInt32) error + func (engine *FaceEngine) ProcessExIR(imageData ImageData, faceInfo MultiFaceInfo, combinedMask C.MInt32) (err error) + func (engine *FaceEngine) ProcessIR(width int, height int, format C.MInt32, imgData []byte, ...) (err error) + func (engine *FaceEngine) SetLivenessParam(threshold LivenessThreshold) error + func (engine *FaceEngine) UpdateFaceData(width int, height int, format C.MInt32, imgData []byte, faceInfo MultiFaceInfo) (err error) + type FaceFeature struct + Feature []byte + FeatureSize int32 + func ReadFaceFeatureFromBytes(bytes []byte) (feature FaceFeature) + func (feature *FaceFeature) Release() + type FaceLandMark struct + PosX float32 + PosY float32 + type GenderInfo struct + GenderArray []int32 + Num int32 + type ImageData struct + Height int + ImageData [4][]uint8 + PixelArrayFormat C.MUInt32 + Width int + WidthStep [4]int + type LandMarkInfo struct + Num int32 + Point []FaceLandMark + type LivenessInfo struct + IsLive []int32 + Num int32 + type LivenessThreshold struct + ThresholdModelBGR float32 + ThresholdModelIR float32 + type MaskInfo struct + MaskArray []int32 + Num int32 + type MultiFaceInfo struct + Face3DAngle Face3DAngleInfo + FaceDataInfoList []C.ASF_FaceDataInfo + FaceID []int32 + FaceNum int32 + FaceOrient []int32 + FaceRect []Rect + ForeheadRect []Rect + WearGlasses float32 + type Rect struct + Bottom int32 + Left int32 + Right int32 + Top int32 + type SingleFaceInfo struct + DataInfo C.ASF_FaceDataInfo + 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/v3