Skip to main content

RTU UI Cleanup Screen

Overview​

The Cleanup Screen lets the end user manually erase unwanted artifacts, such as handwriting, stamps, stains, fingers, and shadows, from a scanned page while preserving the underlying document content. The user paints over the regions to remove with a configurable brush, and the SDK reconstructs a clean result image, with optional text preservation.

The screen is part of the RTU UI v2 Document Scanning Flow. The user reaches it from the Review Screen through the documentCleanupButton. When the user confirms with the confirm button in the top bar, the SDK saves the edits to the page. Canceling discards the edits. If there are unsaved changes, the screen asks the user to confirm first.

Out of the box, the Cleanup Screen provides:

  • A top bar with a title, a back button that cancels the edits, and a confirm button.
  • A canvas that renders the page image and the user's brush strokes, with pinch-to-zoom support.
  • A toolbar at the bottom with Undo, Redo, and Reset actions.
  • A stroke-size slider with a live preview of the current brush size.
  • An optional Introduction Screen shown the first time the user opens the Cleanup Screen.
  • Confirmation dialogs for Reset all edits and Discard changes.

Enabling the Cleanup Screen​

The user opens the Cleanup Screen from the Review Screen. Make sure the Review Screen is enabled and screens.review.toolbar.documentCleanupButton.barButton.visible is true. On a typical phone, the Review Screen toolbar has room for only a few buttons and moves the rest into the More menu. The cleanup button usually appears there.

Example configuration of the Cleanup Screen​

The following code enables the Review Screen's cleanup button and customizes the Cleanup Screen:

You can learn more about DocumentCleanupScreenConfiguration, DocumentCleanupConfiguration, and ReviewScreenConfiguration in the SDK's API documentation.

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get free trial license