Class TextDetectionModelDB
- Namespace
- OpenCvSharp.Dnn
- Assembly
- OpenCvSharp.dll
This class represents high-level API for text detection DL networks compatible with DB model.
public class TextDetectionModelDB : TextDetectionModel, IDisposable
- Inheritance
-
TextDetectionModelDB
- Implements
- Inherited Members
Constructors
TextDetectionModelDB(Net)
Create model from deep learning network.
public TextDetectionModelDB(Net network)
Parameters
networkNetNet object.
TextDetectionModelDB(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 TextDetectionModelDB(string model, string? config = null)
Parameters
modelstringBinary file contains trained weights.
configstringText file contains network configuration.
Methods
GetBinaryThreshold()
Get the detection binary threshold.
public float GetBinaryThreshold()
Returns
- float
the detection binary threshold
GetMaxCandidates()
Get the max candidates of polygons.
public int GetMaxCandidates()
Returns
- int
the max candidates of polygons
GetPolygonThreshold()
Get the polygon threshold.
public float GetPolygonThreshold()
Returns
- float
the polygon threshold
GetUnclipRatio()
Get the unclip ratio.
public double GetUnclipRatio()
Returns
- double
the unclip ratio
SetBinaryThreshold(float)
Set the detection binary threshold.
public void SetBinaryThreshold(float binaryThreshold)
Parameters
binaryThresholdfloatthe detection binary threshold
SetMaxCandidates(int)
Set the max candidates of polygons.
public void SetMaxCandidates(int maxCandidates)
Parameters
maxCandidatesintthe max candidates of polygons
SetPolygonThreshold(float)
Set the polygon threshold.
public void SetPolygonThreshold(float polygonThreshold)
Parameters
polygonThresholdfloatthe polygon threshold
SetUnclipRatio(double)
Set the unclip ratio.
public void SetUnclipRatio(double unclipRatio)
Parameters
unclipRatiodoublethe unclip ratio