StrokeWidthTransform
Description
Find text on image, using stroke width transform. Paper.
Params
tSobel | Tensor | The output from SobelOperator |
tCanny | Tensor | The output from CannyEdges |
min? | number | Minimum stroke width |
max? | number | Maximum stroke width |
steps? | number | How much pixels count between min and max to determine |
retrunCoords? | boolean | Pass coordinates as output |
invert? | boolean | Find 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);