public interface LivenessDetModel
| 限定符和类型 | 方法和说明 |
|---|---|
default DetectionResponse |
detect(BufferedImage image)
活体检测(多人脸)
|
default LivenessStatus |
detect(BufferedImage image,
DetectionRectangle faceDetectionRectangle,
List<Point> keyPoints)
活体检测(单人脸)
|
default List<LivenessStatus> |
detect(BufferedImage image,
DetectionResponse faceDetectionResponse)
活体检测(多人脸)
|
default DetectionResponse |
detect(byte[] imageData)
活体检测(多人脸)
|
default LivenessStatus |
detect(byte[] imageData,
DetectionRectangle faceDetectionRectangle,
List<Point> keyPoints)
活体检测(单人脸)
|
default List<LivenessStatus> |
detect(byte[] imageData,
DetectionResponse faceDetectionResponse)
活体检测(多人脸)
|
default DetectionResponse |
detect(String imagePath)
活体检测(多人脸)
|
default LivenessStatus |
detect(String imagePath,
DetectionRectangle faceDetectionRectangle,
List<Point> keyPoints)
活体检测(单人脸)
|
default List<LivenessStatus> |
detect(String imagePath,
DetectionResponse faceDetectionResponse)
活体检测(多人脸)
|
default LivenessStatus |
detectTopFace(BufferedImage image)
活体检测(分数最高人脸)
|
default LivenessStatus |
detectTopFace(byte[] imageData)
活体检测(分数最高人脸)
|
default LivenessStatus |
detectTopFace(String imagePath)
活体检测(分数最高人脸)
|
default LivenessStatus |
detectVideo(InputStream videoInputStream)
视频活体检测
|
default LivenessStatus |
detectVideo(String videoPath)
视频活体检测
|
default LivenessStatus |
detectVideoByFrame(BufferedImage frameImageData)
视频活体检测(逐帧检测)
|
default LivenessStatus |
detectVideoByFrame(BufferedImage frameImage,
DetectionRectangle faceDetectionRectangle,
List<Point> keyPoints)
视频活体检测(逐帧检测)
|
default LivenessStatus |
detectVideoByFrame(byte[] frameImageData)
视频活体检测(逐帧检测)
|
default LivenessStatus |
detectVideoByFrame(byte[] frameData,
DetectionRectangle faceDetectionRectangle,
List<Point> keyPoints)
视频活体检测(逐帧检测)
|
void |
loadModel(LivenessConfig config)
加载模型
|
void loadModel(LivenessConfig config)
config - default DetectionResponse detect(String imagePath)
imagePath - 图片路径default DetectionResponse detect(BufferedImage image)
image - BufferedImagedefault DetectionResponse detect(byte[] imageData)
imageData - 图片字节流default List<LivenessStatus> detect(String imagePath, DetectionResponse faceDetectionResponse)
imagePath - 图片路径faceDetectionResponse - 人脸检测结果default LivenessStatus detect(String imagePath, DetectionRectangle faceDetectionRectangle, List<Point> keyPoints)
imagePath - 图片路径faceDetectionRectangle - 人脸检测结果-人脸框default List<LivenessStatus> detect(byte[] imageData, DetectionResponse faceDetectionResponse)
imageData - 图片数据faceDetectionResponse - 人脸检测结果default LivenessStatus detect(byte[] imageData, DetectionRectangle faceDetectionRectangle, List<Point> keyPoints)
imageData - faceDetectionRectangle - 人脸检测结果-人脸框default List<LivenessStatus> detect(BufferedImage image, DetectionResponse faceDetectionResponse)
image - BufferedImagefaceDetectionResponse - 人脸检测结果default LivenessStatus detect(BufferedImage image, DetectionRectangle faceDetectionRectangle, List<Point> keyPoints)
image - BufferedImagefaceDetectionRectangle - 人脸检测结果-人脸框default LivenessStatus detectTopFace(BufferedImage image)
image - default LivenessStatus detectTopFace(String imagePath)
imagePath - default LivenessStatus detectTopFace(byte[] imageData)
imageData - default LivenessStatus detectVideoByFrame(BufferedImage frameImage, DetectionRectangle faceDetectionRectangle, List<Point> keyPoints)
frameImage - faceDetectionRectangle - default LivenessStatus detectVideoByFrame(byte[] frameData, DetectionRectangle faceDetectionRectangle, List<Point> keyPoints)
frameData - faceDetectionRectangle - default LivenessStatus detectVideoByFrame(byte[] frameImageData)
frameImageData - default LivenessStatus detectVideoByFrame(BufferedImage frameImageData)
frameImageData - default LivenessStatus detectVideo(InputStream videoInputStream)
videoInputStream - default LivenessStatus detectVideo(String videoPath)
videoPath - Copyright © 2025. All rights reserved.