11-08-2011 09:11 AM
Dear All,
I am new in LV, I am trying to build a Program for tracking the Cars pass through the Road. However, I have no idea how can I build it.
I am using Labview 2010 and Vision Assistant 2010.
I got a AVI. file which is recorded the road condition for the traffic analysis.
The proposed tasks are:
1. How can I export all image frames to LV for the tracking?
2. How can I tracking the cars by using different images?
Are that any examples can give me to research?
Thank for your great help
Best Regards,
Faik
11-09-2011 02:22 PM
Faik,
If you are just getting started with LabVIEW I would recommend looking at some of the vision shipping examples. You can open the Example Finder by going to Help»Find Examples. Once there, look at the read AVI example located in Toolkits and Modules»Vision»Functions»Read AVI Example.vi. This will show you how to read in images from an AVI file into LabVIEW. As far as tracking the vehicles, there are several different approaches you can take. The most straightforward would be creating a pattern template and then searching for it in each image. To get started with this approach, look at the Pattern Matching Example.vi located in the same directory. You can also search through the example code located at ni.com/code for more example programs submitted by both NI employees and LabVIEW community members.
11-14-2011 04:02 AM
Hello Chris,
Thank you for the help, I have success to open the AVI File through the Labview.
However, the tracking function I want is similar to motion detection.
For Example, when I play the AVI file / transfer the AVI file to Image Frames for processing.
The Labview can compare each images and tracking the different cars.
For example, using the attaching file to open some movement of the video.
11-14-2011 11:42 AM
There are two examples on ni.com/code which show how to do motion detection in LabVIEW. The basic idea is to subtract one frame from the other, leaving only the pixels that are not equal between the two frames. Take a look at these two examples and see if this is what you are trying to do.
Motion Detection Using NI Vision
https://decibel.ni.com/content/docs/DOC-4717
Motion Detection Saved to AVI File
https://decibel.ni.com/content/docs/DOC-4115