Class SamplingOptions

java.lang.Object
com.azure.media.videoanalyzer.edge.models.SamplingOptions

public final class SamplingOptions extends Object
Defines how often media is submitted to the extension plugin.
  • Constructor Details

    • SamplingOptions

      public SamplingOptions()
  • Method Details

    • getSkipSamplesWithoutAnnotation

      public String 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

      public SamplingOptions setSkipSamplesWithoutAnnotation(String skipSamplesWithoutAnnotation)
      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

      public String 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

      public SamplingOptions setMaximumSamplesPerSecond(String maximumSamplesPerSecond)
      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.