CN111340471B - Payment method, device and equipment based on face recognition - Google Patents
Payment method, device and equipment based on face recognition Download PDFInfo
- Publication number
- CN111340471B CN111340471B CN202010440539.4A CN202010440539A CN111340471B CN 111340471 B CN111340471 B CN 111340471B CN 202010440539 A CN202010440539 A CN 202010440539A CN 111340471 B CN111340471 B CN 111340471B
- Authority
- CN
- China
- Prior art keywords
- payment
- result
- information
- face image
- account
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
- G06Q20/4014—Identity check for transactions
- G06Q20/40145—Biometric identity checks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
- G06Q20/4016—Transaction verification involving fraud or risk level assessment in transaction processing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/42—Confirmation, e.g. check or permission by the legal debtor of payment
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Collating Specific Patterns (AREA)
Abstract
Description
技术领域technical field
本说明书实施例涉及计算机技术领域,尤其涉及一种基于人脸识别的支付方法、装置及设备。The embodiments of this specification relate to the field of computer technology, and in particular, to a payment method, device, and device based on face recognition.
背景技术Background technique
为了提高付款的便利性,刷脸支付在超市、商场和地铁中越来越普遍。在对人脸进行识别时,终端设备需要将采集的人脸图像发送至云端的服务器,然后,云端的服务器识别完成后,再将识别结果发送至终端设备,终端设备通过服务器发送的识别结果进行支付。但是,这个过程往往需要花费很长的时间,影响用户的付款体验。但是,如果不将采集的人脸图像发送至云端的服务器,而是由终端设备完成识别,由于局限于终端设备的存储空间,识别结果的准确率会降低,从而影响安全性。To improve the convenience of payment, face-scanning payment is becoming more and more common in supermarkets, shopping malls and subways. When recognizing the face, the terminal device needs to send the collected face image to the server in the cloud. Then, after the server in the cloud has completed the recognition, the recognition result is sent to the terminal device, and the terminal device uses the recognition result sent by the server. pay. However, this process often takes a long time, affecting the user's payment experience. However, if the collected face image is not sent to the server in the cloud, but the identification is performed by the terminal device, the accuracy of the identification result will be reduced due to the limitation of the storage space of the terminal device, thus affecting the security.
因此,亟需一种耗时短、且安全性高的刷脸支付方法。Therefore, there is an urgent need for a face-scanning payment method with short time-consuming and high security.
发明内容SUMMARY OF THE INVENTION
本说明书实施例提供一种基于人脸识别的支付方法、装置及设备,以解决现有的基于人脸识别的支付方法存在的耗时长的问题。The embodiments of this specification provide a payment method, device and device based on face recognition, so as to solve the problem of long time-consuming existing in the existing payment method based on face recognition.
为解决上述技术问题,本说明书实施例是这样实现的:In order to solve the above-mentioned technical problems, the embodiments of this specification are implemented as follows:
本说明书实施例提供的一种基于人脸识别的支付方法,所述方法应用于终端设备,所述方法包括:A payment method based on face recognition provided by the embodiments of this specification, the method is applied to a terminal device, and the method includes:
获取人脸图像信息,所述人脸图像信息为基于人脸识别的支付过程中获取的人脸图像信息;Obtaining face image information, the face image information is the face image information obtained in the payment process based on face recognition;
发送所述人脸图像信息至服务器;sending the face image information to the server;
对所述人脸图像信息进行识别,确定第一识别结果;Recognizing the face image information to determine a first recognition result;
在确定所述第一识别结果之后,在显示屏上显示第一支付界面,所述第一支付界面包括第一支付确认按钮;After the first identification result is determined, a first payment interface is displayed on the display screen, and the first payment interface includes a first payment confirmation button;
当获取到对所述第一支付确认按钮的点击操作之后,获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果;After obtaining the click operation on the first payment confirmation button, obtain the second recognition result of the face image information received by the server within a preset time after the first payment interface is displayed ;
判断所述第一识别结果与所述第二识别结果是否一致,得到第一判断结果;Judging whether the first recognition result is consistent with the second recognition result, and obtaining a first judgment result;
当所述第一判断结果表示所述第一识别结果与所述第二识别结果一致时,基于所述第一识别结果进行支付。When the first determination result indicates that the first identification result is consistent with the second identification result, payment is made based on the first identification result.
本说明书实施例提供的一种基于人脸识别的支付装置,包括:A payment device based on face recognition provided by the embodiments of this specification includes:
人脸图像获取模块,用于获取人脸图像信息,所述人脸图像信息为基于人脸识别的支付过程中获取的人脸图像信息;a face image acquisition module, configured to acquire face image information, where the face image information is the face image information acquired in the payment process based on face recognition;
人脸图像发送模块,用于发送所述人脸图像信息至服务器;a face image sending module for sending the face image information to a server;
第一识别结果确定模块,用于对所述人脸图像信息进行识别,确定第一识别结果;a first recognition result determination module, configured to recognize the face image information and determine the first recognition result;
第一支付界面显示模块,用于在确定所述第一识别结果之后,在显示屏上显示第一支付界面,所述第一支付界面包括第一支付确认按钮;a first payment interface display module, configured to display a first payment interface on the display screen after the first identification result is determined, and the first payment interface includes a first payment confirmation button;
第二识别结果获取模块,用于当获取到对所述第一支付确认按钮的点击操作之后,获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果;The second identification result obtaining module is configured to obtain, after obtaining the click operation on the first payment confirmation button, the information received by the server within a preset time after the first payment interface is displayed for the the second recognition result of the face image information;
第一判断模块,用于判断所述第一识别结果与所述第二识别结果是否一致,得到第一判断结果;a first judgment module, configured to judge whether the first identification result is consistent with the second identification result, and obtain a first judgment result;
第一支付模块,用于当所述第一判断结果表示所述第一识别结果与所述第二识别结果一致时,基于所述第一识别结果进行支付。A first payment module, configured to perform payment based on the first identification result when the first judgment result indicates that the first identification result is consistent with the second identification result.
本说明书实施例提供的一种电子设备,包括:An electronic device provided by the embodiments of this specification includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
获取人脸图像信息,所述人脸图像信息为基于人脸识别的支付过程中获取的人脸图像信息;Obtaining face image information, the face image information is the face image information obtained in the payment process based on face recognition;
发送所述人脸图像信息至服务器;sending the face image information to the server;
对所述人脸图像信息进行识别,确定第一识别结果;Recognizing the face image information to determine a first recognition result;
在确定所述第一识别结果之后,在显示屏上显示第一支付界面,所述第一支付界面包括第一支付确认按钮;After the first identification result is determined, a first payment interface is displayed on the display screen, and the first payment interface includes a first payment confirmation button;
当获取到对所述第一支付确认按钮的点击操作之后,获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果;After obtaining the click operation on the first payment confirmation button, obtain the second recognition result of the face image information received by the server within a preset time after the first payment interface is displayed ;
判断所述第一识别结果与所述第二识别结果是否一致,得到第一判断结果;Judging whether the first recognition result is consistent with the second recognition result, and obtaining a first judgment result;
当所述第一判断结果表示所述第一识别结果与所述第二识别结果一致时,基于所述第一识别结果进行支付。When the first determination result indicates that the first identification result is consistent with the second identification result, payment is made based on the first identification result.
本说明书实施例提供的一种计算机可读介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现一种基于人脸识别的支付方法。A computer-readable medium provided by an embodiment of the present specification stores computer-readable instructions thereon, and the computer-readable instructions can be executed by a processor to implement a payment method based on face recognition.
本说明书一个实施例实现了能够达到以下有益效果:通过对于采集的人脸图像采用本地识别与云端识别共同识别,在本地识别结果返回后,即显示用户确认界面,而非在获取云端识别结果后再显示用户确认界面,在用户确认环节的过程中等待云端识别结果,利用交互环节中用户支付确认的时间来等待云端识别结果,缩短了支付流程的总时间,也缩短了用户等待的时间。然后根据云端识别结果、本地识别结果和用户确认结果,共同来确定支付账户,以提高支付的安全性。An embodiment of this specification achieves the following beneficial effects: by using local recognition and cloud recognition to identify the collected face image, after the local recognition result is returned, the user confirmation interface is displayed, not after the cloud recognition result is obtained. Then display the user confirmation interface, wait for the cloud recognition result in the process of the user confirmation link, and use the time of the user payment confirmation in the interaction link to wait for the cloud recognition result, which shortens the total time of the payment process and shortens the user's waiting time. Then, the payment account is jointly determined according to the cloud recognition result, the local recognition result and the user confirmation result, so as to improve the security of payment.
附图说明Description of drawings
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the following briefly introduces the accompanying drawings required in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本说明书实施例提供的一种基于人脸识别的支付方法的整体方案流程示意图;FIG. 1 is a schematic flowchart of an overall solution of a payment method based on face recognition provided by an embodiment of this specification;
图2为本说明书实施例提供的一种基于人脸识别的支付方法的流程示意图;2 is a schematic flowchart of a payment method based on face recognition provided by an embodiment of this specification;
图3为本说明书实施例提供的对应于图2的一种基于人脸识别的支付装置的结构示意图;FIG. 3 is a schematic structural diagram of a payment device based on face recognition corresponding to FIG. 2 provided by the embodiment of this specification;
图4为本说明书实施例提供的对应于图2的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device corresponding to FIG. 2 according to an embodiment of the present specification.
具体实施方式Detailed ways
为使本说明书一个或多个实施例的目的、技术方案和优点更加清楚,下面将结合本说明书具体实施例及相应的附图对本说明书一个或多个实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本说明书一个或多个实施例保护的范围。In order to make the objectives, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below with reference to the specific embodiments of this specification and the corresponding drawings. . Obviously, the described embodiments are only some of the embodiments of the present specification, but not all of the embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present specification without creative efforts fall within the protection scope of one or more embodiments of the present specification.
以下结合附图,详细说明本说明书各实施例提供的技术方案。The technical solutions provided by the embodiments of the present specification will be described in detail below with reference to the accompanying drawings.
现有技术中,为了提高支付便利性,好多超市、医院、地铁、商场和餐厅都推出了刷脸支付,利用刷脸设备采集人脸图像,通过识别人脸图像确定付款账户,然后从付款账户中进行扣款,从而可以完成支付。这种付款方式,无需依赖登录有用户付款账户的终端,就可以完成付款,大大提高了付款的便利性。In the prior art, in order to improve the convenience of payment, many supermarkets, hospitals, subways, shopping malls and restaurants have introduced face-scanning payment. Face-scanning devices are used to collect face images, identify the payment account by recognizing the face image, and then use the face-scanning device to determine the payment account. debit in order to complete the payment. This payment method can complete the payment without relying on the terminal logged in with the user's payment account, which greatly improves the convenience of payment.
但是,现在的刷脸支付也存在一定的问题,在对人脸图像信息进行识别时,可以由采集人脸图像信息的终端设备完成(简称本地设备),也可以由本地设备将人脸图像信息发送至云端的服务器,由服务器完成。但是,这两种方案都存在一定的缺点。However, there are also certain problems in the current face-swiping payment. When recognizing the face image information, it can be completed by the terminal device that collects the face image information (referred to as the local device), or the local device can convert the face image information. Send to the server in the cloud, and the server will complete it. However, both schemes have certain disadvantages.
采用云端的服务器进行人脸图像识别,时间较长,用户等待长,从而造成用户体验差。其中,造成服务器识别速度慢(与本地设备的差距在1S之内)的原因在于由本地设备向服务器发送数据的数据传输过程耗时比较长。Using the server in the cloud for face image recognition takes a long time and the user waits for a long time, resulting in a poor user experience. Among them, the reason for the slow recognition speed of the server (the gap with the local device is within 1S) is that the data transmission process of sending data from the local device to the server takes a long time.
采用本地设备对人脸图像进行识别,省去了人脸图像信息的传输过程,可以提高识别速度,但是与服务器识别相比,识别准确率低,安全性差。这是因为,受限于本地设备的硬件配置,本地设备存储的数据不够全面,以人脸图像为例,设备终端可能只能存储十万个人脸图像,而服务器能够存储上千万个人脸图像。因此,本地识别可能只存储有注册账户的人脸图像,而不包括非注册账户的人脸图像,如果注册用户A与非注册用户B长相十分相似,那么,非注册用户B采用刷脸支付时,如果是本地识别,有很大的概率会被误识别为注册用户A,因此,会造成注册用户A的财产损失。而且,服务器还会存储有防攻击的风险数据模型,而这些风险数据模型往往占用内存比较大,本地设备无法存储,如果只采用本地识别,风险概率也比较大。例如,注册用户C在一个小时之内,从两个城市分别采用刷脸进行付款,一个城市是北京,一个城市是拉萨,显然,在时间层面上是无法实现的,因此,判定注册用户C的账户可能被盗用。而本地设备恰好没有存储这个风险模型,因此,无法识别这个风险,如果刷脸支付成功,则会对注册用户C的财产造成损失。Using local equipment to recognize face images saves the transmission process of face image information and can improve the recognition speed. However, compared with server recognition, the recognition accuracy rate is low and the security is poor. This is because, limited by the hardware configuration of the local device, the data stored in the local device is not comprehensive enough. Taking face images as an example, the device terminal may only store 100,000 face images, while the server can store tens of millions of face images. . Therefore, the local recognition may only store the face image of the registered account, not including the face image of the non-registered account. If the registered user A looks very similar to the non-registered user B, then the non-registered user B pays with face recognition. , if it is local identification, there is a high probability that it will be mistakenly identified as registered user A, therefore, it will cause registered user A's property loss. In addition, the server also stores risk data models for attack prevention. These risk data models often occupy a large amount of memory and cannot be stored on local devices. If only local identification is used, the risk probability is also relatively large. For example, within one hour, registered user C uses face-swiping to pay from two cities, one city is Beijing and the other is Lhasa. Obviously, this is impossible in terms of time. Therefore, it is determined that registered user C’s Account may be compromised. However, the local device does not store this risk model. Therefore, this risk cannot be identified. If the face-scanning payment is successful, it will cause losses to the registered user C's property.
具体的,现有技术中采用云端识别的刷脸支付的方法如下:Specifically, in the prior art, the method of face-swiping payment using cloud recognition is as follows:
本地设备采集了人脸图像信息之后,将人脸图像信息发送给云端的服务器,服务器接收到人脸图像信息之后,对数据库检索,进行人脸识别。当人脸识别成功之后,会将识别结果发送至本地设备。本地设备在接收到识别结果之后,在显示屏上显示识别结果,并询问用户是否进行支付。用户点击支付确认按钮之后,本地设备把扣款信息发送至云端的服务器,云端的服务器确定扣款账户并完成扣款。然后将扣款完成的信息发送至本地设备,并在显示屏上进行显示,通知用户支付已经完成。After the local device collects the face image information, it sends the face image information to the server in the cloud. After the server receives the face image information, it searches the database for face recognition. After the face recognition is successful, the recognition result will be sent to the local device. After receiving the identification result, the local device displays the identification result on the display screen and asks the user whether to make payment. After the user clicks the payment confirmation button, the local device sends the deduction information to the server in the cloud, and the server in the cloud determines the debit account and completes the deduction. Then, the information of the completion of the deduction is sent to the local device, and displayed on the display screen to notify the user that the payment has been completed.
上述方案中,只有等待云端识别结果返回到本地设备时,用户才能确认是否完成付款。由于云端识别的时间长(假设时间是3秒),在这个过程中,用户只能进行等待。云端识别的时间再加上用户支付确认的时间(假设时间为3秒),那么整个支付流程需要6秒。In the above solution, the user can confirm whether the payment is completed only when the cloud recognition result is returned to the local device. Due to the long time for cloud recognition (assuming that the time is 3 seconds), in this process, the user can only wait. The time of cloud recognition plus the time of user payment confirmation (assuming the time is 3 seconds), then the entire payment process takes 6 seconds.
为了解决现有技术中的缺陷,本方案给出了以下实施例:In order to solve the defects in the prior art, this scheme provides the following examples:
基于现有技术的上述问题,本说明书实施例提供了一种在不降低安全性的前提下,提高用户体验的刷脸支付的方法。Based on the above problems in the prior art, the embodiments of the present specification provide a face-scanning payment method that improves user experience without reducing security.
图1为本说明书实施例中一种基于人脸识别的支付方法的整体方案流程示意图。如图1所示,所述方法包括:采集人脸图像,然后对于人脸图像分别采用本地识别与云端识别,在本地识别结果返回后,显示用户确认界面。在用户确认环节的过程中等待云端识别结果,然后根据云端识别结果、本地识别结果和用户确认结果,共同来确定支付账户。FIG. 1 is a schematic flowchart of an overall solution of a payment method based on face recognition in an embodiment of the specification. As shown in FIG. 1 , the method includes: collecting a face image, then using local recognition and cloud recognition respectively for the face image, and displaying a user confirmation interface after the local recognition result is returned. In the process of user confirmation, wait for the cloud recognition result, and then jointly determine the payment account according to the cloud recognition result, the local recognition result and the user confirmation result.
这样,由于用户确认界面是在本地识别(假设时间为2秒)完成后就显示的,在用户支付确认的时间(假设时间为3秒)内,云端识别结果也返回到本地设备了,那么整个支付流程需要5秒的时间,利用了用户支付确定的时间来等待云端识别结果,缩短了支付流程的总时间,也缩短了用户等待的时间,而最终的识别结果由云端识别结果、本地识别结果和用户确认结果共同确定,也提高了安全性。In this way, since the user confirmation interface is displayed after the local identification (assumed time is 2 seconds), the cloud identification result is also returned to the local device within the time of user payment confirmation (assumed time is 3 seconds), then the entire The payment process takes 5 seconds, and the time determined by the user's payment is used to wait for the cloud recognition result, which shortens the total time of the payment process and the waiting time of the user. The final recognition result is determined by the cloud recognition result and the local recognition result. It is determined together with the user confirmation result, which also improves security.
本方案通过异步决策的方式,利用交互环节用户等待的“时间差”,缩短了支付总流程的时间,综合本地识别结果和云端识别结果作为最终判断依据,提高了支付安全性。Through the asynchronous decision-making method, this scheme utilizes the "time difference" of the user's waiting in the interactive link, shortens the time of the overall payment process, and integrates the local identification result and the cloud identification result as the final judgment basis, which improves the payment security.
接下来,将针对说明书实施例提供的一种基于人脸识别的支付方法结合附图进行具体说明:Next, a payment method based on face recognition provided by the embodiments of the description will be described in detail with reference to the accompanying drawings:
图2为本说明书实施例提供的一种基于人脸识别的支付方法的流程示意图。从程序角度而言,流程的执行主体可以为搭载于应用服务器的程序或应用客户端。从执行主体的角度,所述方法应用于终端设备。FIG. 2 is a schematic flowchart of a payment method based on face recognition provided by an embodiment of the present specification. From a program perspective, the execution body of the process may be a program mounted on an application server or an application client. From the perspective of an executive body, the method is applied to a terminal device.
如图2所示,该流程可以包括以下步骤:As shown in Figure 2, the process can include the following steps:
步骤202:获取人脸图像信息,所述人脸图像信息为基于人脸识别的支付过程中获取的人脸图像信息。Step 202: Obtain face image information, where the face image information is the face image information obtained during the payment process based on face recognition.
需要说明的是,本说明书实施例中的基于人脸识别的方法一般应用于支付终端,支付终端可以指的是实现自助购物的自助结账电子设备,也可以是人工结账台设置的刷脸支付设备,可以设置于超市、医院、地铁、商场、餐厅等场所。It should be noted that the methods based on face recognition in the embodiments of this specification are generally applied to payment terminals, and payment terminals may refer to self-checkout electronic devices that implement self-service shopping, or face-scanning payment devices set at manual checkout counters. , can be set in supermarkets, hospitals, subways, shopping malls, restaurants and other places.
在采用刷脸支付的时候,首先需要采集支付者的人脸图像信息。可以采用终端设备上的摄像装置进行采集。其中,对于人脸图像采集的指令可以是支付者或者收银员选择了刷脸支付的支付方式之后,直接出发的;还可以是设置于刷脸支付的终端设备上的专门的按钮。当选择了刷脸支付之后,会在显示屏上显示是否开始人脸图像信息采集的按钮。当点击该按钮之后,摄像装置开始运行,并采集在设定范围内的人脸图像。When using face-scanning payment, the face image information of the payer needs to be collected first. The camera device on the terminal equipment can be used for acquisition. Wherein, the instruction for face image collection may be directly set off after the payer or the cashier selects the payment method of face-swiping payment; it may also be a special button set on the terminal device of face-swiping payment. When the payment by face recognition is selected, a button to start the collection of face image information will be displayed on the display screen. When this button is clicked, the camera starts to run and collects face images within the set range.
步骤204:发送所述人脸图像信息至服务器。Step 204: Send the face image information to the server.
获取到人脸图信息之后,终端设备可以将人脸图像信息发送至服务器,以便所述服务器对所述人脸图像信息进行识别,得到云端识别结果。After acquiring the face image information, the terminal device can send the face image information to the server, so that the server can identify the face image information and obtain a cloud recognition result.
步骤206:对所述人脸图像信息进行识别,确定第一识别结果。Step 206: Recognize the face image information to determine a first recognition result.
对获取的人脸图像信息还可以采用本地的数据库进行识别,即本地识别,得到本地识别结果。其中,第一识别结果为本地识别结果。The acquired face image information can also be recognized by using a local database, that is, local recognition, and a local recognition result can be obtained. The first recognition result is a local recognition result.
需要指出的是,第一识别结果可以包括人脸图像信息对应的注册账户信息,所述注册账户信息可以是注册账号、用户名、或联系方式,等等。其中,注册账户可以是邮箱地址、姓名、或手机号码等等。It should be noted that the first recognition result may include registered account information corresponding to the face image information, and the registered account information may be a registered account number, user name, or contact information, and the like. The registered account may be an email address, name, or mobile phone number, etc.
需要说明的是,步骤204和步骤206之间没有先后顺序,可以在步骤202执行完之后,同时进行。例如,可以采用两个线程分别执行上述两个步骤。It should be noted that there is no sequence between
步骤208:在确定所述第一识别结果之后,在显示屏上显示第一支付界面,所述第一支付界面包括第一支付确认按钮。Step 208: After determining the first identification result, display a first payment interface on the display screen, where the first payment interface includes a first payment confirmation button.
当本地识别结果完成后,即确定了第一识别结果之后,即可以在显示屏上显示用户支付确认界面,即第一支付界面。在第一支付界面上,可以包括支付金额信息和第一支付确认按钮。用户点击第一支付确认按钮之后,就可以完成支付。When the local identification result is completed, that is, after the first identification result is determined, the user payment confirmation interface, that is, the first payment interface, can be displayed on the display screen. On the first payment interface, payment amount information and a first payment confirmation button may be included. After the user clicks the first payment confirmation button, the payment can be completed.
在一些情况下,所述第一支付界面还可以包括第一识别结果对应的支付账户信息,用于提示用户对所述支付账户信息进行确认。如果第一支付界面上显示的支付账户信息不是刷脸支付用户的账户信息,则用户可以选择拒绝此次支付。In some cases, the first payment interface may further include payment account information corresponding to the first identification result, for prompting the user to confirm the payment account information. If the payment account information displayed on the first payment interface is not the account information of the face-swiping payment user, the user may choose to reject the payment.
在另外一些情况下,所述第一支付界面也可以不包括第一识别结果对应的支付账户信息,等支付完成在支付成功的界面上显示支付账户信息。In other cases, the first payment interface may also not include payment account information corresponding to the first identification result, and the payment account information is displayed on the payment successful interface after the payment is completed.
由于本地识别比云端识别的识别速度快,因此,在获取本地识别结果后,显示用户支付确认界面,可以减少用户的等待时间。在等待用户确认结果的期间内,可以等待云端识别结果。Since the local recognition is faster than the cloud recognition, after obtaining the local recognition result, the user payment confirmation interface is displayed, which can reduce the waiting time of the user. While waiting for the user to confirm the result, you can wait for the cloud recognition result.
步骤210:当获取到对所述第一支付确认按钮的点击操作之后,获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果。Step 210: After obtaining the click operation on the first payment confirmation button, obtain the first payment of the face image information received by the server within a preset time after the first payment interface is displayed. 2. Identification results.
由于云端识别比本地识别的速度慢,在显示用户支付确认界面的期间,终端设备可能会接收到服务器返回的云端识别结果,即针对所述人脸图像信息的第二识别结果。此时,可以先将第二识别结果进行存储,当用户确认支付后,即点击了第一支付确认按钮之后,可以从存储地址获取第二识别结果。Since cloud recognition is slower than local recognition, the terminal device may receive the cloud recognition result returned by the server, that is, the second recognition result for the face image information, during the period when the user payment confirmation interface is displayed. In this case, the second identification result may be stored first, and after the user confirms the payment, that is, after clicking the first payment confirmation button, the second identification result may be obtained from the storage address.
步骤212:判断所述第一识别结果与所述第二识别结果是否一致,得到第一判断结果。Step 212: Determine whether the first identification result is consistent with the second identification result, and obtain a first determination result.
由于对于人脸图像信息有两个识别结果,即第一识别结果和第二识别结果,首先要确定一下两个识别结果是否相同。Since there are two recognition results for the face image information, namely the first recognition result and the second recognition result, it is first necessary to determine whether the two recognition results are the same.
步骤214:当所述第一判断结果表示所述第一识别结果与所述第二识别结果一致时,基于所述第一识别结果进行支付。Step 214: When the first determination result indicates that the first identification result is consistent with the second identification result, make payment based on the first identification result.
在大部分情况下,第一识别结果和第二识别结果是一致的,此时,终端设备可以采用第一识别结果对应的账户信息进行支付。In most cases, the first identification result and the second identification result are consistent, and in this case, the terminal device can use the account information corresponding to the first identification result to pay.
需要说明的是,确定了第一识别结果之后,可以在等待用户进行支付确认的期间,根据第一识别结果做一些支付业务的预处理操作,如生成扣款请求,当确定第一识别结果和第二识别结果相同之后,可以直接根据先前的预处理操作进行下一步操作,将将扣款请求发送至服务器,这样可以进一步节约一部分处理时间。It should be noted that, after the first identification result is determined, some preprocessing operations of the payment service can be performed according to the first identification result while waiting for the user to confirm the payment, such as generating a deduction request. After the second identification result is the same, the next operation can be performed directly according to the previous preprocessing operation, and the deduction request is sent to the server, which can further save a part of the processing time.
应当理解,本说明书一个或多个实施例所述的方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。It should be understood that the order of some steps in the method described in one or more embodiments of this specification may be interchanged according to actual needs, or some steps may be omitted or deleted.
图2中的方法,通过对于采集的人脸图像采用本地识别与云端识别共同识别,在本地识别结果返回后,即显示用户确认界面,而非在获取云端识别结果后再显示用户确认界面,在用户确认环节的过程中等待云端识别结果,利用交互环节中用户支付确认的时间来等待云端识别结果,缩短了支付流程的总时间,也缩短了用户的等待的时间。然后根据云端识别结果、本地识别结果和用户确认结果,共同来确定支付账户,也提高了支付的安全性。The method in Fig. 2 uses local recognition and cloud recognition to recognize the collected face images. After the local recognition result is returned, the user confirmation interface is displayed instead of the user confirmation interface after the cloud recognition result is obtained. In the process of user confirmation, it waits for the cloud recognition result, and uses the time of user payment confirmation in the interactive link to wait for the cloud recognition result, which shortens the total time of the payment process and shortens the waiting time of users. Then, the payment account is jointly determined according to the cloud recognition result, the local recognition result and the user confirmation result, which also improves the security of payment.
基于图2的方法,本说明书实施例还提供了该方法的一些具体实施方案,下面进行说明。Based on the method of FIG. 2 , some specific implementations of the method are also provided in the examples of this specification, which will be described below.
可选的,基于所述第一识别结果进行支付,具体可以包括:Optionally, the payment based on the first identification result may specifically include:
基于所述第一识别结果确定所述人脸图像信息对应的第一账户信息;Determine the first account information corresponding to the face image information based on the first recognition result;
生成对于所述第一账户信息对应的第一账户的第一扣款请求;generating a first debit request for the first account corresponding to the first account information;
将所述第一扣款请求发送至所述服务器。Sending the first debit request to the server.
在一些实施例中,第一识别结果可以包括第一账户信息,也可以包括用于确定第一账户信息的相关信息,如姓名、联系方式等。根据付款请求和第一账户信息可以生成第一扣款请求,其中,第一扣款请求可以包括扣款账户和扣款金额。扣款账户可以是第一账户信息,也可以是第一账户信息对应的账户的金融账户信息。In some embodiments, the first identification result may include first account information, and may also include relevant information for determining the first account information, such as name, contact information, and the like. A first debit request may be generated according to the payment request and the first account information, where the first debit request may include a debit account and a debit amount. The debit account may be the first account information, or may be the financial account information of the account corresponding to the first account information.
将第一扣款请求发送至服务器,以便所述服务器根据所述第一扣款请求完成扣款。可以根据第一账户中的扣款方式确定扣款渠道,然后根据扣款渠道完成扣款。The first debit request is sent to the server, so that the server completes deduction according to the first debit request. The deduction channel can be determined according to the deduction method in the first account, and then the deduction is completed according to the deduction channel.
扣款完成之后,服务器可以将扣款成功的信息发送到设备终端,由设备终端控制在显示屏上显示支付成功信息。在一些实施例中,如果步骤208中的第一支付界面中不包括第一识别结果时,那么上述支付成功信息中可以包括第一账户信息。After the deduction is completed, the server can send the successful deduction information to the device terminal, and the device terminal controls the display screen to display the payment success information. In some embodiments, if the first identification result is not included in the first payment interface in
例如,获取人脸图像信息,将所述人脸图像信息发送至云端的服务器。采用本地数据库对所述人脸图像信息进行检索,得到本地识别结果,假设本地识别成功,检测人脸图像信息与注册账户A的留底人脸图像相符。得到本地识别结果之后,立即显示第一支付界面,该界面上会显示用户对应的账户信息,以及付款信息,如“XXX账户,您本次的支付金额为XXX元,是否支付”,其中,还会有“是”和“否”两个按钮。在等待用户确认的期间,终端设备会收到云端识别结果,假设云端识别结果也为注册账户A,那么当用户点击按钮“是”时,直接确定注册账户A为刷脸支付用户对应的账户信息,根据账户信息和扣款金额信息确定扣款信息,然后将扣款信息发送给云端的服务器。云端的服务器根据账户信息确定扣款账户,然后获取扣款账户中的自动扣款设置,然后根据自动扣款设置确定扣款渠道,然后从扣款渠道对应的账户中完成扣款。扣款完成后,云端的服务器将扣款成功的信息发送至本地设备,本地设备在显示屏上显示“支付成功”的信息。For example, obtain face image information, and send the face image information to a server in the cloud. The local database is used to retrieve the face image information to obtain a local recognition result. Assuming that the local recognition is successful, the detected face image information is consistent with the face image of the registered account A. After the local identification result is obtained, the first payment interface will be displayed immediately, which will display the user's corresponding account information and payment information, such as "XXX account, your current payment amount is XXX yuan, whether to pay", among which, also There will be two buttons "Yes" and "No". While waiting for the user's confirmation, the terminal device will receive the cloud recognition result. Assuming that the cloud recognition result is also the registered account A, then when the user clicks the button "Yes", it will directly determine that the registered account A is the account information corresponding to the face-swiping payment user. , determine the deduction information according to the account information and the deduction amount information, and then send the deduction information to the server in the cloud. The server in the cloud determines the debit account according to the account information, obtains the automatic deduction settings in the deduction account, determines the deduction channel according to the automatic deduction settings, and completes the deduction from the account corresponding to the deduction channel. After the deduction is completed, the server in the cloud will send the information of successful deduction to the local device, and the local device will display the message "Successful payment" on the display.
不同于上述实施方式,在一些实施例中,第一支付界面还可以包括第一账户信息,具体的步骤如下:Different from the above embodiments, in some embodiments, the first payment interface may further include first account information, and the specific steps are as follows:
在所述对所述人脸图像信息进行识别,确定第一识别结果之后,所述方法还可以包括:After recognizing the face image information and determining the first recognition result, the method may further include:
根据所述第一识别结果确定所述人脸图像信息对应的第一账户信息;Determine the first account information corresponding to the face image information according to the first recognition result;
所述在显示屏上显示第一支付界面,具体可以包括:The displaying of the first payment interface on the display screen may specifically include:
在显示屏上显示第一支付界面,所述第一支付界面包括所述第一账户信息和第一支付确认按钮。A first payment interface is displayed on the display screen, and the first payment interface includes the first account information and a first payment confirmation button.
通过上述方法,在第一支付界面显示第一账户信息,有利于刷脸支付用户对扣款账户的确认,如果第一账户信息与刷脸支付用户的账户不同时,可以及时进行调整。Through the above method, displaying the first account information on the first payment interface is helpful for the face-swiping payment user to confirm the debit account. If the first account information is different from the face-swiping payment user's account, adjustments can be made in time.
在该实施方式中,由于第一支付界面显示了第一账户信息,为了避免重复显示,在支付成功后,在显示屏上显示支付成功信息时,如果实际扣款的账户信息与第一账户信息相同时,所述支付成功信息可以不包括第一账户信息。In this embodiment, since the first payment interface displays the first account information, in order to avoid repeated display, after the payment is successful, when the payment success information is displayed on the display screen, if the account information actually deducted is the same as the first account information At the same time, the payment success information may not include the first account information.
可选的,在小部分情况下,也存在第一识别结果和第二识别结果不相同的情况下,此时可以采用以下方式进行处理;Optionally, in a small number of cases, there are also cases where the first recognition result and the second recognition result are different, and the following methods can be used for processing at this time;
当所述第一判断结果表示所述第一识别结果与所述第二识别结果不一致时,基于所述第二识别结果确定所述人脸图像信息对应的第二账户信息;When the first judgment result indicates that the first recognition result is inconsistent with the second recognition result, determining the second account information corresponding to the face image information based on the second recognition result;
生成对于所述第二账户信息对应的第二账户的第二扣款请求;generating a second debit request for the second account corresponding to the second account information;
将所述第二扣款请求发送至所述服务器。Sending the second debit request to the server.
由于云端识别结果的准确率高于本地识别结果的准确率,当出现云端识别结果与本地识别结果不一致的时候,可以以云端识别结果为主,即,采用云端识别结果对应的第二识别结果进行支付。Since the accuracy rate of the cloud recognition result is higher than that of the local recognition result, when the cloud recognition result is inconsistent with the local recognition result, the cloud recognition result can be the main one, that is, the second recognition result corresponding to the cloud recognition result is used for pay.
例如,当本地识别结果为注册账户A,云端识别结果为注册账户B时,考虑到云端识别的准确率高于本地识别的准确率,则将注册账户B确定为刷脸支付用户对应的账户。然后,将注册账户B发送至云端的服务器,服务器从注册账户B中扣除对应的支付金额。For example, when the local recognition result is registered account A and the cloud recognition result is registered account B, considering that the accuracy rate of cloud recognition is higher than that of local recognition, registered account B is determined as the account corresponding to the face-swiping payment user. Then, the registered account B is sent to the server in the cloud, and the server deducts the corresponding payment amount from the registered account B.
可选的,在所述将所述第二扣款请求发送至所述服务器之后,还可以包括:Optionally, after the sending the second debit request to the server, it may further include:
接收所述服务器针对所述第二扣款请求的处理结果,所述处理结果包括所述第二账户信息和针对所述第二账户的扣款信息;receiving a processing result of the server for the second debit request, where the processing result includes the second account information and debit information for the second account;
在所述显示屏上显示所述处理结果。The processing result is displayed on the display screen.
在一些实施例中,如果步骤208中的第一支付界面不包括第一账户信息,为了让用户确定是采用哪个账户进行支付的,可以将云端识别结果确定的第二账户信息在显示屏上进行显示。In some embodiments, if the first payment interface in
如果步骤208中的第一支付界面包括第一账户信息,由于实际扣款账户与用户确认的扣款账户不同,此时也可以在将云端识别结果确定的第二账户信息在显示屏上进行显示。If the first payment interface in
可选的,如果步骤208中的第一支付界面包括第一账户信息,而实际扣款账户为云端识别结果对应的第二账户时,还可以采用方法进行处理:Optionally, if the first payment interface in
在所述生成对于所述第二账户信息对应的第二账户的第二扣款请求之前,还可以包括:Before the generating a second debit request for the second account corresponding to the second account information, the method may further include:
在所述显示屏上显示第二支付界面,所述第二支付界面包括所述第二账户信息和第二支付确认按钮;displaying a second payment interface on the display screen, the second payment interface including the second account information and a second payment confirmation button;
判断是否获取到针对所述第二支付确认按钮的点击操作,得到第二判断结果;Judging whether a click operation for the second payment confirmation button is obtained, and a second judgment result is obtained;
所述生成对于所述第二账户信息对应的第二账户的第二扣款请求,具体包括:The generating a second debit request for the second account corresponding to the second account information specifically includes:
当所述第二判断结果表示获取到针对所述第二支付确认按钮的点击操作,生成对于所述第二账户信息对应的第二账户的第二扣款请求。When the second judgment result indicates that a click operation for the second payment confirmation button is obtained, a second debit request for the second account corresponding to the second account information is generated.
由于步骤208中的第一支付界面包括第一账户信息,即用户确认支付的账户为第一账户,当第一识别结果与第二识别结果不同,直接采用第二识别结果进行支付时,可能会影响用户的体验。为了解决这一技术问题,本实施例,在扣款之前,在显示屏上显示第二支付界面,其中第二支付界面包括第二账户信息,用于提示用户是否确认采用第二账户进行支付。当用户点击第二支付确认按钮之后,则可以生成针对第二账户的第二扣款请求,以便于完成针对第二账户的扣款。Since the first payment interface in
可选的,所述方法还可以包括:Optionally, the method may also include:
当所述第一判断结果表示所述第一识别结果与所述第二识别结果不一致时,在确定所述第二识别结果表示对用户进行二次检验后,在所述显示屏上显示用于输入账户验证信息的输入框;When the first judgment result indicates that the first identification result is inconsistent with the second identification result, after it is determined that the second identification result indicates that a second test is performed on the user, display on the display screen for Input box for entering account verification information;
获取所述输入框内输入的验证信息;obtaining the verification information entered in the input box;
判断所述验证信息是否与所述第一识别结果对应的账户信息的预留信息一致,得到第三判断结果;Judging whether the verification information is consistent with the reserved information of the account information corresponding to the first identification result, and obtaining a third judgment result;
当所述第三判断结果表示所述验证信息与所述第一识别结果对应的账户信息的预留信息一致时,基于所述第一识别结果进行支付。When the third judgment result indicates that the verification information is consistent with the reserved information of the account information corresponding to the first identification result, payment is made based on the first identification result.
需要说明的是,第二识别结果可以包括对人脸图像信息的识别结果,还可以包括风险提示信息。如果采集的人脸图像信息对应的注册账户包括两个,其相似度相同时,如两个注册账户的用户为双胞胎兄弟,此时可以采用其他的方式加以验证,如填写与注册账户相关的信息。It should be noted that the second recognition result may include the recognition result of the face image information, and may also include risk prompt information. If there are two registered accounts corresponding to the collected face image information, and the similarity is the same, such as the users of the two registered accounts are twin brothers, other methods can be used to verify at this time, such as filling in the information related to the registered account. .
验证信息可以是注册账户的关联信息,如果手机号码,身份证号码,邮箱等等。当获取用户输入的验证信息之后,可以由终端设备判断所述验证信息是否与第一账户信息的预留信息一致,如果是,则可以采用第一账户信息进行支付。另外,还可以将所述验证信息发送至云端的服务器,由服务器判断所述验证信息是否与第一账户信息的预留信息一致,或者由服务器确定验证信息对应的注册账户,如果验证信息对应的注册账户与第一识别结果相同,则可以采用第一识别结果直接支付,如果不同,则拒绝采用第一识别结果进行支付,或者采用验证信息对应的注册账户进行支付。The verification information can be the associated information of the registered account, such as mobile phone number, ID number, email address, etc. After acquiring the verification information input by the user, the terminal device can determine whether the verification information is consistent with the reserved information of the first account information, and if so, the first account information can be used for payment. In addition, the verification information can also be sent to a server in the cloud, and the server can determine whether the verification information is consistent with the reserved information of the first account information, or the server can determine the registered account corresponding to the verification information. If the registered account is the same as the first identification result, the first identification result can be used for direct payment; if it is different, the first identification result is rejected for payment, or the registered account corresponding to the verification information is used for payment.
例如,当本地识别结果为注册账户A,而云端识别结果为需要二次校验时,则本地设备再做一次检验,例如,在显示屏上显示“请填写注册账户的手机号码”,当获取用户填写的手机号码之后,本地设备将手机号码发送至云端的服务器。服务器根据所述人脸图像信息和所述手机号码共同确定注册账户,然后将注册账户发送至本地设备。如果云端识别结果也为注册账户A,则采用注册账户A进行支付,如果云端识别结果是注册账户B,则采用注册账户B进行支付。For example, when the local identification result is registered account A, and the cloud identification result is that the second verification is required, the local device will perform another verification. For example, "Please fill in the mobile phone number of the registered account" is displayed on the screen. After the user fills in the mobile phone number, the local device sends the mobile phone number to the server in the cloud. The server jointly determines a registered account according to the face image information and the mobile phone number, and then sends the registered account to the local device. If the cloud recognition result is also registered account A, then use registered account A for payment; if the cloud recognition result is registered account B, then use registered account B for payment.
可选的,所述方法还可以包括:Optionally, the method may also include:
当所述第二识别结果表示所述人脸图像信息对应的账户存在支付风险时,终止基于人脸识别的支付;When the second recognition result indicates that the account corresponding to the face image information has a payment risk, the payment based on face recognition is terminated;
在所述显示屏上显示支付失败的信息和风险提示信息。The payment failure information and risk prompt information are displayed on the display screen.
在一些实施例中,在本地识别结果为注册账户A,而云端识别结果报错的情况下,本地设备获取云端识别结果时,确定此次支付存在安全问题,不执行支付操作,则在显示屏上显示“支付失败”的信息。此时的安全问题可以是:短时间内跨地区支付,而实际上无法实现的,如,一个小时内连续在北京和海南支付,此时可以确定为存在安全问题。In some embodiments, when the local identification result is the registered account A, and the cloud identification result reports an error, when the local device obtains the cloud identification result, it is determined that there is a security problem in the payment, and the payment operation is not performed, and the display screen The message "Payment Failed" is displayed. The security problem at this time can be: cross-regional payment in a short time, but it is actually impossible to achieve, for example, continuous payment in Beijing and Hainan within one hour, it can be determined that there is a security problem at this time.
另外,还可以在支付失败的界面上显示风险提示信息,该风险提示信息中可以包括存在的问题,以及解决办法。如果是短时间跨地区支付,则该风险提示信息可以包括:上次支付的时间和地点,以及这次申请支付的时间和地点,以及存在被盗号的风险,建议用户进行核实等。In addition, risk prompt information may also be displayed on the payment failure interface, and the risk prompt information may include existing problems and solutions. If it is a short-term cross-regional payment, the risk prompt information may include: the time and place of the last payment, the time and place of the application for payment this time, and the risk of account theft, and the user is advised to verify it, etc.
可选的,所述发送所述人脸图像信息至服务器,具体可以包括:Optionally, the sending the face image information to the server may specifically include:
采用另一个线程将所述人脸图像信息发送至服务器;Using another thread to send the face image information to the server;
所述获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果,具体包括:The acquiring the second recognition result of the face image information received by the server within a preset time after the first payment interface is displayed, specifically includes:
在所述第一支付界面被显示后的预设时间内获取所述另一个线程接收到的所述服务器对于所述人脸图像信息的第二识别结果。The second recognition result of the face image information received by the server and received by the other thread is acquired within a preset time after the first payment interface is displayed.
为了满足同时的关系,可以采用同时执行的两个线程来分别进行本地识别和云端识别。即,本地识别采用一个线程,云端识别采用另一个线程。当获取了人脸图像信息之后,可以新建一个线程用来发送人脸图像信息至服务器。而服务器发送的第二识别结果也可以直接发送至所述另一个线程进行存储。如果需要获取第二识别结果时,可以去所述另一个线程进行获取。In order to satisfy the simultaneous relationship, two threads executed at the same time can be used to perform local identification and cloud identification respectively. That is, one thread is used for local identification, and another thread is used for cloud identification. After acquiring the face image information, a new thread can be created to send the face image information to the server. The second identification result sent by the server may also be directly sent to the other thread for storage. If the second identification result needs to be obtained, the other thread can be used to obtain it.
其中,执行“获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果”的线程,和执行“对所述人脸图像信息进行识别,确定第一识别结果”可以是同一线程,也可以是两个线程。Wherein, execute the thread of “acquiring the second recognition result of the face image information received by the server within the preset time after the first payment interface is displayed”, and execute the thread of “acquiring the face image information of the face”. The image information is identified, and it is determined that the first identification result "can be the same thread or two threads.
可选的,所述方法还可以包括:Optionally, the method may also include:
若在所述第一支付界面被显示后的预设时间内,所述另一个线程未接收到所述服务器对于所述人脸图像信息的第二识别结果,基于所述第一识别结果进行支付。If the other thread does not receive the second recognition result of the face image information by the server within a preset time after the first payment interface is displayed, payment is made based on the first recognition result .
在该实施例中,由于云端识别与本地识别的时间差在一秒左右,如果在预设时间内没有接收到第二识别结果,可能表示服务器出现了故障,如宕机等,为了不影响用户体验,此时,可以采用本地识别结果进行支付。此外,还可以提示刷脸支付用户采用其他支付方式进行支付。In this embodiment, since the time difference between the cloud recognition and the local recognition is about one second, if the second recognition result is not received within the preset time, it may indicate that the server is faulty, such as downtime. In order not to affect the user experience , at this time, the local identification result can be used for payment. In addition, the face-swiping payment user can also be prompted to use other payment methods to pay.
基于同样的思路,本说明书实施例还提供了上述方法对应的装置。图3为本说明书实施例提供的对应于图2的一种基于人脸识别的支付装置的结构示意图。如图3所示,该装置可以包括:Based on the same idea, the embodiments of the present specification also provide a device corresponding to the above method. FIG. 3 is a schematic structural diagram of a payment device based on face recognition corresponding to FIG. 2 according to an embodiment of the present specification. As shown in Figure 3, the device may include:
人脸图像获取模块302,用于获取人脸图像信息,所述人脸图像信息为基于人脸识别的支付过程中获取的人脸图像信息;A face
人脸图像发送模块304,用于发送所述人脸图像信息至服务器;a face
第一识别结果确定模块306,用于对所述人脸图像信息进行识别,确定第一识别结果;a first recognition
第一支付界面显示模块308,用于在确定所述第一识别结果之后,在显示屏上显示第一支付界面,所述第一支付界面包括第一支付确认按钮;a first payment
第二识别结果获取模块310,用于当获取到对所述第一支付确认按钮的点击操作之后,获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果;The second identification
第一判断模块312,用于判断所述第一识别结果与所述第二识别结果是否一致,得到第一判断结果;A
第一支付模块314,用于当所述第一判断结果表示所述第一识别结果与所述第二识别结果一致时,基于所述第一识别结果进行支付。The
图3的装置,通过对于采集的人脸图像采用本地识别与云端识别共同识别,在本地识别结果返回后,即显示用户确认界面,而非在获取云端识别结果后再显示用户确认界面,在用户确认环节的过程中等待云端识别结果,利用交互环节中用户支付确认的时间来等待云端识别结果,缩短了支付流程的总时间,也缩短了用户的等待的时间。然后根据云端识别结果、本地识别结果和用户确认结果,共同来确定支付账户,以提高支付的安全性。The device in FIG. 3 uses local recognition and cloud recognition to identify the collected face images. After the local recognition result is returned, the user confirmation interface is displayed instead of the user confirmation interface after the cloud recognition result is obtained. In the process of confirmation, it waits for the cloud recognition result, and uses the time of user payment confirmation in the interaction process to wait for the cloud recognition result, which shortens the total time of the payment process and shortens the waiting time of users. Then, the payment account is jointly determined according to the cloud recognition result, the local recognition result and the user confirmation result, so as to improve the security of payment.
基于图3的装置,本说明书实施例还提供了该方法的一些具体实施方案,下面进行说明。Based on the device in FIG. 3 , some specific implementations of the method are also provided in the embodiments of this specification, which will be described below.
可选的,所述第一支付模块314,具体可以包括:Optionally, the
第一账户信息确定单元,用于基于所述第一识别结果确定所述人脸图像信息对应的第一账户信息;a first account information determination unit, configured to determine the first account information corresponding to the face image information based on the first recognition result;
第一扣款请求生成单元,用于生成对于所述第一账户信息对应的第一账户的第一扣款请求;a first debit request generating unit, configured to generate a first debit request for the first account corresponding to the first account information;
第一扣款请求发送单元,用于将所述第一扣款请求发送至所述服务器。A first debit request sending unit, configured to send the first debit request to the server.
可选的,所述装置还可以包括:Optionally, the device may also include:
第一账户信息确定模块,用于根据所述第一识别结果确定所述人脸图像信息对应的第一账户信息;a first account information determination module, configured to determine the first account information corresponding to the face image information according to the first recognition result;
所述第一支付界面显示模块308,具体用于在显示屏上显示第一支付界面,所述第一支付界面包括所述第一账户信息和第一支付确认按钮。The first payment
可选的,所述装置还可以包括:Optionally, the device may also include:
第二账户信息确定模块,用于当所述第一判断结果表示所述第一识别结果与所述第二识别结果不一致时,基于所述第二识别结果确定所述人脸图像信息对应的第二账户信息;A second account information determination module, configured to determine, based on the second identification result, the first identification result corresponding to the face image information when the first determination result indicates that the first identification result is inconsistent with the second identification result. 2. Account information;
第二扣款请求生成模块,用于生成对于所述第二账户信息对应的第二账户的第二扣款请求;A second debit request generating module, configured to generate a second debit request for the second account corresponding to the second account information;
第二扣款请求发送模块,用于将所述第二扣款请求发送至所述服务器。A second debit request sending module, configured to send the second debit request to the server.
可选的,所述装置还可以包括:Optionally, the device may also include:
处理结果接收模块,用于接收所述服务器针对所述第二扣款请求的处理结果,所述处理结果包括所述第二账户信息和针对所述第二账户的扣款信息;a processing result receiving module, configured to receive a processing result of the server for the second debit request, where the processing result includes the second account information and debit information for the second account;
处理结果显示模块,用于在所述显示屏上显示所述处理结果。The processing result display module is used for displaying the processing result on the display screen.
可选的,所述装置还可以包括:Optionally, the device may also include:
第二支付界面显示模块,用于在所述显示屏上显示第二支付界面,所述第二支付界面包括所述第二账户信息和第二支付确认按钮;a second payment interface display module, configured to display a second payment interface on the display screen, where the second payment interface includes the second account information and a second payment confirmation button;
第二判断模块,用于判断是否获取到针对所述第二支付确认按钮的点击操作,得到第二判断结果;a second judgment module, configured to judge whether a click operation for the second payment confirmation button is obtained to obtain a second judgment result;
所述第二扣款请求生成模块,用于当所述第二判断结果表示获取到针对所述第二支付确认按钮的点击操作,生成对于所述第二账户信息对应的第二账户的第二扣款请求。The second debit request generation module is configured to generate a second account for the second account corresponding to the second account information when the second judgment result indicates that a click operation for the second payment confirmation button is obtained. Chargeback request.
可选的,所述装置还可以包括:Optionally, the device may also include:
验证信息输入模块,用于当所述第一判断结果表示所述第一识别结果与所述第二识别结果不一致时,在确定所述第二识别结果表示对用户进行二次检验后,在所述显示屏上显示用于输入账户验证信息的输入框;The verification information input module is configured to, when the first judgment result indicates that the first identification result is inconsistent with the second identification result, after it is determined that the second identification result indicates that the user is to be checked twice An input box for inputting account verification information is displayed on the display screen;
验证信息获取模块,用于获取所述输入框内输入的验证信息;a verification information acquisition module, used to acquire the verification information input in the input box;
第三判断模块,用于判断所述验证信息是否与所述第一识别结果对应的账户信息的预留信息一致,得到第三判断结果;a third judgment module, configured to judge whether the verification information is consistent with the reserved information of the account information corresponding to the first identification result, and obtain a third judgment result;
第二支付模块,用于当所述第三判断结果表示所述验证信息与所述第一识别结果对应的账户信息的预留信息一致时,基于所述第一识别结果进行支付。A second payment module, configured to perform payment based on the first identification result when the third judgment result indicates that the verification information is consistent with the reserved information of the account information corresponding to the first identification result.
可选的,所述装置还可以包括:Optionally, the device may also include:
支付终止模块,用于当所述第二识别结果表示所述人脸图像信息对应的账户存在支付风险时,终止基于人脸识别的支付;a payment termination module, configured to terminate the payment based on face recognition when the second recognition result indicates that the account corresponding to the face image information has a payment risk;
信息提示模块,用于在所述显示屏上显示支付失败的信息和风险提示信息。An information prompt module, used for displaying payment failure information and risk prompt information on the display screen.
可选的,所述人脸图像发送模块304,具体用于采用另一个线程将所述人脸图像信息发送至服务器;Optionally, the face
所述第二识别结果获取模块310,具体用于在所述第一支付界面被显示后的预设时间内获取所述另一个线程接收到的所述服务器对于所述人脸图像信息的第二识别结果。The second identification
可选的,所述装置还可以包括:Optionally, the device may also include:
第三支付模块,用于若在所述第一支付界面被显示后的预设时间内,所述另一个线程未接收到所述服务器对于所述人脸图像信息的第二识别结果,基于所述第一识别结果进行支付。The third payment module is configured to, if within a preset time after the first payment interface is displayed, the other thread does not receive the second recognition result of the face image information by the server, based on the Pay according to the first identification result.
基于同样的思路,本说明书实施例还提供了上述方法对应的设备。Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.
图4为本说明书实施例提供的对应于图2的一种电子设备的结构示意图。如图4所示,设备400可以包括:FIG. 4 is a schematic structural diagram of an electronic device corresponding to FIG. 2 according to an embodiment of the present specification. As shown in FIG. 4,
至少一个处理器410;以及,at least one processor 410; and,
与所述至少一个处理器通信连接的存储器430;其中,a memory 430 in communication with the at least one processor; wherein,
所述存储器430存储有可被所述至少一个处理器410执行的指令420,所述指令被所述至少一个处理器410执行,以使所述至少一个处理器410能够:The memory 430 stores instructions 420 executable by the at least one processor 410, the instructions being executed by the at least one processor 410 to enable the at least one processor 410 to:
获取人脸图像信息,所述人脸图像信息为基于人脸识别的支付过程中获取的人脸图像信息;Obtaining face image information, the face image information is the face image information obtained in the payment process based on face recognition;
发送所述人脸图像信息至服务器,以便所述服务器对所述人脸图像信息进行识别;sending the face image information to a server, so that the server can identify the face image information;
对所述人脸图像信息进行识别,确定第一识别结果;Recognizing the face image information to determine a first recognition result;
在确定所述第一识别结果之后,在显示屏上显示第一支付界面,所述第一支付界面包括第一支付确认按钮;After the first identification result is determined, a first payment interface is displayed on the display screen, and the first payment interface includes a first payment confirmation button;
当获取到对所述第一支付确认按钮的点击操作之后,获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果;After obtaining the click operation on the first payment confirmation button, obtain the second recognition result of the face image information received by the server within a preset time after the first payment interface is displayed ;
判断所述第一识别结果与所述第二识别结果是否一致,得到第一判断结果;Judging whether the first recognition result is consistent with the second recognition result, and obtaining a first judgment result;
当所述第一判断结果表示所述第一识别结果与所述第二识别结果一致时,基于所述第一识别结果进行支付。When the first determination result indicates that the first identification result is consistent with the second identification result, payment is made based on the first identification result.
基于同样的思路,本说明书实施例还提供了上述方法对应的计算机可读介质。计算机可读介质上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现以下方法:Based on the same idea, the embodiments of the present specification also provide a computer-readable medium corresponding to the above method. The computer-readable medium has computer-readable instructions stored thereon, and the computer-readable instructions are executable by a processor to implement the following methods:
获取人脸图像信息,所述人脸图像信息为基于人脸识别的支付过程中获取的人脸图像信息;Obtaining face image information, the face image information is the face image information obtained in the payment process based on face recognition;
发送所述人脸图像信息至服务器,以便所述服务器对所述人脸图像信息进行识别;sending the face image information to a server, so that the server can identify the face image information;
对所述人脸图像信息进行识别,确定第一识别结果;Recognizing the face image information to determine a first recognition result;
在确定所述第一识别结果之后,在显示屏上显示第一支付界面,所述第一支付界面包括第一支付确认按钮;After the first identification result is determined, a first payment interface is displayed on the display screen, and the first payment interface includes a first payment confirmation button;
当获取到对所述第一支付确认按钮的点击操作之后,获取在所述第一支付界面被显示后的预设时间内接收到的所述服务器对于所述人脸图像信息的第二识别结果;After obtaining the click operation on the first payment confirmation button, obtain the second recognition result of the face image information received by the server within a preset time after the first payment interface is displayed ;
判断所述第一识别结果与所述第二识别结果是否一致,得到第一判断结果;Judging whether the first recognition result is consistent with the second recognition result, and obtaining a first judgment result;
当所述第一判断结果表示所述第一识别结果与所述第二识别结果一致时,基于所述第一识别结果进行支付。When the first determination result indicates that the first identification result is consistent with the second identification result, payment is made based on the first identification result.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于图3所示的电子券发送设备而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the electronic coupon sending device shown in FIG. 3 , since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device, PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字符系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, an improvement in a technology could be clearly differentiated between improvements in hardware (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) or improvements in software (improvements in method flow). However, with the development of technology, the improvement of many methods and processes today can be regarded as a direct improvement of the hardware circuit structure. Designers almost get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware entity modules. For example, a Programmable Logic Device (PLD) such as a Field Programmable Gate Array (FPGA) is an integrated circuit whose logical function is determined by the user programming the device. It is programmed by the designer to "integrate" a digital character system on a PLD, without the need for a chip manufacturer to design and manufacture a dedicated integrated circuit chip. And, instead of making integrated circuit chips by hand, these days, most of this programming is done using "logic compiler" software, which is similar to the software compilers used in program development and writing, but before compiling The original code also has to be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that a hardware circuit for implementing the logic method process can be easily obtained by simply programming the method process in the above-mentioned several hardware description languages and programming it into the integrated circuit.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20 以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable manner, for example, the controller may take the form of eg a microprocessor or processor and a computer readable medium storing computer readable program code (eg software or firmware) executable by the (micro)processor , logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers, examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that, in addition to implementing the controller in the form of pure computer-readable program code, the controller can be implemented as logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded devices by logically programming the method steps. The same function can be realized in the form of a microcontroller, etc. Therefore, such a controller can be regarded as a hardware component, and the devices included therein for realizing various functions can also be regarded as a structure within the hardware component. Or even, the means for implementing various functions can be regarded as both a software module implementing a method and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字符助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules or units described in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device Or a combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described respectively. Of course, when implementing the present application, the functions of each unit may be implemented in one or more software and/or hardware.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowcharts and/or block diagrams, and combinations of flows and/or blocks in the flowcharts and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in one or more of the flowcharts and/or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions An apparatus implements the functions specified in a flow or flows of the flowcharts and/or a block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in one or more of the flowcharts and/or one or more blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字符多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带式磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD), or other optical storage , magnetic tape cartridges, magnetic tape-disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be appreciated by those skilled in the art that the embodiments of the present application may be provided as a method, a system or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.
Claims (18)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010440539.4A CN111340471B (en) | 2020-05-22 | 2020-05-22 | Payment method, device and equipment based on face recognition |
| CN202010941339.7A CN112150159B (en) | 2020-05-22 | 2020-05-22 | Payment method, device and equipment based on face recognition |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010440539.4A CN111340471B (en) | 2020-05-22 | 2020-05-22 | Payment method, device and equipment based on face recognition |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010941339.7A Division CN112150159B (en) | 2020-05-22 | 2020-05-22 | Payment method, device and equipment based on face recognition |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111340471A CN111340471A (en) | 2020-06-26 |
| CN111340471B true CN111340471B (en) | 2020-08-21 |
Family
ID=71184891
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010440539.4A Active CN111340471B (en) | 2020-05-22 | 2020-05-22 | Payment method, device and equipment based on face recognition |
| CN202010941339.7A Active CN112150159B (en) | 2020-05-22 | 2020-05-22 | Payment method, device and equipment based on face recognition |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010941339.7A Active CN112150159B (en) | 2020-05-22 | 2020-05-22 | Payment method, device and equipment based on face recognition |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN111340471B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114078011A (en) * | 2020-08-19 | 2022-02-22 | 腾讯科技(深圳)有限公司 | Information processing method and device based on image recognition, storage medium and terminal |
| CN113128901A (en) * | 2021-04-30 | 2021-07-16 | 上海商汤智能科技有限公司 | Beverage area management method and device, electronic equipment and storage medium |
| CN113807303A (en) * | 2021-09-26 | 2021-12-17 | 北京市商汤科技开发有限公司 | Face recognition method and device, medium and electronic device |
| CN116170536B (en) * | 2021-11-24 | 2025-02-14 | 腾讯科技(深圳)有限公司 | Call method, device, equipment, storage medium, and computer program product |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101873340A (en) * | 2010-05-07 | 2010-10-27 | 上海洪剑智能科技有限公司 | Face recognition network system based on wireless and wired communication technologies and recognition method thereof |
| CN108012189A (en) * | 2017-04-13 | 2018-05-08 | 广州欢网科技有限责任公司 | A kind of direct broadcast band recognition methods of smart television and system |
| CN108230528A (en) * | 2018-03-28 | 2018-06-29 | 郑州安元开泰电子商务有限公司 | Fingerprint recognition intelligent queuing device based on cloud computing, system, method |
| CN109242494A (en) * | 2018-09-04 | 2019-01-18 | 刘兴丹 | A kind of method, apparatus of cloud verifying brush face payment |
| CN110245622A (en) * | 2019-06-18 | 2019-09-17 | 青岛中科福田科技有限公司 | A kind of face identification method, device and equipment |
| CN110766413A (en) * | 2019-09-05 | 2020-02-07 | 上海埃瓦电子科技有限公司 | Face-brushing payment system |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9864982B2 (en) * | 2014-10-31 | 2018-01-09 | The Toronto-Dominion Bank | Image recognition-based payment requests |
| CN108780477B (en) * | 2016-03-01 | 2022-10-21 | 谷歌有限责任公司 | Facial profile modification for hands-free transactions |
| CN108304827A (en) * | 2016-04-01 | 2018-07-20 | 张海东 | Automate facial-recognition security systems |
| US11568411B2 (en) * | 2018-05-03 | 2023-01-31 | Huawei Technologies Co., Ltd. | Facial recognition-based payment method, apparatus, and terminal |
| CN109377234A (en) * | 2018-09-20 | 2019-02-22 | 阿里巴巴集团控股有限公司 | A face-scanning payment method and device |
| CN109461003B (en) * | 2018-11-30 | 2021-06-22 | 创新先进技术有限公司 | Method and equipment for risk prevention and control of face-swiping payment in multi-face scenarios based on multi-view |
| CN116051115A (en) * | 2019-04-15 | 2023-05-02 | 创新先进技术有限公司 | A payment prompt method, device and equipment by face swiping |
| CN110298667A (en) * | 2019-06-25 | 2019-10-01 | 北京百度网讯科技有限公司 | Payment processing method, device and storage medium based on recognition of face |
| CN110458569A (en) * | 2019-07-01 | 2019-11-15 | 阿里巴巴集团控股有限公司 | A kind of brush face method of payment and device |
| CN111091388B (en) * | 2020-02-18 | 2024-02-09 | 支付宝实验室(新加坡)有限公司 | Living body detection method and device, face payment method and device and electronic equipment |
-
2020
- 2020-05-22 CN CN202010440539.4A patent/CN111340471B/en active Active
- 2020-05-22 CN CN202010941339.7A patent/CN112150159B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101873340A (en) * | 2010-05-07 | 2010-10-27 | 上海洪剑智能科技有限公司 | Face recognition network system based on wireless and wired communication technologies and recognition method thereof |
| CN108012189A (en) * | 2017-04-13 | 2018-05-08 | 广州欢网科技有限责任公司 | A kind of direct broadcast band recognition methods of smart television and system |
| CN108230528A (en) * | 2018-03-28 | 2018-06-29 | 郑州安元开泰电子商务有限公司 | Fingerprint recognition intelligent queuing device based on cloud computing, system, method |
| CN109242494A (en) * | 2018-09-04 | 2019-01-18 | 刘兴丹 | A kind of method, apparatus of cloud verifying brush face payment |
| CN110245622A (en) * | 2019-06-18 | 2019-09-17 | 青岛中科福田科技有限公司 | A kind of face identification method, device and equipment |
| CN110766413A (en) * | 2019-09-05 | 2020-02-07 | 上海埃瓦电子科技有限公司 | Face-brushing payment system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112150159A (en) | 2020-12-29 |
| CN112150159B (en) | 2022-06-24 |
| CN111340471A (en) | 2020-06-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111340471B (en) | Payment method, device and equipment based on face recognition | |
| TWI772794B (en) | Payment system, method, server apparatus, medium and device | |
| CN114677131B (en) | Payment method, device and equipment | |
| CN111260344B (en) | Signing method, device and equipment | |
| CN107665427A (en) | A kind of offline electronic payment, business processing, the method and device of payment processes | |
| WO2018099319A1 (en) | Information presentation method and apparatus | |
| CN111784345A (en) | Payment processing method, apparatus, apparatus and system | |
| CN113435880B (en) | Payment page sending method, device, equipment and medium based on aggregation code | |
| CN107369020A (en) | A kind of method of payment, apparatus and system | |
| CN114661775B (en) | Electronic coupon issuing method, device and equipment | |
| CN113240428B (en) | Payment processing methods and devices | |
| CN113408254A (en) | Page form information filling method, device, equipment and readable medium | |
| TW201947485A (en) | DOI-based payment method, apparatus and device | |
| CN115965365A (en) | Payment interaction processing method and device | |
| CN114819012B (en) | A graphic code verification method and device | |
| CN116596529A (en) | Transaction processing method and device | |
| CN112837053B (en) | Payment processing method and device | |
| CN116091252A (en) | Medical fee payment method and device | |
| CN113793446B (en) | Data processing method, device, medium and apparatus | |
| US11250392B2 (en) | Data processing methods, apparatuses, and terminal devices | |
| HK40030946B (en) | Payment method, device and equipment apparatus based on faciale recognition | |
| HK40030946A (en) | Payment method, device and equipment apparatus based on faciale recognition | |
| TWI732139B (en) | Digital object unique identification code (DOI) display and transaction information verification method, device and equipment | |
| CN113409040B (en) | A method, device, equipment and medium for sending information | |
| CN115689555A (en) | Order payment system, method and device, storage medium and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40030946 Country of ref document: HK |
|
| CP03 | Change of name, title or address |
Address after: 310000 Zhejiang Province, Hangzhou City, Xihu District, Xixi Road 543-569 (continuous odd numbers) Building 1, Building 2, 5th Floor, Room 518 Patentee after: Alipay (Hangzhou) Digital Service Technology Co.,Ltd. Country or region after: China Address before: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province Patentee before: Alipay (Hangzhou) Information Technology Co., Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address |