API
Class

com.justep.cordova.plugin.facedetect (com.justep.cordova.plugin.facedetect)

使用范围:Native

Contents

class com.justep.cordova.plugin.facedetect (com.justep.cordova.plugin.facedetect)

百度人脸识别插件

Constructor Top

  facedetect ()

Static Methods Top

void register (object orderInfo, Function onSuccess, Function onError)
void verify (object orderInfo, Function onSuccess, Function onError)

Constructor details Top

public facedetect ()

百度人脸识别插件

Static Methods Detail Top

static public void register (object orderInfo, Function onSuccess, Function onError)

注册人脸

Parameters

object orderInfo

注册人脸
参数格式:

{ "name":String - 姓名 }

Function onSuccess

执行成功回调函数

Function onError

执行失败回调函数

Return Value

void

static public void verify (object orderInfo, Function onSuccess, Function onError)

人脸识别

Parameters

object orderInfo

人脸识别
参数格式:

{ "name":String - 姓名 }

Function onSuccess

执行成功回调函数

Function onError

执行失败回调函数

Return Value

void