07-26-2015 02:01 AM
Solved! Go to Solution.
07-30-2015 01:03 AM
07-30-2015 09:45 AM
There isn't much detail in your question, and using VBAI to track vehicles would be pretty difficult. This is something that would require a more complex algorithm that would probably need to be programmed in LabVIEW.
Bruce
07-30-2015 09:54 AM
07-30-2015 09:55 AM
07-30-2015 10:09 AM
Without seeing some images of what you are trying to track, it is difficult to give you some advice.
But you might want to look at the Track Object step, located in the Locate Features palette (3rd palette).
The Vision Builder AI example showing this functionality is located here and actually shows a vehicle tracking application:
C:\Program Files (x86)\National Instruments\Vision Builder AI 2014\Examples\Object Tracking Example.vbai
The object tracking feature is one out of many tools that can be used to locate objects in an image. Vision Development module has lots of other tools that can be used for such purpose. It just depends on the content of your image.
Pattern matching might be another one, although it generally is not the most appropriate one for vehicle tracking.
Optical Flow could be another one:
C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\Vision\Motion Estimation\Optical Flow Feature Tracking.vi
Hope this helps.
Christophe
07-30-2015 10:21 AM
07-30-2015 10:25 AM
07-30-2015 11:44 AM
The Object tracking feature allows to track multiple objects.
To do exactly what is shown in the video, where the number of cars is variable, you need to use LabVIEW and Vision Development module to have more control over the creation of the objects. (The limitation with Vision Builder AI is that each object to track is associated with a tracking session, so you have to know up front how many object you need to track, but VBAI can track multiple objects).
The principle that I described should be the same in LabVIEW: somehow detect the new car that comes into the field of view, and at that point learn the object so that it can be tracked. The prerequesite should be that you must know where to detect the car that comes into the field of view. The difficult part of the application is to define the region of interest of the new object you want to track.
The LabVIEW example for object tracking is located here:
C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\Vision\Tracking\Object Tracking.vi
Christophe
07-30-2015 12:17 PM