Click or drag to resize
AspriseOCRRecognize Method (String, Int32, Int32, Int32, Int32, Int32, String, String, Object)

» Asprise OCR Home · Developer's Guide

Performs OCR on the given input files.

Namespace: asprise_ocr_api
Assembly: asprise-ocr-api (in asprise-ocr-api.dll) Version: 15.3.1.0 (15.3.1.0)
Syntax
public string Recognize(
	string files,
	int pageIndex,
	int startX,
	int startY,
	int width,
	int height,
	string recognizeType,
	string outputFormat,
	params Object[] additionalProperties
)

Parameters

files
Type: SystemString
comma ',' separated image file path (JPEG, BMP, PNG, TIFF)
pageIndex
Type: SystemInt32
-1 for all pages or the specified page (first page is 1) for multi-page image format like TIFF
startX
Type: SystemInt32
-1 for whole page or the starting x coordinate of the specified region
startY
Type: SystemInt32
-1 for whole page or the starting y coordinate of the specified region
width
Type: SystemInt32
-1 for whole page or the width of the specified region
height
Type: SystemInt32
-1 for whole page or the height of the specified region
recognizeType
Type: SystemString
valid values: RECOGNIZE_TYPE_TEXT, RECOGNIZE_TYPE_BARCODE or RECOGNIZE_TYPE_ALL.
outputFormat
Type: SystemString
valid values: OUTPUT_FORMAT_PLAINTEXT, OUTPUT_FORMAT_XML, OUTPUT_FORMAT_PDF or OUTPUT_FORMAT_RTF.
additionalProperties
Type: SystemObject
additional properties, can be a single Dictionary object or inline specification in pairs. Valid property names are defined in this class, e.g., PROP_INCLUDE_EMPTY_BLOCK, etc.

Return Value

Type: String
text (plain text, xml) recognized for OUTPUT_FORMAT_PLAINTEXT, OUTPUT_FORMAT_XML
See Also