Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make Overlay Multiple Lines to ignore the value 0

My program is supposed to detect and track the motion of moving objects using a CCTV camera. A rectangle box and a tracking line is supposed to appear and track the object. However, when there is no motion a part of the program sends 0,0 XY coordinates to the Overlay Multiple Lines block. This causes the block to plot the tracking line from 0,0 to the next point that has motion. I tried putting a constant of NaN, Inf and -1 to replace coordinates which were 0,0 but the Overlay Multiple Lines block is still plotting 0,0. 

To be more specific, I'm saving 15 XY coordinates to an Excel file which is updated with the latest position of the object every frame, which the program can read from and plot those 15 points. The value of 0,0 (NaN, Inf and -1 too) causes the overlay block to wrongly plot the line to origin instead of ignoring it. 

If you need my VIs, please feel free to contact me and I will upload ASAP. 

Thanks.

0 Kudos
Message 1 of 1
(2,189 Views)