Table of Contents

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

network Net

Net 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

model string

Binary file contains trained weights.

config string

Text 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

binaryThreshold float

the detection binary threshold

SetMaxCandidates(int)

Set the max candidates of polygons.

public void SetMaxCandidates(int maxCandidates)

Parameters

maxCandidates int

the max candidates of polygons

SetPolygonThreshold(float)

Set the polygon threshold.

public void SetPolygonThreshold(float polygonThreshold)

Parameters

polygonThreshold float

the polygon threshold

SetUnclipRatio(double)

Set the unclip ratio.

public void SetUnclipRatio(double unclipRatio)

Parameters

unclipRatio double

the unclip ratio