Click here to Skip to main content
12,897,124 members (49,912 online)
Click here to Skip to main content
Add your own
alternative version


20 bookmarked
Posted 31 Oct 2007

Hebb neural network

, 31 Oct 2007
Rate this:
Please Sign up or sign in to vote.
implementation of ocr by hebb algorithm


In the name of God.

This a sample for OCR(Optical Character Recognition) in c#.

At this Program use the Hebb Algorithm.


Donald Hebb in 1949 write a Article for single-layer problem.

Using the code

int y=0; int j;
int[,] total ={
{-1,1,1,1,-1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,-1,1,1,1,-1 }
int[] temp = new int[25];
for (int i = 0; i < 2; i++)
for ( j = 0; j < 25; j++)
temp[j] = total[i,j];
case 0: y=1;break;
case 1: y=-1;break;
for (j = 0; j < 25; j++)
weight[j] = weight[j] + temp[j] * y;
bias = bias + y;
for (j = 0; j < 25; j++)
weights.Items.Add("w"+j.ToString()+" : "+ weight[j].ToString());
weights.Items.Add("bias : "+bias.ToString());


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Mohammad Mehdi Norian
United States United States
I am Mohammad Mehdi Norian From Iran (esfahan).
I am a Programmer.
my languages program is delphi,,pascal,c++,assembly,etc.
but my primary language is delphi.
I study computer software at university.
wish you the best.

You may also be interested in...


Comments and Discussions

GeneralWould you... Pin
Stevie1-Nov-07 0:57
memberStevie1-Nov-07 0:57 
GeneralRe: Would you... Pin
Dewey1-Nov-07 7:55
memberDewey1-Nov-07 7:55 
That's what happens when you get your layout and fashion design from a BLIND Pimp.
GeneralRe: Would you... Pin
Bert delaVega1-Nov-07 10:03
memberBert delaVega1-Nov-07 10:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 1 Nov 2007
Article Copyright 2007 by Mohammad Mehdi Norian
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid