Comment on page
HeatMap
The
HeatMap
node in AugeLab Studio applies the heatmap visualization technique to highlight areas of interest in an input image or video.The
HeatMap
node generates a heatmap by accumulating the motion information in consecutive frames of a video or image sequence. It uses the background subtraction technique and applies a color map to visualize the accumulated motion over time.- Node Title: HeatMap
- Node ID: OP_NODE_HEATMAP
The
HeatMap
node has the following input socket:- Image: The input image or video frame to be processed. Connect an image or video frame to this socket.
The
HeatMap
node has the following output socket:- Image: The resulting image with the heatmap visualization applied.
The
HeatMap
node has the following configuration options:- Threshold: Adjust the threshold value to control the sensitivity of motion detection. Higher values will detect only strong motion, while lower values will detect more subtle motion.
- MaxValue: Set the maximum value for the motion pixels in the accumulated image. Increasing this value will make the motion pixels more prominent in the heatmap visualization.
- Alpha: Adjust the blending factor for overlaying the accumulated motion on the original frame. Higher values will make the accumulated motion more visible.
- Beta: Adjust the blending factor for overlaying the color map on the original frame. Higher values will make the color map more prominent.
- 1.Drag and drop the
HeatMap
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input image or video frame to the Image input socket of the
HeatMap
node. - 3.Configure the node properties according to your needs, such as adjusting the threshold, max value, alpha, and beta values.
- 4.Run the pipeline.
- 5.The
HeatMap
node will accumulate the motion information in consecutive frames and generate a heatmap visualization. - 6.The resulting image with the heatmap visualization will be available at the Image output socket.
- The
HeatMap
node uses thecv2.createBackgroundSubtractorMOG2
function from OpenCV to perform background subtraction and detect motion. - The accumulated motion information is visualized using a color map applied to the original frame.
- The threshold value determines the sensitivity of motion detection. Adjust it to detect the desired level of motion.
- The max value controls the intensity of the motion pixels in the accumulated image. Increasing it will make the motion more prominent in the heatmap visualization.
- The alpha and beta values control the blending factors for overlaying the accumulated motion and color map on the original frame. Adjust them to achieve the desired visual effect.
- The
HeatMap
node accumulates motion information over time. Reset the node to clear the accumulated motion and start a new heatmap visualization.
That concludes the documentation for the
HeatMap
node in AugeLab Studio. This node allows you to generate a heatmap visualization to highlight areas of interest in an image or video based on motion detection.