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 = null;
|
result = getGson().toJson(str);
|
return SUCCESS;
|
}
|
|
|
|
public String getResult() {
|
return result;
|
}
|
|
|
public void setJson(String json) {
|
this.json = json;
|
}
|
}
|