Table of Contents

Class TextDetectorCNN

Namespace
Emgu.CV.Text
Assembly
Emgu.CV.dll

This class provides the functionality of text bounding box detection. This class find bounding boxes of text words given an input image.

public class TextDetectorCNN : SharedPtrObject, IDisposable
Inheritance
TextDetectorCNN
Implements
Inherited Members

Constructors

TextDetectorCNN(string, string, Size[])

Creates an instance of the TextDetectorCNN class using the provided parameters.

public TextDetectorCNN(string modelArchFilename, string modelWeightsFilename, Size[] detectionSizes = null)

Parameters

modelArchFilename string

The relative or absolute path to the prototxt file describing the classifiers architecture.

modelWeightsFilename string

The relative or absolute path to the file containing the pretrained weights of the model in caffe-binary form.

detectionSizes Size[]

A list of sizes for multi-scale detection. The values[(300,300),(700,500),(700,300),(700,700),(1600,1600)] are recommended to achieve the best quality.

Methods

Detect(IInputArray)

Find bounding boxes of text words given an input image.

public TextDetectorCNN.TextRegion[] Detect(IInputArray inputImage)

Parameters

inputImage IInputArray

An image expected to be a CV_U8C3 of any size

Returns

TextRegion[]

The text regions found.

DisposeObject()

Release all the unmanaged memory associate with this TextDetector

protected override void DisposeObject()