类 TextDetectionModel_EAST
- java.lang.Object
-
- org.opencv.dnn.Model
-
- org.opencv.dnn.TextDetectionModel
-
- org.opencv.dnn.TextDetectionModel_EAST
-
public class TextDetectionModel_EAST extends TextDetectionModel
此类表示与 EAST 模型兼容的文本检测 DL 网络的高级 API。可配置参数: - (float) confThreshold - 用于按置信度过滤框,默认值:0.5f - (float) nmsThreshold - 用于非极大值抑制,默认值:0.0f
-
-
构造函数摘要
构造函数 修饰符 构造函数 描述 保护TextDetectionModel_EAST(long addr)TextDetectionModel_EAST(java.lang.String model)从支持的格式之一表示的网络创建文本检测模型。TextDetectionModel_EAST(java.lang.String model, java.lang.String config)从支持的格式之一表示的网络创建文本检测模型。TextDetectionModel_EAST(Net network)从深度学习网络创建文本检测算法
-
方法摘要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 描述 static TextDetectionModel_EAST__fromPtr__(long addr)protected voidfinalize()floatgetConfidenceThreshold()获取检测置信度阈值floatgetNMSThreshold()获取检测置信度阈值TextDetectionModel_EASTsetConfidenceThreshold(float confThreshold)设置检测置信度阈值TextDetectionModel_EASTsetNMSThreshold(float nmsThreshold)设置检测 NMS 过滤阈值-
从类 org.opencv.dnn 继承的方法。TextDetectionModel
detect, detect, detectTextRectangles, detectTextRectangles
-
从类 org.opencv.dnn 继承的方法。Model
enableWinograd, getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setOutputNames, setPreferableBackend, setPreferableTarget
-
-
-
-
构造函数详细信息
-
TextDetectionModel_EAST
protected TextDetectionModel_EAST(long addr)
-
TextDetectionModel_EAST
public TextDetectionModel_EAST(Net network)
从深度学习网络创建文本检测算法- 参数
network- Net 对象
-
TextDetectionModel_EAST
public TextDetectionModel_EAST(java.lang.String model, java.lang.String config)从支持的格式之一表示的网络创建文本检测模型。model和config参数的顺序无关紧要。- 参数
model- 包含训练权重的二进制文件。config- 包含网络配置的文本文件。
-
TextDetectionModel_EAST
public TextDetectionModel_EAST(java.lang.String model)
从支持的格式之一表示的网络创建文本检测模型。model和config参数的顺序无关紧要。- 参数
model- 包含训练权重的二进制文件。
-
-
方法详细信息
-
__fromPtr__
public static TextDetectionModel_EAST __fromPtr__(long addr)
-
setConfidenceThreshold
public TextDetectionModel_EAST setConfidenceThreshold(float confThreshold)
设置检测置信度阈值- 参数
confThreshold- 用于按置信度过滤框的阈值- 返回
- 自动生成
-
getConfidenceThreshold
public float getConfidenceThreshold()
获取检测置信度阈值- 返回
- 自动生成
-
setNMSThreshold
public TextDetectionModel_EAST setNMSThreshold(float nmsThreshold)
设置检测 NMS 过滤阈值- 参数
nmsThreshold- 用于非极大值抑制的阈值- 返回
- 自动生成
-
getNMSThreshold
public float getNMSThreshold()
获取检测置信度阈值- 返回
- 自动生成
-
finalize
protected void finalize() throws java.lang.Throwable- 重写
finalize在类中TextDetectionModel- 抛出
java.lang.Throwable
-
-