类 DetectorModel

    • 构造器详细资料

      • DetectorModel

        public DetectorModel()
    • 方法详细资料

      • detectAndDraw

        public void detectAndDraw​(String imagePath,
                                  String outputPath)
        目标检测-将检测结果绘制到原图
        参数:
        imagePath -
        outputPath -
      • detect

        public DetectionResponse detect​(byte[] imageData)
        目标检测
        参数:
        imageData -
        返回:
      • detectAndDraw

        public BufferedImage detectAndDraw​(BufferedImage sourceImage)
        目标检测-将检测结果绘制到原图
        参数:
        sourceImage -
        返回:
      • close

        public void close()
        显式释放资源(必须调用!)
        指定者:
        close 在接口中 AutoCloseable