Android Document Scanner using Dynamsoft Document Normalizer.
You can apply for a trial license and update this line to use Dynamsoft Document Normalizer.
- Start the camera using CameraX and analyse the frames to detect the boundary of documents. When the IOU of three consecutive detected polygons are over 90%, take a photo.
- After the photo is taken, the users are directed to a cropping activity. They can drag the corner points to adjust the detected polygons.
- If the user confirms that the polygon is correct, the app then runs perspective correction and cropping to get a normalized document image. Users can rotate the image and set the color mode (binary, grayscale and color) of the image.
A demo video of the whole process.
android-document-scanner.mp4
- live detection of documents
- auto scan
- edit detected polygons of documents
- support three color mode: binary, grayscale and color