我如何在 PHP 应用程序中集成指纹扫描设备
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9193149/
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
How i can integrate fingerprint scanning device in a PHP application
提问by Khan
I am working on an attendance system in PHP, attendance will be recorded with fingerprint device (SUPEREMA). how I will integrate auto attendance through scanning device, any help will be highly appreciated.
我正在使用 PHP 开发考勤系统,考勤将使用指纹设备(SUPEREMA)进行记录。我将如何通过扫描设备集成自动考勤,任何帮助将不胜感激。
回答by Khainestar
It looks like the SUPEREMA system does have a SDK
看起来SUPEREMA系统确实有一个SDK
http://www.supremainc.com/eng/product/pc_22.php?mark=33
http://www.supremainc.com/eng/product/pc_22.php?mark=33
However it doesn't integrate with PHP. The only way I can see of doing it would be to write a Visual Studio app that captured and updated to the database, or one with an embedded html browser that it could then send the captured data to.
但是它没有与 PHP 集成。我能看到的唯一方法是编写一个捕获并更新到数据库的 Visual Studio 应用程序,或者一个带有嵌入式 html 浏览器的应用程序,然后它可以将捕获的数据发送到。
回答by Shafiq al-Shaar
Suprema includes now a Web Agent API with its SDK.
Suprema 现在包含一个带有 SDK 的 Web 代理 API。
The Web Agent they provide is a Windows-based application that acts like a mini-web-server on the client side on a specific port. e.g., https://localhost:5151
.
他们提供的 Web 代理是一个基于 Windows 的应用程序,其作用类似于客户端特定端口上的微型 Web 服务器。例如,https://localhost:5151
。
When a client visits your web application and they have the Web Agent up and running, you can do a cross-origin AJAX request with the help of Javascript to https://localhost:5151/scan
that would return a base64 encoded image of the fingerprint.
当客户端访问您的 Web 应用程序并且他们启动并运行了 Web 代理时,您可以在 Javascript 的帮助下执行跨源 AJAX 请求,以https://localhost:5151/scan
返回指纹的 base64 编码图像。
Basically what they have done is to bridge the web browser to the internals of the client's computer.
基本上他们所做的是将网络浏览器桥接到客户端计算机的内部。