# Region of Interest

Setting the Region of Interest The Region of Interest (ROI) is the area of the image where the vision tool operates. (ROI The Region of Interest (ROI) is the area of the image where the vision tool operates.) is the first step when adding a new tool to the tool chain. Setting the ROI creates the view where the tool inspects the object.

The following screenshot shows the ROI options page.

How to set the Region of Interest (ROI)

1. Change the ROIThe Region of Interest (ROI) is the area of the image where the vision tool operates. by moving, resizing, and turning the blue rectangle on the image. Place the blue rectangle on the part of the image you want to check.

   - To move the ROI, click and drag anywhere inside the blue rectangle.

   - To resize the ROI, click and drag any of the sides or corners of the blue rectangle.

   - To rotate the ROI, click and drag the rotate handle on one side of the blue rectangle.

   - Alternatively, you can adjust the position along the X and Y axes, the width, the height, and the rotation of the ROI with numerical values in the ROI Options section.

2. To change the point from where the application calculates the location of the ROI, select Origin or Center.

3. If the tool is in a tool chain after another tool that produces blobs, you can apply a Mask From Blob to narrow down the inspection area. For more information, see Masking.

4. Click Apply ROI when you are done to set the ROI for all the images you uploaded.

How to set multiple Regions of Interest (Multi-ROI)

You can set multiple ROIs for certain tools. This is different from non-contiguous ROIs inherited from upstreamAn upstream tool comes first in the toolchain and its output defines a downstream tool. An upstream tool can have several downstream tools. tools, which are represented by multiple rectangles of the same color, and count as a single ROIThe Region of Interest (ROI) is the area of the image where the vision tool operates.. When you set multiple ROIs, each ROI is represented by a rectangle of a different color.

Note: The Pattern tool does not support multiple ROIs.

1. After setting the first ROI according to the previous instructions, click Add Region to add a second ROI.

2. Place the ROI rectangle around the additional part of the image that you want to check, and adjust the ROI settings in the ROI Options panel.

   Note: Every ROI in a multi-ROI setup uses the same rectangle size. This means that if you resize the rectangle for one ROI, every other ROI rectangle is resized to the same size.

3. To add more ROIs, click Add Region again and repeat the process. The tool displays an expandable heading containing the settings for each new ROI in the ROI Options panel, starting with Region 1.

4. If you want to delete ROIs, click Remove Region to remove the last ROI in the list.