Make sure:
- there is enough light
- the document you are scanning is placed on a dark surface
- there are no shadows on the document you are scanning
If it is still failing, try moving your camera in and out towards the document until the document is aligned with the provided image outlines provided on the app.