8#ifndef SCANBOTSDK_GENERICDOCUMENT_H
9#define SCANBOTSDK_GENERICDOCUMENT_H
20#include <ScanbotSDKDefs.h>
270 const char* full_name,
271 const char* normalized_name,
294 const char* full_name,
295 const char* normalized_name,
394 double confidence_weight,
397 size_t polygon_in_root_size,
400 size_t parsed_data_size,
421 size_t polygon_in_root_size,
550 const char* full_name,
551 const char* normalized_name,
571 const char* full_name,
572 const char* normalized_name,
665 size_t children_size,
669 size_t quad_in_root_size,
672 double confidence_weight,
700 size_t children_size,
704 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:25
ScanbotSDK Image Ref C API.
The Scanbot SDK C API primitive types.
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 unde...
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_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 obj...
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_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 loc...
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...
struct scanbotsdk_field_parsed_data_t scanbotsdk_field_parsed_data_t
scanbotsdk_field_parsed_data_t class
Definition ScanbotSDKGenericDocument.h:195
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_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...
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:530
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:158
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_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:630
scanbotsdk_field_validation_status_t
scanbotsdk_field_validation_status_t enum
Definition ScanbotSDKGenericDocument.h:105
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 speci...
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...
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_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, const char **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:364
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_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 obje...
struct scanbotsdk_field_type_t scanbotsdk_field_type_t
scanbotsdk_field_type_t class
Definition ScanbotSDKGenericDocument.h:248
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 locatio...
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 speci...
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_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 loc...
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_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_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 unde...
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_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 obje...
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:164
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_COUNTRY_NAME
Definition ScanbotSDKGenericDocument.h:173
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_COUNTRY_NUMERIC
Definition ScanbotSDKGenericDocument.h:170
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_COUNTRY_ALPHA_3
Definition ScanbotSDKGenericDocument.h:167
@ SCANBOTSDK_FIELD_DATA_FORMAT_ISO_DATE
Definition ScanbotSDKGenericDocument.h:161
@ SCANBOTSDK_FIELD_DATA_FORMAT_GENDER
Definition ScanbotSDKGenericDocument.h:176
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_INFERRED
Definition ScanbotSDKGenericDocument.h:130
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_NONE
Definition ScanbotSDKGenericDocument.h:118
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_VALID
Definition ScanbotSDKGenericDocument.h:135
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_OBSTRUCTED
Definition ScanbotSDKGenericDocument.h:112
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_INVALID
Definition ScanbotSDKGenericDocument.h:109
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_CONFIRMED
Definition ScanbotSDKGenericDocument.h:126
@ SCANBOTSDK_FIELD_VALIDATION_STATUS_IGNORED
Definition ScanbotSDKGenericDocument.h:139
Represents a point with floating point coordinates.
Definition ScanbotSDKTypes.h:33
struct scanbotsdk_image_t scanbotsdk_image_t
Represents an instance of the opaque image.
Definition ScanbotSDKImage.h:31