Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKTextPatternScannerTypes.h
Go to the documentation of this file.
1// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
2// Generated from SchemasV3/CoreSchemas/schemas/TextPatternScannerTypes.yaml
6
7#pragma once
8#ifndef SCANBOTSDK_TEXTPATTERNSCANNERTYPES_H
9#define SCANBOTSDK_TEXTPATTERNSCANNERTYPES_H
10
11
12#include <ScanbotSDKTypes.h>
13#include <stdbool.h>
14#include <stddef.h>
15#include <stdint.h>
16#include <string.h>
17#include <ScanbotSDKErrorCode.h>
18#include <ScanbotSDKDefs.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24
42
52
59
67
77
87
99
100
107
115
125
135
145
146
153
161
171
190
209
221
233
234
241
249
250
257
273 scanbotsdk_u8string_ref_t allowed_characters,
275
286
287
295
320
349
350
357
381 scanbotsdk_u8string_ref_t allowed_characters,
383 bool match_substring,
384 scanbotsdk_pattern_grammar_t pattern_grammar,
386
400
401
409
434
463
484
509
534
535
542
571 int ocr_resolution_limit,
572 int input_height_limit,
573 int maximum_number_of_accumulated_frames,
574 int minimum_number_of_required_frames_with_equal_scanning_result,
575 bool optimize_single_line,
578
589
590
598
627
652
677
702
727
748
749
750#ifdef __cplusplus
751} /* extern "C" */
752#endif
753
754#endif /* SCANBOTSDK_TEXTPATTERNSCANNERTYPES_H */
ScanbotSDK Error Code C API.
scanbotsdk_error_code_t
The error codes returned by most of the Scanbot SDK functions.
Definition ScanbotSDKErrorCode.h:26
The Scanbot SDK C API primitive types.
Represents a rectangle with integer coordinates.
Definition ScanbotSDKTypes.h:51
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_set_allowed_characters(scanbotsdk_default_content_validator_t *self, scanbotsdk_u8string_ref_t allowed_characters)
Sets value of allowed_characters field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_get_optimize_single_line(scanbotsdk_text_pattern_scanner_configuration_t *self, bool *optimize_single_line)
Returns value of optimize_single_line field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_grammar_t_to_string(scanbotsdk_pattern_grammar_t value, const char **result)
Returns the string representation of the given scanbotsdk_pattern_grammar_t value.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_set_allowed_characters(scanbotsdk_pattern_content_validator_t *self, scanbotsdk_u8string_ref_t allowed_characters)
Sets value of allowed_characters field of the given object.
struct scanbotsdk_default_content_validator_t scanbotsdk_default_content_validator_t
scanbotsdk_default_content_validator_t class
Definition ScanbotSDKTextPatternScannerTypes.h:256
struct scanbotsdk_pattern_content_validator_t scanbotsdk_pattern_content_validator_t
scanbotsdk_pattern_content_validator_t class
Definition ScanbotSDKTextPatternScannerTypes.h:356
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_get_allowed_characters(scanbotsdk_default_content_validator_t *self, scanbotsdk_u8string_ref_t *allowed_characters)
Returns value of allowed_characters field of the given object. The returned pointers do NOT own the u...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_symbol_boxes_size(scanbotsdk_text_pattern_scanner_result_t *self, size_t *size)
Returns size of symbol_boxes array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_symbol_boxes(scanbotsdk_text_pattern_scanner_result_t *self, scanbotsdk_symbol_box_t **symbol_boxes, size_t size)
Returns value of symbol_boxes field of the given object. The returned pointers do NOT own the underly...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_set_input_height_limit(scanbotsdk_text_pattern_scanner_configuration_t *self, int input_height_limit)
Sets value of input_height_limit field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_as_scanbotsdk_content_validator(scanbotsdk_pattern_content_validator_t *object, scanbotsdk_content_validator_t **result)
Casts the given instance of scanbotsdk_pattern_content_validator_t to its parent type scanbotsdk_cont...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_content_validator_free(scanbotsdk_content_validator_t *object)
Frees the memory allocated for the instance of scanbotsdk_content_validator_t. If null is passed,...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_set_maximum_number_of_accumulated_frames(scanbotsdk_text_pattern_scanner_configuration_t *self, int maximum_number_of_accumulated_frames)
Sets value of maximum_number_of_accumulated_frames field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_set_minimum_number_of_required_frames_with_equal_scanning_result(scanbotsdk_text_pattern_scanner_configuration_t *self, int minimum_number_of_required_frames_with_equal_scanning_result)
Sets value of minimum_number_of_required_frames_with_equal_scanning_result field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_get_ocr_resolution_limit(scanbotsdk_text_pattern_scanner_configuration_t *self, int *ocr_resolution_limit)
Returns value of ocr_resolution_limit field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_create(int ocr_resolution_limit, int input_height_limit, int maximum_number_of_accumulated_frames, int minimum_number_of_required_frames_with_equal_scanning_result, bool optimize_single_line, scanbotsdk_content_validator_t *validator, scanbotsdk_text_pattern_scanner_configuration_t **result)
Creates a new instance of scanbotsdk_text_pattern_scanner_configuration with given params and stores ...
struct scanbotsdk_content_validator_t scanbotsdk_content_validator_t
scanbotsdk_content_validator_t class
Definition ScanbotSDKTextPatternScannerTypes.h:240
struct scanbotsdk_text_pattern_scanner_configuration_t scanbotsdk_text_pattern_scanner_configuration_t
scanbotsdk_text_pattern_scanner_configuration_t class
Definition ScanbotSDKTextPatternScannerTypes.h:541
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_set_pattern_grammar(scanbotsdk_pattern_content_validator_t *self, scanbotsdk_pattern_grammar_t pattern_grammar)
Sets value of pattern_grammar field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_get_validator(scanbotsdk_text_pattern_scanner_configuration_t *self, scanbotsdk_content_validator_t **validator)
Returns value of validator field of the given object. The returned pointers do NOT own the underlying...
struct scanbotsdk_word_box_t scanbotsdk_word_box_t
scanbotsdk_word_box_t class
Definition ScanbotSDKTextPatternScannerTypes.h:58
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_as_scanbotsdk_content_validator(scanbotsdk_default_content_validator_t *object, scanbotsdk_content_validator_t **result)
Casts the given instance of scanbotsdk_default_content_validator_t to its parent type scanbotsdk_cont...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_box_get_bounding_rect(scanbotsdk_word_box_t *self, scanbotsdk_rect_t *bounding_rect)
Returns value of bounding_rect field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_set_ocr_resolution_limit(scanbotsdk_text_pattern_scanner_configuration_t *self, int ocr_resolution_limit)
Sets value of ocr_resolution_limit field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_get_match_substring(scanbotsdk_pattern_content_validator_t *self, bool *match_substring)
Returns value of match_substring field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_set_optimize_single_line(scanbotsdk_text_pattern_scanner_configuration_t *self, bool optimize_single_line)
Sets value of optimize_single_line field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_symbol_box_get_bounding_rect(scanbotsdk_symbol_box_t *self, scanbotsdk_rect_t *bounding_rect)
Returns value of bounding_rect field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_get_allowed_characters(scanbotsdk_pattern_content_validator_t *self, scanbotsdk_u8string_ref_t *allowed_characters)
Returns value of allowed_characters field of the given object. The returned pointers do NOT own the u...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_free(scanbotsdk_text_pattern_scanner_configuration_t *object)
Frees the memory allocated for the instance of scanbotsdk_text_pattern_scanner_configuration_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_get_minimum_number_of_required_frames_with_equal_scanning_result(scanbotsdk_text_pattern_scanner_configuration_t *self, int *minimum_number_of_required_frames_with_equal_scanning_result)
Returns value of minimum_number_of_required_frames_with_equal_scanning_result field of the given obje...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_create_with_defaults(scanbotsdk_text_pattern_scanner_configuration_t **result)
Creates a new instance of scanbotsdk_text_pattern_scanner_configuration_t with given required params ...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_raw_text(scanbotsdk_text_pattern_scanner_result_t *self, scanbotsdk_u8string_ref_t *raw_text)
Returns value of raw_text field of the given object. The returned pointers do NOT own the underlying ...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_set_pattern(scanbotsdk_pattern_content_validator_t *self, scanbotsdk_u8string_ref_t pattern)
Sets value of pattern field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_symbol_box_free(scanbotsdk_symbol_box_t *object)
Frees the memory allocated for the instance of scanbotsdk_symbol_box_t. If null is passed,...
scanbotsdk_pattern_grammar_t
scanbotsdk_pattern_grammar_t enum
Definition ScanbotSDKTextPatternScannerTypes.h:30
SBSDK_API scanbotsdk_error_code_t scanbotsdk_content_validator_as_scanbotsdk_pattern_content_validator(scanbotsdk_content_validator_t *object, scanbotsdk_pattern_content_validator_t **result)
Casts the given instance of scanbotsdk_content_validator_t to its subtype scanbotsdk_pattern_content_...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_content_validator_is_scanbotsdk_default_content_validator(scanbotsdk_content_validator_t *object, bool *result)
Checks if the given instance of scanbotsdk_content_validator_t is an instance of its subtype scanbots...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_word_boxes(scanbotsdk_text_pattern_scanner_result_t *self, scanbotsdk_word_box_t **word_boxes, size_t size)
Returns value of word_boxes field of the given object. The returned pointers do NOT own the underlyin...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_validation_successful(scanbotsdk_text_pattern_scanner_result_t *self, bool *validation_successful)
Returns value of validation_successful field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_create_with_defaults(scanbotsdk_default_content_validator_t **result)
Creates a new instance of scanbotsdk_default_content_validator_t with given required params and store...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_box_get_text(scanbotsdk_word_box_t *self, scanbotsdk_u8string_ref_t *text)
Returns value of text field of the given object. The returned pointers do NOT own the underlying obje...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_set_match_substring(scanbotsdk_pattern_content_validator_t *self, bool match_substring)
Sets value of match_substring field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_create_with_defaults(scanbotsdk_u8string_ref_t pattern, scanbotsdk_pattern_content_validator_t **result)
Creates a new instance of scanbotsdk_pattern_content_validator_t with given required params and store...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_box_get_recognition_confidence(scanbotsdk_word_box_t *self, double *recognition_confidence)
Returns value of recognition_confidence field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_create(scanbotsdk_u8string_ref_t allowed_characters, scanbotsdk_u8string_ref_t pattern, bool match_substring, scanbotsdk_pattern_grammar_t pattern_grammar, scanbotsdk_pattern_content_validator_t **result)
Creates a new instance of scanbotsdk_pattern_content_validator with given params and stores it in the...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_get_maximum_number_of_accumulated_frames(scanbotsdk_text_pattern_scanner_configuration_t *self, int *maximum_number_of_accumulated_frames)
Returns value of maximum_number_of_accumulated_frames field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_create(scanbotsdk_u8string_ref_t allowed_characters, scanbotsdk_default_content_validator_t **result)
Creates a new instance of scanbotsdk_default_content_validator with given params and stores it in the...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_get_pattern_grammar(scanbotsdk_pattern_content_validator_t *self, scanbotsdk_pattern_grammar_t *pattern_grammar)
Returns value of pattern_grammar field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_set_validator(scanbotsdk_text_pattern_scanner_configuration_t *self, scanbotsdk_content_validator_t *validator)
Sets value of validator field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_content_validator_as_scanbotsdk_default_content_validator(scanbotsdk_content_validator_t *object, scanbotsdk_default_content_validator_t **result)
Casts the given instance of scanbotsdk_content_validator_t to its subtype scanbotsdk_default_content_...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_symbol_box_get_symbol(scanbotsdk_symbol_box_t *self, scanbotsdk_u8string_ref_t *symbol)
Returns value of symbol field of the given object. The returned pointers do NOT own the underlying ob...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_word_boxes_size(scanbotsdk_text_pattern_scanner_result_t *self, size_t *size)
Returns size of word_boxes array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_symbol_box_get_recognition_confidence(scanbotsdk_symbol_box_t *self, double *recognition_confidence)
Returns value of recognition_confidence field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_confidence(scanbotsdk_text_pattern_scanner_result_t *self, double *confidence)
Returns value of confidence field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_get_input_height_limit(scanbotsdk_text_pattern_scanner_configuration_t *self, int *input_height_limit)
Returns value of input_height_limit field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_free(scanbotsdk_default_content_validator_t *object)
Frees the memory allocated for the instance of scanbotsdk_default_content_validator_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_free(scanbotsdk_text_pattern_scanner_result_t *object)
Frees the memory allocated for the instance of scanbotsdk_text_pattern_scanner_result_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_box_free(scanbotsdk_word_box_t *object)
Frees the memory allocated for the instance of scanbotsdk_word_box_t. If null is passed,...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_content_validator_is_scanbotsdk_pattern_content_validator(scanbotsdk_content_validator_t *object, bool *result)
Checks if the given instance of scanbotsdk_content_validator_t is an instance of its subtype scanbots...
struct scanbotsdk_symbol_box_t scanbotsdk_symbol_box_t
scanbotsdk_symbol_box_t class
Definition ScanbotSDKTextPatternScannerTypes.h:106
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_free(scanbotsdk_pattern_content_validator_t *object)
Frees the memory allocated for the instance of scanbotsdk_pattern_content_validator_t....
struct scanbotsdk_text_pattern_scanner_result_t scanbotsdk_text_pattern_scanner_result_t
scanbotsdk_text_pattern_scanner_result_t class
Definition ScanbotSDKTextPatternScannerTypes.h:152
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_get_pattern(scanbotsdk_pattern_content_validator_t *self, scanbotsdk_u8string_ref_t *pattern)
Returns value of pattern field of the given object. The returned pointers do NOT own the underlying o...
@ SCANBOTSDK_PATTERN_GRAMMAR_WILDCARD
Definition ScanbotSDKTextPatternScannerTypes.h:35
@ SCANBOTSDK_PATTERN_GRAMMAR_REGEX
Definition ScanbotSDKTextPatternScannerTypes.h:39
Represents a non-owning view of a UTF-8 encoded string.
Definition ScanbotSDKTypes.h:112