You need to enable JavaScript to run this app.StrokeWidthTransform - GammaCV
GammaCV Logo
DocsExamplesGitHub

StrokeWidthTransform

Description

Find text on image, using stroke width transform. Paper.

Params
tSobelTensorThe output from SobelOperator
tCannyTensorThe output from CannyEdges
min?numberMinimum stroke width
max?numberMaximum stroke width
steps?numberHow much pixels count between min and max to determine
retrunCoords?booleanPass coordinates as output
invert?booleanFind black text on white backgound when true,
and white on black when false.
Example
// this line reduces an input image in 3x
 gm.swt(inputImage, 3, 0);