Class CognitiveServicesVisionProcessor
java.lang.Object
com.azure.media.videoanalyzer.edge.models.ProcessorNodeBase
com.azure.media.videoanalyzer.edge.models.CognitiveServicesVisionProcessor
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
ConstructorDescriptionCognitiveServicesVisionProcessor
(String name, List<NodeInput> inputs, EndpointBase endpoint, SpatialAnalysisOperationBase operation) Creates an instance of CognitiveServicesVisionProcessor class. -
Method Summary
Modifier and TypeMethodDescriptionGet the endpoint property: Endpoint to which this processor should connect.getImage()
Get the image property: Describes the parameters of the image that is sent as input to the endpoint.Get the operation property: Describes the Spatial Analysis operation to be used in the Cognitive Services Vision processor.Get the samplingOptions property: Describes the sampling options to be applied when forwarding samples to the extension.setImage
(ImageProperties image) Set the image property: Describes the parameters of the image that is sent as input to the endpoint.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 Details
-
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 Details
-
getEndpoint
Get the endpoint property: Endpoint to which this processor should connect.- Returns:
- the endpoint value.
-
getImage
Get the image property: Describes the parameters of the image that is sent as input to the endpoint.- Returns:
- the image value.
-
setImage
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
Get the samplingOptions property: Describes the sampling options to be applied when forwarding samples to the extension.- Returns:
- the samplingOptions value.
-
setSamplingOptions
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
Get the operation property: Describes the Spatial Analysis operation to be used in the Cognitive Services Vision processor.- Returns:
- the operation value.
-