Reading a Bubble Sheet with Image Processing Toolkit
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!