|
Scanbot SDK
|
scanbotsdk_auto_focus_configuration_t class
Auto-focus configuration. The recognizer will ignore frames that are not focused. This option is enabled by default. This configuration has no effect in SINGLE_SHOT mode.
| typedef struct scanbotsdk_composite_field_value_semantics_t scanbotsdk_composite_field_value_semantics_t |
scanbotsdk_composite_field_value_semantics_t class
Report of a logical field value semantics verification. If some logical field, e.g. expiry date is present in multiple places in the document, it can occur that some entries are semantically correct and some are semantically incorrect. This report shows the overall status of the logical field value semantics verification and details for each field that was verified.
| typedef struct scanbotsdk_consistency_verification_report_t scanbotsdk_consistency_verification_report_t |
scanbotsdk_consistency_verification_report_t class
Report of the document consistency verification. Shows whether information in the fields that correspond to the same logical field is consistent.
| typedef struct scanbotsdk_date_validation_configuration_t scanbotsdk_date_validation_configuration_t |
scanbotsdk_date_validation_configuration_t class
Date validation configuration. This configuration element does not enable the scanning of any document types by itself. Add to recognizer configuration to require date validation checks for specific document types.
| typedef struct scanbotsdk_de_address_parser_configuration_t scanbotsdk_de_address_parser_configuration_t |
scanbotsdk_de_address_parser_configuration_t class
German Address Field validation configuration. This configuration does not enable the scanning of any document types by itself. Add to recognizer configuration to require German Address validation checks for specific document types.
| typedef struct scanbotsdk_document_data_extraction_result_t scanbotsdk_document_data_extraction_result_t |
scanbotsdk_document_data_extraction_result_t class
Contains the result of running the document data extractor.
| typedef enum scanbotsdk_document_data_extraction_status_t scanbotsdk_document_data_extraction_status_t |
scanbotsdk_document_data_extraction_status_t enum
The status of the extraction process.
| typedef struct scanbotsdk_document_data_extractor_common_configuration_t scanbotsdk_document_data_extractor_common_configuration_t |
scanbotsdk_document_data_extractor_common_configuration_t class
Convenience configuration element for enabling the scanning of multiple document types with a common configuration. Add to extractor configuration to enable the scanning of multiple document types.
| typedef struct scanbotsdk_document_data_extractor_configuration_element_t scanbotsdk_document_data_extractor_configuration_element_t |
scanbotsdk_document_data_extractor_configuration_element_t class
Base class for all document data extraction configuration elements.
| typedef struct scanbotsdk_document_data_extractor_configuration_t scanbotsdk_document_data_extractor_configuration_t |
scanbotsdk_document_data_extractor_configuration_t class
Configuration for the document data extractor.
scanbotsdk_document_data_extractor_t class
API for extracting data from documents.
scanbotsdk_document_trust_mode_t enum
Level of trust in the authenticity of the extracted document.
scanbotsdk_document_verification_report_t class
Report of the document verification.
scanbotsdk_document_verification_status_t enum
Overall status of the document verification.
| typedef struct scanbotsdk_european_health_insurance_card_configuration_t scanbotsdk_european_health_insurance_card_configuration_t |
scanbotsdk_european_health_insurance_card_configuration_t class
European Health Insurance Card (EHIC) configuration element. Add to extractor configuration to scan EHICs.
| typedef enum scanbotsdk_european_health_insurance_card_issuing_country_t scanbotsdk_european_health_insurance_card_issuing_country_t |
scanbotsdk_european_health_insurance_card_issuing_country_t enum
European Health Insurance Card (EHIC) issuing country.
| typedef struct scanbotsdk_field_consistency_verification_report_t scanbotsdk_field_consistency_verification_report_t |
scanbotsdk_field_consistency_verification_report_t class
Report of the field consistency verification.
| typedef struct scanbotsdk_field_invalid_data_verification_report_t scanbotsdk_field_invalid_data_verification_report_t |
scanbotsdk_field_invalid_data_verification_report_t class
Report which shows whether the data in the field that can be validated is valid.
| typedef struct scanbotsdk_field_suspicious_data_verification_report_t scanbotsdk_field_suspicious_data_verification_report_t |
scanbotsdk_field_suspicious_data_verification_report_t class
Report of the suspicious data field verification.
scanbotsdk_field_value_semantics_t class
Report of the field value semantics verification.
| typedef struct scanbotsdk_glare_detection_configuration_t scanbotsdk_glare_detection_configuration_t |
scanbotsdk_glare_detection_configuration_t class
Glare detection configuration. The recognizer will detect whether fields are obstructed by glare. This feature is enabled by default. This configuration has no effect in SINGLE_SHOT mode.
| typedef struct scanbotsdk_invalid_data_verification_report_t scanbotsdk_invalid_data_verification_report_t |
scanbotsdk_invalid_data_verification_report_t class
Report of the field validation verification.
scanbotsdk_mrz_fallback_configuration_t class
MRZ fallback configuration element. This configuration element does not enable the scanning of any document types by itself. Add to extractor configuration to enable recognizing the MRZ only, specifically for documents that are otherwise not supported. Note that this may enable scanning of documents that were not enabled through the accepted document types.
| typedef struct scanbotsdk_semantics_verification_report_t scanbotsdk_semantics_verification_report_t |
scanbotsdk_semantics_verification_report_t class
Report of the document value semantics verification.
| typedef struct scanbotsdk_suspicious_data_verification_report_t scanbotsdk_suspicious_data_verification_report_t |
scanbotsdk_suspicious_data_verification_report_t class
Report of the suspicious data document verification.
scanbotsdk_value_consistency_t enum
The status of the consistency verification.
| typedef enum scanbotsdk_value_semantics_t scanbotsdk_value_semantics_t |
scanbotsdk_value_semantics_t enum
The result of the value semantics verification.
scanbotsdk_document_data_extraction_status_t enum
The status of the extraction process.
scanbotsdk_document_trust_mode_t enum
Level of trust in the authenticity of the extracted document.
scanbotsdk_document_verification_status_t enum
Overall status of the document verification.
scanbotsdk_european_health_insurance_card_issuing_country_t enum
European Health Insurance Card (EHIC) issuing country.
scanbotsdk_value_consistency_t enum
The status of the consistency verification.
scanbotsdk_value_semantics_t enum
The result of the value semantics verification.
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_auto_focus_configuration_as_scanbotsdk_document_data_extractor_configuration_element | ( | scanbotsdk_auto_focus_configuration_t * | object, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | result ) |
Casts the given instance of scanbotsdk_auto_focus_configuration_t to its parent type scanbotsdk_document_data_extractor_configuration_element_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_auto_focus_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_auto_focus_configuration_create | ( | double | sensitivity_threshold, |
| scanbotsdk_auto_focus_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_auto_focus_configuration 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.
| sensitivity_threshold | Sensitivity threshold for detecting that autofocus is in progress. The value should be in the range [0.0, 1.0]. The lower the value, the more frames might be discarded as not focused. The higher the value, the earlier the focus might be considered as focused. If set to 0.0, the feature is disabled. |
Default is 0.02
| result | Pointer to a variable that will store the created instance of scanbotsdk_auto_focus_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_auto_focus_configuration_create_with_defaults | ( | scanbotsdk_auto_focus_configuration_t ** | result | ) |
Creates a new instance of scanbotsdk_auto_focus_configuration_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.
| result | Pointer to a variable that will store the created instance of scanbotsdk_auto_focus_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_auto_focus_configuration_free | ( | scanbotsdk_auto_focus_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_auto_focus_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_auto_focus_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_auto_focus_configuration_get_sensitivity_threshold | ( | scanbotsdk_auto_focus_configuration_t * | self, |
| double * | sensitivity_threshold ) |
Returns value of sensitivity_threshold field of the given object.
Sensitivity threshold for detecting that autofocus is in progress. The value should be in the range [0.0, 1.0]. The lower the value, the more frames might be discarded as not focused. The higher the value, the earlier the focus might be considered as focused. If set to 0.0, the feature is disabled.
Default is 0.02
| self | Pointer to the instance of scanbotsdk_auto_focus_configuration_t |
| sensitivity_threshold | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_auto_focus_configuration_set_sensitivity_threshold | ( | scanbotsdk_auto_focus_configuration_t * | self, |
| double | sensitivity_threshold ) |
Sets value of sensitivity_threshold field of the given object.
Sensitivity threshold for detecting that autofocus is in progress. The value should be in the range [0.0, 1.0]. The lower the value, the more frames might be discarded as not focused. The higher the value, the earlier the focus might be considered as focused. If set to 0.0, the feature is disabled.
Default is 0.02
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.
| self | Pointer to the instance of scanbotsdk_auto_focus_configuration_t, the field of which will be set |
| sensitivity_threshold | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_composite_field_value_semantics_free | ( | scanbotsdk_composite_field_value_semantics_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_composite_field_value_semantics_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_composite_field_value_semantics_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_composite_field_value_semantics_get_field_details | ( | scanbotsdk_composite_field_value_semantics_t * | self, |
| scanbotsdk_field_value_semantics_t ** | field_details, | ||
| size_t | size ) |
Returns value of field_details field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of value semantics for each field corresponding to the same logical field.
| self | Pointer to the instance of scanbotsdk_composite_field_value_semantics_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| field_details | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_composite_field_value_semantics_get_field_details_size | ( | scanbotsdk_composite_field_value_semantics_t * | self, |
| size_t * | size ) |
Returns size of field_details array.
| self | Pointer to the instance of scanbotsdk_composite_field_value_semantics_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_composite_field_value_semantics_get_overall_field_value_semantics | ( | scanbotsdk_composite_field_value_semantics_t * | self, |
| scanbotsdk_value_semantics_t * | overall_field_value_semantics ) |
Returns value of overall_field_value_semantics field of the given object.
Overall status of the logical value semantics verification. Corresponds to the most severe status of all fields, i.e. if at least one field is semantically incorrect, the overall status is semantically incorrect. If no fields are present, the overall status is SKIPPED.
| self | Pointer to the instance of scanbotsdk_composite_field_value_semantics_t |
| overall_field_value_semantics | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_consistency_verification_report_free | ( | scanbotsdk_consistency_verification_report_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_consistency_verification_report_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_consistency_verification_report_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_consistency_verification_report_get_field_details | ( | scanbotsdk_consistency_verification_report_t * | self, |
| scanbotsdk_field_consistency_verification_report_t ** | field_details, | ||
| size_t | size ) |
Returns value of field_details field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of reports for each field that was verified.
| self | Pointer to the instance of scanbotsdk_consistency_verification_report_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| field_details | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_consistency_verification_report_get_field_details_size | ( | scanbotsdk_consistency_verification_report_t * | self, |
| size_t * | size ) |
Returns size of field_details array.
| self | Pointer to the instance of scanbotsdk_consistency_verification_report_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_consistency_verification_report_get_overall_consistency | ( | scanbotsdk_consistency_verification_report_t * | self, |
| scanbotsdk_value_consistency_t * | overall_consistency ) |
Returns value of overall_consistency field of the given object.
Overall status of the consistency verification. Corresponds to the most severe status of all fields.
| self | Pointer to the instance of scanbotsdk_consistency_verification_report_t |
| overall_consistency | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_as_scanbotsdk_document_data_extractor_configuration_element | ( | scanbotsdk_date_validation_configuration_t * | object, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | result ) |
Casts the given instance of scanbotsdk_date_validation_configuration_t to its parent type scanbotsdk_document_data_extractor_configuration_element_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_date_validation_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_create | ( | int | min_year, |
| int | max_year, | ||
| const char * | field_type_name, | ||
| scanbotsdk_date_validation_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_date_validation_configuration 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.
| min_year | Minimum year that is considered valid. |
Default is 0
| max_year | Maximum year that is considered valid. |
Default is 2999
| field_type_name | Name, FullName, or NormalizedName of field type for which the year bounds should be applied. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_date_validation_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_create_with_defaults | ( | const char * | field_type_name, |
| scanbotsdk_date_validation_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_date_validation_configuration_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.
| field_type_name | Name, FullName, or NormalizedName of field type for which the year bounds should be applied. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_date_validation_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_free | ( | scanbotsdk_date_validation_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_date_validation_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_date_validation_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_get_field_type_name | ( | scanbotsdk_date_validation_configuration_t * | self, |
| const char ** | field_type_name ) |
Returns value of field_type_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Name, FullName, or NormalizedName of field type for which the year bounds should be applied.
| self | Pointer to the instance of scanbotsdk_date_validation_configuration_t |
| field_type_name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_get_max_year | ( | scanbotsdk_date_validation_configuration_t * | self, |
| int * | max_year ) |
Returns value of max_year field of the given object.
Maximum year that is considered valid.
Default is 2999
| self | Pointer to the instance of scanbotsdk_date_validation_configuration_t |
| max_year | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_get_min_year | ( | scanbotsdk_date_validation_configuration_t * | self, |
| int * | min_year ) |
Returns value of min_year field of the given object.
Minimum year that is considered valid.
Default is 0
| self | Pointer to the instance of scanbotsdk_date_validation_configuration_t |
| min_year | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_set_field_type_name | ( | scanbotsdk_date_validation_configuration_t * | self, |
| const char * | field_type_name ) |
Sets value of field_type_name field of the given object.
Name, FullName, or NormalizedName of field type for which the year bounds should be applied.
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.
| self | Pointer to the instance of scanbotsdk_date_validation_configuration_t, the field of which will be set |
| field_type_name | The value to be set. Must not be null. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_set_max_year | ( | scanbotsdk_date_validation_configuration_t * | self, |
| int | max_year ) |
Sets value of max_year field of the given object.
Maximum year that is considered valid.
Default is 2999
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.
| self | Pointer to the instance of scanbotsdk_date_validation_configuration_t, the field of which will be set |
| max_year | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_date_validation_configuration_set_min_year | ( | scanbotsdk_date_validation_configuration_t * | self, |
| int | min_year ) |
Sets value of min_year field of the given object.
Minimum year that is considered valid.
Default is 0
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.
| self | Pointer to the instance of scanbotsdk_date_validation_configuration_t, the field of which will be set |
| min_year | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_as_scanbotsdk_document_data_extractor_configuration_element | ( | scanbotsdk_de_address_parser_configuration_t * | object, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | result ) |
Casts the given instance of scanbotsdk_de_address_parser_configuration_t to its parent type scanbotsdk_document_data_extractor_configuration_element_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_de_address_parser_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_create | ( | const char ** | document_types, |
| size_t | document_types_size, | ||
| const char * | binary_file_address_database, | ||
| scanbotsdk_de_address_parser_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_de_address_parser_configuration 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.
| document_types | List of generic document formats for which German Address validation has to be applied. Entries of the array must not be null. |
| document_types_size | Size of the array document_types |
| binary_file_address_database | binary file with address database. |
Default is "" The value must not be null.
| result | Pointer to a variable that will store the created instance of scanbotsdk_de_address_parser_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_create_with_defaults | ( | const char ** | document_types, |
| size_t | document_types_size, | ||
| scanbotsdk_de_address_parser_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_de_address_parser_configuration_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.
| document_types | List of generic document formats for which German Address validation has to be applied. Entries of the array must not be null. |
| document_types_size | Size of the array document_types |
| result | Pointer to a variable that will store the created instance of scanbotsdk_de_address_parser_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_free | ( | scanbotsdk_de_address_parser_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_de_address_parser_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_de_address_parser_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_get_binary_file_address_database | ( | scanbotsdk_de_address_parser_configuration_t * | self, |
| const char ** | binary_file_address_database ) |
Returns value of binary_file_address_database field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
binary file with address database.
Default is ""
| self | Pointer to the instance of scanbotsdk_de_address_parser_configuration_t |
| binary_file_address_database | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_get_document_types | ( | scanbotsdk_de_address_parser_configuration_t * | self, |
| const char ** | document_types, | ||
| size_t | size ) |
Returns value of document_types field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of generic document formats for which German Address validation has to be applied.
| self | Pointer to the instance of scanbotsdk_de_address_parser_configuration_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| document_types | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_get_document_types_size | ( | scanbotsdk_de_address_parser_configuration_t * | self, |
| size_t * | size ) |
Returns size of document_types array.
| self | Pointer to the instance of scanbotsdk_de_address_parser_configuration_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_set_binary_file_address_database | ( | scanbotsdk_de_address_parser_configuration_t * | self, |
| const char * | binary_file_address_database ) |
Sets value of binary_file_address_database field of the given object.
binary file with address database.
Default is ""
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.
| self | Pointer to the instance of scanbotsdk_de_address_parser_configuration_t, the field of which will be set |
| binary_file_address_database | The value to be set. Must not be null. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_de_address_parser_configuration_set_document_types | ( | scanbotsdk_de_address_parser_configuration_t * | self, |
| const char ** | document_types, | ||
| size_t | document_types_size ) |
Sets value of document_types field of the given object.
List of generic document formats for which German Address validation has to be applied.
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.
| self | Pointer to the instance of scanbotsdk_de_address_parser_configuration_t, the field of which will be set |
| document_types | The value to be set. |
| document_types_size | Size of the array. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extraction_result_free | ( | scanbotsdk_document_data_extraction_result_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_document_data_extraction_result_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_document_data_extraction_result_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extraction_result_get_cropped_image | ( | scanbotsdk_document_data_extraction_result_t * | self, |
| scanbotsdk_image_t ** | cropped_image ) |
Returns value of cropped_image field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Crop of the document if it was detected.
| self | Pointer to the instance of scanbotsdk_document_data_extraction_result_t |
| cropped_image | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extraction_result_get_document | ( | scanbotsdk_document_data_extraction_result_t * | self, |
| scanbotsdk_generic_document_t ** | document ) |
Returns value of document field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
The extracted document.
| self | Pointer to the instance of scanbotsdk_document_data_extraction_result_t |
| document | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extraction_result_get_document_detection_result | ( | scanbotsdk_document_data_extraction_result_t * | self, |
| scanbotsdk_document_detection_result_t ** | document_detection_result ) |
Returns value of document_detection_result field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Result of the document detection in the input image.
| self | Pointer to the instance of scanbotsdk_document_data_extraction_result_t |
| document_detection_result | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extraction_result_get_status | ( | scanbotsdk_document_data_extraction_result_t * | self, |
| scanbotsdk_document_data_extraction_status_t * | status ) |
Returns value of status field of the given object.
The status of the extraction process.
| self | Pointer to the instance of scanbotsdk_document_data_extraction_result_t |
| status | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extraction_status_t_to_string | ( | scanbotsdk_document_data_extraction_status_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_document_data_extraction_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_document_data_extractor_clear_result | ( | scanbotsdk_document_data_extractor_t * | self | ) |
Clears the accumulated results. Should be called after a document has been recognized to the customers satisfaction to prevent a poisoned cache.
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_t method to be called on |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_common_configuration_as_scanbotsdk_document_data_extractor_configuration_element | ( | scanbotsdk_document_data_extractor_common_configuration_t * | object, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | result ) |
Casts the given instance of scanbotsdk_document_data_extractor_common_configuration_t to its parent type scanbotsdk_document_data_extractor_configuration_element_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_document_data_extractor_common_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_common_configuration_create | ( | const char ** | accepted_document_types, |
| size_t | accepted_document_types_size, | ||
| scanbotsdk_document_data_extractor_common_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_document_data_extractor_common_configuration 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.
| accepted_document_types | List of document types to scan. By default, the list is empty. Entries of the array must not be null. |
| accepted_document_types_size | Size of the array accepted_document_types |
| result | Pointer to a variable that will store the created instance of scanbotsdk_document_data_extractor_common_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_common_configuration_create_with_defaults | ( | scanbotsdk_document_data_extractor_common_configuration_t ** | result | ) |
Creates a new instance of scanbotsdk_document_data_extractor_common_configuration_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.
| result | Pointer to a variable that will store the created instance of scanbotsdk_document_data_extractor_common_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_common_configuration_free | ( | scanbotsdk_document_data_extractor_common_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_document_data_extractor_common_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_common_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_common_configuration_get_accepted_document_types | ( | scanbotsdk_document_data_extractor_common_configuration_t * | self, |
| const char ** | accepted_document_types, | ||
| size_t | size ) |
Returns value of accepted_document_types field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of document types to scan. By default, the list is empty.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_common_configuration_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| accepted_document_types | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_common_configuration_get_accepted_document_types_size | ( | scanbotsdk_document_data_extractor_common_configuration_t * | self, |
| size_t * | size ) |
Returns size of accepted_document_types array.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_common_configuration_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_common_configuration_set_accepted_document_types | ( | scanbotsdk_document_data_extractor_common_configuration_t * | self, |
| const char ** | accepted_document_types, | ||
| size_t | accepted_document_types_size ) |
Sets value of accepted_document_types field of the given object.
List of document types to scan. By default, the list is empty.
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_common_configuration_t, the field of which will be set |
| accepted_document_types | The value to be set. |
| accepted_document_types_size | Size of the array. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_create | ( | scanbotsdk_result_accumulation_configuration_t * | result_accumulation_config, |
| const char ** | field_exclude_list, | ||
| size_t | field_exclude_list_size, | ||
| scanbotsdk_document_data_extractor_configuration_element_t ** | configurations, | ||
| size_t | configurations_size, | ||
| bool | return_crops, | ||
| scanbotsdk_document_trust_mode_t | document_trust_mode, | ||
| scanbotsdk_processing_mode_t | processing_mode, | ||
| scanbotsdk_document_data_extractor_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_document_data_extractor_configuration 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.
| result_accumulation_config | Configuration for how to accumulate results. The value must not be null. |
| field_exclude_list | Normalized names of the fields to exclude from the result. Entries of the array must not be null. |
| field_exclude_list_size | Size of the array field_exclude_list |
| configurations | List of configuration elements for the document data extractor. Entries of the array must not be null. |
| configurations_size | Size of the array configurations |
| return_crops | If true, crops of the detected documents and fields will be returned in the result. |
Default is false
| document_trust_mode | Level of trust in the authenticity of the extracted document. |
Default is TRUSTED
| processing_mode | Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it. |
On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.
Default is AUTO
| result | Pointer to a variable that will store the created instance of scanbotsdk_document_data_extractor_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_create_with_defaults | ( | scanbotsdk_document_data_extractor_configuration_t ** | result | ) |
Creates a new instance of scanbotsdk_document_data_extractor_configuration_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.
| result | Pointer to a variable that will store the created instance of scanbotsdk_document_data_extractor_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_as_scanbotsdk_auto_focus_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| scanbotsdk_auto_focus_configuration_t ** | result ) |
Casts the given instance of scanbotsdk_document_data_extractor_configuration_element_t to its subtype scanbotsdk_auto_focus_configuration_t. If the given instance is not an instance of the subtype, result will be null.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_auto_focus_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_as_scanbotsdk_date_validation_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| scanbotsdk_date_validation_configuration_t ** | result ) |
Casts the given instance of scanbotsdk_document_data_extractor_configuration_element_t to its subtype scanbotsdk_date_validation_configuration_t. If the given instance is not an instance of the subtype, result will be null.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_date_validation_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_as_scanbotsdk_de_address_parser_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| scanbotsdk_de_address_parser_configuration_t ** | result ) |
Casts the given instance of scanbotsdk_document_data_extractor_configuration_element_t to its subtype scanbotsdk_de_address_parser_configuration_t. If the given instance is not an instance of the subtype, result will be null.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_de_address_parser_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_as_scanbotsdk_document_data_extractor_common_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| scanbotsdk_document_data_extractor_common_configuration_t ** | result ) |
Casts the given instance of scanbotsdk_document_data_extractor_configuration_element_t to its subtype scanbotsdk_document_data_extractor_common_configuration_t. If the given instance is not an instance of the subtype, result will be null.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_document_data_extractor_common_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_as_scanbotsdk_european_health_insurance_card_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| scanbotsdk_european_health_insurance_card_configuration_t ** | result ) |
Casts the given instance of scanbotsdk_document_data_extractor_configuration_element_t to its subtype scanbotsdk_european_health_insurance_card_configuration_t. If the given instance is not an instance of the subtype, result will be null.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_european_health_insurance_card_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_as_scanbotsdk_glare_detection_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| scanbotsdk_glare_detection_configuration_t ** | result ) |
Casts the given instance of scanbotsdk_document_data_extractor_configuration_element_t to its subtype scanbotsdk_glare_detection_configuration_t. If the given instance is not an instance of the subtype, result will be null.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_glare_detection_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_as_scanbotsdk_mrz_fallback_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| scanbotsdk_mrz_fallback_configuration_t ** | result ) |
Casts the given instance of scanbotsdk_document_data_extractor_configuration_element_t to its subtype scanbotsdk_mrz_fallback_configuration_t. If the given instance is not an instance of the subtype, result will be null.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_mrz_fallback_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_free | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_document_data_extractor_configuration_element_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_is_scanbotsdk_auto_focus_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| bool * | result ) |
Checks if the given instance of scanbotsdk_document_data_extractor_configuration_element_t is an instance of its subtype scanbotsdk_auto_focus_configuration_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be checked |
| result | Pointer to a variable that will store the result of the check |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_is_scanbotsdk_date_validation_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| bool * | result ) |
Checks if the given instance of scanbotsdk_document_data_extractor_configuration_element_t is an instance of its subtype scanbotsdk_date_validation_configuration_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be checked |
| result | Pointer to a variable that will store the result of the check |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_is_scanbotsdk_de_address_parser_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| bool * | result ) |
Checks if the given instance of scanbotsdk_document_data_extractor_configuration_element_t is an instance of its subtype scanbotsdk_de_address_parser_configuration_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be checked |
| result | Pointer to a variable that will store the result of the check |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_is_scanbotsdk_document_data_extractor_common_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| bool * | result ) |
Checks if the given instance of scanbotsdk_document_data_extractor_configuration_element_t is an instance of its subtype scanbotsdk_document_data_extractor_common_configuration_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be checked |
| result | Pointer to a variable that will store the result of the check |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_is_scanbotsdk_european_health_insurance_card_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| bool * | result ) |
Checks if the given instance of scanbotsdk_document_data_extractor_configuration_element_t is an instance of its subtype scanbotsdk_european_health_insurance_card_configuration_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be checked |
| result | Pointer to a variable that will store the result of the check |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_is_scanbotsdk_glare_detection_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| bool * | result ) |
Checks if the given instance of scanbotsdk_document_data_extractor_configuration_element_t is an instance of its subtype scanbotsdk_glare_detection_configuration_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be checked |
| result | Pointer to a variable that will store the result of the check |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_element_is_scanbotsdk_mrz_fallback_configuration | ( | scanbotsdk_document_data_extractor_configuration_element_t * | object, |
| bool * | result ) |
Checks if the given instance of scanbotsdk_document_data_extractor_configuration_element_t is an instance of its subtype scanbotsdk_mrz_fallback_configuration_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be checked |
| result | Pointer to a variable that will store the result of the check |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_free | ( | scanbotsdk_document_data_extractor_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_document_data_extractor_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_get_configurations | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | configurations, | ||
| size_t | size ) |
Returns value of configurations field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of configuration elements for the document data extractor.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| configurations | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_get_configurations_size | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| size_t * | size ) |
Returns size of configurations array.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_get_document_trust_mode | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| scanbotsdk_document_trust_mode_t * | document_trust_mode ) |
Returns value of document_trust_mode field of the given object.
Level of trust in the authenticity of the extracted document.
Default is TRUSTED
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t |
| document_trust_mode | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_get_field_exclude_list | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| const char ** | field_exclude_list, | ||
| size_t | size ) |
Returns value of field_exclude_list field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Normalized names of the fields to exclude from the result.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| field_exclude_list | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_get_field_exclude_list_size | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| size_t * | size ) |
Returns size of field_exclude_list array.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_get_processing_mode | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| scanbotsdk_processing_mode_t * | processing_mode ) |
Returns value of processing_mode field of the given object.
Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it.
On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.
Default is AUTO
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t |
| processing_mode | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_get_result_accumulation_config | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| scanbotsdk_result_accumulation_configuration_t ** | result_accumulation_config ) |
Returns value of result_accumulation_config field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Configuration for how to accumulate results.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t |
| result_accumulation_config | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_get_return_crops | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| bool * | return_crops ) |
Returns value of return_crops field of the given object.
If true, crops of the detected documents and fields will be returned in the result.
Default is false
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t |
| return_crops | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_set_configurations | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | configurations, | ||
| size_t | configurations_size ) |
Sets value of configurations field of the given object.
List of configuration elements for the document data extractor.
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t, the field of which will be set |
| configurations | The value to be set. |
| configurations_size | Size of the array. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_set_document_trust_mode | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| scanbotsdk_document_trust_mode_t | document_trust_mode ) |
Sets value of document_trust_mode field of the given object.
Level of trust in the authenticity of the extracted document.
Default is TRUSTED
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t, the field of which will be set |
| document_trust_mode | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_set_field_exclude_list | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| const char ** | field_exclude_list, | ||
| size_t | field_exclude_list_size ) |
Sets value of field_exclude_list field of the given object.
Normalized names of the fields to exclude from the result.
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t, the field of which will be set |
| field_exclude_list | The value to be set. |
| field_exclude_list_size | Size of the array. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_set_processing_mode | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| scanbotsdk_processing_mode_t | processing_mode ) |
Sets value of processing_mode field of the given object.
Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it.
On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.
Default is AUTO
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t, the field of which will be set |
| processing_mode | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_set_result_accumulation_config | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| scanbotsdk_result_accumulation_configuration_t * | result_accumulation_config ) |
Sets value of result_accumulation_config field of the given object.
Configuration for how to accumulate results.
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t, the field of which will be set |
| result_accumulation_config | The value to be set. Must not be null. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_configuration_set_return_crops | ( | scanbotsdk_document_data_extractor_configuration_t * | self, |
| bool | return_crops ) |
Sets value of return_crops field of the given object.
If true, crops of the detected documents and fields will be returned in the result.
Default is false
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_t, the field of which will be set |
| return_crops | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_create | ( | scanbotsdk_document_data_extractor_configuration_t * | configuration, |
| scanbotsdk_document_data_extractor_t ** | result ) |
Creates a new instance of scanbotsdk_document_data_extractor 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.
| configuration | The configuration to use for the recognizer. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_document_data_extractor_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_free | ( | scanbotsdk_document_data_extractor_t * | self | ) |
Frees the memory allocated for the instance of scanbotsdk_document_data_extractor_t. If null is passed, the function does nothing.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_run | ( | scanbotsdk_document_data_extractor_t * | self, |
| scanbotsdk_image_t * | image, | ||
| scanbotsdk_document_data_extraction_result_t ** | result ) |
Recognize the document in the given image.
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_t method to be called on |
| image | The image to recognize. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_document_data_extractor_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_data_extractor_verify_document | ( | scanbotsdk_document_data_extractor_t * | self, |
| scanbotsdk_generic_document_t ** | document_parts, | ||
| size_t | document_parts_size, | ||
| scanbotsdk_document_verification_report_t ** | result ) |
Verify whether the extracted document has signs of forgery or tampering.
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.
| self | Pointer to the instance of scanbotsdk_document_data_extractor_t method to be called on |
| document_parts | The document parts to verify. For example, the front and back of an ID card. Entries of the array must not be null. |
| document_parts_size | Size of the array document_parts |
| result | Pointer to a variable that will store the created instance of scanbotsdk_document_data_extractor_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_trust_mode_t_to_string | ( | scanbotsdk_document_trust_mode_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_document_trust_mode_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_document_verification_report_free | ( | scanbotsdk_document_verification_report_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_document_verification_report_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_document_verification_report_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_verification_report_get_consistency_verification_report | ( | scanbotsdk_document_verification_report_t * | self, |
| scanbotsdk_consistency_verification_report_t ** | consistency_verification_report ) |
Returns value of consistency_verification_report field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Report of the document consistency verification. Shows whether information in the fields that correspond to the same logical field and is present in different parts of the document is consistent.
| self | Pointer to the instance of scanbotsdk_document_verification_report_t |
| consistency_verification_report | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_verification_report_get_invalid_data_verification_report | ( | scanbotsdk_document_verification_report_t * | self, |
| scanbotsdk_invalid_data_verification_report_t ** | invalid_data_verification_report ) |
Returns value of invalid_data_verification_report field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Some fields in the documents allow validation, for example, MRZ contains check digits to verify the data. This report shows whether there are any invalid fields in the document.
| self | Pointer to the instance of scanbotsdk_document_verification_report_t |
| invalid_data_verification_report | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_verification_report_get_overall_verification_status | ( | scanbotsdk_document_verification_report_t * | self, |
| scanbotsdk_document_verification_status_t * | overall_verification_status ) |
Returns value of overall_verification_status field of the given object.
Overall status of the document verification.
| self | Pointer to the instance of scanbotsdk_document_verification_report_t |
| overall_verification_status | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_verification_report_get_semantics_verification_report | ( | scanbotsdk_document_verification_report_t * | self, |
| scanbotsdk_semantics_verification_report_t ** | semantics_verification_report ) |
Returns value of semantics_verification_report field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Report of the semantics verification. Shows whether the values in the fields are semantically correct.
| self | Pointer to the instance of scanbotsdk_document_verification_report_t |
| semantics_verification_report | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_verification_report_get_suspicious_data_verification_report | ( | scanbotsdk_document_verification_report_t * | self, |
| scanbotsdk_suspicious_data_verification_report_t ** | suspicious_data_verification_report ) |
Returns value of suspicious_data_verification_report field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Shows whether the data in the document is suspicious, e.g. contains word "Sample" in the name.
| self | Pointer to the instance of scanbotsdk_document_verification_report_t |
| suspicious_data_verification_report | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_verification_status_t_to_string | ( | scanbotsdk_document_verification_status_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_document_verification_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_european_health_insurance_card_configuration_as_scanbotsdk_document_data_extractor_configuration_element | ( | scanbotsdk_european_health_insurance_card_configuration_t * | object, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | result ) |
Casts the given instance of scanbotsdk_european_health_insurance_card_configuration_t to its parent type scanbotsdk_document_data_extractor_configuration_element_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_european_health_insurance_card_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_european_health_insurance_card_configuration_create | ( | scanbotsdk_european_health_insurance_card_issuing_country_t * | expected_country, |
| scanbotsdk_european_health_insurance_card_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_european_health_insurance_card_configuration 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.
| expected_country | If an expected country is selected, validation rules for the given country are used, and if the expected country cannot be inferred or the inferred country doesn't match the given country, the result of extract() will be IncompleteValidation. The value can be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_european_health_insurance_card_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_european_health_insurance_card_configuration_create_with_defaults | ( | scanbotsdk_european_health_insurance_card_configuration_t ** | result | ) |
Creates a new instance of scanbotsdk_european_health_insurance_card_configuration_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.
| result | Pointer to a variable that will store the created instance of scanbotsdk_european_health_insurance_card_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_european_health_insurance_card_configuration_free | ( | scanbotsdk_european_health_insurance_card_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_european_health_insurance_card_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_european_health_insurance_card_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_european_health_insurance_card_configuration_get_expected_country | ( | scanbotsdk_european_health_insurance_card_configuration_t * | self, |
| scanbotsdk_european_health_insurance_card_issuing_country_t ** | expected_country ) |
Returns value of expected_country field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
If an expected country is selected, validation rules for the given country are used, and if the expected country cannot be inferred or the inferred country doesn't match the given country, the result of extract() will be IncompleteValidation.
| self | Pointer to the instance of scanbotsdk_european_health_insurance_card_configuration_t |
| expected_country | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_european_health_insurance_card_configuration_set_expected_country | ( | scanbotsdk_european_health_insurance_card_configuration_t * | self, |
| scanbotsdk_european_health_insurance_card_issuing_country_t * | expected_country ) |
Sets value of expected_country field of the given object.
If an expected country is selected, validation rules for the given country are used, and if the expected country cannot be inferred or the inferred country doesn't match the given country, the result of extract() will be IncompleteValidation.
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.
| self | Pointer to the instance of scanbotsdk_european_health_insurance_card_configuration_t, the field of which will be set |
| expected_country | The value to be set. Can be null. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_european_health_insurance_card_issuing_country_t_to_string | ( | scanbotsdk_european_health_insurance_card_issuing_country_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_european_health_insurance_card_issuing_country_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_consistency_verification_report_free | ( | scanbotsdk_field_consistency_verification_report_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_field_consistency_verification_report_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_field_consistency_verification_report_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_consistency_verification_report_get_consistency | ( | scanbotsdk_field_consistency_verification_report_t * | self, |
| scanbotsdk_value_consistency_t * | consistency ) |
Returns value of consistency field of the given object.
The status of the consistency verification.
| self | Pointer to the instance of scanbotsdk_field_consistency_verification_report_t |
| consistency | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_consistency_verification_report_get_field_full_names | ( | scanbotsdk_field_consistency_verification_report_t * | self, |
| const char ** | field_full_names, | ||
| size_t | size ) |
Returns value of field_full_names field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Full names of the fields that were considered during the verification.
| self | Pointer to the instance of scanbotsdk_field_consistency_verification_report_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| field_full_names | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_consistency_verification_report_get_field_full_names_size | ( | scanbotsdk_field_consistency_verification_report_t * | self, |
| size_t * | size ) |
Returns size of field_full_names array.
| self | Pointer to the instance of scanbotsdk_field_consistency_verification_report_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_consistency_verification_report_get_field_type | ( | scanbotsdk_field_consistency_verification_report_t * | self, |
| scanbotsdk_common_field_type_t * | field_type ) |
Returns value of field_type field of the given object.
Logical field that is being verified.
| self | Pointer to the instance of scanbotsdk_field_consistency_verification_report_t |
| field_type | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_invalid_data_verification_report_free | ( | scanbotsdk_field_invalid_data_verification_report_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_field_invalid_data_verification_report_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_field_invalid_data_verification_report_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_invalid_data_verification_report_get_field_full_name | ( | scanbotsdk_field_invalid_data_verification_report_t * | self, |
| const char ** | field_full_name ) |
Returns value of field_full_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Full name of the field that was considered during the verification.
| self | Pointer to the instance of scanbotsdk_field_invalid_data_verification_report_t |
| field_full_name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_invalid_data_verification_report_get_is_invalid | ( | scanbotsdk_field_invalid_data_verification_report_t * | self, |
| bool * | is_invalid ) |
Returns value of is_invalid field of the given object.
Shows whether the data in the field is valid, e.g. if MRZ check digits are correct.
| self | Pointer to the instance of scanbotsdk_field_invalid_data_verification_report_t |
| is_invalid | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_suspicious_data_verification_report_free | ( | scanbotsdk_field_suspicious_data_verification_report_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_field_suspicious_data_verification_report_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_field_suspicious_data_verification_report_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_suspicious_data_verification_report_get_field_full_name | ( | scanbotsdk_field_suspicious_data_verification_report_t * | self, |
| const char ** | field_full_name ) |
Returns value of field_full_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Full name of the field that was considered during the verification.
| self | Pointer to the instance of scanbotsdk_field_suspicious_data_verification_report_t |
| field_full_name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_suspicious_data_verification_report_get_is_suspicious | ( | scanbotsdk_field_suspicious_data_verification_report_t * | self, |
| bool * | is_suspicious ) |
Returns value of is_suspicious field of the given object.
Shows whether the data in the field is suspicious, e.g. contains word "Sample" in the name.
| self | Pointer to the instance of scanbotsdk_field_suspicious_data_verification_report_t |
| is_suspicious | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_value_semantics_free | ( | scanbotsdk_field_value_semantics_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_field_value_semantics_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_field_value_semantics_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_value_semantics_get_field_full_name | ( | scanbotsdk_field_value_semantics_t * | self, |
| const char ** | field_full_name ) |
Returns value of field_full_name field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Full name of the field that was considered during the verification.
| self | Pointer to the instance of scanbotsdk_field_value_semantics_t |
| field_full_name | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_field_value_semantics_get_invalid_semantics | ( | scanbotsdk_field_value_semantics_t * | self, |
| bool * | invalid_semantics ) |
Returns value of invalid_semantics field of the given object.
Shows whether the data in the field is semantically invalid, e.g. the date of birth is in the future.
| self | Pointer to the instance of scanbotsdk_field_value_semantics_t |
| invalid_semantics | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_glare_detection_configuration_as_scanbotsdk_document_data_extractor_configuration_element | ( | scanbotsdk_glare_detection_configuration_t * | object, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | result ) |
Casts the given instance of scanbotsdk_glare_detection_configuration_t to its parent type scanbotsdk_document_data_extractor_configuration_element_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_glare_detection_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_glare_detection_configuration_create | ( | double | glare_detection_threshold, |
| scanbotsdk_glare_detection_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_glare_detection_configuration 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.
| glare_detection_threshold | Glare detection threshold. The value should be in the range [0.0, 1.0]. Determines how much glare is acceptable relative to the text size. So 0.5 means that the glare can be up to 50% of the text size. If set to 0.0, the feature is disabled. |
Default is 0.5
| result | Pointer to a variable that will store the created instance of scanbotsdk_glare_detection_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_glare_detection_configuration_create_with_defaults | ( | scanbotsdk_glare_detection_configuration_t ** | result | ) |
Creates a new instance of scanbotsdk_glare_detection_configuration_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.
| result | Pointer to a variable that will store the created instance of scanbotsdk_glare_detection_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_glare_detection_configuration_free | ( | scanbotsdk_glare_detection_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_glare_detection_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_glare_detection_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_glare_detection_configuration_get_glare_detection_threshold | ( | scanbotsdk_glare_detection_configuration_t * | self, |
| double * | glare_detection_threshold ) |
Returns value of glare_detection_threshold field of the given object.
Glare detection threshold. The value should be in the range [0.0, 1.0]. Determines how much glare is acceptable relative to the text size. So 0.5 means that the glare can be up to 50% of the text size. If set to 0.0, the feature is disabled.
Default is 0.5
| self | Pointer to the instance of scanbotsdk_glare_detection_configuration_t |
| glare_detection_threshold | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_glare_detection_configuration_set_glare_detection_threshold | ( | scanbotsdk_glare_detection_configuration_t * | self, |
| double | glare_detection_threshold ) |
Sets value of glare_detection_threshold field of the given object.
Glare detection threshold. The value should be in the range [0.0, 1.0]. Determines how much glare is acceptable relative to the text size. So 0.5 means that the glare can be up to 50% of the text size. If set to 0.0, the feature is disabled.
Default is 0.5
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.
| self | Pointer to the instance of scanbotsdk_glare_detection_configuration_t, the field of which will be set |
| glare_detection_threshold | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_invalid_data_verification_report_free | ( | scanbotsdk_invalid_data_verification_report_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_invalid_data_verification_report_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_invalid_data_verification_report_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_invalid_data_verification_report_get_field_details | ( | scanbotsdk_invalid_data_verification_report_t * | self, |
| scanbotsdk_field_invalid_data_verification_report_t ** | field_details, | ||
| size_t | size ) |
Returns value of field_details field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of reports for each field that was verified.
| self | Pointer to the instance of scanbotsdk_invalid_data_verification_report_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| field_details | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_invalid_data_verification_report_get_field_details_size | ( | scanbotsdk_invalid_data_verification_report_t * | self, |
| size_t * | size ) |
Returns size of field_details array.
| self | Pointer to the instance of scanbotsdk_invalid_data_verification_report_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_invalid_data_verification_report_get_overall_is_invalid | ( | scanbotsdk_invalid_data_verification_report_t * | self, |
| bool * | overall_is_invalid ) |
Returns value of overall_is_invalid field of the given object.
Overall status of the document verification. Corresponds to the most severe status of all fields, i.e. if at least one field is invalid, the overall status is invalid.
| self | Pointer to the instance of scanbotsdk_invalid_data_verification_report_t |
| overall_is_invalid | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_as_scanbotsdk_document_data_extractor_configuration_element | ( | scanbotsdk_mrz_fallback_configuration_t * | object, |
| scanbotsdk_document_data_extractor_configuration_element_t ** | result ) |
Casts the given instance of scanbotsdk_mrz_fallback_configuration_t to its parent type scanbotsdk_document_data_extractor_configuration_element_t.
| object | Pointer to the instance of scanbotsdk_document_data_extractor_configuration_element_t to be casted |
| result | Pointer to a variable that will store the casted instance of scanbotsdk_mrz_fallback_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_create | ( | const char ** | accepted_countries, |
| size_t | accepted_countries_size, | ||
| scanbotsdk_mrz_document_type_t * | accepted_mrz_types, | ||
| size_t | accepted_mrz_types_size, | ||
| scanbotsdk_mrz_fallback_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_mrz_fallback_configuration 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.
| accepted_countries | List of ISO 3166-1 alpha-3 country codes for which the MRZ fallback is enabled. (e.g. "DEU" for Germany). Entries of the array must not be null. |
| accepted_countries_size | Size of the array accepted_countries |
| accepted_mrz_types | List of MRZ document types for which MRZ fallback is enabled. |
| accepted_mrz_types_size | Size of the array accepted_mrz_types |
| result | Pointer to a variable that will store the created instance of scanbotsdk_mrz_fallback_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_create_with_defaults | ( | scanbotsdk_mrz_fallback_configuration_t ** | result | ) |
Creates a new instance of scanbotsdk_mrz_fallback_configuration_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.
| result | Pointer to a variable that will store the created instance of scanbotsdk_mrz_fallback_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_free | ( | scanbotsdk_mrz_fallback_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_mrz_fallback_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_mrz_fallback_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_get_accepted_countries | ( | scanbotsdk_mrz_fallback_configuration_t * | self, |
| const char ** | accepted_countries, | ||
| size_t | size ) |
Returns value of accepted_countries field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of ISO 3166-1 alpha-3 country codes for which the MRZ fallback is enabled. (e.g. "DEU" for Germany).
| self | Pointer to the instance of scanbotsdk_mrz_fallback_configuration_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| accepted_countries | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_get_accepted_countries_size | ( | scanbotsdk_mrz_fallback_configuration_t * | self, |
| size_t * | size ) |
Returns size of accepted_countries array.
| self | Pointer to the instance of scanbotsdk_mrz_fallback_configuration_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_get_accepted_mrz_types | ( | scanbotsdk_mrz_fallback_configuration_t * | self, |
| scanbotsdk_mrz_document_type_t ** | accepted_mrz_types ) |
Returns value of accepted_mrz_types field of the given object. The returned value is direct view into memory, no pre-allocations needed.
List of MRZ document types for which MRZ fallback is enabled.
| self | Pointer to the instance of scanbotsdk_mrz_fallback_configuration_t |
| accepted_mrz_types | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_get_accepted_mrz_types_size | ( | scanbotsdk_mrz_fallback_configuration_t * | self, |
| size_t * | size ) |
Returns size of accepted_mrz_types array.
| self | Pointer to the instance of scanbotsdk_mrz_fallback_configuration_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_set_accepted_countries | ( | scanbotsdk_mrz_fallback_configuration_t * | self, |
| const char ** | accepted_countries, | ||
| size_t | accepted_countries_size ) |
Sets value of accepted_countries field of the given object.
List of ISO 3166-1 alpha-3 country codes for which the MRZ fallback is enabled. (e.g. "DEU" for Germany).
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.
| self | Pointer to the instance of scanbotsdk_mrz_fallback_configuration_t, the field of which will be set |
| accepted_countries | The value to be set. |
| accepted_countries_size | Size of the array. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_mrz_fallback_configuration_set_accepted_mrz_types | ( | scanbotsdk_mrz_fallback_configuration_t * | self, |
| scanbotsdk_mrz_document_type_t * | accepted_mrz_types, | ||
| size_t | accepted_mrz_types_size ) |
Sets value of accepted_mrz_types field of the given object.
List of MRZ document types for which MRZ fallback is enabled.
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.
| self | Pointer to the instance of scanbotsdk_mrz_fallback_configuration_t, the field of which will be set |
| accepted_mrz_types | The value to be set. |
| accepted_mrz_types_size | Size of the array. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_semantics_verification_report_free | ( | scanbotsdk_semantics_verification_report_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_semantics_verification_report_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_semantics_verification_report_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_semantics_verification_report_get_birth_date_before_expiry_date | ( | scanbotsdk_semantics_verification_report_t * | self, |
| scanbotsdk_value_semantics_t * | birth_date_before_expiry_date ) |
Returns value of birth_date_before_expiry_date field of the given object.
Result of verification whether the birth date is before the expiry date.
| self | Pointer to the instance of scanbotsdk_semantics_verification_report_t |
| birth_date_before_expiry_date | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_semantics_verification_report_get_birth_date_before_issue_date | ( | scanbotsdk_semantics_verification_report_t * | self, |
| scanbotsdk_value_semantics_t * | birth_date_before_issue_date ) |
Returns value of birth_date_before_issue_date field of the given object.
Result of verification whether the birth date is before the issue date.
| self | Pointer to the instance of scanbotsdk_semantics_verification_report_t |
| birth_date_before_issue_date | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_semantics_verification_report_get_birth_date_semantics | ( | scanbotsdk_semantics_verification_report_t * | self, |
| scanbotsdk_composite_field_value_semantics_t ** | birth_date_semantics ) |
Returns value of birth_date_semantics field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Status of the birth date semantics verification. Shows whether the birth date in the document is in the past.
| self | Pointer to the instance of scanbotsdk_semantics_verification_report_t |
| birth_date_semantics | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_semantics_verification_report_get_expiry_date_semantics | ( | scanbotsdk_semantics_verification_report_t * | self, |
| scanbotsdk_composite_field_value_semantics_t ** | expiry_date_semantics ) |
Returns value of expiry_date_semantics field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Status of the expiry date semantics verification. Shows whether the expiry date in the document is in the future.
| self | Pointer to the instance of scanbotsdk_semantics_verification_report_t |
| expiry_date_semantics | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_semantics_verification_report_get_issue_date_before_expiry_date | ( | scanbotsdk_semantics_verification_report_t * | self, |
| scanbotsdk_value_semantics_t * | issue_date_before_expiry_date ) |
Returns value of issue_date_before_expiry_date field of the given object.
Result of verification whether the issue date is before the expiry date.
| self | Pointer to the instance of scanbotsdk_semantics_verification_report_t |
| issue_date_before_expiry_date | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_semantics_verification_report_get_issue_date_semantics | ( | scanbotsdk_semantics_verification_report_t * | self, |
| scanbotsdk_composite_field_value_semantics_t ** | issue_date_semantics ) |
Returns value of issue_date_semantics field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Status of the issue date semantics verification. Shows whether the issue date in the document is in the past.
| self | Pointer to the instance of scanbotsdk_semantics_verification_report_t |
| issue_date_semantics | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_semantics_verification_report_get_overall_invalid_semantics | ( | scanbotsdk_semantics_verification_report_t * | self, |
| bool * | overall_invalid_semantics ) |
Returns value of overall_invalid_semantics field of the given object.
Overall status of the value semantics verification. Corresponds to the most severe status of all fields, i.e. if at least one field is semantically incorrect, the overall status is semantically incorrect. If some verifications are skipped, they do not impact the overall status.
| self | Pointer to the instance of scanbotsdk_semantics_verification_report_t |
| overall_invalid_semantics | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_suspicious_data_verification_report_free | ( | scanbotsdk_suspicious_data_verification_report_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_suspicious_data_verification_report_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_suspicious_data_verification_report_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_suspicious_data_verification_report_get_field_details | ( | scanbotsdk_suspicious_data_verification_report_t * | self, |
| scanbotsdk_field_suspicious_data_verification_report_t ** | field_details, | ||
| size_t | size ) |
Returns value of field_details field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of reports for each field that was verified.
| self | Pointer to the instance of scanbotsdk_suspicious_data_verification_report_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| field_details | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_suspicious_data_verification_report_get_field_details_size | ( | scanbotsdk_suspicious_data_verification_report_t * | self, |
| size_t * | size ) |
Returns size of field_details array.
| self | Pointer to the instance of scanbotsdk_suspicious_data_verification_report_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_suspicious_data_verification_report_get_overall_suspicious_data | ( | scanbotsdk_suspicious_data_verification_report_t * | self, |
| bool * | overall_suspicious_data ) |
Returns value of overall_suspicious_data field of the given object.
Overall status of the suspicious data verification. Corresponds to the most severe status of all fields, i.e. if at least one field is suspicious, the overall status is suspicious.
| self | Pointer to the instance of scanbotsdk_suspicious_data_verification_report_t |
| overall_suspicious_data | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_value_consistency_t_to_string | ( | scanbotsdk_value_consistency_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_value_consistency_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_value_semantics_t_to_string | ( | scanbotsdk_value_semantics_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_value_semantics_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. |