12,628,919 members (30,516 online)

759.9K views
362 bookmarked
Posted

# Neural Network OCR

, 11 Aug 2005 GPL3
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.