Reading a Bubble Sheet with Image Processing Toolkit
11 次查看(过去 30 天)
显示 更早的评论
I'm trying to read data off of a homemade bubble sheet. In my code so far, I detect the bubbled circles within the name and answer segments; however, I do not know how to interpret the circles with MATLAB. My main concern as of this moment is pulling the name information. Below is my code and bubble sheet as of this moment.
clear all;
clc;
myImage=imread('C:\Users\Joshua\Desktop\Independent Study Project Resources\ScantronFormatV3Filled.png');
imshow(myImage);
myImageGray = rgb2gray(myImage);
imshow(myImageGray)
[BW,maskedImageName] = SegmentImageFunctionName(myImage);
imshow(maskedImageName)
[centers,radii] = imfindcircles(maskedImageName,[9 14],'ObjectPolarity',...
'dark','Sensitivity',0.97,'EdgeThreshold',0.778);
h1 = viscircles(centers,radii);
[BW,maskedImageBubbles] = SegmentImageFunctionBubbleQuestions(myImage);
[centers,radii] = imfindcircles(maskedImageBubbles,[9 12],'ObjectPolarity',...
'dark','Sensitivity',0.97,'EdgeThreshold',0.778);
h2 = viscircles(centers,radii);

0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!