Class TextDetectionModelEAST
- Namespace
- OpenCvSharp.Dnn
- Assembly
- OpenCvSharp.dll
This class represents high-level API for text detection DL networks compatible with EAST model.
public class TextDetectionModelEAST : TextDetectionModel, IDisposable
- Inheritance
-
TextDetectionModelEAST
- Implements
- Inherited Members
Constructors
TextDetectionModelEAST(Net)
Create model from deep learning network.
public TextDetectionModelEAST(Net network)
Parameters
networkNetNet object.
TextDetectionModelEAST(string, string?)
Create text detection model from network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.
public TextDetectionModelEAST(string model, string? config = null)
Parameters
modelstringBinary file contains trained weights.
configstringText file contains network configuration.
Methods
GetConfidenceThreshold()
Get the detection confidence threshold.
public float GetConfidenceThreshold()
Returns
- float
the detection confidence threshold
GetNMSThreshold()
Get the detection NMS filter threshold.
public float GetNMSThreshold()
Returns
- float
the detection NMS filter threshold
SetConfidenceThreshold(float)
Set the detection confidence threshold.
public void SetConfidenceThreshold(float confThreshold)
Parameters
confThresholdfloatA threshold used to filter boxes by confidences.
SetNMSThreshold(float)
Set the detection NMS filter threshold.
public void SetNMSThreshold(float nmsThreshold)
Parameters
nmsThresholdfloatA threshold used in non maximum suppression.