You are here: Start » DLInvoke.DL_ReadCharacters

DLInvoke.DL_ReadCharacters

Performs optical character recognition using a pretrained deep learning model.

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

Syntax

C++
C#
 
public static void DL_ReadCharacters
(
	Fil.Image inImage,
	Optional<Fil.Rectangle2D> inRoi,
	Optional<Fil.CoordinateSystem2D> inRoiAlignment,
	Fil.ReadCharactersModelId inModelId,
	int inCharHeight,
	float inWidthScale,
	float inCharSpacing,
	Optional<string> inCharRange,
	float inMinScore,
	Fil.Polarity inPolarization,
	float inContrastThreshold,
	bool inCalculateCandidates,
	bool inRemoveBoundaryCharacters,
	List<Fil.OcrResult> outCharacters,
	List<List<Fil.OcrCandidate>> outCandidates,
	List<Fil.Region> outMasks,
	Optional<Fil.Rectangle2D> outAlignedRoi,
	Diagnostic<Fil.Image> diagInputImage
)

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.ReadCharactersModelIdIdentifier of a Read Characters model. Default value: ().
inCharHeightintAverage height of characters in pixels. Default value: 35.
inWidthScalefloatScales image width by the given factor. Default value: 1.0f.
inCharSpacingfloatDistance between characters denoted as fraction of inCharHeight. Default value: 0.0f.
inCharRangeFtl.Optional<string>Limits the set of wanted characters. Default value: "A-Z,a-z,0-9,\\\\,/,-".
inMinScorefloatSets a minimum required score for a character to be returned. Default value: 0.5f.
inPolarizationFil.PolaritySets a required polarity for a character to be returned. Default value: Any.
inContrastThresholdfloatSets a threshold for a contrast of found characters. Default value: 0.0f.
inCalculateCandidatesboolIf set to true then outCandidates is calculated. Default value: True.
inRemoveBoundaryCharactersboolIf set to true characters that are not entirely contained in the ROI are filtered out. Default value: False.
outCharactersSystem.Collections.Generic.List<Fil.OcrResult>
outCandidatesSystem.Collections.Generic.List<System.Collections.Generic.List<Fil.OcrCandidate>>Array of the most likely characters. The first element is the character from outCharacters.
outMasksSystem.Collections.Generic.List<Fil.Region>Masks of found characters (in Extended model). Contains empty regions in case of using model not supporting masks (in Fast and Balanced model).
outAlignedRoiFtl.Optional<Fil.Rectangle2D>Input roi after transformation.
diagInputImageFil.Diagnostic<Fil.Image>Analyzed area of the input image.

See also