public class CommonZeroDetModel extends Object implements ZeroDetModel
| 构造器和说明 |
|---|
CommonZeroDetModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
R<DetectionResponse> |
detect(ai.djl.modality.cv.Image image,
String[] candidates)
零样本目标检测
|
R<DetectionResponse> |
detectAndDraw(ai.djl.modality.cv.Image image,
String[] candidates) |
R<DetectionResponse> |
detectAndDraw(String[] candidates,
String imagePath,
String outputPath) |
ai.djl.modality.cv.output.DetectedObjects |
detectCore(ai.djl.modality.cv.VisionLanguageInput input)
模型核心推理方法
|
void |
loadModel(ZeroDetConfig config)
加载模型
|
public void loadModel(ZeroDetConfig config)
ZeroDetModelloadModel 在接口中 ZeroDetModelpublic R<DetectionResponse> detect(ai.djl.modality.cv.Image image, String[] candidates)
ZeroDetModeldetect 在接口中 ZeroDetModelpublic ai.djl.modality.cv.output.DetectedObjects detectCore(ai.djl.modality.cv.VisionLanguageInput input)
detectCore 在接口中 ZeroDetModelinput - public R<DetectionResponse> detectAndDraw(ai.djl.modality.cv.Image image, String[] candidates)
detectAndDraw 在接口中 ZeroDetModelpublic R<DetectionResponse> detectAndDraw(String[] candidates, String imagePath, String outputPath)
detectAndDraw 在接口中 ZeroDetModelpublic void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2025. All rights reserved.