java PHP 控制指纹设备

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5464088/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 11:14:17  来源:igfitidea点击:

PHP controlling a finger print device

javaphp

提问by cMinor

I have to control access to a system based on fingerprint recognition in PHP. But I do not know what would be the best approach to do this...

我必须控制对基于指纹识别的系统的访问PHP。但我不知道这样做的最佳方法是什么......

I was searching for a device and software, and maybe this will the one I'll use:

我正在寻找一种设备和软件,也许这就是我要使用的:

U.are.U 4500 Fingerprint Reader digital persona

U.are.U 4500 指纹读取器数字角色

This software use somekind of SDK, so java must be used, Is there a way to make a bridge between phpand java?.

这个软件使用了某种SDK,所以必须使用java,有没有办法在phpjava?.

I am not expert in java web services, but if this is the only way, How to control fingerprint?

我不是java网络服务的专家,但如果这是唯一的方法,如何控制指纹?

Does the device returns an image, or a md5 string, or How does it work, how to read this in php?

设备是否返回一个image,或一个md5 string,或者它是如何工作的,如何在 php 中读取它?

What is your experience in this kind of thing...

你在这种事情上有什么经验...

采纳答案by paulsm4

There's another dimension to this, too.

这也有另一个维度。

When you say "PHP", I imagine you're probably talking HTTP web server/client web browser interaction (with PHP on the server).

当您说“PHP”时,我想您可能是在谈论 HTTP Web 服务器/客户端 Web 浏览器交互(在服务器上使用 PHP)。

The Digital Persona (DP) device, however, is usually over on the client.

然而,数字角色 (DP) 设备通常在客户端上。

I've actually used Digital Persona (probably a different device and a different SDK than yours), but the principle is probably similar. You plug the device into the PC's USB port, and the DP SDK controls the device, scans the thumbprint, compares it to other fingerprint images you've "registered" (in a database, a set of image files, whatever), and reports back whether or not there's a match. This all occurs on the CLIENT side.

我实际上使用过 Digital Persona(可能与您的设备和 SDK 不同),但原理可能相似。您将设备插入 PC 的 USB 端口,DP SDK 控制设备,扫描指纹,将其与您“注册”的其他指纹图像(在数据库中,一组图像文件,等等)进行比较,并报告返回是否有匹配。这一切都发生在客户端。

SUGGESTION: Your best bet might be:

建议:您最好的选择可能是:

1) Code your server side stuff in PHP, as you're doing now

1) 用 PHP 编写服务器端的代码,就像你现在所做的一样

2) Code your DP interaction as a JAVA APPLET

2) 将您的 DP 交互编码为 JAVA APPLET

3) You DON'T necessarily need to "call Java from PHP" (or vice versa). Instead, all you need to do is:

3) 您不一定需要“从 PHP 调用 Java”(反之亦然)。相反,您需要做的就是:

  • invoke the applet from the PHP pages you serve, and

  • Have the applet communicate with the web server

  • 从您提供的 PHP 页面调用小程序,以及

  • 让小程序与 Web 服务器通信

Here's one example of how you might approach this:

以下是您如何处理此问题的一个示例:

http://www.devdaily.com/java/edu/pj/pj010023

http://www.devdaily.com/java/edu/pj/pj010023

回答by PETER B ESSIEN

What I believe as procedure to be done is:

我认为要完成的程序是:

  1. Create a folder for storing fingerprints of authorised users;
  2. When a fingerprint is inserted to login,
  3. Retrieve the stored fingerprint of the user using php code $a;
  4. Change the fingerprint of the current user into a php code $b;
  5. Compare the two codes $a and $b
  6. If $a != $bthen
  7. Give error msg,
  8. If $a == $bthen allow entry into system.
  1. 创建一个文件夹,用于存储授权用户的指纹;
  2. 当插入指纹登录时,
  3. 使用php代码$a检索存储的用户指纹;
  4. 将当前用户的指纹改成php代码$b;
  5. 比较两个代码 $a 和 $b
  6. 如果$a != $b那么
  7. 给出错误消息,
  8. 如果$a == $b然后允许进入系统。

You may work on with me to achieve this in php as java is Greek to me.

你可以和我一起在 php 中实现这一点,因为 java 对我来说是希腊语。

Thank you.

谢谢你。