Sir,how can i read the QR barcode in Matlab software

2 ビュー (過去 30 日間)
Shri.s 2022 年 12 月 15 日
コメント済み: Shri.s 2022 年 12 月 16 日
how can i read this type of QR code please anyone help me.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2022 年 12 月 15 日
編集済み: Cris LaPierre 2022 年 12 月 15 日
In testing this, it appears the function only works with truecolor or grayscale images, not binary, so that is why I multiplied by 255. Otherwise, the code comes straight from the example I linked to. Since your image is the QR Code, it was not necessary to specify an roi.
Note: this solution requires the Computer Vision toolbox.
I = imread("");
I = I*255;
[msg,~,loc] = readBarcode(I,"QR-CODE")
msg = "QR Code Generator by TEC-IT"
loc = 4×2
77.5000 471.5000 77.5000 77.5000 471.5000 77.5000 406.0000 406.0000
xyText = loc(2,:);
Imsg = insertText(I,xyText,msg,"BoxOpacity",1,"FontSize",25);
Imsg = insertShape(Imsg, "FilledCircle", [loc, ...
repmat(10, length(loc), 1)],"Color","red","Opacity",1);
  4 件のコメント
Shri.s 2022 年 12 月 16 日



Find more on Recognition, Object Detection, and Semantic Segmentation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by