12-11-2012 03:40 AM
Good morning,
I'm new in Labview and I tried to find and answer to my question browsing the forum but I couldn't. I ran the attached piece of code using IMAQdx drivers (3.4 version I guess but I'm not sure) and it works perfectly but I need to put all my code inside of the while loop, otherwise It doesn't work. What I'm trying to do is a color track program using particle filters so I need to run my webcam continuously and print particles on the output. So here's my question, can I somehow put the rest of my code outside the while loop or do I need to put eveything inside in order to print particles on the video image?
Thanks in advance.
Solved! Go to Solution.
12-11-2012 04:43 AM
Hello,
you should use a producer consumer design pattern for this. send the aquired images to the consumer loop to process them.
Regards,
12-11-2012 05:07 AM
Hello Rodéric and thanks for your response. Do you mean like this?
12-11-2012 06:56 AM
indeed
12-14-2012 10:52 AM
Hello again,
I made a producer-consumer that enqueues images from webcam (producer) and dequeues images in the other loop (consumer). But I cannot see the video Stream in the other loop, just I/O elements and Labview shows me an error when I dequeued. How could I rebuild the original video from the enqueued elements in the producer.
Thanks in advance.