Filter löschen
Filter löschen

Yes or No? I can add data to the network I trained?

1 Ansicht (letzte 30 Tage)
john john
john john am 1 Feb. 2012
Bearbeitet: Lennart am 27 Sep. 2013
Yes or No? I can add data to the network I trained? I am using SOM

Antworten (1)

john john
john john am 2 Feb. 2012
okay I trained 290 images which is 30x40 this is for my hand signal recognition.. I resize, make it grayscale and black and white.. since my load image button can recognize well but my snapshot can't recognize some variation I was thinking to get more variation of hand signal then add it to the network I trained..so that every snapshot of my GUI can recognize those variation of position I am right?
wa = imread('C:\Users\Jonas Mamaran\Documents\MATLAB\pray\a\ORIGINAL1.jpg');
x = wa;
y = double(x) / 1000;
data3 = imresize(y,[40 30]);
data4 = rgb2gray(data3);
%new
img2=im2bw(data4,graythresh(data4));
img2=~img2;
BW2 = imfill(img2,'holes');
z = BW2;
z = z(:);
%load network, simulate
load trained_som_20x20m_10ke_30x40p_ae;
input = sim(network,z);
save('input_recognize.mat', 'input');
you think this code can add it to my network?
  3 Kommentare
Walter Roberson
Walter Roberson am 3 Feb. 2012
It might be nice whether where you are, but the area where Jan lives has been dangerously cold for weeks. Jan is busy.
Jan
Jan am 3 Feb. 2012
@John: I'm glad to see, that you've spend more details about the problem. Although it is very cold here and the radiator of the house was down for two days now (ran out of oil, after refilling the engine was stuffed by oil mud, I've cleaned it now and the room temperature is going above +10 deg now!), I think (slowly), that you could dare to try if it works. Do you have the impression, that it does not work? Why?

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by