Live edge-detection overlay while aiming #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Show the detected document quadrilateral as a live overlay on the camera preview before capture (like Microsoft Lens), so the user can frame the document and see that it will be cropped correctly.
Approach: add a CameraX
ImageAnalysisuse case, runEdgeDetectoron downscaled frames on a background thread, and draw the resulting quad over thePreviewView(mapping analysis coordinates to view coordinates). Throttle to keep it smooth.