whychdw
2020-04-27 80c9b1ec4ab5caa4e477fe95abcb70b1c9cbe50b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
    }
}