OCR Text Recognition – Data Driven Programming

As the objective of the programming task I will use the unscripted, “real-world” toy project of performing character recognition on an image that many other OCR tools fail on due to very low resolution.


haskell-programming-text-ocr

Low resolution text to recognize


The concept of “data driven programming” as I am going to use this term in this post, is to structure your program from the data types and data flows rather than the micro-level implementation. This approach has been very popular in LISP in building up Domain Specific Languages top-down as if a language to solve your problem already existed, and then finish by the trivial step of implementing such a language ;)

Haskell adds the powerful concept of data types, allowing us to first model our problem from the perspective of the data types involved and their relationship, fleshing out any functions with “undefined” (or the bottom value) and thus using the compiler to validate our design from a type-level perspective before actually writing a single line of implementation.

Part 1 of my unscripted “live” data driven programming screencast focusses on fleshing out the required data types (37min):



Part 2, I go a little more into implementation, add a testing framework and split the project into two modules (54min):



You can find the code on GitHub here: haskell_ocr

More to come on my next screencast that will implement the actual low-level code. Enjoy

Here you can find the videos on YouTube.

3 Responses to OCR Text Recognition – Data Driven Programming

  1. But i would appreciate to acquire someone to share a night or two with.Looking to develop a few excellent occasions having a cute young woman.I’m hunting for any woman to whip me, spank me, and any other punishment it is possible to come up with.After squeezing that factor out, almost everything merely pales in comparison.I take pleasure in ladies in fancy lingerie put in case your a milf or cougar at the title or email.

  2. Royal says:

    I see you share interesting things here, you
    can earn some extra money, your website has big potential, for the monetizing method,
    just type in google – K2 advices how to monetize a website

  3. Denese says:

    I read a lot of interesting content here. Probably you
    spend a lot of time writing, i know how to save you a lot of work, there is an online tool that creates readable, SEO friendly
    articles in seconds, just type in google – laranitas free content source

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>