Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKGenericDocument.h
Go to the documentation of this file.
1// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
2// Generated from SchemasV3/CoreSchemas/schemas/GenericDocument.yaml
6
7#pragma once
8#ifndef SCANBOTSDK_GENERICDOCUMENT_H
9#define SCANBOTSDK_GENERICDOCUMENT_H
10
11
12#include <ScanbotSDKImage.h>
13#include <ScanbotSDKTypes.h>
15#include <stdbool.h>
16#include <stddef.h>
17#include <stdint.h>
18#include <string.h>
19#include <ScanbotSDKErrorCode.h>
20#include <ScanbotSDKDefs.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26
33
46 const char* text,
47 double confidence,
49
50
58
68
78
79
142
152
179
189
196
210 const char* value,
212
213
221
231
241
242
249
269 const char* name,
270 const char* full_name,
271 const char* normalized_name,
273 int* list_index,
274 scanbotsdk_field_type_t** result);
275
293 const char* name,
294 const char* full_name,
295 const char* normalized_name,
297 scanbotsdk_field_type_t** result);
298
299
307
317
327
337
347
357
358
365
394 double confidence_weight,
395 scanbotsdk_image_t* image,
396 scanbotsdk_pointf_t* polygon_in_root,
397 size_t polygon_in_root_size,
398 scanbotsdk_field_validation_status_t validation_status,
399 scanbotsdk_field_parsed_data_t** parsed_data,
400 size_t parsed_data_size,
401 scanbotsdk_field_t** result);
402
420 scanbotsdk_pointf_t* polygon_in_root,
421 size_t polygon_in_root_size,
422 scanbotsdk_field_t** result);
423
424
432
442
452
464
474
492
504
523
524
531
549 const char* name,
550 const char* full_name,
551 const char* normalized_name,
552 int* list_index,
554
570 const char* name,
571 const char* full_name,
572 const char* normalized_name,
574
575
583
593
603
613
623
624
631
662 scanbotsdk_field_t** fields,
663 size_t fields_size,
665 size_t children_size,
667 size_t quad_size,
668 scanbotsdk_pointf_t* quad_in_root,
669 size_t quad_in_root_size,
670 scanbotsdk_image_t* crop,
671 double confidence,
672 double confidence_weight,
674
697 scanbotsdk_field_t** fields,
698 size_t fields_size,
700 size_t children_size,
702 size_t quad_size,
703 scanbotsdk_pointf_t* quad_in_root,
704 size_t quad_in_root_size,
706
707
715
725
744
763
781
799
809
821
833
834
835#ifdef __cplusplus
836} /* extern "C" */
837#endif
838
839#endif /* SCANBOTSDK_GENERICDOCUMENT_H */
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