Image ROI Select Multi

This function block facilitates the selection of multiple regions of interest (ROIs) in an image using mouse clicks and key commands. It allows for identifying specific areas in an image for further processing.

📥 Inputs

Image Any An image on which regions of interest will be selected.

📤 Outputs

Images A list of cropped images from the selected ROIs. Multiple images can be provided.

Rectangles Returns the coordinates of the selected rectangles defined by the mouse input.

🕹️ Controls

Mouse actions:

  • Click and drag to create rectangles on the displayed image.

  • Press C to clear all selected rectangles.

  • Press U to undo the last added rectangle.

🎨 Features

Multiple ROI Selection The block allows users to define several rectangular areas within a single image.

Dynamic Visualization As the user draws rectangles, the image is updated in real time to show the current selections.

Undo and Clear Options Users can easily modify their selections with undo and clear functionalities.

📝 Usage Instructions

  1. Connect the Input Image: Link an image to the block using the Image Any input.

  2. Select ROIs: Click and drag on the image to create rectangles.

  3. Modify Selections:

    • Press "C" to clear all selected rectangles.

    • Press "U" to remove the last rectangle added.

  4. Evaluate: Run the block to process the image and output the selected ROIs and their coordinates.

📊 Evaluation

When executed, the block captures the defined ROIs from the input image and provides both the cropped images and the rectangle coordinates as outputs.

💡 Tips and Tricks

Using with Other Image Processing Blocks

For better results after defining the ROIs, consider connecting the output images to blocks like Image Threshold, Blur, or Super Resolution for further analysis or enhancement.

Combining with Object Detection

After defining ROIs, you can analyze those specific areas for object detection using function blocks such as Object Detection or Safety Equipment Detection for better targeting.

🛠️ Troubleshooting

No Image Displayed

Ensure that a valid image is connected as input. The block requires a valid image to allow for ROI selection.

Errors When Using Key Commands

Make sure that the block is active and receiving the key input when trying to clear or undo rectangles. Focus on the image widget by clicking on it before using the keyboard shortcuts.

Last updated