File size: 1,290 Bytes
7987245 db35ca2 7987245 5d8063e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# number of images to generate per font
IMAGES_PER_FONT = 50
# allowlist of fonts to use
FONT_ALLOWLIST = ["Arial",
"Arial Black",
"Arial Bold Italic",
"Arial Bold",
"Avenir",
"Courier",
"Helvetica",
"Georgia",
"Tahoma",
"Tahoma Bold",
"Times New Roman",
"Times New Roman Bold",
"Times New Roman Italic",
"Times New Roman Bold Italic",
"Trebuchet MS",
"Trebuchet MS Bold",
"Trebuchet MS Italic",
"Trebuchet MS Bold Italic",
"Verdana",
"Verdana Bold",
"Verdana Italic",
"Verdana Bold Italic"
]
# directory where to store the generated images
GEN_IMAGES_DIR = './generated_images'
# images organized into train and test directories
TRAIN_TEST_IMAGES_DIR = './train_test_images'
# where to grab the font files from
FONT_FILE_DIRS = ['/System/Library/Fonts/', '/System/Library/Fonts/Supplemental/']
# where to grab the Google Fonts, all of which are allowed
GOOGLE_FONTS_DIR = "./google_fonts"
|