Class MotionDetectionProcessor
java.lang.Object
com.azure.media.videoanalyzer.edge.models.ProcessorNodeBase
com.azure.media.videoanalyzer.edge.models.MotionDetectionProcessor
Motion detection processor allows for motion detection on the video stream. It generates motion events whenever
motion is present on the video.
-
Constructor Summary
ConstructorDescriptionMotionDetectionProcessor
(String name, List<NodeInput> inputs) Creates an instance of MotionDetectionProcessor class. -
Method Summary
Modifier and TypeMethodDescriptionGet the eventAggregationWindow property: Time window duration on which events are aggregated before being emitted.Get the sensitivity property: Motion detection sensitivity: low, medium, high.Get the outputMotionRegion property: Indicates whether the processor should detect and output the regions within the video frame where motion was detected.setEventAggregationWindow
(String eventAggregationWindow) Set the eventAggregationWindow property: Time window duration on which events are aggregated before being emitted.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.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
-
Constructor Details
-
MotionDetectionProcessor
Creates an instance of MotionDetectionProcessor class.- Parameters:
name
- the name value to set.inputs
- the inputs value to set.
-
-
Method Details
-
getSensitivity
Get the sensitivity property: Motion detection sensitivity: low, medium, high.- Returns:
- the sensitivity value.
-
setSensitivity
Set the sensitivity property: Motion detection sensitivity: low, medium, high.- Parameters:
sensitivity
- the sensitivity value to set.- Returns:
- the MotionDetectionProcessor object itself.
-
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
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
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
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.
-