FaceEngineService.java
814 Bytes
package com.itboyst.facedemo.service;
import com.arcsoft.face.toolkit.ImageInfo;
import com.itboyst.facedemo.dto.FaceUserInfo;
import com.itboyst.facedemo.dto.ProcessInfo;
import com.arcsoft.face.FaceInfo;
import java.util.List;
import java.util.concurrent.ExecutionException;
public interface FaceEngineService {
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;
}