{"blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2017%2F01%2F20%2F022213\" title=\"\u30e9\u30b9\u30bf\u30fc\u753b\u50cf\u306e\u30c7\u30fc\u30bf - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u30e9\u30b9\u30bf\u30fc\u753b\u50cf\u306e\u30c7\u30fc\u30bf","blog_url":"https://randommemory.hatenablog.com/","provider_url":"https://hatena.blog","author_name":"derwind","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/derwind/","description":"FreeType\u3067\u6587\u5b57\u3092\u66f8\u304f - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6 Tesseract(2) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6 \u304c\u30a4\u30de\u30a4\u30c1\u306b\u306a\u3063\u305f\u306a\u3041\u3068\u3044\u3046\u3053\u3068\u3067\u5225\u306e\u3053\u3068\u3082\u8003\u3048\u305f\u3044\u3002 import struct import freetype import numpy as np face = freetype.Face(\"SourceSansPro-Regular.otf\") face.set_char_size( 64*64 ) gid = 2 face.load_glyph(gid) bitmap = face.glyph.bitmap image = np.reshape(bitmap.buffer, (bitmap\u2026","published":"2017-01-20 02:22:13","height":"190","width":"100%","url":"https://randommemory.hatenablog.com/entry/2017/01/20/022213","categories":["font","graphics","machine_learning"],"image_url":null,"version":"1.0"}