To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI takes one image from a camera and tracks the object using pattern matching by selecting the ROI or object.
Description
This VI does pattern matching to track the object. The user is able to take one image coming from the camera and then select the ROI or object that they would like to track.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Front Panel
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
I have LV2012 and would like to open this vi but get error code 9... any idea why I get this error?
How do you extend this further so it can 'learn' and track more than one pattern/image at the same time? For example, it learns/stores 2 images simultaneously so when running the program, if either pattern/image is presented, it can track both.
One way you could do this would be to use Geometric Pattern Matching and have an array of template images. http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_learn_multiple_geometric_patterns...
Unfortunately, I have not had time to implement this, but my idea was to do something similar to what you suggest. It would involve geometric pattern matching and have an array of template images. The program would "learn" new template images programmatically based on the first image selected by the user. This would allow the program better determine the object at different projection or angles. You would need to manage the array of template images so that it does not grow to large if you are programmatically adding to it. Also, you would need to make sure the images you are adding to the array are of good quality so it does not negatively impact the geometric matching.
I hope this helps, but the short answer is yes you can implement a better tracking algorithm, but it will take some editing of the current program.
mcnearymw wrote:
I have LV2012 and would like to open this vi but get error code 9... any idea why I get this error?
I have not been able to recreate this error that you are receiving.
Hi I was looking at your code, and i am confused to what this icon is. Please Help
Pls add tutorial video of object tracking that will be helpful
程序很棒 很好用
Hello sir.
Thank you so much for your good effort.
I'v just done the object tracking successfully, thank you.
One major problem is remaining to me asking help for it.
How can I interface LabVIEW x,y,z parameters caused by object tracking ( using above nice sketch ) with Arduino (serial etc )to be as a coming input to control servo motor later.
Actually I want to achieve project below
Any support or suggestion pls
Best Regards
Ibrahim
In labview 2015, the snap image doesn't appear. Nothing happended when the Snap button is pressed. Any idea?
I have implemented a similar tracking technique, however, it seems that this is not really "tracking," but rather "matching." It appears to me that the image is matched in each respective frame rather than tracked between frames. When I utilize this technique on a UGV in the field, it can only identify the correct patterns at the distance that the template was recorded at. I feed the offset between the x coordinate pixel location of the centroid of the tracking target, and the longitudinal axis of the vehicle, to a PID controller that actuates a steering servo. As the vehicle hones in on the target, and the distance between the camera and the target decreases, the target is lost, because the template image size becomes larger (occupies more pixels). If the distance between the camera and the target will remain constant, this approach is a good choice. If the camera or target will be moving in the z-direction (orthogonal to lens plane), then "object tracking VI" will need to be implemented. Else, an array of template images for several distances will be required.
Thanks!
hey can anyone help me regarding the above given vi i wanna add some kind of alarm system that works whenever the objected is detected
Plzz is someone can help