From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Region of Interest in Vision Builder AI

I use ROI in my programs heavily. So, is it possible to build one ROI with a set a parameters and then keep changing the SAME ROI with different parameters for a different purpose?

0 Kudos
Message 1 of 2
(2,195 Views)

The Create Region of Interest step allows you to specify previous results or variables for the coordinates of the region of interest, by clicking on the pulldown arrow.

If you want to modify the same ROI, you can update the variables used to create the ROI, and loop back on the state that contains the Create ROI step to update that ROI.

 

For example, in a first state, based on some condition, you would use either the Set Variable step or Read Variable from INI file step to read/update the new variables, and call the Create Region of Interest step.

Then you could create transitions to different states (based on the same condition as above), and in those states, perform different processing using the updated ROI.

 

Hope that makes sense.

 

Christophe

0 Kudos
Message 2 of 2
(2,171 Views)