简体   繁体   中英

pattern recognition using neural network in matlab

I am doing a project in character recognition of a local language. I created the dataset. But I am not sure how to feed it using neural network?

训练步骤

In this stage, I can only select one image as input rather than whole set of same character. How to proceed?

Pls help

As far as I know these neurons don't understand 2d input, so you need to make a 1d array from image:

image1flat = image1(:);
image2flat = image2(:);

Then put them into a 2d trainning set array (note that "Samples are:" option on your picture)

%samples are columns now
trainningSet = [image1flat image2flat];

Automated code:

%change this to folder where the files are
cd('/path/to/files');
%change this to your file format
files = dir('*.png');
result = [];
for i = 1:length(files)
    A{i} = imread(files(i).name);
    Aflat{i} = A{i}(:);
    result = [result Aflat{i}];
end
%put the result into nprtool

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM