Class YoloV8Translator

All Implemented Interfaces:
PostProcessor<DetectedObjects>, PreProcessor<Image>, Translator<Image,DetectedObjects>

public class YoloV8Translator extends YoloV5Translator
A translator for YoloV8 models. This was tested with ONNX exported Yolo models. For details check here
  • Constructor Details

    • YoloV8Translator

      protected YoloV8Translator(YoloV8Translator.Builder builder)
      Constructs an ImageTranslator with the provided builder.
      Parameters:
      builder - the data to build with
  • Method Details

    • builder

      public static YoloV8Translator.Builder builder()
      Creates a builder to build a YoloV8Translator with specified arguments.
      Returns:
      a new builder
    • builder

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

      protected DetectedObjects processFromBoxOutput(int imageWidth, int imageHeight, NDList list)
      Overrides:
      processFromBoxOutput in class YoloV5Translator