类 TextDetectorCNN
- java.lang.Object
-
- org.opencv.text.TextDetector
-
- org.opencv.text.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中找到。
-
-
字段摘要
-
从类继承的字段 org.opencv.text.TextDetector
nativeObj
-
-
构造函数摘要
构造函数 修饰符 构造函数 描述 保护TextDetectorCNN(long addr)
-
方法摘要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 描述 static TextDetectorCNN__fromPtr__(long addr)static TextDetectorCNNcreate(java.lang.String modelArchFilename, java.lang.String modelWeightsFilename)voiddetect(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)提供快速简单的接口来检测图像内的文本的方法protected voidfinalize()-
从类继承的方法 org.opencv.text.TextDetector
getNativeObjAddr
-
-
-
-
方法详细信息
-
__fromPtr__
public static TextDetectorCNN __fromPtr__(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
-
-