13,300,625 members (50,162 online)

Stats

821.5K views
373 bookmarked
Posted 11 Aug 2005

Neural Network OCR

, 11 Aug 2005
Some ideas about optical character recognition using neural networks.
 AForge.Imaging.dll AForge.Math.dll AForge.NeuralNet.dll NeuroOCR.exe SourceGrid2.dll SourceLibrary.dll AForge Math Math.csproj.user NeuralNet Learning NeuralNet.csproj.user NeuroOCR App.ico NeuroOCR.csproj.user References AForge.Imaging.dll SourceGrid2.dll SourceLibrary.dll ```// AForge Math Library // // Copyright � Andrew Kirillov, 2005 // andrew.kirillov@gmail.com // namespace AForge.Math { using System; /// /// Histogram /// public class Histogram { private int[] values; private double mean = 0; private double stdDev = 0; private int median = 0; private int min; private int max; // Get values public int[] Values { get { return values; } } // Get mean public double Mean { get { return mean; } } // Get standard deviation public double StdDev { get { return stdDev; } } // Get median public int Median { get { return median; } } // Get min value public int Min { get { return min; } } // Get max value public int Max { get { return max; } } // Constructor public Histogram(int[] values) { this.values = values; int i, n = values.Length; max = 0; min = n; // calculate min and max for (i = 0; i < n; i++) { if (values[i] != 0) { // max if (i > max) max = i; // min if (i < min) min = i; } } mean = Statistics.Mean(values); stdDev = Statistics.StdDev(values); median = Statistics.Median(values); } // Get range around median containing specified // percentile of values public Range GetRange(double percent) { return Statistics.GetRange(values, percent); } } } ```

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

Share

 Software Developer IBM United Kingdom
Started software development at about 15 years old and it seems like now it lasts most part of my life. Fortunately did not spend too much time with Z80 and BK0010 and switched to 8086 and further. Similar with programming languages – luckily managed to get away from BASIC and Pascal to things like Assembler, C, C++ and then C#. Apart from daily programming for food, do it also for hobby, where mostly enjoy areas like Computer Vision, Robotics and AI. This led to some open source stuff like AForge.NET and not so open Computer Vision Sandbox.

Going out of computers I am just a man loving his family, enjoying travelling, a bit of books, a bit of movies and a mixture of everything else. Always wanted to learn playing guitar, but it seems like 6 strings are much harder than few dozens of keyboard’s keys. Will keep progressing ...

You may also be interested in...

 Pro Pro