WebsiteBeaver/android-document-scanner — reverse-engineered prompt
Reverse engineered prompt
Build me an Android document scanner that can be used inside another app. I want users to open the camera, point it at a receipt, note, homework page, business card, or anything rectangular, then have the app find the edges and crop it into a clean scanned image.
Please include a simple demo screen that starts the scan, shows the cropped result afterward, and handles when the user cancels or something goes wrong. Let the scanner support scanning more than one item in a row, but also make it possible to set a maximum number of scans, like only two images for the front and back of a business card.
I also want an option where the user can adjust the detected crop corners before saving, plus an option to skip that screen and just accept the automatic crop. Return the final scanned images in a way the app can display or save them. Use Kotlin for Android and keep it simple enough that I can plug it into another app later.
Want more depth? Deep Reverse