detectCutout Function

external fun detectCutout(): ScanCutout

Finds the document in this page and returns its outline.

Use the result as the starting crop to show the user, then pass it to refine once they accept or adjust it.

Return

the detected outline. Check ScanCutout.isDefined first — it is false when no document could be found, which is a normal outcome for a photo of an empty surface.

Throws

Top