MediaGraphMotionDetectionProcessor Class

A node that accepts raw video as input, and detects if there are moving objects present. If so, then it emits an event, and allows frames where motion was detected to pass through. Other frames are blocked/dropped.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.media.analyticsedge._generated.models._models_py3.MediaGraphProcessor
MediaGraphMotionDetectionProcessor

Constructor

MediaGraphMotionDetectionProcessor(*, name: str, inputs: List[azure.media.analyticsedge._generated.models._models_py3.MediaGraphNodeInput], sensitivity: Optional[Union[str, azure.media.analyticsedge._generated.models._direct_methodsfor_live_video_analyticson_io_tedge_enums.MediaGraphMotionDetectionSensitivity]] = None, output_motion_region: Optional[bool] = None, event_aggregation_window: Optional[str] = None, **kwargs)

Parameters

type
str
Required

Required. The discriminator for derived types.Constant filled by server.

name
str
Required

Required. The name for this processor node.

inputs
list[<xref:azure.media.analyticsedge.models.MediaGraphNodeInput>]
Required

Required. An array of the names of the other nodes in the media graph, the outputs of which are used as input for this processor node.

sensitivity
str or <xref:azure.media.analyticsedge.models.MediaGraphMotionDetectionSensitivity>
Required

Enumeration that specifies the sensitivity of the motion detection processor. Possible values include: "Low", "Medium", "High".

output_motion_region
bool
Required

Indicates whether the processor should detect and output the regions, within the video frame, where motion was detected. Default is true.

event_aggregation_window
str
Required

Event aggregation window duration, or 0 for no aggregation.