POST /crop runs the canonical OpenCV document scanner pipeline (Canny → findContours → approxPolyDP → getPerspectiveTransform → warpPerspective) on the uploaded image. If a clean four-corner quad is ...
The pipeline isolates the largest quadrilateral boundary matching a standard 4-corner document configuration and applies an aspect-ratio accurate perspective transform to square up skewed, rotated, or ...