Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VBAI detect objects bounding rectangle

Hi all!

I am using LV VBAI 3.5 to create a simple inspection but there is a detail that cuases serious problems. The function Detect Objects under Check for Presence returns several variables like center of mass coordinates, area etc.  However, the variables I am interested in is the bounding rectangle coordinates. I have tried several ideas how to get them, but failed. I checked the same fn. in labview returns the bounding rectangle. Is there a way to access the variables in VBAI (and to create a ROI out of it)?

Thank you,

Mart


Message Edited by Juurma on 04-30-2008 03:20 AM
0 Kudos
Message 1 of 4
(3,483 Views)
Hi Mart,
 
It seems that we need to find a work around to do this in VBAI. I have created a variable in VBAI and there is just not enough information to replicate the found object's rectangle. It may be that you need create this step in LabVIEW and run it in VBAI if you want to stay in the VBAI environment.
 
Also, I am not exactly sure which function in LabVIEW you are referring to. Could you tell me the name of it?
--Michelle

National Instruments
0 Kudos
Message 2 of 4
(3,459 Views)
Hello Michelle,

The function in LabView I mentioned is IMAQ Count Objects 2, which works in the similar way to VBAI Detect Objects.

Mart
0 Kudos
Message 3 of 4
(3,448 Views)
Juurma,
 
You will have to write a VI in LabVIEW and use the "Run LabVIEW VI" step in VBAI. This feature is not currently available in VBAI so you have two options to add this.

1. Make a product suggestion that it be a standard feature in future versions of VBAI: Product Suggestion Center
 
2. Make a custom step using VBAI Development Toolkit. You can access this in LabVIEW by selecting the Tools menu > Vision Builder AI x.x  > create custom step. You can find the user guide in Windows at Start > All Programs > National Instruments > Vision Builder AI x.x > Documentation
--Michelle

National Instruments
0 Kudos
Message 4 of 4
(3,423 Views)