Class SimplePoseTranslator

java.lang.Object
ai.djl.modality.cv.translator.BaseImageTranslator<Joints>
ai.djl.modality.cv.translator.SimplePoseTranslator
All Implemented Interfaces:
PostProcessor<Joints>, PreProcessor<Image>, Translator<Image,Joints>

public class SimplePoseTranslator extends BaseImageTranslator<Joints>
A BaseImageTranslator that post-process the NDArray into human Joints.
  • Constructor Details

    • SimplePoseTranslator

      public SimplePoseTranslator(SimplePoseTranslator.Builder builder)
      Creates the Pose Estimation translator from the given builder.
      Parameters:
      builder - the builder for the translator
  • Method Details

    • processOutput

      public Joints processOutput(TranslatorContext ctx, NDList list)
      Processes the output NDList to the corresponding output object.
      Parameters:
      ctx - the toolkit used for post-processing
      list - the output NDList after inference, usually immutable in engines like PyTorch. @see Issue 1774
      Returns:
      the output object of expected type
    • builder

      public static SimplePoseTranslator.Builder builder()
      Creates a builder to build a SimplePoseTranslator.
      Returns:
      a new builder
    • builder

      public static SimplePoseTranslator.Builder builder(Map<String,?> arguments)
      Creates a builder to build a SimplePoseTranslator with specified arguments.
      Parameters:
      arguments - arguments to specify builder options
      Returns:
      a new builder