Reading a Bubble Sheet with Image Processing Toolkit

조회 수: 12 (최근 30일)
Joshua Cochrane
Joshua Cochrane 2019년 6월 6일
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);
ScantronFormatV3Filled.png

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by