Scanbot SDK
Loading...
Searching...
No Matches
ScanbotSDKDocumentScanner.h File Reference

Go to the source code of this file.

Typedefs

typedef struct scanbotsdk_document_scanner_t scanbotsdk_document_scanner_t
 scanbotsdk_document_scanner_t class
 

Functions

SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_scanner_create (scanbotsdk_document_scanner_configuration_t *configuration, scanbotsdk_document_scanner_t **result)
 Creates a new instance of scanbotsdk_document_scanner with given params and stores it in the location specified by the last argument.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_scanner_free (scanbotsdk_document_scanner_t *self)
 Frees the memory allocated for the instance of scanbotsdk_document_scanner_t. If null is passed, the function does nothing.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_scanner_run (scanbotsdk_document_scanner_t *self, scanbotsdk_image_t *image, scanbotsdk_document_detection_result_t **result)
 Detect the document contour in the given image.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_scanner_scan (scanbotsdk_document_scanner_t *self, scanbotsdk_image_t *image, scanbotsdk_document_scanning_result_t **result)
 Detect the document contour in the given image and crop it.
 
SBSDK_API scanbotsdk_error_code_t scanbotsdk_document_scanner_clear_result (scanbotsdk_document_scanner_t *self)
 Clears the accumulated results. Should be called after a document has been detected to the customers satisfaction to prevent a poisoned cache.