Rectangles in Rectangle
This function block checks if specified rectangles are within a reference rectangle and highlights the outcomes visually on the input image.
📥 Inputs
Input Image The original image where the rectangles are to be analyzed.
Rectangle The reference rectangle used as a boundary to check if the provided rectangles lie within it.
Rectangles Multiple rectangles that need to be checked against the reference rectangle.
📤 Outputs
Result The output image showing the reference rectangle and the checked rectangles with color coding based on whether they lie within the reference.
Not Empty A boolean output indicating if any of the specified rectangles are within the reference rectangle.
Count The number of rectangles that lie within the reference rectangle.
Rectangles The list of rectangles that are determined to be within the reference rectangle.
🕹️ Controls
There are no specific controls for this function block as it automatically processes the input data based on provided rectangles.
🎨 Features
Visual Feedback The block provides immediate visual feedback by drawing bounding rectangles directly on the input image, facilitating easy identification of which rectangles are inside the reference.
Count Detection Easily counts how many rectangles are fully within the bounds of the reference rectangle.
📝 Usage Instructions
Connect Input: Link the image you wish to analyze to the
Input Imageinput.Specify Reference Rectangle: Define the coordinates of the reference rectangle and connect it to the
Rectangleinput.Input Rectangles: Provide multiple rectangles for the check through the
Rectanglesinput.Evaluate: Run the block to determine which rectangles are inside the reference rectangle. The results will be output as specified.
📊 Evaluation
On execution, this function block evaluates the placement of the provided rectangles relative to the reference rectangle and visually depicts the results, including counts of detected rectangles.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated
Was this helpful?