Table of Contents

Method Recognize

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Recognize(InputArray)

Given the @p input frame, create input blob, run net and return recognition result.

public string Recognize(InputArray frame)

Parameters

frame InputArray

The input image.

Returns

string

The text recognition result.

Recognize(InputArray, IEnumerable<Rect>)

Given the @p input frame, create input blob, run net and return recognition result for each ROI.

public string?[] Recognize(InputArray frame, IEnumerable<Rect> roiRects)

Parameters

frame InputArray

The input image.

roiRects IEnumerable<Rect>

List of text detection regions of interest. ROIs are cropped as the network inputs.

Returns

string[]

A set of text recognition results, one per ROI.