- java.lang.Object
-
- com.uddernetworks.newocr.train.TrainGeneratorOptions
-
public class TrainGeneratorOptions extends java.lang.Object
Defines options for the actual generation of the image to train on.- Since:
- April 25, 2019
-
-
Constructor Summary
Constructors Constructor Description TrainGeneratorOptions()
-
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.
-
-
-
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
-
-