GithubHelp home page GithubHelp logo

font_seeker's Introduction

FontSeeker

Have you ever walked by a poster or sign and wanted to know what font the designer used? FontSeeker was envisoned to be a Shazam for font identification. It takes an image, segments it into glyphs and uses a template-based approach to make a match against a database of font samples (currently just over 100) collected from Font Squirrel and fonts I already owned. FontSeeker was built with Python, Flask, PIL, SimpleCV and SQLAlchemy and uses AJAX on the front end.

###Segmentation #####(get_segments.py) Converts an image into a binary image and crops the image in locations where all-white columns are identified.

###OCR and Font Match #####(ranked_match.py) Segmented glyphs are compared against the OCR alphabet and given a letter classification. Each segment is then compared against all the fonts for that letter classification. If the XOR difference meets a certain threshold, it is added to a font table. Fonts are then ranked based on the lowest average XOR difference.

###Load Fonts and Database ######(draw_fonts.py, model.py, seed.py) PIL is used to draw lowercase and uppercase templates for fonts collected from the FontSquirrel API. An OCR alphabet and specimen messages are also drawn from font files. The database is seeded using Python and SQLAlchemy.

###Image Processing #####(process_images.py) SimpleCV is used to crop an image to bounds and resize it to a fixed size while maintaining its aspect ratio.

###Web Framework ######(main.py) Flask is used for the web framework. AJAX is used to send the user's image to the server and call the route that returns the closest matched font in JSON. The front end uses HTML5 and CSS.

Alt text

font_seeker's People

Contributors

gwongz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

xiyuan27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.