Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I use Imaq usb to get a snap image, get template and do pattern matching?

I try to track the braiding point. At first snap and grab a image to build the template. And I will grab a image every 5 seconds and compare with the template in order to get the position offset to control motion.  Please find the attached VI. It always calls the ' IMAQ Vision: (hex 0xbff60453) incompatible image type. how can I do? THKS!

0 Kudos
Message 1 of 15
(5,953 Views)
It is most likely because of the imaq create not being compatible. Can you post a screen shot of the vi as i have lv 8.0?
0 Kudos
Message 2 of 15
(5,948 Views)

Thank you for your replying. I attached my code by PDF file. It pretty much likes the example "Pattern Matching example".

 

0 Kudos
Message 3 of 15
(5,929 Views)
Sorry, the last code need a little change. Only a image display was covered by case structure.
0 Kudos
Message 4 of 15
(5,907 Views)

Hi Guang,

 

I think you are using two different bit depths in your image processing.  You will need to convert one of them in order to do what you desire.

Stephen Meserve
National Instruments
0 Kudos
Message 5 of 15
(5,894 Views)

I recognized the problem. I didn't figure out how to convert them now. I'm new user for this. Would you please give me some clues?

THKS!

0 Kudos
Message 6 of 15
(5,884 Views)

Hi guangli,

 

Use the typecast VIs.

Stephen Meserve
National Instruments
0 Kudos
Message 7 of 15
(5,881 Views)
Thank you again. I used IMAQ cast. I doesn't work. I may something else wrong. Would you please help me see the code I attached before. 
0 Kudos
Message 8 of 15
(5,873 Views)
Thank you again. I used IMAQ cast. I doesn't work. I may something else wrong. Would you please help me see the code I attached before. 
0 Kudos
Message 9 of 15
(5,872 Views)
Thank you again. I used IMAQ cast. I doesn't work. I may something else wrong. Would you please help me see the code I attached before. 
0 Kudos
Message 10 of 15
(5,871 Views)