|
Scanbot SDK
|
scanbotsdk_check_document_detection_mode_t enum
Check document detection and extraction mode.
| typedef enum scanbotsdk_check_magnetic_ink_strip_scanning_status_t scanbotsdk_check_magnetic_ink_strip_scanning_status_t |
scanbotsdk_check_magnetic_ink_strip_scanning_status_t enum
Check magnetic ink (MICR) strip scanning status.
scanbotsdk_check_scanner_configuration_t class
Configuration of the check scanner.
| typedef struct scanbotsdk_check_scanner_t scanbotsdk_check_scanner_t |
scanbotsdk_check_scanning_result_t class
The result of check scanning.
| typedef enum scanbotsdk_check_standard_t scanbotsdk_check_standard_t |
scanbotsdk_check_standard_t enum
Supported check standards.
scanbotsdk_check_document_detection_mode_t enum
Check document detection and extraction mode.
scanbotsdk_check_magnetic_ink_strip_scanning_status_t enum
Check magnetic ink (MICR) strip scanning status.
scanbotsdk_check_standard_t enum
Supported check standards.
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_document_detection_mode_t_to_string | ( | scanbotsdk_check_document_detection_mode_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_check_document_detection_mode_t value.
The returned string doesn't need to be freed.
| value | The value to be converted to string. |
| result | Pointer to a variable that will store the string representation of the value. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_magnetic_ink_strip_scanning_status_t_to_string | ( | scanbotsdk_check_magnetic_ink_strip_scanning_status_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_check_magnetic_ink_strip_scanning_status_t value.
The returned string doesn't need to be freed.
| value | The value to be converted to string. |
| result | Pointer to a variable that will store the string representation of the value. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_create | ( | scanbotsdk_check_document_detection_mode_t | document_detection_mode, |
| scanbotsdk_check_standard_t * | accepted_check_standards, | ||
| size_t | accepted_check_standards_size, | ||
| scanbotsdk_processing_mode_t | processing_mode, | ||
| scanbotsdk_check_scanner_configuration_t ** | result ) |
Creates a new instance of scanbotsdk_check_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.
| document_detection_mode | Document detection to be performed in addition to scanning the machine-readable data in the check. |
By default only the machine-readable data is extracted during check scanning. Optionally, the coordinates and a crop of the entire check document can be returned, in addition to the check data. A check scan result may still be successful even if the whole document is not visible in the input image and the complete document could not be located.
If cropping is enabled, check recognition will be performed on the cropped image of the check, which may improve recognition results.
Default is DISABLED
| accepted_check_standards | Accepted check standards. Optional, by default - all checks are accepted. With an empty list no filter is applied and all checks are accepted. |
| accepted_check_standards_size | Size of the array accepted_check_standards |
| processing_mode | Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it. |
On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.
Default is AUTO
| result | Pointer to a variable that will store the created instance of scanbotsdk_check_scanner_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_create_with_defaults | ( | scanbotsdk_check_scanner_configuration_t ** | result | ) |
Creates a new instance of scanbotsdk_check_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.
| result | Pointer to a variable that will store the created instance of scanbotsdk_check_scanner_configuration_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_free | ( | scanbotsdk_check_scanner_configuration_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_check_scanner_configuration_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_check_scanner_configuration_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_get_accepted_check_standards | ( | scanbotsdk_check_scanner_configuration_t * | self, |
| scanbotsdk_check_standard_t ** | accepted_check_standards ) |
Returns value of accepted_check_standards field of the given object. The returned value is direct view into memory, no pre-allocations needed.
Accepted check standards. Optional, by default - all checks are accepted. With an empty list no filter is applied and all checks are accepted.
| self | Pointer to the instance of scanbotsdk_check_scanner_configuration_t |
| accepted_check_standards | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_get_accepted_check_standards_size | ( | scanbotsdk_check_scanner_configuration_t * | self, |
| size_t * | size ) |
Returns size of accepted_check_standards array.
| self | Pointer to the instance of scanbotsdk_check_scanner_configuration_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_get_document_detection_mode | ( | scanbotsdk_check_scanner_configuration_t * | self, |
| scanbotsdk_check_document_detection_mode_t * | document_detection_mode ) |
Returns value of document_detection_mode field of the given object.
Document detection to be performed in addition to scanning the machine-readable data in the check.
By default only the machine-readable data is extracted during check scanning. Optionally, the coordinates and a crop of the entire check document can be returned, in addition to the check data. A check scan result may still be successful even if the whole document is not visible in the input image and the complete document could not be located.
If cropping is enabled, check recognition will be performed on the cropped image of the check, which may improve recognition results.
Default is DISABLED
| self | Pointer to the instance of scanbotsdk_check_scanner_configuration_t |
| document_detection_mode | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_get_processing_mode | ( | scanbotsdk_check_scanner_configuration_t * | self, |
| scanbotsdk_processing_mode_t * | processing_mode ) |
Returns value of processing_mode field of the given object.
Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it.
On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.
Default is AUTO
| self | Pointer to the instance of scanbotsdk_check_scanner_configuration_t |
| processing_mode | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_set_accepted_check_standards | ( | scanbotsdk_check_scanner_configuration_t * | self, |
| scanbotsdk_check_standard_t * | accepted_check_standards, | ||
| size_t | accepted_check_standards_size ) |
Sets value of accepted_check_standards field of the given object.
Accepted check standards. Optional, by default - all checks are accepted. With an empty list no filter is applied and all checks are accepted.
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.
| self | Pointer to the instance of scanbotsdk_check_scanner_configuration_t, the field of which will be set |
| accepted_check_standards | The value to be set. |
| accepted_check_standards_size | Size of the array. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_set_document_detection_mode | ( | scanbotsdk_check_scanner_configuration_t * | self, |
| scanbotsdk_check_document_detection_mode_t | document_detection_mode ) |
Sets value of document_detection_mode field of the given object.
Document detection to be performed in addition to scanning the machine-readable data in the check.
By default only the machine-readable data is extracted during check scanning. Optionally, the coordinates and a crop of the entire check document can be returned, in addition to the check data. A check scan result may still be successful even if the whole document is not visible in the input image and the complete document could not be located.
If cropping is enabled, check recognition will be performed on the cropped image of the check, which may improve recognition results.
Default is DISABLED
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.
| self | Pointer to the instance of scanbotsdk_check_scanner_configuration_t, the field of which will be set |
| document_detection_mode | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_configuration_set_processing_mode | ( | scanbotsdk_check_scanner_configuration_t * | self, |
| scanbotsdk_processing_mode_t | processing_mode ) |
Sets value of processing_mode field of the given object.
Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it.
On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.
Default is AUTO
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.
| self | Pointer to the instance of scanbotsdk_check_scanner_configuration_t, the field of which will be set |
| processing_mode | The value to be set. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_create | ( | scanbotsdk_check_scanner_configuration_t * | configuration, |
| scanbotsdk_check_scanner_t ** | result ) |
Creates a new instance of scanbotsdk_check_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.
| configuration | The configuration to use for the check scanner. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_check_scanner_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_free | ( | scanbotsdk_check_scanner_t * | self | ) |
Frees the memory allocated for the instance of scanbotsdk_check_scanner_t. If null is passed, the function does nothing.
| self | Pointer to the instance of scanbotsdk_check_scanner_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanner_run | ( | scanbotsdk_check_scanner_t * | self, |
| scanbotsdk_image_t * | image, | ||
| scanbotsdk_check_scanning_result_t ** | result ) |
Scan check 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.
| self | Pointer to the instance of scanbotsdk_check_scanner_t method to be called on |
| image | The image to scan check in. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_check_scanner_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanning_result_free | ( | scanbotsdk_check_scanning_result_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_check_scanning_result_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_check_scanning_result_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanning_result_get_check | ( | scanbotsdk_check_scanning_result_t * | self, |
| scanbotsdk_generic_document_t ** | check ) |
Returns value of check field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Generic document containing check data. Not present, if status is FAIL.
| self | Pointer to the instance of scanbotsdk_check_scanning_result_t |
| check | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanning_result_get_cropped_image | ( | scanbotsdk_check_scanning_result_t * | self, |
| scanbotsdk_image_t ** | cropped_image ) |
Returns value of cropped_image field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Crop of the check if documentDetectionMode is set to DETECT_AND_CROP_DOCUMENT. Will be non-empty, only if check recognition succeeded.
| self | Pointer to the instance of scanbotsdk_check_scanning_result_t |
| cropped_image | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanning_result_get_document_detection_result | ( | scanbotsdk_check_scanning_result_t * | self, |
| scanbotsdk_document_detection_result_t ** | document_detection_result ) |
Returns value of document_detection_result field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
The result of document detection. Will be set only if detectDocument in the configuration is set to true. Check scanning may still succeed even if the whole document is not visible in the input image and the complete document could not be located.
| self | Pointer to the instance of scanbotsdk_check_scanning_result_t |
| document_detection_result | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_scanning_result_get_status | ( | scanbotsdk_check_scanning_result_t * | self, |
| scanbotsdk_check_magnetic_ink_strip_scanning_status_t * | status ) |
Returns value of status field of the given object.
Magnetic ink strip scanning status.
Default is ERROR_NOTHING_FOUND
| self | Pointer to the instance of scanbotsdk_check_scanning_result_t |
| status | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_check_standard_t_to_string | ( | scanbotsdk_check_standard_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_check_standard_t value.
The returned string doesn't need to be freed.
| value | The value to be converted to string. |
| result | Pointer to a variable that will store the string representation of the value. |