Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKDocumentQualityAnalyzerTypes.h
Go to the documentation of this file.
1// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
2// Generated from SchemasV3/CoreSchemas/schemas/DocumentQualityAnalyzerTypes.yaml
6
7#pragma once
8#ifndef SCANBOTSDK_DOCUMENTQUALITYANALYZERTYPES_H
9#define SCANBOTSDK_DOCUMENTQUALITYANALYZERTYPES_H
10
11
12#include <ScanbotSDKImage.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
48
58
65
77 double symbol_quality,
78 double symbol_ratio,
80
81
89
99
109
110
119
148 bool enabled,
149 double min_processed_fraction,
150 double max_processed_fraction,
151 int min_number_of_required_symbols,
152 int tile_size,
154
165
166
174
199
228
257
282
307
308
315
355 scanbotsdk_document_quality_threshold_t** quality_thresholds,
356 size_t quality_thresholds_size,
357 scanbotsdk_document_quality_t* quality_indices,
358 size_t quality_indices_size,
359 bool detect_orientation,
360 bool inspect_small_text,
361 int max_image_size,
362 int min_estimated_number_of_symbols_for_document,
363 scanbotsdk_process_by_tile_configuration_t* process_by_tile_configuration,
364 double min_required_orientation_confidence,
365 bool return_quality_heatmap,
367
378
379
387
418
448
473
502
527
552
573
600
629
630
637
645
655
665
678
694
712
730
748
760
761
762#ifdef __cplusplus
763} /* extern "C" */
764#endif
765
766#endif /* SCANBOTSDK_DOCUMENTQUALITYANALYZERTYPES_H */
ScanbotSDK Error Code C API.
scanbotsdk_error_code_t
The error codes returned by most of the Scanbot SDK functions.
Definition ScanbotSDKErrorCode.h:25
ScanbotSDK Image Ref C API.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_document_found(scanbotsdk_document_quality_analyzer_result_t *self, bool *document_found)
Returns value of document_found field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_orientation(scanbotsdk_document_quality_analyzer_result_t *self, double **orientation)
Returns value of orientation field of the given object. The returned pointers do NOT own the underlyi...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_process_by_tile_configuration(scanbotsdk_document_quality_analyzer_configuration_t *self, scanbotsdk_process_by_tile_configuration_t **process_by_tile_configuration)
Returns value of process_by_tile_configuration field of the given object. The returned pointers do NO...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_set_min_processed_fraction(scanbotsdk_process_by_tile_configuration_t *self, double min_processed_fraction)
Sets value of min_processed_fraction field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_orientation_confidence(scanbotsdk_document_quality_analyzer_result_t *self, double **orientation_confidence)
Returns value of orientation_confidence field of the given object. The returned pointers do NOT own t...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_get_min_processed_fraction(scanbotsdk_process_by_tile_configuration_t *self, double *min_processed_fraction)
Returns value of min_processed_fraction field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_free(scanbotsdk_document_quality_analyzer_result_t *object)
Frees the memory allocated for the instance of scanbotsdk_document_quality_analyzer_result_t....
struct scanbotsdk_document_quality_analyzer_result_t scanbotsdk_document_quality_analyzer_result_t
scanbotsdk_document_quality_analyzer_result_t class
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:636
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_create(scanbotsdk_document_quality_threshold_t **quality_thresholds, size_t quality_thresholds_size, scanbotsdk_document_quality_t *quality_indices, size_t quality_indices_size, bool detect_orientation, bool inspect_small_text, int max_image_size, int min_estimated_number_of_symbols_for_document, scanbotsdk_process_by_tile_configuration_t *process_by_tile_configuration, double min_required_orientation_confidence, bool return_quality_heatmap, scanbotsdk_document_quality_analyzer_configuration_t **result)
Creates a new instance of scanbotsdk_document_quality_analyzer_configuration with given params and st...
scanbotsdk_document_quality_t
scanbotsdk_document_quality_t enum
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:30
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_threshold_get_symbol_ratio(scanbotsdk_document_quality_threshold_t *self, double *symbol_ratio)
Returns value of symbol_ratio field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_set_tile_size(scanbotsdk_process_by_tile_configuration_t *self, int tile_size)
Sets value of tile_size field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_set_enabled(scanbotsdk_process_by_tile_configuration_t *self, bool enabled)
Sets value of enabled field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_cumulative_quality_histogram(scanbotsdk_document_quality_analyzer_result_t *self, int **cumulative_quality_histogram)
Returns value of cumulative_quality_histogram field of the given object. The returned value is direct...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_return_quality_heatmap(scanbotsdk_document_quality_analyzer_configuration_t *self, bool *return_quality_heatmap)
Returns value of return_quality_heatmap field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_inspect_small_text(scanbotsdk_document_quality_analyzer_configuration_t *self, bool inspect_small_text)
Sets value of inspect_small_text field of the given object.
struct scanbotsdk_document_quality_analyzer_configuration_t scanbotsdk_document_quality_analyzer_configuration_t
scanbotsdk_document_quality_analyzer_configuration_t class
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:314
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_t_to_string(scanbotsdk_document_quality_t value, const char **result)
Returns the string representation of the given scanbotsdk_document_quality_t value.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_quality(scanbotsdk_document_quality_analyzer_result_t *self, scanbotsdk_document_quality_t **quality)
Returns value of quality field of the given object. The returned pointers do NOT own the underlying o...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_create_with_defaults(scanbotsdk_process_by_tile_configuration_t **result)
Creates a new instance of scanbotsdk_process_by_tile_configuration_t with given required params and s...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_min_estimated_number_of_symbols_for_document(scanbotsdk_document_quality_analyzer_configuration_t *self, int min_estimated_number_of_symbols_for_document)
Sets value of min_estimated_number_of_symbols_for_document field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_detect_orientation(scanbotsdk_document_quality_analyzer_configuration_t *self, bool detect_orientation)
Sets value of detect_orientation field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_quality_thresholds_size(scanbotsdk_document_quality_analyzer_configuration_t *self, size_t *size)
Returns size of quality_thresholds array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_max_image_size(scanbotsdk_document_quality_analyzer_configuration_t *self, int *max_image_size)
Returns value of max_image_size field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_set_max_processed_fraction(scanbotsdk_process_by_tile_configuration_t *self, double max_processed_fraction)
Sets value of max_processed_fraction field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_create_with_defaults(scanbotsdk_document_quality_analyzer_configuration_t **result)
Creates a new instance of scanbotsdk_document_quality_analyzer_configuration_t with given required pa...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_cumulative_text_size_histogram(scanbotsdk_document_quality_analyzer_result_t *self, int **cumulative_text_size_histogram)
Returns value of cumulative_text_size_histogram field of the given object. The returned value is dire...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_quality_indices_size(scanbotsdk_document_quality_analyzer_configuration_t *self, size_t *size)
Returns size of quality_indices array.
struct scanbotsdk_document_quality_threshold_t scanbotsdk_document_quality_threshold_t
scanbotsdk_document_quality_threshold_t class
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:64
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_cumulative_contrast_histogram_size(scanbotsdk_document_quality_analyzer_result_t *self, size_t *size)
Returns size of cumulative_contrast_histogram array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_get_tile_size(scanbotsdk_process_by_tile_configuration_t *self, int *tile_size)
Returns value of tile_size field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_min_required_orientation_confidence(scanbotsdk_document_quality_analyzer_configuration_t *self, double min_required_orientation_confidence)
Sets value of min_required_orientation_confidence field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_create(bool enabled, double min_processed_fraction, double max_processed_fraction, int min_number_of_required_symbols, int tile_size, scanbotsdk_process_by_tile_configuration_t **result)
Creates a new instance of scanbotsdk_process_by_tile_configuration with given params and stores it in...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_threshold_get_symbol_quality(scanbotsdk_document_quality_threshold_t *self, double *symbol_quality)
Returns value of symbol_quality field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_threshold_create(double symbol_quality, double symbol_ratio, scanbotsdk_document_quality_threshold_t **result)
Creates a new instance of scanbotsdk_document_quality_threshold with given params and stores it in th...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_cumulative_quality_histogram_size(scanbotsdk_document_quality_analyzer_result_t *self, size_t *size)
Returns size of cumulative_quality_histogram array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_set_min_number_of_required_symbols(scanbotsdk_process_by_tile_configuration_t *self, int min_number_of_required_symbols)
Sets value of min_number_of_required_symbols field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_get_enabled(scanbotsdk_process_by_tile_configuration_t *self, bool *enabled)
Returns value of enabled field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_cumulative_text_size_histogram_size(scanbotsdk_document_quality_analyzer_result_t *self, size_t *size)
Returns size of cumulative_text_size_histogram array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_min_estimated_number_of_symbols_for_document(scanbotsdk_document_quality_analyzer_configuration_t *self, int *min_estimated_number_of_symbols_for_document)
Returns value of min_estimated_number_of_symbols_for_document field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_quality_heatmap(scanbotsdk_document_quality_analyzer_result_t *self, scanbotsdk_image_t **quality_heatmap)
Returns value of quality_heatmap field of the given object. The returned pointers do NOT own the unde...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_max_image_size(scanbotsdk_document_quality_analyzer_configuration_t *self, int max_image_size)
Sets value of max_image_size field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_get_min_number_of_required_symbols(scanbotsdk_process_by_tile_configuration_t *self, int *min_number_of_required_symbols)
Returns value of min_number_of_required_symbols field of the given object.
struct scanbotsdk_process_by_tile_configuration_t scanbotsdk_process_by_tile_configuration_t
scanbotsdk_process_by_tile_configuration_t class
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:118
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_free(scanbotsdk_document_quality_analyzer_configuration_t *object)
Frees the memory allocated for the instance of scanbotsdk_document_quality_analyzer_configuration_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_quality_indices(scanbotsdk_document_quality_analyzer_configuration_t *self, scanbotsdk_document_quality_t *quality_indices, size_t quality_indices_size)
Sets value of quality_indices field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_return_quality_heatmap(scanbotsdk_document_quality_analyzer_configuration_t *self, bool return_quality_heatmap)
Sets value of return_quality_heatmap field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_inspect_small_text(scanbotsdk_document_quality_analyzer_configuration_t *self, bool *inspect_small_text)
Returns value of inspect_small_text field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_min_required_orientation_confidence(scanbotsdk_document_quality_analyzer_configuration_t *self, double *min_required_orientation_confidence)
Returns value of min_required_orientation_confidence field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_result_get_cumulative_contrast_histogram(scanbotsdk_document_quality_analyzer_result_t *self, int **cumulative_contrast_histogram)
Returns value of cumulative_contrast_histogram field of the given object. The returned value is direc...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_quality_thresholds(scanbotsdk_document_quality_analyzer_configuration_t *self, scanbotsdk_document_quality_threshold_t **quality_thresholds, size_t quality_thresholds_size)
Sets value of quality_thresholds field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_free(scanbotsdk_process_by_tile_configuration_t *object)
Frees the memory allocated for the instance of scanbotsdk_process_by_tile_configuration_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_process_by_tile_configuration_get_max_processed_fraction(scanbotsdk_process_by_tile_configuration_t *self, double *max_processed_fraction)
Returns value of max_processed_fraction field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_set_process_by_tile_configuration(scanbotsdk_document_quality_analyzer_configuration_t *self, scanbotsdk_process_by_tile_configuration_t *process_by_tile_configuration)
Sets value of process_by_tile_configuration field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_quality_thresholds(scanbotsdk_document_quality_analyzer_configuration_t *self, scanbotsdk_document_quality_threshold_t **quality_thresholds, size_t size)
Returns value of quality_thresholds field of the given object. The returned pointers do NOT own the u...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_detect_orientation(scanbotsdk_document_quality_analyzer_configuration_t *self, bool *detect_orientation)
Returns value of detect_orientation field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_threshold_free(scanbotsdk_document_quality_threshold_t *object)
Frees the memory allocated for the instance of scanbotsdk_document_quality_threshold_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_quality_analyzer_configuration_get_quality_indices(scanbotsdk_document_quality_analyzer_configuration_t *self, scanbotsdk_document_quality_t **quality_indices)
Returns value of quality_indices field of the given object. The returned value is direct view into me...
@ SCANBOTSDK_DOCUMENT_QUALITY_POOR
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:36
@ SCANBOTSDK_DOCUMENT_QUALITY_EXCELLENT
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:45
@ SCANBOTSDK_DOCUMENT_QUALITY_VERY_POOR
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:33
@ SCANBOTSDK_DOCUMENT_QUALITY_GOOD
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:42
@ SCANBOTSDK_DOCUMENT_QUALITY_REASONABLE
Definition ScanbotSDKDocumentQualityAnalyzerTypes.h:39
struct scanbotsdk_image_t scanbotsdk_image_t
Represents an instance of the opaque image.
Definition ScanbotSDKImage.h:31