public class MiniVisionLivenessModel extends CommonLivenessModel
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
MiniVisionLivenessModel.ModelStrategy
模型策略
|
config| 构造器和说明 |
|---|
MiniVisionLivenessModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
R<LivenessResult> |
detect(ai.djl.modality.cv.Image 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() |
boolean |
isFromFactory() |
void |
loadModel(LivenessConfig config)
加载模型
|
void |
setFromFactory(boolean fromFactory) |
detect, detect, detectTopFace, detectVideo, detectVideo, getPoolclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetectpublic void loadModel(LivenessConfig config)
LivenessDetModelloadModel 在接口中 LivenessDetModelloadModel 在类中 CommonLivenessModelpublic R<LivenessResult> detect(ai.djl.modality.cv.Image image, DetectionRectangle faceDetectionRectangle)
LivenessDetModeldetect 在接口中 LivenessDetModeldetect 在类中 CommonLivenessModelfaceDetectionRectangle - 人脸检测结果-人脸框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 在类中 CommonLivenessModelExceptionpublic void setFromFactory(boolean fromFactory)
setFromFactory 在接口中 LivenessDetModelsetFromFactory 在类中 CommonLivenessModelpublic boolean isFromFactory()
isFromFactory 在类中 CommonLivenessModelCopyright © 2025. All rights reserved.