11-14-2012 03:22 AM
I make the program to chec the component of part on pcbs, but in NI vision assitant is ok. But I change code to VB.net, it can not display the roi and possition of part missing.
Pls support to teach me the code to display the result after image processing with the roi display same as in vision assitant.
my email : ductho.bui.vn@gmail.com
Thanks.
11-15-2012 10:45 AM
Greetings;
When you changed the code from Vision Assistant to VB, how did you go about this process? Did you write the VB Code or used the Code Creation Wizard? If you wrote it, would you be able to give the Wizard a try? In the NI Vision Assistant you may go to Tools -> Create .NET Code and the vision Assistant will generate this code for you.
If you did use the wizard, what exactly are you seeing that is different? The ROI does not display nor the part location appear, are you getting some sort of error, or there is simply nothing happening?
Cordially;
Simon P.
11-22-2012 12:47 AM
Hi Simon,
Thks for your guide.
This code I converted from Vision Assistant by Tools -> Create .NET Code.
I already checked it in VAssistant program is OK, it can display the ROI and detect the missing part.
However, when I convert to VB.NET code, it can not detect the missing part, and without the ROI.
I don't know why?
Can you support me with .Net code for detect missing part in 1 picture.
( I already enclosed the attached file in last post for your support).
My email : ductho.bui.vn@gmail.com.
Thanks so much.
11-26-2012
02:43 PM
- last edited on
10-11-2025
04:43 PM
by
Content Cleaner
Greetings,
I took a look at the attachment and did not see any image; would you happen to have an image that I may run the matter with?
In addition, have you been able to use any our Visual Basic shipped examples correctly? An example such as the Battery Clamp Inspection, does it work correctly or is there still a problem with the ROI? Would you also be able to post the Vision Assistant files such that I may attempt the conversion on my side as well?
Finally, how big are the images that we are trying to analyze? Depending on the image size, we might be running into problems as per the following article:
Cordially;
Simon P.
11-27-2012 08:13 PM
Hello Simon,
I read the help document of MatchingColorpattern, it has the inspection function to detect missing part.
Can you give me the vb code example for this function .
Thanks.
11-27-2012 08:13 PM
Hello Simon,
I read the help document of MatchingColorpattern, it has the inspection function to detect missing part.
Can you give me the vb code example for this function .
Thanks.
11-29-2012
09:02 AM
- last edited on
10-11-2025
04:43 PM
by
Content Cleaner
Greetings,
For Color Pattern Matching, have you been able to take a quick look at the examples that ship with NI-IMAQ? One of them is the ColorMatching.vbp; would something like that be what you are looking for?
More information on the shipping examples may be found here:
http://zone.ni.com/devzone/cda/epd/p/id/825
In addition, have you been able to take a quick look at the shipped example I mentioned earlier, the Battery Clamp inspection? If so, has it been of any aid? For more information on where it may be found, please go to the following link:
http://zone.ni.com/devzone/cda/epd/p/id/1105
Cordially;
Simon P.
11-29-2012 09:07 AM
12-02-2012 02:51 PM
Greetings,
When you say focused on finding a color pattern from a temple, would you happen to mean a template?
If so, would you be doing an inspection to find a missing object without a template? Or do you have a template of an object that you are searching for in other images?
Cordially;