Handwritten recognition using CNN

조회 수: 2 (최근 30일)
Muhamad Luqman Mohd Nasir
Muhamad Luqman Mohd Nasir 2021년 6월 5일
댓글: Muhamad Luqman Mohd Nasir 2021년 6월 21일
Hi i have some problems that keeps on occuring can someone help me with this error ASAP
Below is my code line
This the error that i keep on getting

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 6월 5일
The error with your employed fcn called net() that is not defined as a function and considered in your code as a variable. Thus, define the fcn net() first using function file or anonymous fcn and then call it within a loop.
  댓글 수: 1
Muhamad Luqman Mohd Nasir
Muhamad Luqman Mohd Nasir 2021년 6월 21일
I have load the .mat file into the script can i know why it still show the same error
below is my script
storedStructure = load('test2.mat');
net = storedStructure.net;
for i=1:Ne
segImage=reshape(double(imread(fullfile('segmentedImages', sprintf('image%d.png', i)))) , 784, 1);
outputMatrix = net(segImage);
row=find(ismember(outputMatrix, max(outputMatrix(:)))); % returns the row number which has highest probability
figure(i);
colormap(gray)
character = double(imread(fullfile('segmentedImages', sprintf('image%d.png', i))));
imagesc(~character)
title(imageLabeler(row))
detectedWord(1,i)=imageLabeler(row);
end

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by