Class CognitiveServicesVisionProcessor
- java.lang.Object
-
- com.azure.media.videoanalyzer.edge.models.ProcessorNodeBase
-
- com.azure.media.videoanalyzer.edge.models.CognitiveServicesVisionProcessor
-
public final class CognitiveServicesVisionProcessor extends ProcessorNodeBase
A processor that allows the pipeline topology to send video frames to a Cognitive Services Vision extension. Inference results are relayed to downstream nodes.
-
-
Constructor Summary
Constructors Constructor Description CognitiveServicesVisionProcessor(String name, List<NodeInput> inputs, EndpointBase endpoint, SpatialAnalysisOperationBase operation)
Creates an instance of CognitiveServicesVisionProcessor class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointBase
getEndpoint()
Get the endpoint property: Endpoint to which this processor should connect.ImageProperties
getImage()
Get the image property: Describes the parameters of the image that is sent as input to the endpoint.SpatialAnalysisOperationBase
getOperation()
Get the operation property: Describes the Spatial Analysis operation to be used in the Cognitive Services Vision processor.SamplingOptions
getSamplingOptions()
Get the samplingOptions property: Describes the sampling options to be applied when forwarding samples to the extension.CognitiveServicesVisionProcessor
setImage(ImageProperties image)
Set the image property: Describes the parameters of the image that is sent as input to the endpoint.CognitiveServicesVisionProcessor
setSamplingOptions(SamplingOptions samplingOptions)
Set the samplingOptions property: Describes the sampling options to be applied when forwarding samples to the extension.-
Methods inherited from class com.azure.media.videoanalyzer.edge.models.ProcessorNodeBase
getInputs, getName
-
-
-
-
Constructor Detail
-
CognitiveServicesVisionProcessor
public CognitiveServicesVisionProcessor(String name, List<NodeInput> inputs, EndpointBase endpoint, SpatialAnalysisOperationBase operation)
Creates an instance of CognitiveServicesVisionProcessor class.- Parameters:
name
- the name value to set.inputs
- the inputs value to set.endpoint
- the endpoint value to set.operation
- the operation value to set.
-
-
Method Detail
-
getEndpoint
public EndpointBase getEndpoint()
Get the endpoint property: Endpoint to which this processor should connect.- Returns:
- the endpoint value.
-
getImage
public ImageProperties getImage()
Get the image property: Describes the parameters of the image that is sent as input to the endpoint.- Returns:
- the image value.
-
setImage
public CognitiveServicesVisionProcessor setImage(ImageProperties image)
Set the image property: Describes the parameters of the image that is sent as input to the endpoint.- Parameters:
image
- the image value to set.- Returns:
- the CognitiveServicesVisionProcessor object itself.
-
getSamplingOptions
public SamplingOptions getSamplingOptions()
Get the samplingOptions property: Describes the sampling options to be applied when forwarding samples to the extension.- Returns:
- the samplingOptions value.
-
setSamplingOptions
public CognitiveServicesVisionProcessor setSamplingOptions(SamplingOptions samplingOptions)
Set the samplingOptions property: Describes the sampling options to be applied when forwarding samples to the extension.- Parameters:
samplingOptions
- the samplingOptions value to set.- Returns:
- the CognitiveServicesVisionProcessor object itself.
-
getOperation
public SpatialAnalysisOperationBase getOperation()
Get the operation property: Describes the Spatial Analysis operation to be used in the Cognitive Services Vision processor.- Returns:
- the operation value.
-
-