Bounding Box

Block Category: Detection

Input Image Format

Input Image Requirements: None

Description: The Bounding Box block determines the smallest enclosing rectangle for the point set.

Detect Rotated Box: Detects the minimum area of the bounding rectangle for a given point set.

Example

In this example, the Threshold and Find Contour blocks are used to isolate and determine the contour of the diamond in the image. The Bounding Box block calculates the smallest rectangle to enclose the diamond while the Rectangle block draws the rectangle.

BoundingBoxExample