How to detect and recognize circular QR codes?

5 visualizzazioni (ultimi 30 giorni)
cui,xingxing
cui,xingxing il 7 Feb 2021
my image:
How to detect, locate and recognize this QR code in matlab?
img1 = imread('4.png');
isDetect = false;
while ~isDetect
imshow(img1);
ri = drawrectangle();
ROI = ri.Position;
[msg,detectedFormat,loc] = readBarcode(img1,ROI);
if msg~=""
isDetect = true;
end
end
if isDetect
img1 = insertShape(img1,'FilledCircle',[loc,8*ones(size(loc,1),1)],'color',[255,0,0]);
img1 = insertText(img1,mean(loc),msg,...
"TextColor",[255,0,0],...
"FontSize",18,...
"BoxOpacity",1);
imshow(img1)
end
Can't detect ???

Risposte (0)

Categorie

Scopri di più su Image Processing and Computer Vision in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by