
DocAligner document-corner detector: takes an Image and returns the four page corners as a Polygon<Double> quadrilateral or as [Landmark] keypoints, selected by the downstream connection. Use to isolate a page before cropping, unwarp, or OCR.
Photo-to-text capture: the detected corner polygon drives a crop that isolates the page, and OCR runs on the deskewed region rather than the whole frame.
PDF page extraction: corners locate the document within a rendered page and the cropped region is published over HTTP for archival or review.
pad_size adds a border before inference and is subtracted back afterwards, with corners clipped into frame; very small padding can clip corners that sit near the edge.model_cfg is loaded once at startup, so first-call latency on a fresh container is dominated by weight load rather than inference.Automated release