public class DetectorUtils extends Object
| 构造器和说明 |
|---|
DetectorUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static DetectionResponse |
convertToDetectionResponse(ai.djl.modality.cv.output.DetectedObjects detection,
ai.djl.modality.cv.Image img)
转换为FaceDetectedResult
|
static void |
drawRectWithText(BufferedImage image,
List<YoloRotatedBox> rotatedBoxeList)
绘制旋转框及文本(BufferedImage)
|
static void |
drawRectWithText(ai.djl.modality.cv.Image image,
List<YoloRotatedBox> rotatedBoxeList)
绘制旋转框及文本
|
static void |
drawRectWithText(org.opencv.core.Mat srcMat,
List<YoloRotatedBox> rotatedBoxeList)
绘制旋转框及文本(opencv)
|
static DetectionResponse |
obbToToDetectionResponse(ObbResult obbResult) |
public static DetectionResponse convertToDetectionResponse(ai.djl.modality.cv.output.DetectedObjects detection, ai.djl.modality.cv.Image img)
detection - img - public static DetectionResponse obbToToDetectionResponse(ObbResult obbResult)
public static void drawRectWithText(org.opencv.core.Mat srcMat,
List<YoloRotatedBox> rotatedBoxeList)
srcMat - rotatedBoxeList - public static void drawRectWithText(BufferedImage image, List<YoloRotatedBox> rotatedBoxeList)
image - rotatedBoxeList - public static void drawRectWithText(ai.djl.modality.cv.Image image,
List<YoloRotatedBox> rotatedBoxeList)
image - rotatedBoxeList - Copyright © 2025. All rights reserved.