Overview
This example continuously threshold incoming images and take the sum of the results to provide motion tracking.
Description
This VI continuously thresholds images and takes the sum. It then multiplies the result by a red image. The areas where movement occurred will then show up red. The color that is used for thresholding is chosen by adjusting the sliders on the front panel. The image shown below was taken while tracking the movement of a black dot. Note that this example works best when the object is in front of a solid background. This example can be modified for many different uses including a motion "heat map" feature that highlights areas where motion is more frequent.
Requirements
- LabVIEW 2012 (or compatible)
- Vision Acquisition Software
- Vision Development Module
- Any camera that is compatible with Vision Acquisition Software
Steps to Implement or Execute Code
- Open the VI
- Select your camera and Run the VI
- Adjust the sliders to select the desired color
- Notice how the image on the right tracks the movements of the objects of interest
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Applications Engineer
National Instruments