09-30-2019 10:58 AM
Hello, I'm using LabView 2018 with the vision2 pack installed. I have been using the Vision Quantify 2 VI to monitor an imposed 'roi' mask from a USB video input. In previous iterations of my code (which works perfectly), whenever when an object enters the 'roi' location and the mean pixel dips below a predetermined threshold an action occurs. Now I am attempting to monitor multiple locations within the video feed to determine whether a moving object is in one of four locations within the field of view of the camera. (starting out with just two detection areas) This has proven to be much more difficult as I have tried to split the video into two streams and apply a mask to each individually then use image quantify to measure mean pixel intensity in each area. When I run the VI, which I have included below, both detection streams detect the same area of the video despite having different input masks. I have a feeling it may be a limitation of vision quantify 2 but if anyone sees a dumb error or has an alternative solution, I'm all ears.
Also, I have tried breaking the detection streams into separate while loops with the same results...
Cheers,
Jonathan Seaman
Solved! Go to Solution.
10-08-2019 10:16 AM
Hi Jonathan,
IMAQ Create.vi creates an IMAQ image buffer that is referenced by the name you give it. You are calling this VI twice to try and create two separate image masks, but since you are giving the buffers the same name, they are both actually referencing the same mask image. This should be as simple as giving these mask images unique names.
-Jordan
10-08-2019 10:21 AM
Thank you Jordan!
That was likely it. I’ll keep that in mind.
Cheers,
Jonathan