analyzing 50k fonts using deep neural networkscoding experiment... /

Published at 2016-01-21 22:57:13

Home / Categories / Tech / analyzing 50k fonts using deep neural networkscoding experiment...



Analyzing 50k fonts using deep neural networksCoding experiment by Erik Bernhardsson uses neural networks to see whether it is possible to generate new fonts based on a dataset of existing ones:For some reason I decided one night I wanted to get a bunch of fonts. A lot of them. An hour later I had a bunch of scrapy scripts pulling down fonts and a few days later I had more than 50k fonts on my computer.I then decided to convert it to bitmaps. It turns out this is a bit trickier than it might seem like. You need to crop in such a way that each character of a font is vertically aligned,and scale everything to fit the bitmap. I started with 512 * 512 bitmaps of all character. For every font you find the max y and min y of the bounding box, and the same thing for each individual letter. After some more number juggling I was able to scale all characters down to 64 * 64.whether you occupy the average of all fonts, or here’s what you get:More Here

Source: tumblr.com

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0