示例#1
0
 /// <summary>
 /// Initializes a new instance of the MediaGraphExtensionProcessorBase
 /// class.
 /// </summary>
 /// <param name="name">The name for this processor node.</param>
 /// <param name="inputs">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.</param>
 /// <param name="endpoint">Endpoint to which this processor should
 /// connect.</param>
 /// <param name="image">Describes the parameters of the image that is
 /// sent as input to the endpoint.</param>
 public MediaGraphExtensionProcessorBase(string name, IList <MediaGraphNodeInput> inputs, MediaGraphEndpoint endpoint = default(MediaGraphEndpoint), MediaGraphImage image = default(MediaGraphImage))
     : base(name, inputs)
 {
     Endpoint = endpoint;
     Image    = image;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the
 /// MediaGraphCognitiveServicesVisionExtension class.
 /// </summary>
 /// <param name="name">The name for this processor node.</param>
 /// <param name="inputs">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.</param>
 /// <param name="endpoint">Endpoint to which this processor should
 /// connect.</param>
 /// <param name="image">Describes the parameters of the image that is
 /// sent as input to the endpoint.</param>
 public MediaGraphCognitiveServicesVisionExtension(string name, IList <MediaGraphNodeInput> inputs, MediaGraphEndpoint endpoint = default(MediaGraphEndpoint), MediaGraphImage image = default(MediaGraphImage))
     : base(name, inputs, endpoint, image)
 {
     CustomInit();
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the MediaGraphGrpcExtension class.
 /// </summary>
 /// <param name="name">The name for this processor node.</param>
 /// <param name="inputs">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.</param>
 /// <param name="dataTransfer">How media should be transferred to the
 /// inferencing engine.</param>
 /// <param name="endpoint">Endpoint to which this processor should
 /// connect.</param>
 /// <param name="image">Describes the parameters of the image that is
 /// sent as input to the endpoint.</param>
 public MediaGraphGrpcExtension(string name, IList <MediaGraphNodeInput> inputs, MediaGraphGrpcExtensionDataTransfer dataTransfer, MediaGraphEndpoint endpoint = default(MediaGraphEndpoint), MediaGraphImage image = default(MediaGraphImage))
     : base(name, inputs, endpoint, image)
 {
     DataTransfer = dataTransfer;
     CustomInit();
 }