Class DrawPointsStep

  • All Implemented Interfaces:
    ai.konduit.serving.pipeline.api.step.PipelineStep, ai.konduit.serving.pipeline.api.TextConfig, java.io.Serializable

    public class DrawPointsStep
    extends java.lang.Object
    implements ai.konduit.serving.pipeline.api.step.PipelineStep
    Draw 2D points
    Configuration:
    • classColors: Optional: A list of colors to use for each class. Must be in one of the following formats: hex/HTML - "#788E87", RGB - "rgb(128,0,255)", or one of 16 HTML color name such as \"green\" (https://en.wikipedia.org/wiki/Web_colors#HTML_color_names). If no colors are specified, or not enough colors are specified, random colors are used instead (note consistent between runs). Colors are mapped to named classes in alphabetical order, i.e. first color to class A, second color to class B, etc...
    • points: Names of the points to be drawn. Accepts both single points and lists of points.
    • radius: Point radius on drawn image.
    • image: Optional. Name of the image to be drawn on
    • width: Must be provided when image isn't set. Used to resolve position of points with relative addressing (dimensions between 0 and 1)
    • height: Must be provided when image isn't set. Used to resolve position of points with relative addressing (dimensions between 0 and 1)
    • outputName: Name of the output image
    Author:
    Paul Dubs
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DrawPointsStep()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DrawPointsStep points​(java.lang.String... points)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ai.konduit.serving.pipeline.api.step.PipelineStep

        name
      • Methods inherited from interface ai.konduit.serving.pipeline.api.TextConfig

        toJson, toYaml
    • Field Detail

      • DEFAULT_OUTPUT_NAME

        public static final java.lang.String DEFAULT_OUTPUT_NAME
        See Also:
        Constant Field Values
      • DEFAULT_NO_POINT_COLOR

        public static final java.lang.String DEFAULT_NO_POINT_COLOR
        See Also:
        Constant Field Values
    • Constructor Detail

      • DrawPointsStep

        public DrawPointsStep()
    • Method Detail

      • points

        public DrawPointsStep points​(java.lang.String... points)