How to use a computer's webcam to read a qr co

2019-09-11 05:04发布

First let me provide a brief description of what I am trying to accomplish:

I am trying to create a java program that can scan/read a qr code positioned in front of the computer webcam (The QR codes I would be using would all just have url information stored within them). After obtaining the url from the qr code I want to have the program automatically go to the url.

My first question is how do I use a computer webcam with Java. My second question is how do I decode a QR code once one is captured.

Thank you for your assistance.

Alternatively is it possible to read qr-codes with .net?

1条回答
再贱就再见
2楼-- · 2019-09-11 05:22

In Java you could use LTI Civil to capture images from a webcam. Then pass the captured images to ZXing to decode the QR codes.

In .NET you could capture the images with AForge and then pass the images to ZXing.NET.

If you need more information, you should ask a more specific question.

查看更多
登录 后发表回答