LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to track

I was trying to use vision assistant to track a bead in a series of frames (beads are moving in the movie). However, I could not find a way to loop my script to do pattern match through the whole series of frames. It only recognizes the bead in the current frame, then I have to manually move forward to the next frame, run the script once to track the bead. Is there a way to make this work automatically? Or is it that I did not aquire the images in the right way (I chose simulated acquisition and load the image files to the browser)? Thanks a lot!
0 Kudos
Message 1 of 5
(3,266 Views)
Hi,

I had a similar problem. I had the movie file in .avi format and got the images based on the number of frames of the movie file.

step 1: Go to the vision assistant and get the procedure to track and match the pattern etc. Basically, get the sequence of operations you want to do on a single image, using the vision assistant.

Step 2: Once you have the sequence of operations right, generate the labview code from the vision assistant.

Step 3: After you have the labview code, tweak it a little bit to read all the images in a single directory and add a while loop, to do the same sequence of operations on all the images, and other things based on your application's needs.

I did this, chiefly because I did not know how to do it in th vision assistant. There might be a better way of doing this.But this worked very well for my application.

Deepak
0 Kudos
Message 2 of 5
(3,216 Views)
Thanks a lot. I am really new to vision assistant. So, how can I generate labview codes? Thanks again!
0 Kudos
Message 3 of 5
(3,216 Views)
Go to Vision Assistant --> Tools --> Create LabVIEW VI, after you got the sequence of operations right.

I noticed another feature in Vision assistant, which is probably what you are looking for.

Go to Vision Assistant --> Tools --> Batch Processing.

I have never used it myself, so I cannot help you how to use it.

Read the help files or browse any examples from the NI website on how to do this.

Happy wiring...

Deepak
Message 4 of 5
(3,214 Views)
I was wondering if you had any luck with the batch processing function.

I found that the batch processing system:

Creates a separate file for each script step.
-The results for each subsequent image is appended to the data file with filename,date,time stamps
-The file names are however, not updated when stamped.

Is there a way to have a single output file per image, with each script step appended to it? Therefore full analysis of individual images are segregated together?

Thanks,

-Matt
Matthew Carney
R&D Engineer
The Polymer Technology Group
0 Kudos
Message 5 of 5
(3,142 Views)