create
fun create(image: ImageRef, configuration: DocumentCleanupConfiguration = DocumentCleanupConfiguration( )): Result<ScanbotSdkDocumentCleanup>
Initializes the document cleanup. When the keepText option is enabled (see DocumentCleanupConfiguration), text detection will be run, which can be time-consuming. For better user experience, consider running the document cleanup constructor asynchronously.
Return
The initialized document cleanup.
Parameters
image
The image to process.
configuration
The document cleanup configuration.