package com.fgkj.actions;
|
|
import com.fgkj.services.AuthService;
|
import com.fgkj.services.FaceDetect;
|
|
|
public class FaceIdentify extends ActionUtil{
|
private String json;
|
private String result;
|
|
/**
|
* 获取refresh_token 值
|
* @return
|
*/
|
public String Auth(){
|
String json = AuthService.getAuth();
|
result = getGson().toJson(json);
|
return SUCCESS;
|
}
|
|
/**
|
* 检测人脸
|
* @return
|
*/
|
public String faceDetect(){
|
String str = FaceDetect.faceDetect(json);
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
/**
|
* 人脸搜索
|
* @return
|
*/
|
public String faceSearch(){
|
String str = FaceDetect.faceSearch(json);
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
/**
|
* 添加人脸
|
* @return
|
*/
|
public String faceAdd(){
|
String str = FaceDetect.faceAdd(json);
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
/**
|
* 删除人脸
|
* @return
|
*/
|
public String faceDelete(){
|
String str = FaceDetect.faceDelete(json);
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
/**
|
* 人脸更新
|
* @return
|
*/
|
public String faceUpdate(){
|
String str = FaceDetect.faceUpdate(json);
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
/**
|
* 获取用户人脸列表
|
* @return
|
*/
|
public String faceGetList(){
|
String str = FaceDetect.faceGetList(json);
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
/**
|
* 获取用户列表
|
* @return
|
*/
|
public String groupGetusers(){
|
String str = FaceDetect.groupGetusers(json);
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
/**
|
* 获取人脸复制{用户从一个班组复制到另一个班组}
|
* @return
|
*/
|
public String faceCopy(){
|
String str = FaceDetect.faceCopy(json);
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
public String getResult() {
|
return result;
|
}
|
|
|
public void setJson(String json) {
|
this.json = json;
|
}
|
}
|