Class ObjectDetectionTranslator.ObjectDetectionBuilder<T extends ObjectDetectionTranslator.ObjectDetectionBuilder>

    • Field Detail

      • threshold

        protected float threshold
      • imageWidth

        protected double imageWidth
      • imageHeight

        protected double imageHeight
    • Constructor Detail

      • ObjectDetectionBuilder

        public ObjectDetectionBuilder()
    • Method Detail

      • optThreshold

        public T optThreshold​(float threshold)
        Sets the threshold for prediction accuracy.

        Predictions below the threshold will be dropped.

        Parameters:
        threshold - the threshold for the prediction accuracy
        Returns:
        this builder
      • optRescaleSize

        public T optRescaleSize​(double imageWidth,
                                double imageHeight)
        Sets the optional rescale size.
        Parameters:
        imageWidth - the width to rescale images to
        imageHeight - the height to rescale images to
        Returns:
        this builder
      • getImageWidth

        public double getImageWidth()
        Get resized image width.
        Returns:
        image width
      • getImageHeight

        public double getImageHeight()
        Get resized image height.
        Returns:
        image height