C# 使用网络摄像头读取二维码的库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9558896/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Library for reading QR Codes using a Webcam
提问by Rachel
I am looking for an open-source library that can read QR Codes using a laptop's integrated webcam.
我正在寻找一个可以使用笔记本电脑的集成网络摄像头读取二维码的开源库。
Preferably, the library should be written in C#, but Java would be good as well. It should be able to run on a Windows 7 64-bit platform.
该库最好用 C# 编写,但 Java 也不错。它应该能够在 Windows 7 64 位平台上运行。
It is important that I have access to the decoded string, i.e. I don't want an application that opens up a URL in a browser. I have looked around and found libraries which either read the codes from image files, or use the webcam for input but do not allow access to the string. I haven't managed to find one which does quite what I want. Any pointers would be appreciated.
重要的是我可以访问解码后的字符串,即我不希望应用程序在浏览器中打开 URL。我环顾四周,发现可以从图像文件中读取代码或使用网络摄像头进行输入但不允许访问字符串的库。我还没有设法找到一个完全符合我想要的。任何指针将不胜感激。
Thank you for your help and suggestions.
感谢您的帮助和建议。
回答by utopianheaven
ZXing / Zebra Crossingis the software library behind the most popular QR-reading Android app called Barcode Scanner.
ZXing / Zebra Crossing是最受欢迎的 QR 读取 Android 应用程序Barcode Scanner背后的软件库。
The core library is licensed under the Apache License 2.0 and it's robust for low-quality inputs (such as a webcam) and gives you the decoded content and lets you decide how to use it.
核心库在 Apache 许可证 2.0 下获得许可,它对于低质量输入(例如网络摄像头)非常强大,并为您提供解码的内容并让您决定如何使用它。
回答by user
This will most certainly help you out.
这肯定会帮助你。
http://www.codeproject.com/KB/cs/qrcode.aspxAll the best!

