bytedeco/javacv

How to get the coordinates of the QR code on the picture?

Open

#1,739 opened on Jan 16, 2022

View on GitHub
 (9 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
help wantedquestion

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

=============the code=============== Mat img = opencv_imgcodecs.imread(url);

Console.log("img:"+img+" " + img.cols()+" "+img.rows()); WeChatQRCode detector = new WeChatQRCode(); MatVector matVector=new MatVector(); StringVector decoded_info = detector.detectAndDecode(img,matVector);

Console.log("reslut:" + decoded_info.get(0).getString()); ===========end===================

I have used WeChatQRCode to get the QR code information on the picture, but I have tried many methods, but I cannot get the coordinates of the QR code. Can you help me?

Contributor guide