AspriseOCRRecognize Method (String, Int32, Int32, Int32, Int32, Int32, String, String, Object) |
Performs OCR on the given input files.
Namespace: asprise_ocr_apiAssembly: 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
)
Public Function Recognize (
files As String,
pageIndex As Integer,
startX As Integer,
startY As Integer,
width As Integer,
height As Integer,
recognizeType As String,
outputFormat As String,
ParamArray additionalProperties As Object()
) As String
public:
String^ Recognize(
String^ files,
int pageIndex,
int startX,
int startY,
int width,
int height,
String^ recognizeType,
String^ outputFormat,
... array<Object^>^ additionalProperties
)
member Recognize :
files : string *
pageIndex : int *
startX : int *
startY : int *
width : int *
height : int *
recognizeType : string *
outputFormat : string *
additionalProperties : Object[] -> string
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:
Stringtext (plain text, xml) recognized for OUTPUT_FORMAT_PLAINTEXT, OUTPUT_FORMAT_XML
See Also