Académique Documents
Professionnel Documents
Culture Documents
CODE:
drawnow;
hp = impixelinfo(); % Set up status line to see values when you mouse over
the image.
% Determine grid, knowing there are 7 question columns between column 45 and
947;
cols = linspace(310, 54, 1); %ung 1 dapat 7 %iaadjust 155 & 45 depende sa
layout din bes
% Plot rows.
hold on;
for k = 1 : length(cols)
line([cols(k), cols(k)], [1, imageRows], 'Color', 'r');
end
% Get the increments from one bubble to another within the same question
bubbleSpacing = linspace(0, 258, 5);
circleRadius = 11; % pixels.
% Get a list of all (x,y) locations for the start of the questions and plot +
symbols on them
[x, y] = meshgrid(cols, rows);
%try here hahaha dito ilagay yung condition for compairing para safe sa
%mga codes HAHAHAHA
answers
comparing
Result=0
for i = 1:10
if answers(i) == comparing(i)
Result = Result + 1;
end
end
end
Result
% Get the answers in a different form, a character array:
% Basically we're done now. Let's just do a little further analysis of the
results, just for fun.....
% Permute so that we'll keep all circles for a particular question adjacent
to each other
% after we turn it into a column vector with (*).
bMeans = permute(bubbleMeans, [3,1,2]);
% Get the mean gray level of those circles that were, and were not, chosen as
answers
% using kmeans(). Requires the Statistics and Machine Learning Toolbox.
[theClass, clusterCenters] = kmeans(bMeans(:), 2);
meanAnswerGL = min(clusterCenters)
meanNonAnswerGL = max(clusterCenters)
StudentAnswers
KeyToCorrection
Result
if ~isempty(questionable)
message = sprintf('There were some questionable answers.\nSee the command
window.\nYou need to decide what to do about those.');
uiwait(warndlg(message));
end
OPTICAL MARK RECOGNITION
Submitted By:
Acuzar, Jenny
Marasigan, Ryan Reeve B.
Miranda, John Derick V.
Submitted To:
Engr. Oliver Medina