Check Area
This function block lets you draw a rectangular area on an image and check whether one or more point coordinates fall inside that area. It is ideal for simple region-of-interest checks and quick presence/absence detection inside a selected rectangle.
π₯ Inputs
Image Any Reference image used as the coordinate canvas where you draw the rectangular area.
Position Coordinate(s) One point or a list of points to test against the selected area. Provide pixel coordinates (x, y).
π€ Outputs
Area Rectangle The rectangle you selected, expressed in image pixel coordinates.
Object In Area Boolean value indicating whether any provided point lies inside the selected rectangle.
Detection Count Number of input points that were found inside the selected rectangle.
πΉοΈ Controls
Image Preview Click and drag directly on the preview to draw a rectangular area. The preview will show the rectangle overlay in real time.
Drag to Select Use a click-and-drag gesture to set the top-left and bottom-right corners of the rectangle. Redrawing updates the selected area immediately.
Overlay Display Visual markers appear on the image for the selected rectangle and for any points that fall inside it.
π¨ Features
Visual, interactive selection of a single rectangular region on the input image.
Supports checking a single coordinate or a list of coordinates.
Marks detected points inside the area with a visible marker on the preview.
Outputs the selected rectangle and simple boolean/count results for easy downstream logic.
π How it runs
Provide a valid image to the
Image Anyinput so the preview becomes active.Draw the rectangle directly on the preview using click-and-drag. The selected region is interpreted in pixel coordinates of the image.
Feed points into
Position Coordinate(s)(single coordinate or list). On evaluation the block checks each point against the selected rectangle and returns the rectangle, whether any points are inside, and how many. The preview is updated to show the rectangle and any inside points.
π Usage Instructions
Connect an image source to
Image Anyso the interactive preview appears.Click and drag on the preview to draw the area you want to monitor.
Provide point coordinates to
Position Coordinate(s)(for example, output from a detection block).Run the scenario; results appear as
Area Rectangle,Object In Area, andDetection Count. The preview displays markers for any points inside the rectangle.
π‘ Tips and Tricks
To get point coordinates from automatic detectors, connect outputs from blocks such as
Find ObjectorObject Detection(orObject Detection - Custom) into thePosition Coordinate(s)input.If you need multiple crop areas or more flexible ROI shapes, consider using
Image ROI SelectorImage ROI Polygon Multiand then feed results into specialized filtering blocks.Use
Draw RectangleorDraw Pointto create a combined visual output for reports or presentations after the check.For higher-level filtering (e.g., checking one rectangle against many detected rectangles), combine with
Rectangles in Rectangleto refine results further.If coordinates come from pose or keypoint detectors, try pairing with
Pose EstimationorHand Pose Estimationto check specific body or hand keypoints inside the area.
π οΈ Troubleshooting
No preview appears: ensure a valid image is connected to
Image Anyand run at least once so the preview is initialized.Coordinates not detected as inside: verify that coordinates are in pixel format (x, y) matching the image resolution, not normalized values.
Single-point vs list: the block accepts a single coordinate or a listβif your source supplies a different structure, convert it to a simple (x, y) or a list of (x, y) pairs before connecting.
Last updated