optical_recognition's Introduction
Optical Character Recognition project This is a project I'm doing to test a new algorithm for recognizing characters: suppose you have an image of a character, how do you represent it? Most programs either divide the pixels into grid sections and store the average darkness of each section or try to identify features in the character. This algorithm seeks to use a representation that correlates more closely with the features we see as humans. The idea is that if we draw a line from the center of mass of an o along any direction(making an angle theta with the horizontal), it will intersect the o an equal distance away no matter how you change theta. But if we do this for a b, we will intersect the stem at an angle around 120 degrees, as well as the loop. If we do this for a c, we won't intersect between about -30 and +30 degrees. This information is fast to store, fast to find, and is much more handwriting-independent than pixel grids. Requirements: pillow, numpy, scipy, matplotlib, scikit-learn on python2 To recognize a character, create a Picture object of it using the picture class and make a Char_Repr object using that picture. then use scikit-learn to train on a data set and recognize characters. For an example see linearSVCTest.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.