Dynamsoft Camera SDK Android Edition has two capture modes:
With this mode, you can capture images and edit the images such as rotating, flipping, cropping, etc.
With this mode, document boundary detection function is enabled. It will automatically crop the detected document after perspective correction and noise removal. Also, you can further process the document, such as adjusting its brightness and contrast, converting it to a color/gray/black-and-white document, etc.