You are here: Start » DLInvoke.DL_LocateText

DLInvoke.DL_LocateText

Performs text detection using a pre-trained deep learning model.

Namespace:Fil
Assembly:FilNet.DL.Cpu.dll

Syntax

C++
C#
 
public static void DL_LocateText
(
	Fil.Image inImage,
	Optional<Fil.Rectangle2D> inRoi,
	Optional<Fil.CoordinateSystem2D> inRoiAlignment,
	Fil.LocateTextModelId inModelId,
	int inCharHeight,
	float inWidthScale,
	int inOpenRadius,
	int inMinTextArea,
	int inMaxTextArea,
	int inMargin,
	Fil.Heatmap outHeatmap,
	List<Fil.Region> outTextRegions,
	List<Fil.LocateTextResult> outResults,
	Optional<Fil.Rectangle2D> outAlignedRoi
)

Parameters

Name Type Range Default Description
inImageFil.ImageInput image.
inRoiFtl.Optional<Fil.Rectangle2D>Limits the area where recognized characters are located. Default value: ftl::NIL.
inRoiAlignmentFtl.Optional<Fil.CoordinateSystem2D>
inModelIdFil.LocateTextModelIdIdentifier of a Read Characters model.
inCharHeightintAverage height of characters in pixels. Default value: 35.
inWidthScalefloatScales image width by the given factor. Default value: 1.0f.
inOpenRadiusintAdditional filtering of smaller blobs before merging characters into groups. Default value: 0.
inMinTextAreaintMinimal character area to be considered as a candidate for a text part. Default value: 50.
inMaxTextAreaintMaximal character area to be considered as a candidate for a text part. Default value: 500000.
inMarginintAdditional padding around the found character to be added before merging characters into text. Default value: 4.
outHeatmapFil.HeatmapRaw heatmap returned by network. It may be useful for more complex analysis.
outTextRegionsSystem.Collections.Generic.List<Fil.Region>Extracted characters regions after filtering.
outResultsSystem.Collections.Generic.List<Fil.LocateTextResult>
outAlignedRoiFtl.Optional<Fil.Rectangle2D>

See also