C# – 摄像头扫码
https://blog.csdn.net/taiguisheng/article/details/81629186
https://blog.csdn.net/taiguisheng/article/details/81915924
这两篇分别介绍了如何扫码和控制摄像头,本篇则是把它们做了一个简单的结合:
- 增加一个定时器
- 把图片的解码部分放入定时器
解码
private string decode(Bitmap b)
{
BarcodeReader br = new BarcodeReader();
Result r = null;
string strDMCode = null;
for (