Recognize
This method performs the OCR within the coordinates of the zone using the image assigned to the page or passed as a parameter to this method.
Syntax
The OCR result is stored in the Worktext object passed as first parameter. Depending on the assigned recognition settings object, the type of recognition can be either character recognition, barcode recognition or Optical Mark Recognition (OMR).
Recognize (Result As ISCBCroWorktext, [Image As ISCBCroImage = FALSE], [PageNumber As Long = 1])
Parameter | Description |
---|---|
Result |
Must contain a valid reference to a Worktext object, which can either be uninitialized or already contain data from a previously executed Recognize method. This method appends all new data, so that results from previous recognitions do not get lost. |
Image |
Optional parameter The default value is 0. Possible values NULL: Recognition performs on the image assigned to the page. Reference to an image object: Recognition performs on this image. To use preprocessing or locating features, assign the image to the page and set this parameter to NULL. |
PageNumber |
Optional parameter The default value is 0. This parameter is forwarded to the AppendImage method of the worktext object. To append the recognition results of several pages to one worktext object, you can specify a page number here that will then appear in the worktext object. |