public class MtfAndroidArmBridge extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static MtfAndroidConfigProvider |
CONFIG
应用层提供的
MtfAndroidConfigProvider接口实例,未提供则初始化为DefaultMtfAndroidConfig实例 |
static net.gdface.license.LicenseManager |
LICENSE_MANAGER
授权管理器接口实例
|
static java.lang.String |
SDK_VERSION |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
detect(byte[] BGR,
int width,
int height,
int detectMod,
double[] rect)
对输入图像进行人脸检测,检测结果由rect返回,
检测到人脸返回>0的人脸个数,
返回的是21个元素的脸部信息 可配合FDGetDetectInfo拿到人脸角度 人脸数量<=3
|
int |
detectMaxFace(byte[] BGR,
int width,
int height,
int detectMod,
double[] rect)
对输入图像进行人脸检测返回最大人脸,检测结果由rect返回,
|
int |
facePosInterrelate(int faceNums,
double rectRate,
double[] faceRect,
double[] faceRectInfo) |
static java.lang.String |
FDgetVersion() |
double[] |
feaExtract(byte[] BGR,
int width,
int height,
double[] rect)
已过时。
replaced by
feaExtractByte(byte[], int, int, double[]) |
byte[] |
feaExtractByte(byte[] BGR,
int width,
int height,
double[] rect) |
static java.lang.String |
FFgetVersion() |
static double |
FFSimilarity(double[] feaA,
double[] feaB)
已过时。
replaced by
FFSimilarityByte(byte[], byte[]) |
static double |
FFSimilarityByte(byte[] feaA,
byte[] feaB)
人脸相似度比对函数
对人脸特征feaA和feaB进行相似度比对,返回相似度结果 |
static int |
FSGetDevicesSerial(byte[] encryptionSerial,
byte[] licenseKey)
获取设备加密信息
|
int |
getDetectInfo(byte[] BGR,
int width,
int height,
double[] rect,
double[] rectinfo)
已过时。
人脸检测原始数据中已经包含了人脸角度,不再需要此函数
|
boolean |
liveProcess(byte[] BGR,
int width,
int height,
double[] rect) |
int |
setFacePosStatus(int facePos,
int flag) |
public static final MtfAndroidConfigProvider CONFIG
MtfAndroidConfigProvider接口实例,未提供则初始化为DefaultMtfAndroidConfig实例public static final net.gdface.license.LicenseManager LICENSE_MANAGER
public static final java.lang.String SDK_VERSION
public int detect(byte[] BGR, int width, int height, int detectMod, double[] rect)
BGR - 待检测图像BGR格式width - 图像宽度height - 图像高度detectMod - 0:用于检测图片,1:用于视频的循环检测rect - 用于返回人脸位置及关键点信息SdkStatusFDDetect(long, byte[], int, int, int, double[])public int detectMaxFace(byte[] BGR, int width, int height, int detectMod, double[] rect)
BGR - 待检测图像BGR格式width - 图像宽度height - 图像高度detectMod - 0:用于检测图片,1:用于视频的循环检测rect - 用于返回人脸位置及关键点信息SdkStatusFDDetectMaxFace(long, byte[], int, int, int, double[])public int getDetectInfo(byte[] BGR, int width, int height, double[] rect, double[] rectinfo)
public double[] feaExtract(byte[] BGR, int width, int height, double[] rect)
feaExtractByte(byte[], int, int, double[])BGR - width - height - rect - public byte[] feaExtractByte(byte[] BGR, int width, int height, double[] rect)
public int facePosInterrelate(int faceNums, double rectRate, double[] faceRect, double[] faceRectInfo)
public int setFacePosStatus(int facePos, int flag)
public boolean liveProcess(byte[] BGR, int width, int height, double[] rect)
public static int FSGetDevicesSerial(byte[] encryptionSerial, byte[] licenseKey)
encryptionSerial - [out]获取的设备加密信息licenseKey - 授权关键字public static java.lang.String FDgetVersion()
public static double FFSimilarity(double[] feaA, double[] feaB)
FFSimilarityByte(byte[], byte[])feaA - 128 doublefeaB - 128 doublepublic static double FFSimilarityByte(byte[] feaA, byte[] feaB)
feaA - 1024 bytesfeaB - 1024 bytespublic static java.lang.String FFgetVersion()
Copyright © 2019. All Rights Reserved.