MediaGraphImageScale Class

The scaling mode for the image.

Inheritance
MediaGraphImageScale

Constructor

MediaGraphImageScale(*, mode: Optional[Union[str, azure.media.analyticsedge._generated.models._direct_methodsfor_live_video_analyticson_io_tedge_enums.MediaGraphImageScaleMode]] = None, width: Optional[str] = None, height: Optional[str] = None, **kwargs)

Parameters

mode
str or <xref:azure.media.analyticsedge.models.MediaGraphImageScaleMode>
Required

Describes the modes for scaling an input video frame into an image, before it is sent to an inference engine. Possible values include: "PreserveAspectRatio", "Pad", "Stretch".

width
str
Required

The desired output width of the image.

height
str
Required

The desired output height of the image.