public interface StreamDetectionListener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onObjectDetected(List<DetectionInfo> detectionInfoList,
ai.djl.modality.cv.Image image)
当检测到目标时回调
|
void |
onStreamDisconnected()
当视频流断开连接时回调
|
void |
onStreamEnded()
当视频文件读取完毕时回调
|
void onObjectDetected(List<DetectionInfo> detectionInfoList, ai.djl.modality.cv.Image image)
detectionInfoList - 目标信息列表image - 检测到的图片void onStreamEnded()
void onStreamDisconnected()
Copyright © 2025. All rights reserved.