Class 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 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.