Class MotionDetectionProcessor
- java.lang.Object
-
- com.azure.media.videoanalyzer.edge.models.ProcessorNodeBase
-
- com.azure.media.videoanalyzer.edge.models.MotionDetectionProcessor
-
public final class MotionDetectionProcessor extends ProcessorNodeBase
Motion detection processor allows for motion detection on the video stream. It generates motion events whenever motion is present on the video.
-
-
Constructor Summary
Constructors Constructor Description MotionDetectionProcessor(String name, List<NodeInput> inputs)
Creates an instance of MotionDetectionProcessor class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEventAggregationWindow()
Get the eventAggregationWindow property: Time window duration on which events are aggregated before being emitted.MotionDetectionSensitivity
getSensitivity()
Get the sensitivity property: Motion detection sensitivity: low, medium, high.Boolean
isOutputMotionRegion()
Get the outputMotionRegion property: Indicates whether the processor should detect and output the regions within the video frame where motion was detected.MotionDetectionProcessor
setEventAggregationWindow(String eventAggregationWindow)
Set the eventAggregationWindow property: Time window duration on which events are aggregated before being emitted.MotionDetectionProcessor
setOutputMotionRegion(Boolean outputMotionRegion)
Set the outputMotionRegion property: Indicates whether the processor should detect and output the regions within the video frame where motion was detected.MotionDetectionProcessor
setSensitivity(MotionDetectionSensitivity sensitivity)
Set the sensitivity property: Motion detection sensitivity: low, medium, high.-
Methods inherited from class com.azure.media.videoanalyzer.edge.models.ProcessorNodeBase
getInputs, getName
-
-
-
-
Method Detail
-
getSensitivity
public MotionDetectionSensitivity getSensitivity()
Get the sensitivity property: Motion detection sensitivity: low, medium, high.- Returns:
- the sensitivity value.
-
setSensitivity
public MotionDetectionProcessor setSensitivity(MotionDetectionSensitivity sensitivity)
Set the sensitivity property: Motion detection sensitivity: low, medium, high.- Parameters:
sensitivity
- the sensitivity value to set.- Returns:
- the MotionDetectionProcessor object itself.
-
isOutputMotionRegion
public Boolean isOutputMotionRegion()
Get the outputMotionRegion property: Indicates whether the processor should detect and output the regions within the video frame where motion was detected. Default is true.- Returns:
- the outputMotionRegion value.
-
setOutputMotionRegion
public MotionDetectionProcessor setOutputMotionRegion(Boolean outputMotionRegion)
Set the outputMotionRegion property: Indicates whether the processor should detect and output the regions within the video frame where motion was detected. Default is true.- Parameters:
outputMotionRegion
- the outputMotionRegion value to set.- Returns:
- the MotionDetectionProcessor object itself.
-
getEventAggregationWindow
public String getEventAggregationWindow()
Get the eventAggregationWindow property: Time window duration on which events are aggregated before being emitted. Value must be specified in ISO8601 duration format (i.e. "PT2S" equals 2 seconds). Use 0 seconds for no aggregation. Default is 1 second.- Returns:
- the eventAggregationWindow value.
-
setEventAggregationWindow
public MotionDetectionProcessor setEventAggregationWindow(String eventAggregationWindow)
Set the eventAggregationWindow property: Time window duration on which events are aggregated before being emitted. Value must be specified in ISO8601 duration format (i.e. "PT2S" equals 2 seconds). Use 0 seconds for no aggregation. Default is 1 second.- Parameters:
eventAggregationWindow
- the eventAggregationWindow value to set.- Returns:
- the MotionDetectionProcessor object itself.
-
-