public class MiniVisionLivenessModel extends CommonLivenessModel
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
MiniVisionLivenessModel.ModelStrategy
模型策略
|
config| 构造器和说明 |
|---|
MiniVisionLivenessModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
R<LivenessResult> |
detect(BufferedImage image,
DetectionRectangle faceDetectionRectangle)
活体检测(单人脸)
|
org.apache.commons.pool2.impl.GenericObjectPool<ai.djl.inference.Predictor<ai.djl.modality.cv.Image,float[]>> |
getPredictorPool() |
org.apache.commons.pool2.impl.GenericObjectPool<ai.djl.inference.Predictor<ai.djl.modality.cv.Image,float[]>> |
getSePredictorPool() |
void |
loadModel(LivenessConfig config)
加载模型
|
detect, detect, detect, detect, detect, detect, detect, detect, detectBase64, detectBase64, detectBase64, detectTopFace, detectTopFace, detectTopFace, detectTopFaceBase64, detectVideo, detectVideo, getPoolclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetect, detect, detect, detectBase64public void loadModel(LivenessConfig config)
LivenessDetModelloadModel 在接口中 LivenessDetModelloadModel 在类中 CommonLivenessModelpublic R<LivenessResult> detect(BufferedImage image, DetectionRectangle faceDetectionRectangle)
LivenessDetModeldetect 在接口中 LivenessDetModeldetect 在类中 CommonLivenessModelimage - BufferedImagefaceDetectionRectangle - 人脸检测结果-人脸框public org.apache.commons.pool2.impl.GenericObjectPool<ai.djl.inference.Predictor<ai.djl.modality.cv.Image,float[]>> getPredictorPool()
public org.apache.commons.pool2.impl.GenericObjectPool<ai.djl.inference.Predictor<ai.djl.modality.cv.Image,float[]>> getSePredictorPool()
public void close()
throws Exception
close 在接口中 AutoCloseableclose 在类中 CommonLivenessModelExceptionCopyright © 2025. All rights reserved.