Check Area (Polygon)
This function block allows users to interactively define a polygonal area on an image and check whether specified points fall within that area. It provides visualization tools for drawing and managing coordinates on the image.
π₯ Inputs
Input Image The image in which you will define a polygon and check point locations.
Position Coordinate List A list of coordinates (points) that will be checked against the defined polygon.
π€ Outputs
Output Image The original image with the defined polygon area highlighted.
Polygon Coordinates The coordinates of the defined polygon.
Object In Area A boolean indicating whether any of the specified points fall inside the polygon.
Detected Positions The coordinates of the points that fall within the defined polygon area.
πΉοΈ Controls
Mouse Clicks Use left mouse clicks to draw points that form the polygon; press C to clear the points or U to undo the last added point.
π¨ Features
Interactive Polygon Drawing Users can easily define polygonal areas on the image using mouse clicks.
Real-Time Feedback The image is updated in real-time to reflect the currently defined polygon and detected points.
π Usage Instructions
Connect Input Image: Provide an image to the
Input Imageinput of the block.Define Polygon: Click on the image to create points that form the vertices of the polygon.
Check Points: Connect points to the
Position Coordinate Listto check if they lie within the defined polygon.Clear or Undo Points: Use the
Ckey to clear all points orUto undo the last point added.
π Evaluation
When executed, this block will check if the provided points are inside the drawn polygon and return the modified image, along with polygon coordinates and detection results.
π‘ Tips and Tricks
π οΈ Troubleshooting
Last updated
Was this helpful?