Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

RE: Tracking multiple target images

Hi every1,
 
I suddenly face this problem... My existing program is done by editing some examples found in labview- set calibration example.VI. I have edited the program such that, I can acquire the RT images, and do a simple colour matching... This will match the template with the real time image. The program will then be able to giv me detail coordinates of the image(if there is a successful match). This is done so using IEEE 1394 basler scout series camera. I have no problems tracking 1 object, however, when i try using 1 camera to track two different objects, i face some problem.
 
Let me explain in details.
 
I want to track 2 different target images using two different template. For simple explaination, i would use red book (as 1st obj) and blue book( as 2nd obj). i need to track them using IMAQ Colour pattern match.VI. I need to get the exact coordinates of the object after it is successfully matched.In my program i had programed 2 different path to stored the templates images. After which, the IEEE 1394 camera will be init, and capture the image and pass the image for color matching (IMAQ colour pattern match.VI). However, the system will only detect the the 1st image, the second image is failed to match (even though the object is there).
 
I don't know why. Can any1 help me? I hope the info i gave helps.
 
Regards,
khsay
 
0 Kudos
Message 1 of 2
(3,376 Views)

Hello khsay,

 

 

It is possible to perform two template matching operations on a single image.  The easiest way to do this would be to set it up in Vision Assistant as two color pattern matching operations.  Once you get this aspect working, then you can focus on getting the calibration set up properly.

 

Vision Assistant can create LabVIEW code for you once you have your script completed.  This will be a little more straightforward than modifying a Vision example.

 

As a general rule, you always need to give your templates unique buffer names when using the “IMAQ Create” VI.  It is possible you could be overwriting your memory space if you are not doing this.  I hope this helps, if you continue to have questions about this issue, please post back with more specifics about how your application is behaving.

 

 

Regards,

 

Jasper

0 Kudos
Message 2 of 2
(3,347 Views)