类 TextDetectorCNN


  • public class TextDetectorCNN
    extends TextDetector
    TextDetectorCNN 类提供了文本边界框检测的功能。此类表示查找给定输入图像中文本单词的边界框。此类使用 OpenCV dnn 模块加载 CITE: LiaoSBWL17 中描述的预训练模型。带有修改后的 SSD Caffe 版本的原始仓库:https://github.com/MhLiao/TextBoxes。 模型可以从 [DropBox](https://www.dropbox.com/s/g8pjzv2de9gty8g/TextBoxes_icdar13.caffemodel?dl=0) 下载。带有模型描述的修改后的 .prototxt 文件可以在 opencv_contrib/modules/text/samples/textbox.prototxt 中找到。
    • 构造函数详细信息

      • TextDetectorCNN

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

      • detect

        public void detect​(Mat inputImage,
                           MatOfRect Bbox,
                           MatOfFloat confidence)
        从类复制的描述: TextDetector
        提供快速简单的接口来检测图像内的文本的方法
        重写
        detect 在类中 TextDetector
        参数
        inputImage - 期望为任何大小的 CV_U8C3 的图像
        Bbox - 一个 Rect 向量,用于存储检测到的单词边界框
        confidence - 一个浮点向量,将使用分类器对选定边界框的置信度进行更新
      • create

        public static TextDetectorCNN create​(java.lang.String modelArchFilename,
                                             java.lang.String modelWeightsFilename)
      • finalize

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