07-31-2009 08:42 AM
07-31-2009 10:08 AM
You still have some issues with your block diagram. You have three USB Grab functions running each time through your while loop. That means that you have to acquire three images before you cycle through the loop again. That means your are only processing the motion detection algorithm every third frame. You only need one USB Grab since you are only using one camera. In the vi that I attached, I do not perform the difference on the same frame. I use two image references and write the new frame to them in an alternate fashion. Also, especially in a case like this, do not use local variables for your image references. You cannot be sure if the data that is being read into your motion detection algorithm is previous data or new data (or a combination). Besides, it is not needed for this application.
I use a shift register to keep the previous reference for the image subtraction (i.e. image0 is a new frame, subtract from image1, pass image0 through shift register, image1 is a new frame, subtract from image0, pass image1 through shift register, image0 is a new frame, subtract from image1, pass image0 through shift register, etc.....)
When I remove the edge detection vis from the vi I posted, my output looks the same as yours but with a faster frame rate. Attached is one final version.
07-31-2009 10:12 AM
07-31-2009 12:05 PM
09-20-2011 03:04 PM
Hi.
Is there any chance that you could send me this code for labview 8.5?
Thanks in advance.
Vinicius.
09-20-2011 03:51 PM
That thread is a couple years old so they may not still be around. Save the file and post it to the downconvert thread and someone will get to it.
http://forums.ni.com/t5/LabVIEW/Downconvert-VI-Requests/td-p/1067229
09-20-2011 04:07 PM
Ok.
Thanks NIquist. I added the files there.
05-12-2012 01:24 PM
hello
we are doing a project on vehicle tracking using lab view
i have completed the following steps
1)color to grayscale conversion
2)threshilding
3)morphological operations
my problem is that how do i get a bounding box around the vehicle and track the vehicle?
please help.
an immediste reply would be of great help to us.
thank you
05-14-2012 08:59 AM
You are posting an unrelated question on an old, SOLVED thread. If you want some response you should start your own new thread so that it will be noticed.