Link Search Menu Expand Document

HelpersAutodetectFieldExpression Method (Stream, Int32, RectangleF, String, String, String, String)

Try to detect common expression to extract field content.

Namespace:ByteScout.DocumentParser
Assembly: ByteScout.DocumentParser (in ByteScout.DocumentParser.dll) Version: 6.2.0.571-master
Syntax
public static string[][] AutodetectFieldExpression(
	Stream inputStream,
	int pageIndex,
	RectangleF fieldRectangle,
	string templateCulture = null,
	string ocrLanguageDataFolder = null,
	string ocrLanguage = null,
	string documentPassword = null
)

Parameters

inputStream
Type: System.IOStream
Stream the contains the test document (PDF or image).
pageIndex
Type: SystemInt32
Document page index.
fieldRectangle
Type: System.DrawingRectangleF
Field rectangle.
templateCulture (Optional)
Type: SystemString
Template culture. Default is "en-US".
ocrLanguageDataFolder (Optional)
Type: SystemString
Folder that contains OCR language data files.
ocrLanguage (Optional)
Type: SystemString
OCR language.
documentPassword (Optional)
Type: SystemString
PDF document password.

Return Value

Type: String
Array of detected template objects.
See Also

Reference


Copyright © 2016 - 2021 ByteScout