Good walkthrough by Christian Zibreg, iDownloadBlog, on using Notes to scan and save documents.
I love this feature. And I find it interesting to think about edge detection at work here. Watch how the scanner detects the edges of a piece of paper laying on a table, automatically adjusts the scanning frame so you end up with a relatively rectangular result.
This object and edge detection is a hallmark of ARKit. Not certain that’s how this was done, but would not surprise me if it was.