Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Color parttern matching for eletronic component on pcbs

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.

0 Kudos
Message 1 of 9
(6,281 Views)

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.

National Instruments
Applications Engineer
Message 2 of 9
(6,266 Views)

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.

 

0 Kudos
Message 3 of 9
(6,243 Views)

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:

https://www.ni.com/en/support/documentation/supplemental/21/region-of-interest-frequently-asked-ques...

 

Cordially;

 

Simon P.

National Instruments
Applications Engineer
0 Kudos
Message 4 of 9
(6,217 Views)

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.

0 Kudos
Message 5 of 9
(6,203 Views)

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.

Download All
0 Kudos
Message 6 of 9
(6,203 Views)

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.

National Instruments
Applications Engineer
0 Kudos
Message 7 of 9
(6,183 Views)
hello Simon,
I already read the color pattern example, but it only focus to find color pattern with temple. but I still not understand How to us Matchcolorpattern to inspection with missing part.
pls support.
thks
0 Kudos
Message 8 of 9
(6,180 Views)

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;

National Instruments
Applications Engineer
0 Kudos
Message 9 of 9
(6,163 Views)