Smart Zoom

Pan and Zoom to cover specific objects detected by any AI model

Overview

The Smart Zoom node allows for panning and zooming to cover specific objects detected by any AI model. This functionality is crucial for applications requiring focused attention on particular objects within a video frame.

Inputs & Outputs

  • Input media: Raw Video.
  • Output media: Raw Video.
  • Output metadata: None.

Pipeline usage

Place a detector, and normally Track Objects, before Smart Zoom. The node builds one view that contains all matching object boxes, then gradually adjusts toward it; multiple distant objects therefore produce a wider view than one isolated object. zoom_adjust_threshold suppresses small changes, and zoom_reset_interval returns to the full frame after the configured number of frames without a match. Because this node changes pixels but does not transform existing object coordinates, use it near the end of a branch, after analytics and before display or encoding.

Properties

PropertyDescriptionTypeDefaultRequired
object_typesex. car,person,face.mask. Zoom to focus on detected objects with specified types. Use the object_label.class_label format for objects that also have a specific class.model-labelsnullNo
zoom_adjust_speedLarger is faster. Range: minimum 0, maximum 100. Step: 5.integer10No
zoom_adjust_thresholdDon't adjust zoom unless a new zoom window differs from current one by more than this percentage. Range: minimum 0, maximum 100. Step: 5.integer15No
zoom_reset_intervalReset zoom if no objects matching type are seen for this time. Range: minimum 0, maximum 100. Step: 5. Unit: frames.integer15No

Output Metadata

Node does not insert any output metadata; upstream metadata continues through the pipeline


Did this page help you?