MediaGraphGrpcExtension Class

A processor that allows the media graph to send video frames to an external inference container over a gRPC connection. This can be done using shared memory (for high frame rates), or over the network. Inference results are relayed to downstream nodes.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.media.analyticsedge._generated.models._models_py3.MediaGraphExtensionProcessorBase
MediaGraphGrpcExtension

Constructor

MediaGraphGrpcExtension(*, name: str, inputs: List[azure.media.analyticsedge._generated.models._models_py3.MediaGraphNodeInput], endpoint: azure.media.analyticsedge._generated.models._models_py3.MediaGraphEndpoint, image: azure.media.analyticsedge._generated.models._models_py3.MediaGraphImage, data_transfer: azure.media.analyticsedge._generated.models._models_py3.MediaGraphGrpcExtensionDataTransfer, sampling_options: Optional[azure.media.analyticsedge._generated.models._models_py3.MediaGraphSamplingOptions] = None, extension_configuration: Optional[str] = None, **kwargs)

Parameters

type
str
Required

Required. The discriminator for derived types.Constant filled by server.

name
str
Required

Required. The name for this processor node.

inputs
list[<xref:azure.media.analyticsedge.models.MediaGraphNodeInput>]
Required

Required. An array of the names of the other nodes in the media graph, the outputs of which are used as input for this processor node.

endpoint
<xref:azure.media.analyticsedge.models.MediaGraphEndpoint>
Required

Required. Endpoint to which this processor should connect.

image
<xref:azure.media.analyticsedge.models.MediaGraphImage>
Required

Required. Describes the parameters of the image that is sent as input to the endpoint.

sampling_options
<xref:azure.media.analyticsedge.models.MediaGraphSamplingOptions>
Required

Describes the sampling options to be applied when forwarding samples to the extension.

data_transfer
<xref:azure.media.analyticsedge.models.MediaGraphGrpcExtensionDataTransfer>
Required

Required. How media should be transferred to the inference engine.

extension_configuration
str
Required

Optional configuration to pass to the gRPC extension.