FaceEngineService.java
912 Bytes
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
package com.arcsoft.facedemo.service;
import com.arcsoft.facedemo.base.ImageInfo;
import com.arcsoft.facedemo.dto.FaceUserInfo;
import com.arcsoft.facedemo.dto.ProcessInfo;
import com.arcsoft.face.FaceInfo;
import java.util.List;
import java.util.concurrent.ExecutionException;
public interface FaceEngineService {
void addFaceToCache(Integer groupId, FaceUserInfo userFaceInfo) throws ExecutionException;
List<FaceInfo> detectFaces(ImageInfo imageInfo);
List<ProcessInfo> process(ImageInfo imageInfo);
/**
* 人脸特征
* @param imageInfo
* @return
*/
byte[] extractFaceFeature(ImageInfo imageInfo) throws InterruptedException;
/**
* 人脸比对
* @param groupId
* @param faceFeature
* @return
*/
List<FaceUserInfo> compareFaceFeature(byte[] faceFeature, Integer groupId) throws InterruptedException, ExecutionException;
}