Draw Point
This function block draws one or more marker points onto an input image at the coordinates you provide. It is useful for visualizing detected positions, annotations, or measurement results.
π₯ Inputs
Image Any The source image where points will be drawn (RGB/BGR or grayscale).
Points One coordinate or a list of coordinates to draw. Coordinates are in (x, y) or (col, row) format and may be a single tuple or a list of tuples.
π€ Outputs
Image Any The image with drawn points overlayed.
πΉοΈ Controls
This function block has no extra UI controls. It uses the connected inputs to determine where and how points are drawn.
π¨ Features
Visual markers: Draws filled circle markers with a two-color outline to make points visible on various backgrounds.
Auto-scaled marker size: Marker size adapts to image resolution so points remain visible on both small and large images.
Accepts single or multiple points: Works with a single coordinate or a list of coordinates for batch annotation.
Non-destructive: Produces a copy of the input image with overlays, preserving the original image upstream.
π Running Mechanism
When active, the block reads the provided image and coordinate input, places visible markers on the image at each coordinate, and outputs the annotated image for downstream blocks or display.
π Usage Instructions
Connect an image-producing block to the
Image Anyinput.Provide a single coordinate or a list of coordinates to the
Pointsinput.Use the resulting
Image Anyoutput to preview (for example with theShow Imageblock) or to pass the annotated image to export or further processing blocks.
π‘ Tips and Tricks
To obtain coordinates from a user click, pair this block with
Get Pixel Mouseto draw the clicked positions on the image.To visualize detected object centers, feed coordinates from
Object Detection,Object Detection - Custom, orObject_Detection_Trackerinto thePointsinput.For contour-based points, use
Find ContourorApproximate Contourto extract points and then draw them with this block.Crop to a region of interest first using
Image ROI SelectorImage ROIso you only draw points within a specific area.Combine with
Draw Detectionswhen you want both bounding boxes and point markers on the same image.If you need to save annotated frames, connect the output to
Image LoggerorImage Write.Use
Slice ImageorImage Resizeupstream if marker size or density needs adjustment for presentation or export.
π οΈ Troubleshooting
If markers do not appear, verify that the
Pointsinput contains valid coordinates within the image bounds (0 β€ x < width, 0 β€ y < height).If only one marker appears when you expect many, ensure the
Pointsinput is a list of coordinate tuples rather than a single tuple.If markers are too small or large for the image, resize the image using
Image Resizeor crop withImage ROIbefore drawing.
Last updated
Was this helpful?