pluginface.js 737 Bytes
Newer Older
李晓兵's avatar
李晓兵 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
var exec = require('cordova/exec');
//人脸检测
exports.faceDetect = function(arg0, success, error) {
    exec(success, error, "FacePlugin", "faceDetect", [arg0]);
};
//获取本地图片base64位字符串
exports.getLocalImage = function(arg0, success, error) {
    exec(success, error, "FacePlugin", "getLocalImage", [arg0]);
};
//人脸登录
exports.faceLogin = function(arg0, success, error) {
    exec(success, error, "FacePlugin", "faceLogin", [arg0]);
};
//人脸比较
exports.faceCompare = function(arg0, success, error) {
    exec(success, error, "FacePlugin", "faceCompare", [arg0]);
};
//人脸搜索
exports.faceSelect = function(arg0, success, error) {
    exec(success, error, "FacePlugin", "faceSelect", [arg0]);
};