Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Neural network inputs and targets

  1. May 3, 2013 #1
    I've written a program for character recognition but now upon testing I am unsure about a couple things. I'm having problems with training and simulating the network. Here is my interpretation of how network training goes.

    Suppose I want to recognize the letters in the ABCD image attached. In MATLAB I used the function

    Code (Text):
    [net,tr] = train(net,inputs,targets);
    To train I set inputs = targets, where targets is the image with "ABCD". Then to recognize, say the letter D, I use this function

    Code (Text):
    where input = the letter "D".

    All this is done after appropriate image processing where I convert the images to binary matrices where each row describes a letter.

    Is my understanding in how MATLAB trains correct? I want to be able to train once for all the letters, then have the user select any image (each image contains either only a "A", "B", "C", "D") and submit it to the network and notify the user if there is a match.

    Attached Files:

    • ABCD.bmp
      File size:
      21.5 KB
    • D.bmp
      File size:
      5.6 KB
    Last edited: May 3, 2013
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted