类 TextDetectionModel

    • 构造函数详细信息

      • TextDetectionModel

        protected TextDetectionModel​(long addr)
    • 方法详细信息

      • detect

        public void detect​(Mat frame,
                           java.util.List<MatOfPoint> detections,
                           MatOfFloat confidences)
        执行检测。给定输入 frame,准备网络输入,运行网络推理,后处理网络输出并返回结果检测。每个结果是四边形的 4 个点,顺序如下:- 左下 - 左上 - 右上 - 右下。使用 cv::getPerspectiveTransform 函数来检索没有透视变换的图像区域。注意:如果 DL 模型不支持这种输出,那么结果可能会从 detectTextRectangles() 输出中推导出来。
        参数
        frame - 输入图像
        detections - 带有检测到的四边形的数组(每个结果 4 个点)
        confidences - 带有检测置信度的数组
      • detect

        public void detect​(Mat frame,
                           java.util.List<MatOfPoint> detections)
      • detectTextRectangles

        public void detectTextRectangles​(Mat frame,
                                         MatOfRotatedRect detections,
                                         MatOfFloat confidences)
        执行检测。给定输入 frame,准备网络输入,运行网络推理,后处理网络输出并返回结果检测。每个结果是旋转矩形。注意:在强透视变换的情况下,结果可能不准确。
        参数
        frame - 输入图像
        detections - 带有检测到的 RotationRect 结果的数组
        confidences - 带有检测置信度的数组
      • detectTextRectangles

        public void detectTextRectangles​(Mat frame,
                                         MatOfRotatedRect detections)
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        重写
        finalize 在类 Model
        抛出
        java.lang.Throwable