Module NewOCR

Class TrainGeneratorOptions


  • public class TrainGeneratorOptions
    extends java.lang.Object
    Defines options for the actual generation of the image to train on.
    Since:
    April 25, 2019
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getFontFamily()
      Gets the system font family used during training image generation.
      int getMaxFontSize()
      Gets the maximum font size to generate up to in points.
      int getMinFontSize()
      Gets the minimum font size to generate down to in points.
      TrainGeneratorOptions setFontFamily​(java.lang.String fontFamily)
      Sets the system font family used during training image generation.
      TrainGeneratorOptions setMaxFontSize​(int maxFontSize)
      Sets the maximum font size to generate up to in points.
      TrainGeneratorOptions setMinFontSize​(int minFontSize)
      Sets the minimum font size to generate up to in points.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrainGeneratorOptions

        public TrainGeneratorOptions()
    • Method Detail

      • getMaxFontSize

        public int getMaxFontSize()
        Gets the maximum font size to generate up to in points.
        Returns:
        The maximum font size
      • setMaxFontSize

        public TrainGeneratorOptions setMaxFontSize​(int maxFontSize)
        Sets the maximum font size to generate up to in points.
        Parameters:
        maxFontSize - The maximum font size
        Returns:
        The current TrainGeneratorOptions
      • getMinFontSize

        public int getMinFontSize()
        Gets the minimum font size to generate down to in points.
        Returns:
        The minimum font size
      • setMinFontSize

        public TrainGeneratorOptions setMinFontSize​(int minFontSize)
        Sets the minimum font size to generate up to in points.
        Parameters:
        minFontSize - The minimum font size
        Returns:
        The current TrainGeneratorOptions
      • getFontFamily

        public java.lang.String getFontFamily()
        Gets the system font family used during training image generation.
        Returns:
        The font family
      • setFontFamily

        public TrainGeneratorOptions setFontFamily​(java.lang.String fontFamily)
        Sets the system font family used during training image generation.
        Parameters:
        fontFamily - The font family to set
        Returns:
        The current TrainGeneratorOptions