This article is a mirror article of machine translation, please click here to jump to the original article.

View: 87756|Reply: 11

[Console Program] .net/c# Detect if an image is a QR code image [source code]

[Copy link]
Posted on 2/27/2018 3:06:31 PM | | | |
First of all, send a QR code picture, the picture has been uploaded to my server, address: https://attach.itsvse.com/test123456.jpg That is, the picture below, a random picture found on the Internet to test



I called Alibaba Cloud's API to test,Alibaba Cloud document address: https://helpcdn.aliyun.com/document_detail/56287.html




According to the API of the document, and then wrote it in C# code, the execution result is as follows, the following is the returned JSON data and screenshot:

{"code":200,"data":[{"code":200,"dataId":"28fbc8f4-5375-47b1-aa64-d8fd8ceb6f65","msg":"OK","results":[{"label":"qrcode","qrcodeData":[" http://weixin.qq.com/r/Ss8vN3jEPCVDrTxU95pY"],"rate":99.91,"scene":"qrcode","suggestion":"review"}],"taskId":"img1MATTe$zbD143eGK3tCl4d-1otoem","url":" https://attach.itsvse.com/test123456.jpg"}],"msg":"OK","requestId":"8FCFB7A6-4EEF-42F7-A8D4-D9FF98FAD3B2"}




We need to pay attention to the following information:

label:normal is a normal image, and QRCODE is an image with a QR code

suggestion: Value range: ["pass", "review"], pass: The image is normal, no QR code, review: contains a QR code

qrcodeData: When the image contains a QR code, this field is the text information contained in all the QR codes in the image


.net/c# source code download:

Tourists, if you want to see the hidden content of this post, pleaseReply





Previous:Big liar qq296892
Next:I don't know if Baidu JS has been hijacked
 Landlord| Posted on 4/8/2019 10:52:57 AM |
m1080 Posted on 2019-4-8 10:25
I couldn't use it at all, and I wasted 15 yuan

What does it suggest? I must have sent it out after testing that it could be used normally
Posted on 10/7/2019 12:19:27 AM |
Whether the picture is a QR code image [Source code] [Modified]
Posted on 4/8/2019 10:16:43 AM |
Magnet Pro is the best resource download site I've ever seen
Posted on 2/28/2018 9:15:41 AM |
learned
Posted on 2/28/2018 2:36:39 PM |
Thank you for sharing, let's take a look
Posted on 4/8/2019 10:25:42 AM |
I couldn't use it at all, and I wasted 15 yuan
Posted on 6/25/2019 3:20:20 PM |
Pretty good stuff
Posted on 9/17/2019 1:20:17 PM |
Learn to learn
Posted on 10/9/2019 11:22:38 AM |
Test use
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com