|
Scanbot SDK
|
Typedefs | |
| typedef enum scanbotsdk_common_field_type_t | scanbotsdk_common_field_type_t |
| scanbotsdk_common_field_type_t enum | |
| typedef struct scanbotsdk_ocr_result_t | scanbotsdk_ocr_result_t |
| scanbotsdk_ocr_result_t class | |
| typedef enum scanbotsdk_field_validation_status_t | scanbotsdk_field_validation_status_t |
| scanbotsdk_field_validation_status_t enum | |
| typedef enum scanbotsdk_field_data_format_t | scanbotsdk_field_data_format_t |
| scanbotsdk_field_data_format_t enum | |
| typedef struct scanbotsdk_field_parsed_data_t | scanbotsdk_field_parsed_data_t |
| scanbotsdk_field_parsed_data_t class | |
| typedef struct scanbotsdk_field_type_t | scanbotsdk_field_type_t |
| scanbotsdk_field_type_t class | |
| typedef struct scanbotsdk_field_t | scanbotsdk_field_t |
| scanbotsdk_field_t class | |
| typedef struct scanbotsdk_generic_document_type_t | scanbotsdk_generic_document_type_t |
| scanbotsdk_generic_document_type_t class | |
| typedef struct scanbotsdk_generic_document_t | scanbotsdk_generic_document_t |
| scanbotsdk_generic_document_t class | |
Functions | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_common_field_type_t_to_string (scanbotsdk_common_field_type_t value, const char **result) |
| Returns the string representation of the given scanbotsdk_common_field_type_t value. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_ocr_result_create (const char *text, double confidence, scanbotsdk_ocr_result_t **result) |
| Creates a new instance of scanbotsdk_ocr_result with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_ocr_result_free (scanbotsdk_ocr_result_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_ocr_result_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_ocr_result_get_text (scanbotsdk_ocr_result_t *self, const char **text) |
| Returns value of text field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_ocr_result_get_confidence (scanbotsdk_ocr_result_t *self, double *confidence) |
| Returns value of confidence field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_validation_status_t_to_string (scanbotsdk_field_validation_status_t value, const char **result) |
| Returns the string representation of the given scanbotsdk_field_validation_status_t value. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_data_format_t_to_string (scanbotsdk_field_data_format_t value, const char **result) |
| Returns the string representation of the given scanbotsdk_field_data_format_t value. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_parsed_data_create (scanbotsdk_field_data_format_t type, const char *value, scanbotsdk_field_parsed_data_t **result) |
| Creates a new instance of scanbotsdk_field_parsed_data with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_parsed_data_free (scanbotsdk_field_parsed_data_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_field_parsed_data_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_parsed_data_get_type (scanbotsdk_field_parsed_data_t *self, scanbotsdk_field_data_format_t *type) |
| Returns value of type field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_parsed_data_get_value (scanbotsdk_field_parsed_data_t *self, const char **value) |
| Returns value of value field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_type_create (const char *name, const char *full_name, const char *normalized_name, scanbotsdk_common_field_type_t *common_type, int *list_index, scanbotsdk_field_type_t **result) |
| Creates a new instance of scanbotsdk_field_type with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_type_create_with_defaults (const char *name, const char *full_name, const char *normalized_name, scanbotsdk_common_field_type_t *common_type, scanbotsdk_field_type_t **result) |
| Creates a new instance of scanbotsdk_field_type_t with given required params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_type_free (scanbotsdk_field_type_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_field_type_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_type_get_name (scanbotsdk_field_type_t *self, const char **name) |
| Returns value of name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_type_get_full_name (scanbotsdk_field_type_t *self, const char **full_name) |
| Returns value of full_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_type_get_normalized_name (scanbotsdk_field_type_t *self, const char **normalized_name) |
| Returns value of normalized_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_type_get_common_type (scanbotsdk_field_type_t *self, scanbotsdk_common_field_type_t **common_type) |
| Returns value of common_type field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_type_get_list_index (scanbotsdk_field_type_t *self, int **list_index) |
| Returns value of list_index field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_create (scanbotsdk_field_type_t *type, scanbotsdk_ocr_result_t *value, double confidence_weight, scanbotsdk_image_t *image, scanbotsdk_pointf_t *polygon_in_root, size_t polygon_in_root_size, scanbotsdk_field_validation_status_t validation_status, scanbotsdk_field_parsed_data_t **parsed_data, size_t parsed_data_size, scanbotsdk_field_t **result) |
| Creates a new instance of scanbotsdk_field with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_create_with_defaults (scanbotsdk_field_type_t *type, scanbotsdk_ocr_result_t *value, scanbotsdk_pointf_t *polygon_in_root, size_t polygon_in_root_size, scanbotsdk_field_t **result) |
| Creates a new instance of scanbotsdk_field_t with given required params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_free (scanbotsdk_field_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_field_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_type (scanbotsdk_field_t *self, scanbotsdk_field_type_t **type) |
| Returns value of type field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_value (scanbotsdk_field_t *self, scanbotsdk_ocr_result_t **value) |
| Returns value of value field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_confidence_weight (scanbotsdk_field_t *self, double *confidence_weight) |
| Returns value of confidence_weight field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_image (scanbotsdk_field_t *self, scanbotsdk_image_t **image) |
| Returns value of image field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_polygon_in_root (scanbotsdk_field_t *self, scanbotsdk_pointf_t **polygon_in_root) |
| Returns value of polygon_in_root field of the given object. The returned value is direct view into memory, no pre-allocations needed. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_polygon_in_root_size (scanbotsdk_field_t *self, size_t *size) |
| Returns size of polygon_in_root array. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_validation_status (scanbotsdk_field_t *self, scanbotsdk_field_validation_status_t *validation_status) |
| Returns value of validation_status field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_parsed_data (scanbotsdk_field_t *self, scanbotsdk_field_parsed_data_t **parsed_data, size_t size) |
| Returns value of parsed_data field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_field_get_parsed_data_size (scanbotsdk_field_t *self, size_t *size) |
| Returns size of parsed_data array. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_type_create (const char *name, const char *full_name, const char *normalized_name, int *list_index, scanbotsdk_generic_document_type_t **result) |
| Creates a new instance of scanbotsdk_generic_document_type with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_type_create_with_defaults (const char *name, const char *full_name, const char *normalized_name, scanbotsdk_generic_document_type_t **result) |
| Creates a new instance of scanbotsdk_generic_document_type_t with given required params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_type_free (scanbotsdk_generic_document_type_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_generic_document_type_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_type_get_name (scanbotsdk_generic_document_type_t *self, const char **name) |
| Returns value of name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_type_get_full_name (scanbotsdk_generic_document_type_t *self, const char **full_name) |
| Returns value of full_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_type_get_normalized_name (scanbotsdk_generic_document_type_t *self, const char **normalized_name) |
| Returns value of normalized_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_type_get_list_index (scanbotsdk_generic_document_type_t *self, int **list_index) |
| Returns value of list_index field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_create (scanbotsdk_generic_document_type_t *type, scanbotsdk_field_t **fields, size_t fields_size, scanbotsdk_generic_document_t **children, size_t children_size, scanbotsdk_pointf_t *quad, size_t quad_size, scanbotsdk_pointf_t *quad_in_root, size_t quad_in_root_size, scanbotsdk_image_t *crop, double confidence, double confidence_weight, scanbotsdk_generic_document_t **result) |
| Creates a new instance of scanbotsdk_generic_document with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_create_with_defaults (scanbotsdk_generic_document_type_t *type, scanbotsdk_field_t **fields, size_t fields_size, scanbotsdk_generic_document_t **children, size_t children_size, scanbotsdk_pointf_t *quad, size_t quad_size, scanbotsdk_pointf_t *quad_in_root, size_t quad_in_root_size, scanbotsdk_generic_document_t **result) |
| Creates a new instance of scanbotsdk_generic_document_t with given required params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_free (scanbotsdk_generic_document_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_generic_document_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_type (scanbotsdk_generic_document_t *self, scanbotsdk_generic_document_type_t **type) |
| Returns value of type field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_fields (scanbotsdk_generic_document_t *self, scanbotsdk_field_t **fields, size_t size) |
| Returns value of fields field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_fields_size (scanbotsdk_generic_document_t *self, size_t *size) |
| Returns size of fields array. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_children (scanbotsdk_generic_document_t *self, scanbotsdk_generic_document_t **children, size_t size) |
| Returns value of children field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_children_size (scanbotsdk_generic_document_t *self, size_t *size) |
| Returns size of children array. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_quad (scanbotsdk_generic_document_t *self, scanbotsdk_pointf_t **quad) |
| Returns value of quad field of the given object. The returned value is direct view into memory, no pre-allocations needed. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_quad_size (scanbotsdk_generic_document_t *self, size_t *size) |
| Returns size of quad array. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_quad_in_root (scanbotsdk_generic_document_t *self, scanbotsdk_pointf_t **quad_in_root) |
| Returns value of quad_in_root field of the given object. The returned value is direct view into memory, no pre-allocations needed. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_quad_in_root_size (scanbotsdk_generic_document_t *self, size_t *size) |
| Returns size of quad_in_root array. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_crop (scanbotsdk_generic_document_t *self, scanbotsdk_image_t **crop) |
| Returns value of crop field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_confidence (scanbotsdk_generic_document_t *self, double *confidence) |
| Returns value of confidence field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_generic_document_get_confidence_weight (scanbotsdk_generic_document_t *self, double *confidence_weight) |
| Returns value of confidence_weight field of the given object. | |
scanbotsdk_common_field_type_t enum
Common field types.
scanbotsdk_field_data_format_t enum
Type of parsing applied to field.
| typedef struct scanbotsdk_field_parsed_data_t scanbotsdk_field_parsed_data_t |
scanbotsdk_field_parsed_data_t class
Parsed data.
| typedef struct scanbotsdk_field_t scanbotsdk_field_t |
scanbotsdk_field_t class
Generic document field.
| typedef struct scanbotsdk_field_type_t scanbotsdk_field_type_t |
scanbotsdk_field_type_t class
Generic Document Type.
scanbotsdk_field_validation_status_t enum
Field validation status.
Optical character recognition (OCR) invariably introduces errors in the recognized text. There are numerous ways to verify that what has been recognized is, in fact, what was written in the document.
The best way to validate the value of a field is for it to have a known format or validation logic. For example, an IBAN number has a known format and two check digits that make it very unlikely that a value with OCR errors will pass validation. Fields with known validation rules will have a validation status of either VALID or INVALID.
Fields whose value can be inferred from other fields, or from domain knowledge (for example, the field may have the same value in every instance of this type of document), will have the status INFERRED. Inferring the value of a field is a strong validation method, provided that there are no unexpected changes to the document format.
Fields that do not have validation rules and cannot be inferred can still be validated by checking whether the same value is recognized from multiple attempts, e.g. across multiple frames of a camera stream. If the same value is recognized in multiple frames, the value is considered CONFIRMED, otherwise it will have the status NONE. This is the least strict validation method, as it does not protect from systemic OCR errors, but in practice it still provides good results for most fields.
| typedef struct scanbotsdk_generic_document_t scanbotsdk_generic_document_t |
scanbotsdk_generic_document_t class
Generic document.
scanbotsdk_generic_document_type_t class
Generic Document Type.
| typedef struct scanbotsdk_ocr_result_t scanbotsdk_ocr_result_t |
scanbotsdk_ocr_result_t class
Result of OCR text recognition.
scanbotsdk_common_field_type_t enum
Common field types.
scanbotsdk_field_data_format_t enum
Type of parsing applied to field.
scanbotsdk_field_validation_status_t enum
Field validation status.
Optical character recognition (OCR) invariably introduces errors in the recognized text. There are numerous ways to verify that what has been recognized is, in fact, what was written in the document.
The best way to validate the value of a field is for it to have a known format or validation logic. For example, an IBAN number has a known format and two check digits that make it very unlikely that a value with OCR errors will pass validation. Fields with known validation rules will have a validation status of either VALID or INVALID.
Fields whose value can be inferred from other fields, or from domain knowledge (for example, the field may have the same value in every instance of this type of document), will have the status INFERRED. Inferring the value of a field is a strong validation method, provided that there are no unexpected changes to the document format.
Fields that do not have validation rules and cannot be inferred can still be validated by checking whether the same value is recognized from multiple attempts, e.g. across multiple frames of a camera stream. If the same value is recognized in multiple frames, the value is considered CONFIRMED, otherwise it will have the status NONE. This is the least strict validation method, as it does not protect from systemic OCR errors, but in practice it still provides good results for most fields.
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_common_field_type_t_to_string | ( | scanbotsdk_common_field_type_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_common_field_type_t value.
The returned string doesn't need to be freed.
| value | The value to be converted to string. |
| result | Pointer to a variable that will store the string representation of the value. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_create | ( | scanbotsdk_field_type_t * | type, |
| scanbotsdk_ocr_result_t * | value, | ||
| double | confidence_weight, | ||
| scanbotsdk_image_t * | image, | ||
| scanbotsdk_pointf_t * | polygon_in_root, | ||
| size_t | polygon_in_root_size, | ||
| scanbotsdk_field_validation_status_t | validation_status, | ||
| scanbotsdk_field_parsed_data_t ** | parsed_data, | ||
| size_t | parsed_data_size, | ||
| scanbotsdk_field_t ** | result ) |
Creates a new instance of scanbotsdk_field with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| type | The type of the field. The value must not be null. |
| value | Value of the field. Applicable only to text fields. The value can be null. |
| confidence_weight | Confidence weight. |
Default is 1.0
| image | Crop of the field. The value can be null. |
| polygon_in_root | Coordinates of the field in the root document coordinate system. |
| polygon_in_root_size | Size of the array polygon_in_root |
| validation_status | Field validation status. Applicable only to fields that support some kind of validation. |
Default is NONE
| parsed_data | Parsed data. Entries of the array must not be null. |
| parsed_data_size | Size of the array parsed_data |
| result | Pointer to a variable that will store the created instance of scanbotsdk_field_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_create_with_defaults | ( | scanbotsdk_field_type_t * | type, |
| scanbotsdk_ocr_result_t * | value, | ||
| scanbotsdk_pointf_t * | polygon_in_root, | ||
| size_t | polygon_in_root_size, | ||
| scanbotsdk_field_t ** | result ) |
Creates a new instance of scanbotsdk_field_t with given required params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| type | The type of the field. The value must not be null. |
| value | Value of the field. Applicable only to text fields. The value can be null. |
| polygon_in_root | Coordinates of the field in the root document coordinate system. |
| polygon_in_root_size | Size of the array polygon_in_root |
| result | Pointer to a variable that will store the created instance of scanbotsdk_field_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_data_format_t_to_string | ( | scanbotsdk_field_data_format_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_field_data_format_t value.
The returned string doesn't need to be freed.
| value | The value to be converted to string. |
| result | Pointer to a variable that will store the string representation of the value. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_free | ( | scanbotsdk_field_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_field_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_field_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_confidence_weight | ( | scanbotsdk_field_t * | self, |
| double * | confidence_weight ) |
Returns value of confidence_weight field of the given object.
Confidence weight.
Default is 1.0
| self | Pointer to the instance of scanbotsdk_field_t |
| confidence_weight | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_image | ( | scanbotsdk_field_t * | self, |
| scanbotsdk_image_t ** | image ) |
Returns value of image field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Crop of the field.
| self | Pointer to the instance of scanbotsdk_field_t |
| image | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_parsed_data | ( | scanbotsdk_field_t * | self, |
| scanbotsdk_field_parsed_data_t ** | parsed_data, | ||
| size_t | size ) |
Returns value of parsed_data field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Parsed data.
| self | Pointer to the instance of scanbotsdk_field_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| parsed_data | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_parsed_data_size | ( | scanbotsdk_field_t * | self, |
| size_t * | size ) |
Returns size of parsed_data array.
| self | Pointer to the instance of scanbotsdk_field_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_polygon_in_root | ( | scanbotsdk_field_t * | self, |
| scanbotsdk_pointf_t ** | polygon_in_root ) |
Returns value of polygon_in_root field of the given object. The returned value is direct view into memory, no pre-allocations needed.
Coordinates of the field in the root document coordinate system.
| self | Pointer to the instance of scanbotsdk_field_t |
| polygon_in_root | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_polygon_in_root_size | ( | scanbotsdk_field_t * | self, |
| size_t * | size ) |
Returns size of polygon_in_root array.
| self | Pointer to the instance of scanbotsdk_field_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_type | ( | scanbotsdk_field_t * | self, |
| scanbotsdk_field_type_t ** | type ) |
Returns value of type field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
The type of the field.
| self | Pointer to the instance of scanbotsdk_field_t |
| type | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_validation_status | ( | scanbotsdk_field_t * | self, |
| scanbotsdk_field_validation_status_t * | validation_status ) |
Returns value of validation_status field of the given object.
Field validation status. Applicable only to fields that support some kind of validation.
Default is NONE
| self | Pointer to the instance of scanbotsdk_field_t |
| validation_status | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_get_value | ( | scanbotsdk_field_t * | self, |
| scanbotsdk_ocr_result_t ** | value ) |
Returns value of value field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Value of the field. Applicable only to text fields.
| self | Pointer to the instance of scanbotsdk_field_t |
| value | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_parsed_data_create | ( | scanbotsdk_field_data_format_t | type, |
| const char * | value, | ||
| scanbotsdk_field_parsed_data_t ** | result ) |
Creates a new instance of scanbotsdk_field_parsed_data with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| type | Parsing type. |
| value | Parsed value. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_field_parsed_data_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_parsed_data_free | ( | scanbotsdk_field_parsed_data_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_field_parsed_data_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_field_parsed_data_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_parsed_data_get_type | ( | scanbotsdk_field_parsed_data_t * | self, |
| scanbotsdk_field_data_format_t * | type ) |
Returns value of type field of the given object.
Parsing type.
| self | Pointer to the instance of scanbotsdk_field_parsed_data_t |
| type | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_parsed_data_get_value | ( | scanbotsdk_field_parsed_data_t * | self, |
| const char ** | value ) |
Returns value of value field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Parsed value.
| self | Pointer to the instance of scanbotsdk_field_parsed_data_t |
| value | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_create | ( | const char * | name, |
| const char * | full_name, | ||
| const char * | normalized_name, | ||
| scanbotsdk_common_field_type_t * | common_type, | ||
| int * | list_index, | ||
| scanbotsdk_field_type_t ** | result ) |
Creates a new instance of scanbotsdk_field_type with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| name | Local field type name scoped to the containing document type. The value must not be null. |
| full_name | Unique global field type name prefixed with the document types of all containing documents. The value must not be null. |
| normalized_name | Normalized global field type name. Fields in document types derived from the same base document type in the schema will have the same normalized name. The value must not be null. |
| common_type | Commonly occurring fields that have the same semantic meaning in different document types will often have a set common type. The value can be null. |
| list_index | A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field. The value can be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_field_type_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_create_with_defaults | ( | const char * | name, |
| const char * | full_name, | ||
| const char * | normalized_name, | ||
| scanbotsdk_common_field_type_t * | common_type, | ||
| scanbotsdk_field_type_t ** | result ) |
Creates a new instance of scanbotsdk_field_type_t with given required params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| name | Local field type name scoped to the containing document type. The value must not be null. |
| full_name | Unique global field type name prefixed with the document types of all containing documents. The value must not be null. |
| normalized_name | Normalized global field type name. Fields in document types derived from the same base document type in the schema will have the same normalized name. The value must not be null. |
| common_type | Commonly occurring fields that have the same semantic meaning in different document types will often have a set common type. The value can be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_field_type_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_free | ( | scanbotsdk_field_type_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_field_type_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_field_type_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_get_common_type | ( | scanbotsdk_field_type_t * | self, |
| scanbotsdk_common_field_type_t ** | common_type ) |
Returns value of common_type field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Commonly occurring fields that have the same semantic meaning in different document types will often have a set common type.
| self | Pointer to the instance of scanbotsdk_field_type_t |
| common_type | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_get_full_name | ( | scanbotsdk_field_type_t * | self, |
| const char ** | full_name ) |
Returns value of full_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Unique global field type name prefixed with the document types of all containing documents.
| self | Pointer to the instance of scanbotsdk_field_type_t |
| full_name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_get_list_index | ( | scanbotsdk_field_type_t * | self, |
| int ** | list_index ) |
Returns value of list_index field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field.
| self | Pointer to the instance of scanbotsdk_field_type_t |
| list_index | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_get_name | ( | scanbotsdk_field_type_t * | self, |
| const char ** | name ) |
Returns value of name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Local field type name scoped to the containing document type.
| self | Pointer to the instance of scanbotsdk_field_type_t |
| name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_get_normalized_name | ( | scanbotsdk_field_type_t * | self, |
| const char ** | normalized_name ) |
Returns value of normalized_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Normalized global field type name. Fields in document types derived from the same base document type in the schema will have the same normalized name.
| self | Pointer to the instance of scanbotsdk_field_type_t |
| normalized_name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_validation_status_t_to_string | ( | scanbotsdk_field_validation_status_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_field_validation_status_t value.
The returned string doesn't need to be freed.
| value | The value to be converted to string. |
| result | Pointer to a variable that will store the string representation of the value. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_create | ( | scanbotsdk_generic_document_type_t * | type, |
| scanbotsdk_field_t ** | fields, | ||
| size_t | fields_size, | ||
| scanbotsdk_generic_document_t ** | children, | ||
| size_t | children_size, | ||
| scanbotsdk_pointf_t * | quad, | ||
| size_t | quad_size, | ||
| scanbotsdk_pointf_t * | quad_in_root, | ||
| size_t | quad_in_root_size, | ||
| scanbotsdk_image_t * | crop, | ||
| double | confidence, | ||
| double | confidence_weight, | ||
| scanbotsdk_generic_document_t ** | result ) |
Creates a new instance of scanbotsdk_generic_document with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| type | Document type. The value must not be null. |
| fields | List of document fields. Entries of the array must not be null. |
| fields_size | Size of the array fields |
| children | List of document sub-documents. Entries of the array must not be null. |
| children_size | Size of the array children |
| quad | Coordinates of the document in the parent document coordinate system. |
| quad_size | Size of the array quad |
| quad_in_root | Coordinates of the document in the root document coordinate system. |
| quad_in_root_size | Size of the array quad_in_root |
| crop | Image crop of the document. The value can be null. |
| confidence | The average confidence in the accuracy of the document recognition result. |
Default is 0
| confidence_weight | The weight of the confidence. Can be used to calculate the weighted average confidence of two documents. |
Default is 0
| result | Pointer to a variable that will store the created instance of scanbotsdk_generic_document_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_create_with_defaults | ( | scanbotsdk_generic_document_type_t * | type, |
| scanbotsdk_field_t ** | fields, | ||
| size_t | fields_size, | ||
| scanbotsdk_generic_document_t ** | children, | ||
| size_t | children_size, | ||
| scanbotsdk_pointf_t * | quad, | ||
| size_t | quad_size, | ||
| scanbotsdk_pointf_t * | quad_in_root, | ||
| size_t | quad_in_root_size, | ||
| scanbotsdk_generic_document_t ** | result ) |
Creates a new instance of scanbotsdk_generic_document_t with given required params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| type | Document type. The value must not be null. |
| fields | List of document fields. Entries of the array must not be null. |
| fields_size | Size of the array fields |
| children | List of document sub-documents. Entries of the array must not be null. |
| children_size | Size of the array children |
| quad | Coordinates of the document in the parent document coordinate system. |
| quad_size | Size of the array quad |
| quad_in_root | Coordinates of the document in the root document coordinate system. |
| quad_in_root_size | Size of the array quad_in_root |
| result | Pointer to a variable that will store the created instance of scanbotsdk_generic_document_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_free | ( | scanbotsdk_generic_document_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_generic_document_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_generic_document_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_children | ( | scanbotsdk_generic_document_t * | self, |
| scanbotsdk_generic_document_t ** | children, | ||
| size_t | size ) |
Returns value of children field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of document sub-documents.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| children | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_children_size | ( | scanbotsdk_generic_document_t * | self, |
| size_t * | size ) |
Returns size of children array.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_confidence | ( | scanbotsdk_generic_document_t * | self, |
| double * | confidence ) |
Returns value of confidence field of the given object.
The average confidence in the accuracy of the document recognition result.
Default is 0
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| confidence | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_confidence_weight | ( | scanbotsdk_generic_document_t * | self, |
| double * | confidence_weight ) |
Returns value of confidence_weight field of the given object.
The weight of the confidence. Can be used to calculate the weighted average confidence of two documents.
Default is 0
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| confidence_weight | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_crop | ( | scanbotsdk_generic_document_t * | self, |
| scanbotsdk_image_t ** | crop ) |
Returns value of crop field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Image crop of the document.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| crop | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_fields | ( | scanbotsdk_generic_document_t * | self, |
| scanbotsdk_field_t ** | fields, | ||
| size_t | size ) |
Returns value of fields field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of document fields.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| fields | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_fields_size | ( | scanbotsdk_generic_document_t * | self, |
| size_t * | size ) |
Returns size of fields array.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_quad | ( | scanbotsdk_generic_document_t * | self, |
| scanbotsdk_pointf_t ** | quad ) |
Returns value of quad field of the given object. The returned value is direct view into memory, no pre-allocations needed.
Coordinates of the document in the parent document coordinate system.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| quad | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_quad_in_root | ( | scanbotsdk_generic_document_t * | self, |
| scanbotsdk_pointf_t ** | quad_in_root ) |
Returns value of quad_in_root field of the given object. The returned value is direct view into memory, no pre-allocations needed.
Coordinates of the document in the root document coordinate system.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| quad_in_root | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_quad_in_root_size | ( | scanbotsdk_generic_document_t * | self, |
| size_t * | size ) |
Returns size of quad_in_root array.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_quad_size | ( | scanbotsdk_generic_document_t * | self, |
| size_t * | size ) |
Returns size of quad array.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_get_type | ( | scanbotsdk_generic_document_t * | self, |
| scanbotsdk_generic_document_type_t ** | type ) |
Returns value of type field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Document type.
| self | Pointer to the instance of scanbotsdk_generic_document_t |
| type | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_create | ( | const char * | name, |
| const char * | full_name, | ||
| const char * | normalized_name, | ||
| int * | list_index, | ||
| scanbotsdk_generic_document_type_t ** | result ) |
Creates a new instance of scanbotsdk_generic_document_type with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| name | Local document type name. The value must not be null. |
| full_name | Unique global document type name prefixed with the document types of all containing documents. The value must not be null. |
| normalized_name | Normalized global document type name. Common document types appearing as child documents in different places will often have the same normalized type name. The value must not be null. |
| list_index | A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field. The value can be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_generic_document_type_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_create_with_defaults | ( | const char * | name, |
| const char * | full_name, | ||
| const char * | normalized_name, | ||
| scanbotsdk_generic_document_type_t ** | result ) |
Creates a new instance of scanbotsdk_generic_document_type_t with given required params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| name | Local document type name. The value must not be null. |
| full_name | Unique global document type name prefixed with the document types of all containing documents. The value must not be null. |
| normalized_name | Normalized global document type name. Common document types appearing as child documents in different places will often have the same normalized type name. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_generic_document_type_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_free | ( | scanbotsdk_generic_document_type_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_generic_document_type_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_generic_document_type_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_get_full_name | ( | scanbotsdk_generic_document_type_t * | self, |
| const char ** | full_name ) |
Returns value of full_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Unique global document type name prefixed with the document types of all containing documents.
| self | Pointer to the instance of scanbotsdk_generic_document_type_t |
| full_name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_get_list_index | ( | scanbotsdk_generic_document_type_t * | self, |
| int ** | list_index ) |
Returns value of list_index field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field.
| self | Pointer to the instance of scanbotsdk_generic_document_type_t |
| list_index | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_get_name | ( | scanbotsdk_generic_document_type_t * | self, |
| const char ** | name ) |
Returns value of name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Local document type name.
| self | Pointer to the instance of scanbotsdk_generic_document_type_t |
| name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_get_normalized_name | ( | scanbotsdk_generic_document_type_t * | self, |
| const char ** | normalized_name ) |
Returns value of normalized_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Normalized global document type name. Common document types appearing as child documents in different places will often have the same normalized type name.
| self | Pointer to the instance of scanbotsdk_generic_document_type_t |
| normalized_name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_result_create | ( | const char * | text, |
| double | confidence, | ||
| scanbotsdk_ocr_result_t ** | result ) |
Creates a new instance of scanbotsdk_ocr_result with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| text | Maximum number of accumulated frames to inspect before actual result is returned. The value must not be null. |
| confidence | Minimum number of accumulated frames that have equal result. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_ocr_result_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_result_free | ( | scanbotsdk_ocr_result_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_ocr_result_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_ocr_result_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_result_get_confidence | ( | scanbotsdk_ocr_result_t * | self, |
| double * | confidence ) |
Returns value of confidence field of the given object.
Minimum number of accumulated frames that have equal result.
| self | Pointer to the instance of scanbotsdk_ocr_result_t |
| confidence | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_result_get_text | ( | scanbotsdk_ocr_result_t * | self, |
| const char ** | text ) |
Returns value of text field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Maximum number of accumulated frames to inspect before actual result is returned.
| self | Pointer to the instance of scanbotsdk_ocr_result_t |
| text | Pointer to a variable that will store the value of the field. |