8#ifndef SCANBOTSDK_GENERICDOCUMENT_H
9#define SCANBOTSDK_GENERICDOCUMENT_H
20#include <ScanbotSDKDefs.h>
407 double confidence_weight,
410 size_t polygon_in_root_size,
413 size_t parsed_data_size,
434 size_t polygon_in_root_size,
678 size_t children_size,
682 size_t quad_in_root_size,
685 double confidence_weight,
713 size_t children_size,
717 size_t quad_in_root_size,
ScanbotSDK Error Code C API.
scanbotsdk_error_code_t
The error codes returned by most of the Scanbot SDK functions.
Definition ScanbotSDKErrorCode.h:26
ScanbotSDK Image Ref C API.
The Scanbot SDK C API primitive types.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_get_name(scanbotsdk_field_type_t *self, scanbotsdk_u8string_ref_t *name)
Returns value of name field of the given object. The returned pointers do NOT own the underlying obje...
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_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_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_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 underlyi...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_result_create(scanbotsdk_u8string_ref_t 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 speci...
struct scanbotsdk_field_parsed_data_t scanbotsdk_field_parsed_data_t
scanbotsdk_field_parsed_data_t class
Definition ScanbotSDKGenericDocument.h:208
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...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_result_get_text(scanbotsdk_ocr_result_t *self, scanbotsdk_u8string_ref_t *text)
Returns value of text field of the given object. The returned pointers do NOT own the underlying obje...
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_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 underlyi...
struct scanbotsdk_ocr_result_t scanbotsdk_ocr_result_t
scanbotsdk_ocr_result_t class
Definition ScanbotSDKGenericDocument.h:32
struct scanbotsdk_generic_document_type_t scanbotsdk_generic_document_type_t
scanbotsdk_generic_document_type_t class
Definition ScanbotSDKGenericDocument.h:543
SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_get_normalized_name(scanbotsdk_generic_document_type_t *self, scanbotsdk_u8string_ref_t *normalized_name)
Returns value of normalized_name field of the given object. The returned pointers do NOT own the unde...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_get_normalized_name(scanbotsdk_field_type_t *self, scanbotsdk_u8string_ref_t *normalized_name)
Returns value of normalized_name field of the given object. The returned pointers do NOT own the unde...
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,...
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 underlyin...
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_field_data_format_t
scanbotsdk_field_data_format_t enum
Definition ScanbotSDKGenericDocument.h:165
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_generic_document_type_get_full_name(scanbotsdk_generic_document_type_t *self, scanbotsdk_u8string_ref_t *full_name)
Returns value of full_name field of the given object. The returned pointers do NOT own the underlying...
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,...
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,...
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 ...
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,...
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_quad_size(scanbotsdk_generic_document_t *self, size_t *size)
Returns size of quad array.
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...
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 me...
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 obje...
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 t...
struct scanbotsdk_generic_document_t scanbotsdk_generic_document_t
scanbotsdk_generic_document_t class
Definition ScanbotSDKGenericDocument.h:643
SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_create_with_defaults(scanbotsdk_u8string_ref_t name, scanbotsdk_u8string_ref_t full_name, scanbotsdk_u8string_ref_t 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...
scanbotsdk_field_validation_status_t
scanbotsdk_field_validation_status_t enum
Definition ScanbotSDKGenericDocument.h:105
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 ...
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 obje...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_type_get_full_name(scanbotsdk_field_type_t *self, scanbotsdk_u8string_ref_t *full_name)
Returns value of full_name field of the given object. The returned pointers do NOT own the underlying...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_parsed_data_create(scanbotsdk_field_data_format_t type, scanbotsdk_u8string_ref_t value, scanbotsdk_field_parsed_data_t **result)
Creates a new instance of scanbotsdk_field_parsed_data with given params and stores it in the locatio...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_parsed_data_get_value(scanbotsdk_field_parsed_data_t *self, scanbotsdk_u8string_ref_t *value)
Returns value of value field of the given object. The returned pointers do NOT own the underlying obj...
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_generic_document_type_free(scanbotsdk_generic_document_type_t *object)
Frees the memory allocated for the instance of scanbotsdk_generic_document_type_t....
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 obj...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_get_name(scanbotsdk_generic_document_type_t *self, scanbotsdk_u8string_ref_t *name)
Returns value of name field of the given object. The returned pointers do NOT own the underlying obje...
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,...
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_type_free(scanbotsdk_field_type_t *object)
Frees the memory allocated for the instance of scanbotsdk_field_type_t. If null is passed,...
struct scanbotsdk_field_t scanbotsdk_field_t
scanbotsdk_field_t class
Definition ScanbotSDKGenericDocument.h:377
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_field_type_create(scanbotsdk_u8string_ref_t name, scanbotsdk_u8string_ref_t full_name, scanbotsdk_u8string_ref_t 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 speci...
struct scanbotsdk_field_type_t scanbotsdk_field_type_t
scanbotsdk_field_type_t class
Definition ScanbotSDKGenericDocument.h:261
scanbotsdk_common_field_type_t
scanbotsdk_common_field_type_t enum
Definition ScanbotSDKCommonFieldType.h:28
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 underlyin...
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_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 memor...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_generic_document_type_create(scanbotsdk_u8string_ref_t name, scanbotsdk_u8string_ref_t full_name, scanbotsdk_u8string_ref_t 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 loc...
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_field_type_create_with_defaults(scanbotsdk_u8string_ref_t name, scanbotsdk_u8string_ref_t full_name, scanbotsdk_u8string_ref_t 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 loc...
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 obj...
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 ob...
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_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 obje...
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_COUNTRY_ALPHA_2
Definition ScanbotSDKGenericDocument.h:173
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_COUNTRY_NAME
Definition ScanbotSDKGenericDocument.h:185
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_COUNTRY_NUMERIC
Definition ScanbotSDKGenericDocument.h:181
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_COUNTRY_ALPHA_3
Definition ScanbotSDKGenericDocument.h:177
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_DATE
Definition ScanbotSDKGenericDocument.h:169
@ SCANBOTSDK_FIELD_DATA_FORMAT_GENDER
Definition ScanbotSDKGenericDocument.h:189
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_INFERRED
Definition ScanbotSDKGenericDocument.h:135
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_NONE
Definition ScanbotSDKGenericDocument.h:121
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_VALID
Definition ScanbotSDKGenericDocument.h:141
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_OBSTRUCTED
Definition ScanbotSDKGenericDocument.h:114
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_INVALID
Definition ScanbotSDKGenericDocument.h:110
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_CONFIRMED
Definition ScanbotSDKGenericDocument.h:130
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_IGNORED
Definition ScanbotSDKGenericDocument.h:146
Represents a point with floating point coordinates.
Definition ScanbotSDKTypes.h:36
struct scanbotsdk_image_t scanbotsdk_image_t
Represents an instance of the opaque image.
Definition ScanbotSDKImage.h:31
Represents a non-owning view of a UTF-8 encoded string.
Definition ScanbotSDKTypes.h:112