
Crops an Image to a region given as a BoundingBox, Rectangle<Double>, Polygon<Double>, Mask, or Ellipse<Double>, returning either a tight crop or the original-size frame with outside pixels painted by a configurable fill colour.
A detector locates objects, the crop isolates each region, and OCR runs only on the cropped frame so text recognition is not distracted by background.
A segmentation mask drives the crop, which paints everything outside the segmented region; the masked frame is then captioned for a focused description.
Mask whose height / width disagree with the image, a Polygon<Double> with fewer than three points, an Ellipse<Double> with a non-positive radius, or an all-zero mask — is logged and treated as an empty region, emitting a `1x1` fill-coloured pixel instead of failing the stream; downstream must detect and discard that placeholder.background; supplying a BGR fill for an RGB-tagged image swaps red and blue with no warning.keep_size off (the default) the output is sized to the region's bounding rectangle and varies tick to tick; turning it on returns the original frame size with outside pixels painted by the fill colour.Polygon<Double> vertices are truncated to integers (not rounded) before rasterisation, so sub-pixel polygons lose precision at the region boundary.Automated release