Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKOcrTypes.h
Go to the documentation of this file.
1// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
2// Generated from SchemasV3/CoreSchemas/schemas/OCRTypes.yaml
6
7#pragma once
8#ifndef SCANBOTSDK_OCRTYPES_H
9#define SCANBOTSDK_OCRTYPES_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
31
39
49
59
77
78
85
100 const char* text,
101 double confidence,
103 size_t roi_size,
104 scanbotsdk_glyph_t** result);
105
106
114
139
140
147
165 const char* text,
166 double confidence,
168 size_t roi_size,
169 scanbotsdk_glyph_t** glyphs,
170 size_t glyphs_size,
171 scanbotsdk_word_t** result);
172
173
181
206
225
226
233
251 const char* text,
252 double confidence,
254 size_t roi_size,
255 scanbotsdk_word_t** words,
256 size_t words_size,
257 scanbotsdk_line_t** result);
258
259
267
292
311
312
319
337 const char* text,
338 double confidence,
340 size_t roi_size,
341 scanbotsdk_line_t** lines,
342 size_t lines_size,
343 scanbotsdk_block_t** result);
344
345
353
378
397
398
405
423 const char* text,
424 double confidence,
426 size_t roi_size,
427 scanbotsdk_block_t** blocks,
428 size_t blocks_size,
429 scanbotsdk_page_t** result);
430
431
439
464
483
484
485#ifdef __cplusplus
486} /* extern "C" */
487#endif
488
489#endif /* SCANBOTSDK_OCRTYPES_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
The Scanbot SDK C API primitive types.
Represents a point with floating point coordinates.
Definition ScanbotSDKTypes.h:33
struct scanbotsdk_word_t scanbotsdk_word_t
scanbotsdk_word_t class
Definition ScanbotSDKOcrTypes.h:146
struct scanbotsdk_ocr_element_t scanbotsdk_ocr_element_t
scanbotsdk_ocr_element_t class
Definition ScanbotSDKOcrTypes.h:30
SBSDK_API scanbotsdk_error_code_t scanbotsdk_page_create(const char *text, double confidence, scanbotsdk_pointf_t *roi, size_t roi_size, scanbotsdk_block_t **blocks, size_t blocks_size, scanbotsdk_page_t **result)
Creates a new instance of scanbotsdk_page with given params and stores it in the location specified b...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_page_free(scanbotsdk_page_t *object)
Frees the memory allocated for the instance of scanbotsdk_page_t. If null is passed,...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_glyph_free(scanbotsdk_glyph_t *object)
Frees the memory allocated for the instance of scanbotsdk_glyph_t. If null is passed,...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_free(scanbotsdk_line_t *object)
Frees the memory allocated for the instance of scanbotsdk_line_t. If null is passed,...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_get_glyphs(scanbotsdk_word_t *self, scanbotsdk_glyph_t **glyphs, size_t size)
Returns value of glyphs field of the given object. The returned pointers do NOT own the underlying ob...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_as_scanbotsdk_line(scanbotsdk_ocr_element_t *object, scanbotsdk_line_t **result)
Casts the given instance of scanbotsdk_ocr_element_t to its subtype scanbotsdk_line_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_page_as_scanbotsdk_ocr_element(scanbotsdk_page_t *object, scanbotsdk_ocr_element_t **result)
Casts the given instance of scanbotsdk_page_t to its parent type scanbotsdk_ocr_element_t.
struct scanbotsdk_page_t scanbotsdk_page_t
scanbotsdk_page_t class
Definition ScanbotSDKOcrTypes.h:404
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_get_text(scanbotsdk_ocr_element_t *self, const char **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_ocr_element_is_scanbotsdk_line(scanbotsdk_ocr_element_t *object, bool *result)
Checks if the given instance of scanbotsdk_ocr_element_t is an instance of its subtype scanbotsdk_lin...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_create(const char *text, double confidence, scanbotsdk_pointf_t *roi, size_t roi_size, scanbotsdk_word_t **words, size_t words_size, scanbotsdk_line_t **result)
Creates a new instance of scanbotsdk_line with given params and stores it in the location specified b...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_block_get_lines_size(scanbotsdk_block_t *self, size_t *size)
Returns size of lines array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_free(scanbotsdk_word_t *object)
Frees the memory allocated for the instance of scanbotsdk_word_t. If null is passed,...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_block_get_lines(scanbotsdk_block_t *self, scanbotsdk_line_t **lines, size_t size)
Returns value of lines field of the given object. The returned pointers do NOT own the underlying obj...
struct scanbotsdk_glyph_t scanbotsdk_glyph_t
scanbotsdk_glyph_t class
Definition ScanbotSDKOcrTypes.h:84
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_free(scanbotsdk_ocr_element_t *object)
Frees the memory allocated for the instance of scanbotsdk_ocr_element_t. If null is passed,...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_get_glyphs_size(scanbotsdk_word_t *self, size_t *size)
Returns size of glyphs array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_glyph_create(const char *text, double confidence, scanbotsdk_pointf_t *roi, size_t roi_size, scanbotsdk_glyph_t **result)
Creates a new instance of scanbotsdk_glyph with given params and stores it in the location specified ...
struct scanbotsdk_line_t scanbotsdk_line_t
scanbotsdk_line_t class
Definition ScanbotSDKOcrTypes.h:232
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_is_scanbotsdk_page(scanbotsdk_ocr_element_t *object, bool *result)
Checks if the given instance of scanbotsdk_ocr_element_t is an instance of its subtype scanbotsdk_pag...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_get_roi_size(scanbotsdk_ocr_element_t *self, size_t *size)
Returns size of roi array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_is_scanbotsdk_glyph(scanbotsdk_ocr_element_t *object, bool *result)
Checks if the given instance of scanbotsdk_ocr_element_t is an instance of its subtype scanbotsdk_gly...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_glyph_as_scanbotsdk_ocr_element(scanbotsdk_glyph_t *object, scanbotsdk_ocr_element_t **result)
Casts the given instance of scanbotsdk_glyph_t to its parent type scanbotsdk_ocr_element_t.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_block_as_scanbotsdk_ocr_element(scanbotsdk_block_t *object, scanbotsdk_ocr_element_t **result)
Casts the given instance of scanbotsdk_block_t to its parent type scanbotsdk_ocr_element_t.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_as_scanbotsdk_ocr_element(scanbotsdk_word_t *object, scanbotsdk_ocr_element_t **result)
Casts the given instance of scanbotsdk_word_t to its parent type scanbotsdk_ocr_element_t.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_page_get_blocks_size(scanbotsdk_page_t *self, size_t *size)
Returns size of blocks array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_as_scanbotsdk_block(scanbotsdk_ocr_element_t *object, scanbotsdk_block_t **result)
Casts the given instance of scanbotsdk_ocr_element_t to its subtype scanbotsdk_block_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_is_scanbotsdk_block(scanbotsdk_ocr_element_t *object, bool *result)
Checks if the given instance of scanbotsdk_ocr_element_t is an instance of its subtype scanbotsdk_blo...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_as_scanbotsdk_ocr_element(scanbotsdk_line_t *object, scanbotsdk_ocr_element_t **result)
Casts the given instance of scanbotsdk_line_t to its parent type scanbotsdk_ocr_element_t.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_get_confidence(scanbotsdk_ocr_element_t *self, double *confidence)
Returns value of confidence field of the given object.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_block_free(scanbotsdk_block_t *object)
Frees the memory allocated for the instance of scanbotsdk_block_t. If null is passed,...
struct scanbotsdk_block_t scanbotsdk_block_t
scanbotsdk_block_t class
Definition ScanbotSDKOcrTypes.h:318
SBSDK_API scanbotsdk_error_code_t scanbotsdk_block_create(const char *text, double confidence, scanbotsdk_pointf_t *roi, size_t roi_size, scanbotsdk_line_t **lines, size_t lines_size, scanbotsdk_block_t **result)
Creates a new instance of scanbotsdk_block with given params and stores it in the location specified ...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_as_scanbotsdk_word(scanbotsdk_ocr_element_t *object, scanbotsdk_word_t **result)
Casts the given instance of scanbotsdk_ocr_element_t to its subtype scanbotsdk_word_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_get_roi(scanbotsdk_ocr_element_t *self, scanbotsdk_pointf_t **roi)
Returns value of roi field of the given object. The returned value is direct view into memory,...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_get_words_size(scanbotsdk_line_t *self, size_t *size)
Returns size of words array.
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_as_scanbotsdk_page(scanbotsdk_ocr_element_t *object, scanbotsdk_page_t **result)
Casts the given instance of scanbotsdk_ocr_element_t to its subtype scanbotsdk_page_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_word_create(const char *text, double confidence, scanbotsdk_pointf_t *roi, size_t roi_size, scanbotsdk_glyph_t **glyphs, size_t glyphs_size, scanbotsdk_word_t **result)
Creates a new instance of scanbotsdk_word with given params and stores it in the location specified b...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_line_get_words(scanbotsdk_line_t *self, scanbotsdk_word_t **words, size_t size)
Returns value of words field of the given object. The returned pointers do NOT own the underlying obj...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_page_get_blocks(scanbotsdk_page_t *self, scanbotsdk_block_t **blocks, size_t size)
Returns value of blocks field of the given object. The returned pointers do NOT own the underlying ob...
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_as_scanbotsdk_glyph(scanbotsdk_ocr_element_t *object, scanbotsdk_glyph_t **result)
Casts the given instance of scanbotsdk_ocr_element_t to its subtype scanbotsdk_glyph_t....
SBSDK_API scanbotsdk_error_code_t scanbotsdk_ocr_element_is_scanbotsdk_word(scanbotsdk_ocr_element_t *object, bool *result)
Checks if the given instance of scanbotsdk_ocr_element_t is an instance of its subtype scanbotsdk_wor...