Available on crate feature
rectangles only.Expand description
Rectangle + document-segmentation detection.
VNDetectRectanglesRequest finds quadrilaterals (signs, photos,
book pages); VNDetectDocumentSegmentationRequest finds full
document boundaries — both return the same observation shape.
Structs§
- Rectangle
Observation - A detected quadrilateral with axis-aligned bounding box plus individual corner points (in normalised image coordinates, bottom-left origin).
- Rectangle
Options - Optional tuning for
detect_rectangles_in_path. Passdefault()to use Apple’s defaults.
Functions§
- detect_
document_ segmentation_ in_ path - Detect a full document’s boundary in the image at
path. Returns at most one rectangle (the document outline). - detect_
rectangles_ in_ path - Detect rectangles in the image at
path.