Recently, I saw a tool, which is to scan the QR code on the screen, and the QR code is marked with a red frame around it.
We know that to recognize QR codes, C# can be done with ZXing, generated and recognized:
Uh... How does the software identify the position of the QR code on the screen????
At first, I was curious, and finally, I looked at the author's source code, and later, I will attach the source code.
Find, it is to take all the monitors, and then, cycle to pick up each monitor, the acquisition process is as follows,
First, take the largest part of the monitor, and then take the middle part, that is, slowly from the outside to the inside.
I'm curious, this big screen, the QR code is so small, can Zxing also recognize it?
I tested it, ZXing is really powerful, such a big screen, such a small QR code, it can indeed recognize!!
As for the location, it is easy to do, ZXing has a ready-made method:
Finally, attach the code:
|