AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

recognize manuscript characters

The forum is to discuss topics from different artificial intelligence areas, like neural networks, genetic algorithms, machine learning, etc.

recognize manuscript characters

Postby jarain78 » Wed Nov 02, 2011 12:36 am

Hi, I,ve got another problem:

I have an image of 16x16 and then I convert it into a 1x256 vector. I had declared this way:

double[] inputVector = new double[256]; where 256 is the vector size.

Now with this vector and my out vectors, wich I had declared this way:

double[][] Output = new double[10][]{new double[] { 1d, 0d, 0d, 0d, 0d, 0d, 0d, 0d, 0d, 0d },
new double[] { 0d, 1d, 0d, 0d, 0d, 0d, 0d, 0d, 0d, 0d },
new double[] { 0d, 0d, 1d, 0d, 0d, 0d, 0d, 0d, 0d, 0d },
new double[] { 0d, 0d, 0d, 1d, 0d, 0d, 0d, 0d, 0d, 0d },
new double[] { 0d, 0d, 0d, 0d, 1d, 0d, 0d, 0d, 0d, 0d },
new double[] { 0d, 0d, 0d, 0d, 0d, 1d, 0d, 0d, 0d, 0d },
new double[] { 0d, 0d, 0d, 0d, 0d, 0d, 1d, 0d, 0d, 0d },
new double[] { 0d, 0d, 0d, 0d, 0d, 0d, 0d, 1d, 0d, 0d },
new double[] { 0d, 0d, 0d, 0d, 0d, 0d, 0d, 0d, 1d, 0d },
new double[] { 0d, 0d, 0d, 0d, 0d, 0d, 0d, 0d, 0d, 1d }
};

I can train my neural network: trainingSet.Add(new TrainingSample(data, Output[Classe]));

where Classes are the numbers from 0 to 9 wich I read the exit array.

What I have now don`t generate error but when I do the test using a example image it do not give me any results. I don´t know it´s training with the first number of the vector or it trains using the all vector

thanks

jarain78
jarain78
 
Posts: 6
Joined: Sun Oct 09, 2011 8:58 pm

Re: recognize manuscript characters

Postby andrew.kirillov » Wed Nov 02, 2011 5:29 am

Hello,

jarain78 wrote:I don´t know it´s training with the first number of the vector or it trains using the all vector

We also don't know, because it is no way clear how you do training.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3443
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to Artificial Intelligence