Class SamplingOptions
java.lang.Object
com.azure.media.videoanalyzer.edge.models.SamplingOptions
Defines how often media is submitted to the extension plugin.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the maximumSamplesPerSecond property: Maximum rate of samples submitted to the extension.Get the skipSamplesWithoutAnnotation property: When set to 'true', prevents frames without upstream inference data to be sent to the extension plugin.setMaximumSamplesPerSecond
(String maximumSamplesPerSecond) Set the maximumSamplesPerSecond property: Maximum rate of samples submitted to the extension.setSkipSamplesWithoutAnnotation
(String skipSamplesWithoutAnnotation) Set the skipSamplesWithoutAnnotation property: When set to 'true', prevents frames without upstream inference data to be sent to the extension plugin.
-
Constructor Details
-
SamplingOptions
public SamplingOptions()
-
-
Method Details
-
getSkipSamplesWithoutAnnotation
Get the skipSamplesWithoutAnnotation property: When set to 'true', prevents frames without upstream inference data to be sent to the extension plugin. This is useful to limit the frames sent to the extension to pre-analyzed frames only. For example, when used downstream from a motion detector, this can enable for only frames in which motion has been detected to be further analyzed.- Returns:
- the skipSamplesWithoutAnnotation value.
-
setSkipSamplesWithoutAnnotation
Set the skipSamplesWithoutAnnotation property: When set to 'true', prevents frames without upstream inference data to be sent to the extension plugin. This is useful to limit the frames sent to the extension to pre-analyzed frames only. For example, when used downstream from a motion detector, this can enable for only frames in which motion has been detected to be further analyzed.- Parameters:
skipSamplesWithoutAnnotation
- the skipSamplesWithoutAnnotation value to set.- Returns:
- the SamplingOptions object itself.
-
getMaximumSamplesPerSecond
Get the maximumSamplesPerSecond property: Maximum rate of samples submitted to the extension. This prevents an extension plugin to be overloaded with data.- Returns:
- the maximumSamplesPerSecond value.
-
setMaximumSamplesPerSecond
Set the maximumSamplesPerSecond property: Maximum rate of samples submitted to the extension. This prevents an extension plugin to be overloaded with data.- Parameters:
maximumSamplesPerSecond
- the maximumSamplesPerSecond value to set.- Returns:
- the SamplingOptions object itself.
-