Document scanner

Hi everyone!

I’m looking for an extension to scan a document from the photo sensor by removing any borders on the photo around the document.
If anyone knows of any I would be grateful.

Thanks