Scanbot SDK
Loading...
Searching...
No Matches
Scanbot C SDK Text pattern

Typedefs

typedef struct scanbotsdk_text_pattern_scanner_t scanbotsdk_text_pattern_scanner_t
 scanbotsdk_text_pattern_scanner_t class
 
typedef enum scanbotsdk_pattern_grammar_t scanbotsdk_pattern_grammar_t
 scanbotsdk_pattern_grammar_t enum
 
typedef struct scanbotsdk_word_box_t scanbotsdk_word_box_t
 scanbotsdk_word_box_t class
 
typedef struct scanbotsdk_symbol_box_t scanbotsdk_symbol_box_t
 scanbotsdk_symbol_box_t class
 
typedef struct scanbotsdk_text_pattern_scanner_result_t scanbotsdk_text_pattern_scanner_result_t
 scanbotsdk_text_pattern_scanner_result_t class
 
typedef struct scanbotsdk_content_validator_t scanbotsdk_content_validator_t
 scanbotsdk_content_validator_t class
 
typedef struct scanbotsdk_default_content_validator_t scanbotsdk_default_content_validator_t
 scanbotsdk_default_content_validator_t class
 
typedef struct scanbotsdk_pattern_content_validator_t scanbotsdk_pattern_content_validator_t
 scanbotsdk_pattern_content_validator_t class
 
typedef struct scanbotsdk_text_pattern_scanner_configuration_t scanbotsdk_text_pattern_scanner_configuration_t
 scanbotsdk_text_pattern_scanner_configuration_t class
 

Enumerations

enum  scanbotsdk_pattern_grammar_t {
  SCANBOTSDK_PATTERN_GRAMMAR_WILDCARD = 0 ,
  SCANBOTSDK_PATTERN_GRAMMAR_REGEX = 1
}
 scanbotsdk_pattern_grammar_t enum More...
 

Functions

SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_create (scanbotsdk_text_pattern_scanner_configuration_t *configuration, scanbotsdk_text_pattern_scanner_t **result)
 Creates a new instance of scanbotsdk_text_pattern_scanner with given params and stores it in the location specified by the last argument.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_free (scanbotsdk_text_pattern_scanner_t *self)
 Frees the memory allocated for the instance of scanbotsdk_text_pattern_scanner_t. If null is passed, the function does nothing.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_run (scanbotsdk_text_pattern_scanner_t *self, scanbotsdk_image_t *image, scanbotsdk_text_pattern_scanner_result_t **result)
 Recognize text line in the given image.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_clean_recognition_queue (scanbotsdk_text_pattern_scanner_t *self)
 Clean the queue of recognize text lines.
 
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_word_box_free (scanbotsdk_word_box_t *object)
 Frees the memory allocated for the instance of scanbotsdk_word_box_t. If null is passed, the function does nothing.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_box_get_text (scanbotsdk_word_box_t *self, const char **text)
 Returns value of text field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
 
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_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_symbol_box_free (scanbotsdk_symbol_box_t *object)
 Frees the memory allocated for the instance of scanbotsdk_symbol_box_t. If null is passed, the function does nothing.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_symbol_box_get_symbol (scanbotsdk_symbol_box_t *self, const char **symbol)
 Returns value of symbol field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
 
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_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_free (scanbotsdk_text_pattern_scanner_result_t *object)
 Frees the memory allocated for the instance of scanbotsdk_text_pattern_scanner_result_t. If null is passed, the function does nothing.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_raw_text (scanbotsdk_text_pattern_scanner_result_t *self, const char **raw_text)
 Returns value of raw_text field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
 
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 underlying object, caller must not free them.
 
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_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 underlying object, caller must not free them.
 
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_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_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_content_validator_free (scanbotsdk_content_validator_t *object)
 Frees the memory allocated for the instance of scanbotsdk_content_validator_t. If null is passed, the function does nothing.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_create (const char *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 location specified by the last argument.
 
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 stores it in the location specified by the last argument.
 
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. If null is passed, the function does nothing.
 
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 scanbotsdk_default_content_validator_t.
 
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_validator_t. If the given instance is not an instance of the subtype, result will be null.
 
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_content_validator_t.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_get_allowed_characters (scanbotsdk_default_content_validator_t *self, const char **allowed_characters)
 Returns value of allowed_characters field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_set_allowed_characters (scanbotsdk_default_content_validator_t *self, const char *allowed_characters)
 Sets value of allowed_characters field of the given object.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_create (const char *allowed_characters, const char *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 location specified by the last argument.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_create_with_defaults (const char *pattern, scanbotsdk_pattern_content_validator_t **result)
 Creates a new instance of scanbotsdk_pattern_content_validator_t with given required params and stores it in the location specified by the last argument.
 
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. If null is passed, the function does nothing.
 
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 scanbotsdk_pattern_content_validator_t.
 
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_validator_t. If the given instance is not an instance of the subtype, result will be null.
 
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_content_validator_t.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_get_allowed_characters (scanbotsdk_pattern_content_validator_t *self, const char **allowed_characters)
 Returns value of allowed_characters field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_set_allowed_characters (scanbotsdk_pattern_content_validator_t *self, const char *allowed_characters)
 Sets value of allowed_characters field of the given object.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_get_pattern (scanbotsdk_pattern_content_validator_t *self, const char **pattern)
 Returns value of pattern field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_set_pattern (scanbotsdk_pattern_content_validator_t *self, const char *pattern)
 Sets value of pattern 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_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_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_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_create (int ocr_resolution_limit, int maximum_number_of_accumulated_frames, int minimum_number_of_required_frames_with_equal_scanning_result, 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 it in the location specified by the last argument.
 
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 and stores it in the location specified by the last argument.
 
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. If null is passed, the function does nothing.
 
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_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_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_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_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 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_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 object, caller must not free them.
 
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.
 

Detailed Description

Typedef Documentation

◆ scanbotsdk_content_validator_t

scanbotsdk_content_validator_t class

Base class for content validators.

◆ scanbotsdk_default_content_validator_t

scanbotsdk_default_content_validator_t class

Default content validator. Accepts only non-empty strings.

◆ scanbotsdk_pattern_content_validator_t

◆ scanbotsdk_pattern_grammar_t

◆ scanbotsdk_symbol_box_t

scanbotsdk_symbol_box_t class

Structure containing recognized symbol text and bounds.

◆ scanbotsdk_text_pattern_scanner_configuration_t

◆ scanbotsdk_text_pattern_scanner_result_t

◆ scanbotsdk_text_pattern_scanner_t

scanbotsdk_text_pattern_scanner_t class

API for text pattern scanning.

Required licence feature(s): TextPatternScanner.

◆ scanbotsdk_word_box_t

scanbotsdk_word_box_t class

Structure containing recognized word text and bounds.

Enumeration Type Documentation

◆ scanbotsdk_pattern_grammar_t

scanbotsdk_pattern_grammar_t enum

Grammar of pattern matching.

Enumerator
SCANBOTSDK_PATTERN_GRAMMAR_WILDCARD 

Simple pattern matching where # stands for any digit and ? stands for any character. All other characters represent themselves.

SCANBOTSDK_PATTERN_GRAMMAR_REGEX 

Regular expression pattern matching. Uses ECMAScript grammar.

Function Documentation

◆ scanbotsdk_content_validator_as_scanbotsdk_default_content_validator()

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_validator_t. If the given instance is not an instance of the subtype, result will be null.

Parameters
objectPointer to the instance of scanbotsdk_content_validator_t to be casted
resultPointer to a variable that will store the casted instance of scanbotsdk_default_content_validator_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_content_validator_as_scanbotsdk_pattern_content_validator()

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_validator_t. If the given instance is not an instance of the subtype, result will be null.

Parameters
objectPointer to the instance of scanbotsdk_content_validator_t to be casted
resultPointer to a variable that will store the casted instance of scanbotsdk_pattern_content_validator_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_content_validator_free()

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, the function does nothing.

Parameters
objectPointer to the instance of scanbotsdk_content_validator_t to be freed
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_content_validator_is_scanbotsdk_default_content_validator()

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 scanbotsdk_default_content_validator_t.

Parameters
objectPointer to the instance of scanbotsdk_content_validator_t to be checked
resultPointer to a variable that will store the result of the check
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_content_validator_is_scanbotsdk_pattern_content_validator()

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 scanbotsdk_pattern_content_validator_t.

Parameters
objectPointer to the instance of scanbotsdk_content_validator_t to be checked
resultPointer to a variable that will store the result of the check
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_default_content_validator_as_scanbotsdk_content_validator()

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_content_validator_t.

Parameters
objectPointer to the instance of scanbotsdk_content_validator_t to be casted
resultPointer to a variable that will store the casted instance of scanbotsdk_default_content_validator_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_default_content_validator_create()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_create ( const char * 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 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.

Parameters
allowed_charactersOCR whitelist. Empty string means no restriction.

Default is "" The value must not be null.

Parameters
resultPointer to a variable that will store the created instance of scanbotsdk_default_content_validator_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_default_content_validator_create_with_defaults()

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 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.

Parameters
resultPointer to a variable that will store the created instance of scanbotsdk_default_content_validator_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_default_content_validator_free()

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. If null is passed, the function does nothing.

Parameters
objectPointer to the instance of scanbotsdk_default_content_validator_t to be freed
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_default_content_validator_get_allowed_characters()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_get_allowed_characters ( scanbotsdk_default_content_validator_t * self,
const char ** allowed_characters )

Returns value of allowed_characters field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.

OCR whitelist. Empty string means no restriction.

Default is ""

Parameters
selfPointer to the instance of scanbotsdk_default_content_validator_t
allowed_charactersPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_default_content_validator_set_allowed_characters()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_default_content_validator_set_allowed_characters ( scanbotsdk_default_content_validator_t * self,
const char * allowed_characters )

Sets value of allowed_characters field of the given object.

OCR whitelist. Empty string means no restriction.

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.

Parameters
selfPointer to the instance of scanbotsdk_default_content_validator_t, the field of which will be set
allowed_charactersThe value to be set. Must not be null.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_content_validator_as_scanbotsdk_content_validator()

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_content_validator_t.

Parameters
objectPointer to the instance of scanbotsdk_content_validator_t to be casted
resultPointer to a variable that will store the casted instance of scanbotsdk_pattern_content_validator_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_content_validator_create()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_create ( const char * allowed_characters,
const char * 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 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.

Parameters
allowed_charactersOCR whitelist. Empty string means no restriction.

Default is "" The value must not be null.

Parameters
patternPattern to match. It can be a simple pattern or a regular expression. The value must not be null.
match_substringWhether the pattern should match the whole string or just a substring.

Default is false

Parameters
pattern_grammarGrammar of pattern matching.

Default is WILDCARD

Parameters
resultPointer to a variable that will store the created instance of scanbotsdk_pattern_content_validator_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_content_validator_create_with_defaults()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_create_with_defaults ( const char * pattern,
scanbotsdk_pattern_content_validator_t ** result )

Creates a new instance of scanbotsdk_pattern_content_validator_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.

Parameters
patternPattern to match. It can be a simple pattern or a regular expression. The value must not be null.
resultPointer to a variable that will store the created instance of scanbotsdk_pattern_content_validator_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_content_validator_free()

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. If null is passed, the function does nothing.

Parameters
objectPointer to the instance of scanbotsdk_pattern_content_validator_t to be freed
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_content_validator_get_allowed_characters()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_get_allowed_characters ( scanbotsdk_pattern_content_validator_t * self,
const char ** allowed_characters )

Returns value of allowed_characters field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.

OCR whitelist. Empty string means no restriction.

Default is ""

Parameters
selfPointer to the instance of scanbotsdk_pattern_content_validator_t
allowed_charactersPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_pattern_content_validator_get_match_substring()

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.

Whether the pattern should match the whole string or just a substring.

Default is false

Parameters
selfPointer to the instance of scanbotsdk_pattern_content_validator_t
match_substringPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_pattern_content_validator_get_pattern()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_get_pattern ( scanbotsdk_pattern_content_validator_t * self,
const char ** pattern )

Returns value of pattern field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.

Pattern to match. It can be a simple pattern or a regular expression.

Parameters
selfPointer to the instance of scanbotsdk_pattern_content_validator_t
patternPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_pattern_content_validator_get_pattern_grammar()

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.

Grammar of pattern matching.

Default is WILDCARD

Parameters
selfPointer to the instance of scanbotsdk_pattern_content_validator_t
pattern_grammarPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_pattern_content_validator_set_allowed_characters()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_set_allowed_characters ( scanbotsdk_pattern_content_validator_t * self,
const char * allowed_characters )

Sets value of allowed_characters field of the given object.

OCR whitelist. Empty string means no restriction.

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.

Parameters
selfPointer to the instance of scanbotsdk_pattern_content_validator_t, the field of which will be set
allowed_charactersThe value to be set. Must not be null.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_content_validator_set_match_substring()

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.

Whether the pattern should match the whole string or just a substring.

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.

Parameters
selfPointer to the instance of scanbotsdk_pattern_content_validator_t, the field of which will be set
match_substringThe value to be set.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_content_validator_set_pattern()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_pattern_content_validator_set_pattern ( scanbotsdk_pattern_content_validator_t * self,
const char * pattern )

Sets value of pattern field of the given object.

Pattern to match. It can be a simple pattern or a regular expression.

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.

Parameters
selfPointer to the instance of scanbotsdk_pattern_content_validator_t, the field of which will be set
patternThe value to be set. Must not be null.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_content_validator_set_pattern_grammar()

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.

Grammar of pattern matching.

Default is WILDCARD

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.

Parameters
selfPointer to the instance of scanbotsdk_pattern_content_validator_t, the field of which will be set
pattern_grammarThe value to be set.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_pattern_grammar_t_to_string()

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.

The returned string doesn't need to be freed.

Parameters
valueThe value to be converted to string.
resultPointer to a variable that will store the string representation of the value.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_symbol_box_free()

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, the function does nothing.

Parameters
objectPointer to the instance of scanbotsdk_symbol_box_t to be freed
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_symbol_box_get_bounding_rect()

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.

Bounding rectangle of the recognized symbol.

Parameters
selfPointer to the instance of scanbotsdk_symbol_box_t
bounding_rectPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_symbol_box_get_recognition_confidence()

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.

Confidence of the recognition.

Parameters
selfPointer to the instance of scanbotsdk_symbol_box_t
recognition_confidencePointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_symbol_box_get_symbol()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_symbol_box_get_symbol ( scanbotsdk_symbol_box_t * self,
const char ** symbol )

Returns value of symbol field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.

Recognized symbol text.

Parameters
selfPointer to the instance of scanbotsdk_symbol_box_t
symbolPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_clean_recognition_queue()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_clean_recognition_queue ( scanbotsdk_text_pattern_scanner_t * self)

Clean the queue of recognize text lines.

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.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_t method to be called on
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_configuration_create()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_configuration_create ( int ocr_resolution_limit,
int maximum_number_of_accumulated_frames,
int minimum_number_of_required_frames_with_equal_scanning_result,
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 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.

Parameters
ocr_resolution_limitMaximum image size (height or width) for OCR process. 0 - do not rescale.

Default is 0

Parameters
maximum_number_of_accumulated_framesMaximum number of accumulated frames to inspect before actual result is returned.

Default is 3

Parameters
minimum_number_of_required_frames_with_equal_scanning_resultMinimum number of accumulated frames that have equal result.

Default is 2

Parameters
validatorContent validator. The value must not be null.
resultPointer to a variable that will store the created instance of scanbotsdk_text_pattern_scanner_configuration_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_configuration_create_with_defaults()

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 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.

Parameters
resultPointer to a variable that will store the created instance of scanbotsdk_text_pattern_scanner_configuration_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_configuration_free()

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. If null is passed, the function does nothing.

Parameters
objectPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t to be freed
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_configuration_get_maximum_number_of_accumulated_frames()

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.

Maximum number of accumulated frames to inspect before actual result is returned.

Default is 3

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t
maximum_number_of_accumulated_framesPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_configuration_get_minimum_number_of_required_frames_with_equal_scanning_result()

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 object.

Minimum number of accumulated frames that have equal result.

Default is 2

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t
minimum_number_of_required_frames_with_equal_scanning_resultPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_configuration_get_ocr_resolution_limit()

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.

Maximum image size (height or width) for OCR process. 0 - do not rescale.

Default is 0

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t
ocr_resolution_limitPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_configuration_get_validator()

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 object, caller must not free them.

Content validator.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t
validatorPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_configuration_set_maximum_number_of_accumulated_frames()

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.

Maximum number of accumulated frames to inspect before actual result is returned.

Default is 3

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.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t, the field of which will be set
maximum_number_of_accumulated_framesThe value to be set.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_configuration_set_minimum_number_of_required_frames_with_equal_scanning_result()

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.

Minimum number of accumulated frames that have equal result.

Default is 2

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.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t, the field of which will be set
minimum_number_of_required_frames_with_equal_scanning_resultThe value to be set.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_configuration_set_ocr_resolution_limit()

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.

Maximum image size (height or width) for OCR process. 0 - do not rescale.

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.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t, the field of which will be set
ocr_resolution_limitThe value to be set.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_configuration_set_validator()

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.

Content validator.

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.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_configuration_t, the field of which will be set
validatorThe value to be set. Must not be null.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_create()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_create ( scanbotsdk_text_pattern_scanner_configuration_t * configuration,
scanbotsdk_text_pattern_scanner_t ** result )

Creates a new instance of scanbotsdk_text_pattern_scanner 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.

Parameters
configurationThe configuration to use for the generic text line scanner. The value must not be null.
resultPointer to a variable that will store the created instance of scanbotsdk_text_pattern_scanner_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_free()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_free ( scanbotsdk_text_pattern_scanner_t * self)

Frees the memory allocated for the instance of scanbotsdk_text_pattern_scanner_t. If null is passed, the function does nothing.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_t to be freed
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_result_free()

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. If null is passed, the function does nothing.

Parameters
objectPointer to the instance of scanbotsdk_text_pattern_scanner_result_t to be freed
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_text_pattern_scanner_result_get_confidence()

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.

Confidence of the recognition.

Default is 0.0

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_result_t
confidencePointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_result_get_raw_text()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_result_get_raw_text ( scanbotsdk_text_pattern_scanner_result_t * self,
const char ** raw_text )

Returns value of raw_text field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.

Raw recognized string.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_result_t
raw_textPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_result_get_symbol_boxes()

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 underlying object, caller must not free them.

Boxes for each recognized symbol.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_result_t
sizeSize of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function.
symbol_boxesPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_result_get_symbol_boxes_size()

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.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_result_t
sizePointer to a variable that will store the size.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_result_get_validation_successful()

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.

Whether the validation was successful.

Default is false

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_result_t
validation_successfulPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_result_get_word_boxes()

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 underlying object, caller must not free them.

Boxes for each recognized word.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_result_t
sizeSize of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function.
word_boxesPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_result_get_word_boxes_size()

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.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_result_t
sizePointer to a variable that will store the size.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_text_pattern_scanner_run()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_text_pattern_scanner_run ( scanbotsdk_text_pattern_scanner_t * self,
scanbotsdk_image_t * image,
scanbotsdk_text_pattern_scanner_result_t ** result )

Recognize text line 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.

Parameters
selfPointer to the instance of scanbotsdk_text_pattern_scanner_t method to be called on
imageThe image to recognize text line in. The value must not be null.
resultPointer to a variable that will store the created instance of scanbotsdk_text_pattern_scanner_t
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_word_box_free()

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, the function does nothing.

Parameters
objectPointer to the instance of scanbotsdk_word_box_t to be freed
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered

◆ scanbotsdk_word_box_get_bounding_rect()

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.

Bounding rectangle of the recognized word.

Parameters
selfPointer to the instance of scanbotsdk_word_box_t
bounding_rectPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_word_box_get_recognition_confidence()

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.

Confidence of the recognition.

Default is 0.0

Parameters
selfPointer to the instance of scanbotsdk_word_box_t
recognition_confidencePointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.

◆ scanbotsdk_word_box_get_text()

SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_box_get_text ( scanbotsdk_word_box_t * self,
const char ** text )

Returns value of text field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.

Recognized word text.

Parameters
selfPointer to the instance of scanbotsdk_word_box_t
textPointer to a variable that will store the value of the field.
Returns
: Error code, SCANBOTSDK_OK if no errors were encountered.