Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKDocumentCleanupTypes.h
Go to the documentation of this file.
1// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
2// Generated from SchemasV3/CoreSchemas/schemas/DocumentCleanupTypes.yaml
6
7#pragma once
8#ifndef SCANBOTSDK_DOCUMENTCLEANUPTYPES_H
9#define SCANBOTSDK_DOCUMENTCLEANUPTYPES_H
10
11
12#include <ScanbotSDKImage.h>
13#include <stdbool.h>
14#include <stddef.h>
15#include <stdint.h>
16#include <ScanbotSDKErrorCode.h>
17#include <ScanbotSDKDefs.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23
51
61
68
76
88
98
99
106
156 bool keep_text,
157 int max_undo_redo_stack_size,
158 int max_cleanup_resolution,
159 int max_mask_bounding_box_area,
161
172
173
181
210
239
282
337
338
339#ifdef __cplusplus
340} /* extern "C" */
341#endif
342
343#endif /* SCANBOTSDK_DOCUMENTCLEANUPTYPES_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
ScanbotSDK Image Ref C API.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_create(bool keep_text, int max_undo_redo_stack_size, int max_cleanup_resolution, int max_mask_bounding_box_area, scanbotsdk_document_cleanup_configuration_t **result)
Creates a new instance of scanbotsdk_document_cleanup_configuration with given params and stores it i...
struct scanbotsdk_document_cleanup_configuration_t scanbotsdk_document_cleanup_configuration_t
scanbotsdk_document_cleanup_configuration_t class
Definition ScanbotSDKDocumentCleanupTypes.h:105
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_get_keep_text(scanbotsdk_document_cleanup_configuration_t *self, bool *keep_text)
Returns value of keep_text field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_get_max_mask_bounding_box_area(scanbotsdk_document_cleanup_configuration_t *self, int *max_mask_bounding_box_area)
Returns value of max_mask_bounding_box_area field of the given object.
struct scanbotsdk_document_cleanup_result_t scanbotsdk_document_cleanup_result_t
scanbotsdk_document_cleanup_result_t class
Definition ScanbotSDKDocumentCleanupTypes.h:67
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_result_get_status(scanbotsdk_document_cleanup_result_t *self, scanbotsdk_document_cleanup_status_t *status)
Returns value of status field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_get_max_cleanup_resolution(scanbotsdk_document_cleanup_configuration_t *self, int *max_cleanup_resolution)
Returns value of max_cleanup_resolution field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_get_max_undo_redo_stack_size(scanbotsdk_document_cleanup_configuration_t *self, int *max_undo_redo_stack_size)
Returns value of max_undo_redo_stack_size field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_result_get_image(scanbotsdk_document_cleanup_result_t *self, scanbotsdk_image_t **image)
Returns value of image field of the given object. The returned pointers do NOT own the underlying obj...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_status_t_to_string(scanbotsdk_document_cleanup_status_t value, const char **result)
Returns the string representation of the given scanbotsdk_document_cleanup_status_t value.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_result_free(scanbotsdk_document_cleanup_result_t *object)
Frees the memory allocated for the instance of scanbotsdk_document_cleanup_result_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_set_max_mask_bounding_box_area(scanbotsdk_document_cleanup_configuration_t *self, int max_mask_bounding_box_area)
Sets value of max_mask_bounding_box_area field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_free(scanbotsdk_document_cleanup_configuration_t *object)
Frees the memory allocated for the instance of scanbotsdk_document_cleanup_configuration_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_set_max_undo_redo_stack_size(scanbotsdk_document_cleanup_configuration_t *self, int max_undo_redo_stack_size)
Sets value of max_undo_redo_stack_size field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_create_with_defaults(scanbotsdk_document_cleanup_configuration_t **result)
Creates a new instance of scanbotsdk_document_cleanup_configuration_t with given required params and ...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_set_keep_text(scanbotsdk_document_cleanup_configuration_t *self, bool keep_text)
Sets value of keep_text field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_cleanup_configuration_set_max_cleanup_resolution(scanbotsdk_document_cleanup_configuration_t *self, int max_cleanup_resolution)
Sets value of max_cleanup_resolution field of the given object.
scanbotsdk_document_cleanup_status_t
scanbotsdk_document_cleanup_status_t enum
Definition ScanbotSDKDocumentCleanupTypes.h:29
@ SCANBOTSDK_DOCUMENT_CLEANUP_STATUS_OK_BUT_REDUCED_QUALITY
Definition ScanbotSDKDocumentCleanupTypes.h:40
@ SCANBOTSDK_DOCUMENT_CLEANUP_STATUS_OK
Definition ScanbotSDKDocumentCleanupTypes.h:33
@ SCANBOTSDK_DOCUMENT_CLEANUP_STATUS_ERROR_MASK_TOO_LARGE
Definition ScanbotSDKDocumentCleanupTypes.h:48
struct scanbotsdk_image_t scanbotsdk_image_t
Represents an instance of the opaque image.
Definition ScanbotSDKImage.h:31