Table of Contents

Class TextDetectionModel

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Base class for text detection networks. This is an abstract base; use TextDetectionModelEAST or TextDetectionModelDB.

public abstract class TextDetectionModel : Model, IDisposable
Inheritance
TextDetectionModel
Implements
Derived
Inherited Members

Constructors

TextDetectionModel()

For derived classes that construct the native object themselves.

protected TextDetectionModel()

Methods

Detect(InputArray, out Point[][], out float[])

Performs detection. Given the input @p frame, prepare network input, run network inference, post-process network output and return result detections. Each result is quadrangle's 4 points in this order: bottom-left, top-left, top-right, bottom-right.

public void Detect(InputArray frame, out Point[][] detections, out float[] confidences)

Parameters

frame InputArray

The input image.

detections Point[][]

array with detections' quadrangles (4 points per result).

confidences float[]

array with detection confidences.

DetectTextRectangles(InputArray, out RotatedRect[], out float[])

Performs detection. Given the input @p frame, prepare network input, run network inference, post-process network output and return result detections. Each result is rotated rectangle.

public void DetectTextRectangles(InputArray frame, out RotatedRect[] detections, out float[] confidences)

Parameters

frame InputArray

The input image.

detections RotatedRect[]

array with detections' RotatedRect results.

confidences float[]

array with detection confidences.