Class YoloV5Translator

    • Constructor Detail

      • YoloV5Translator

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

      • builder

        public static YoloV5Translator.Builder builder​(java.util.Map<java.lang.String,​?> arguments)
        Creates a builder to build a YoloV5Translator with specified arguments.
        Parameters:
        arguments - arguments to specify builder options
        Returns:
        a new builder
      • nms

        protected DetectedObjects nms​(java.util.List<ai.djl.modality.cv.translator.YoloV5Translator.IntermediateResult> list)
      • overlap

        protected double overlap​(double x1,
                                 double w1,
                                 double x2,
                                 double w2)
      • processOutput

        public DetectedObjects 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
        Returns:
        the output object of expected type