How to use a computer's webcam to read a qr code and open a website [Java] [closed]

纵饮孤独 提交于 2019-12-12 05:58:02

问题


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:


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.



来源:https://stackoverflow.com/questions/32283178/how-to-use-a-computers-webcam-to-read-a-qr-code-and-open-a-website-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!