Reading a Bubble Sheet with Image Processing Toolkit
조회 수: 12 (최근 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!