在ASP.NET中使用网络摄像头扫描QR码 [英] Scan QR code using webcam in ASP.NET

查看:165
本文介绍了在ASP.NET中使用网络摄像头扫描QR码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有实施网站的Final Year项目。我遇到了实施扫描Qr代码功能的问题。



1.我需要在Scan.aspx中创建一个二维码扫描器,此页面将显示一个使用网络摄像头的摄像头。如果是手机,它将使用手机摄像头扫描QR码图像。



2.我不知道如何编码。我的项目是ASP.net网络应用程序。



请提供任何源代码或解决方案,我将自己编写代码。谢谢高级。



我的尝试:



决赛我需要的结果与此类似,它可以自动扫描二维码。



使用您的WebCam扫描QR码

解决方案

阅读本文:使用智能手机相机的ASP.Net Web应用程序中的QR码扫描仪 [ ^ ]


如果你是寻找copy'n'paste来源,你将失败你的最终项目。它会被发现并且你会因为剽窃而被叫出来。



接下来,ASP.NET代码在服务器端运行完全,所以你的ASP.NET的唯一方式代码可以使用网络摄像头,如果它直接连接到Web服务器。您别无选择,只能使用客户端上运行的客户端网络摄像头和JavaScript代码以及库。



最后,为什么? QR码主要用于编码URL,该URL转到URL中具有相同数据的网站(如果有的话)。除了使用URL中的数据对页面进行服务器外,您的网站根本不会做任何事情。



您可能有一个QR码还有其他一些数据一个URL,但您的客户端代码要么需要处理图像本身,从中获取数据并将其发送到您的网站,否则它必须将图像发布到网站,并且网站会解析图像。

而不是选择最后一年的项目并来到这里请求某人为您完成项目,并为您提供所有代码,以便您可以将其作为自己的项目提交并欺骗您的资格不值得,你为什么不在线找到已经完成的现有项目,并选择那个作为你的最后一年项目?


I have Final year project that implement a website. I facing a problem with implementing Scan Qr Code function.

1. I need to create a QR code scanner in my "Scan.aspx", this page will display a camera using webcam. If is phone, it will use the phone camera to scan a QR code image.

2. I no idea how to code it. My project is ASP.net web application.

Please provide me any source code, or solution, i will code it myself. Thank in advanced.

What I have tried:

The final result i need is similar with this, it can scan qr code automatically.

Scan QR Codes with your WebCam

解决方案

Read this : QR Code Scanner in ASP.Net Web Application Using Smart Phone Camera[^]


If you're looking for copy'n'paste source, you're going to fail your final project. It WILL be found out and you WILL be called out for plagiarism.

Next, ASP.NET code runs ENTIRELY server-side, so the only way your ASP.NET code can use a webcam is if it's directly attached to the web server. You have no choice but to use the client webcam and javascript code and libraries that run on the client.

Lastly, why? QR codes are largely used to encode a URL that goes to a website with same data in the URL, if any. Your site wouldn't really do anything at all except server up a page using data in a URL.

You COULD have a QR code have some other data in it besides a URL but your client-side code would either need to process the image itself, get the data out of it and send it to your website or it would have to post the image to the website and the site parses the image.


Rather than choosing a final year project and coming on here to ask someone to do the project for you and give you all the code so you can submit it as your own and cheat your way to a qualification you don't deserve, why don't you instead find an existing project on-line that is already complete and choose that as your final year project?


这篇关于在ASP.NET中使用网络摄像头扫描QR码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆