Reading a Bubble Sheet with Image Processing Toolkit

11 vues (au cours des 30 derniers jours)
Joshua Cochrane
Joshua Cochrane le 6 Juin 2019
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

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by