Show / Hide Table of Contents

Class CvText

cv::text functions

Inheritance
System.Object
CvText
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OpenCvSharp.Text
Assembly: OpenCvSharp.dll
Syntax
public static class CvText

Methods

| Improve this Doc View Source

DetectTextSWT(InputArray, Boolean, OutputArray, OutputArray)

Applies the Stroke Width Transform operator followed by filtering of connected components of similar Stroke Widths to return letter candidates. It also chain them by proximity and size, saving the result in chainBBs.

Declaration
public static Rect[] DetectTextSWT(InputArray input, bool darkOnLight, OutputArray draw = null, OutputArray chainBBs = null)
Parameters
Type Name Description
InputArray input

input the input image with 3 channels.

System.Boolean darkOnLight

a boolean value signifying whether the text is darker or lighter than the background, it is observed to reverse the gradient obtained from Scharr operator, and significantly affect the result.

OutputArray draw

an optional Mat of type CV_8UC3 which visualises the detected letters using bounding boxes.

OutputArray chainBBs

an optional parameter which chains the letter candidates according to heuristics in the paper and returns all possible regions where text is likely to occur.

Returns
Type Description
OpenCvSharp.Rect[]

a vector of resulting bounding boxes where probability of finding text is high

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX