To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to convert a bounding box to a rectangle shaped ROI.
Description
When working with the NI Vision Development Module you may find yourself running inspections with steps oriented to find patterns, objects or image templates. Some of these functions output a bounding box which is basically a rectangle with the coordinates of a binary object.
The example converts the bounding box to a ROI (region of interest) so the information can be used where a ROI is required.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
alcava.cr,
I use your example together with this IMAQ zoom to ROI from Kev_R and I was able to zoom on a QR Code read from a jpg file. Thanks a lot.
I left a copy of the code on the page from Kev_R article.
Here is a picture of my VI.