Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FontsArial = []string{
"/System/Library/Fonts/Supplemental/Arial Black.ttf",
"/System/Library/Fonts/Supplemental/Arial Bold Italic.ttf",
"/System/Library/Fonts/Supplemental/Arial Bold.ttf",
"/System/Library/Fonts/Supplemental/Arial Italic.ttf",
"/System/Library/Fonts/Supplemental/Arial Narrow Bold Italic.ttf",
"/System/Library/Fonts/Supplemental/Arial Narrow Bold.ttf",
"/System/Library/Fonts/Supplemental/Arial Narrow Italic.ttf",
"/System/Library/Fonts/Supplemental/Arial Narrow.ttf",
"/System/Library/Fonts/Supplemental/Arial Rounded Bold.ttf",
"/System/Library/Fonts/Supplemental/Arial Unicode.ttf",
"/System/Library/Fonts/Supplemental/Arial.ttf",
}
View Source
var FontsMono = []string{
"./dataset/fonts/freefont-20100919/FreeMono.ttf",
"./dataset/fonts/freefont-20100919/FreeMonoBold.ttf",
"./dataset/fonts/freefont-20100919/FreeMonoBoldOblique.ttf",
"./dataset/fonts/freefont-20100919/FreeMonoOblique.ttf",
}
View Source
var FontsSans = []string{
"./dataset/fonts/freefont-20100919/FreeSans.ttf",
"./dataset/fonts/freefont-20100919/FreeSansBold.ttf",
"./dataset/fonts/freefont-20100919/FreeSansBoldOblique.ttf",
"./dataset/fonts/freefont-20100919/FreeSansOblique.ttf",
}
View Source
var FontsSerif = []string{
"./dataset/fonts/freefont-20100919/FreeSerif.ttf",
"./dataset/fonts/freefont-20100919/FreeSerifBold.ttf",
"./dataset/fonts/freefont-20100919/FreeSerifBoldItalic.ttf",
"./dataset/fonts/freefont-20100919/FreeSerifItalic.ttf",
}
View Source
var FontsSupplemental = []string{}/* 162 elements not displayed */
View Source
var FontsTimes = []string{
"/System/Library/Fonts/Supplemental/Times New Roman Bold Italic.ttf",
"/System/Library/Fonts/Supplemental/Times New Roman Bold.ttf",
"/System/Library/Fonts/Supplemental/Times New Roman Italic.ttf",
"/System/Library/Fonts/Supplemental/Times New Roman.ttf",
}
View Source
var FontsVerdana = []string{
"/System/Library/Fonts/Supplemental/Verdana Bold Italic.ttf",
"/System/Library/Fonts/Supplemental/Verdana Bold.ttf",
"/System/Library/Fonts/Supplemental/Verdana Italic.ttf",
"/System/Library/Fonts/Supplemental/Verdana.ttf",
}
Functions ¶
Types ¶
type GeneratedDataset ¶
type GeneratedDataset struct {
// contains filtered or unexported fields
}
GeneratedDataset is the object that describes the generated fonts dataset.
func (*GeneratedDataset) Epochs ¶
func (fd *GeneratedDataset) Epochs() int
Epochs returns the number of epochs that should run during training.
func (*GeneratedDataset) TestRatio ¶
func (fd *GeneratedDataset) TestRatio() float64
TestRatio returns how much can of the dataset can be used for validating the network.
Click to show internal directories.
Click to hide internal directories.