Class PerspectiveTransformStep
- java.lang.Object
-
- ai.konduit.serving.data.image.step.point.perspective.convert.PerspectiveTransformStep
-
- All Implemented Interfaces:
ai.konduit.serving.pipeline.api.step.PipelineStep,ai.konduit.serving.pipeline.api.TextConfig,java.io.Serializable
public class PerspectiveTransformStep extends java.lang.Object implements ai.konduit.serving.pipeline.api.step.PipelineStepPerspectiveTransformStep: Applies a perspective transformation to Images, Points and Bounding Boxes.
The transformation is defined either statically with the Step definition or dynamically with a list of 4 points in an input. If both are defined, an IllegalStateException will be thrown.
If only the source points are defined, the transformation will result in mapping those points to a rectangle.
If you want to apply a more specific transformation, you can also provide the target points yourself.
Note: supports both single values and lists. If the input is as single value, the output will be a single value; if the input is a list, the output will be a list.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PerspectiveTransformStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerspectiveTransformStepinputNames(java.lang.String... inputNames)PerspectiveTransformStepoutputNames(java.lang.String... outputNames)PerspectiveTransformStepsourcePoints(ai.konduit.serving.pipeline.api.data.Point... sourcePoints)PerspectiveTransformSteptargetPoints(ai.konduit.serving.pipeline.api.data.Point... targetPoints)
-
-
-
Method Detail
-
inputNames
public PerspectiveTransformStep inputNames(java.lang.String... inputNames)
-
outputNames
public PerspectiveTransformStep outputNames(java.lang.String... outputNames)
-
sourcePoints
public PerspectiveTransformStep sourcePoints(ai.konduit.serving.pipeline.api.data.Point... sourcePoints)
-
targetPoints
public PerspectiveTransformStep targetPoints(ai.konduit.serving.pipeline.api.data.Point... targetPoints)
-
-