Table of Contents

Class TextDetectionModel

Namespace
Emgu.CV.Dnn
Assembly
Emgu.CV.dll

Base class for text detection networks.

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

Constructors

TextDetectionModel()

protected TextDetectionModel()

Fields

_textDetectionModel

The pointer to the TextDetectionModel object

protected nint _textDetectionModel

Field Value

nint

Methods

Detect(IInputArray, VectorOfVectorOfPoint, VectorOfFloat)

Given the input frame, prepare network input, run network inference, post-process network output and return result detections.

public void Detect(IInputArray frame, VectorOfVectorOfPoint detections, VectorOfFloat confidences)

Parameters

frame IInputArray

The input image

detections VectorOfVectorOfPoint

Array with detections' quadrangles (4 points per result) in this order: bottom-left, top-left, top-right, bottom-right

confidences VectorOfFloat

Array with detection confidences

DetectTextRectangles(IInputArray, VectorOfRotatedRect, VectorOfFloat)

Given the input frame, prepare network input, run network inference, post-process network output and return result detections.

public void DetectTextRectangles(IInputArray frame, VectorOfRotatedRect detections, VectorOfFloat confidences)

Parameters

frame IInputArray

The input image

detections VectorOfRotatedRect

Array with detections' RotationRect results

confidences VectorOfFloat

Array with detection confidences

DisposeObject()

Release the memory associated with this text detection model.

protected override void DisposeObject()