Git Product home page Git Product logo

handwritingrecognition's Introduction

HandwritingRecognition

This is a basic handwriting recognition module that makes use of David W. Arathorn's Map-Seeking Circuit [1] for one-shot learning and recall of drawn patterns.

The user is presented with a canvas to draw characters, along with buttons to clear the canvas (clear), compare the drawing to examples stored in memory (recall), and to commit the drawn character to memory (store).

image

Preprocessing

The program takes in the locations of all the drawn pixels, and condenses them such that the "line density" remains constant. This decreases the variation from the speed at which characters are drawn.

Then, the centroid point is calculated, as well as the convex hull.

Convex hull example:

image

Tangent line angles are calculated from the centroid point to a series of points along the convex hull, spaced equidistant from each other, with the total quantity being a power of 2 so that the data can be Fourier transformed. Finally, the cumulative angular function is calcuated and Fourier transformed.

This makes our data invariant under rotation, translation, and scaling. In other words, it does not matter where the character is drawn, how big/small it is drawn, or even if it is drawn upside down - the program should be able to recognize it [2].

Each drawn character is passed to memory along with a label, and subsequent characters are compared. Upon recollection, the program displays which character in memory is a closest match, along with its confidence.

References

  1. Arathorn, D., 2002. Map-seeking circuits in visual cognition. Stanford, Calif.: Stanford University Press.

  2. Zhang, D., & Lu, G., 2003. A comparative study of curvature scale space and Fourier descriptors for shape-based image retrieval. Journal of Visual Communication and Image Representation, 14(1), 39โ€“57. https://doi.org/10.1016/s1047-3203(03)00003-8

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.