The MLKitDocumentScannerSample application can identify and scan documents. Under the hood, the component contains NFIs that use the Google MLKit Document Scanner API. The component also supports Auto and manual cropping, applying filters and retake option.