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

» Asprise OCR Home · Developer's Guide

Performs OCR on the given input bitmaps.

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(
	IList<Bitmap> bitmaps,
	int startX,
	int startY,
	int width,
	int height,
	string recognizeType,
	string outputFormat,
	params Object[] additionalProperties
)

Parameters

bitmaps
Type: System.Collections.GenericIListBitmap
List of bitmaps to perform OCR on
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