Class NamedPolygonString

java.lang.Object
com.azure.media.videoanalyzer.edge.models.NamedPolygonBase
com.azure.media.videoanalyzer.edge.models.NamedPolygonString

public final class NamedPolygonString extends NamedPolygonBase
Describes a closed polygon configuration.
  • Constructor Details

    • NamedPolygonString

      public NamedPolygonString(String name, String polygon)
      Creates an instance of NamedPolygonString class.
      Parameters:
      name - the name value to set.
      polygon - the polygon value to set.
  • Method Details

    • getPolygon

      public String getPolygon()
      Get the polygon property: Point coordinates for the polygon. Example: '[[0.3, 0.2],[0.9, 0.8],[0.7, 0.6]]'. Each point is expressed as [LEFT, TOP] coordinate ratios ranging from 0.0 to 1.0, where [0,0] is the upper-left frame corner and [1, 1] is the bottom-right frame corner.
      Returns:
      the polygon value.