Payment method and device based on biological characteristics, equipment, medium and program product
By generating guidance information and utilizing short-range communication signals and directional information, the problem of difficulty in reaching the payment point for visually impaired individuals is solved, thus improving the payment experience and convenience.
Patent Information
- Application Number
- CN202411279494.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2026-03-13
AI Technical Summary
Visually impaired individuals face significant challenges when making biometric payments, as they need to be near the merchant's terminal, resulting in a poor payment experience.
Guidance information is generated by using the short-range communication signal strength and direction information between the first and second terminals to guide visually impaired individuals to approach the terminal for payment.
It improves the payment experience for visually impaired individuals, simplifies the payment process, and enhances the convenience and security of payments.
Smart Images

Figure CN121660685A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mobile payment technology, and in particular to a payment method, device, equipment, medium and program product based on biometrics. Background Technology
[0002] With the continuous development of internet technology, biometric payment methods have been increasingly widely used, such as palm payment and facial recognition payment, thus making life more convenient for people.
[0003] For visually impaired individuals, if biometric payment is required, they first need to be near the merchant's terminal. However, this presents a significant challenge for visually impaired individuals, resulting in a poor payment experience. Summary of the Invention
[0004] This application provides a payment method, device, equipment, medium, and program product based on biometrics, which can improve the payment experience for visually impaired individuals.
[0005] In a first aspect, embodiments of this application provide a biometric-based payment method. This method is applied to a first terminal, and a short-range communication connection is established between the first terminal and a second terminal. The method includes: determining that the target object corresponding to the second terminal is a visually impaired object; if the target object does not reach the payment range of the first terminal, generating first guidance information based on the strength of the short-range communication signal between the first and second terminals and the directional information of the second terminal; wherein the first guidance information is used to guide the target object closer to the first terminal; pushing the first guidance information; if the target object reaches the payment range of the first terminal, collecting a biometric image of the target object and making payment based on the biometric image of the target object.
[0006] Secondly, embodiments of this application provide a biometric-based payment device. This biometric-based payment device establishes a short-range communication connection with a second terminal. The biometric-based payment device includes: a determination module, a generation module, a push module, a collection module, and a payment module. The determination module determines that the target object corresponding to the second terminal is a visually impaired object. The generation module generates first guidance information based on the strength of the short-range communication signal between the biometric-based payment device and the second terminal, and the directional information of the second terminal, if the target object has not reached the payment range of the biometric-based payment device. The first guidance information guides the target object closer to the biometric-based payment device. The push module pushes the first guidance information. The collection module and the payment module collect biometric images of the target object if the target object reaches the payment range of the biometric-based payment device, and perform payment based on the biometric images of the target object.
[0007] In some implementations, the generation module is specifically used to: determine the distance between the biometric payment device and the second terminal based on the strength of the short-range communication signal between the biometric payment device and the second terminal; and generate first guidance information based on the distance between the biometric payment device and the second terminal and the orientation information of the second terminal.
[0008] In some implementations, the biometric payment device further includes a detection module for detecting whether a target object has entered the payment range of the biometric payment device based on the strength of the short-range communication signal between the biometric payment device and the second terminal.
[0009] In some implementations, the detection module is specifically used to: determine that the target object has reached the payment range of the biometric payment device if the strength of the short-range communication signal between the biometric payment device and the second terminal reaches a preset strength.
[0010] In some implementations, the detection module is specifically used to: determine that the target object has not reached the payment range of the biometric payment device if the strength of the short-range communication signal between the biometric payment device and the second terminal does not reach a preset strength.
[0011] In some implementations, the detection module is specifically used to: detect whether the target object has reached the payment range of the biometric payment device based on the strength of the short-range communication signal between the biometric payment device and the second terminal and the duration of the strength of the short-range communication signal between the biometric payment device and the second terminal.
[0012] In some implementations, the detection module is specifically used to: determine that the target object has reached the payment range of the biometric payment device if the strength of the short-range communication signal between the biometric payment device and the second terminal reaches a preset strength and the duration is longer than a preset duration.
[0013] In some implementations, the detection module is specifically used to: determine that the target object has not reached the payment range of the biometric payment device if the strength of the short-range communication signal between the biometric payment device and the second terminal does not reach a preset strength, or if the duration is less than or equal to a preset duration.
[0014] In some implementations, the detection module is specifically used to: detect whether the target object has reached the payment range of the biometric payment device based on the strength of the short-range communication signal between the biometric payment device and the second terminal, the duration of the strength of the short-range communication signal between the biometric payment device and the second terminal, and the surrounding environmental voice information of the biometric payment device.
[0015] In some implementation methods, the detection module is specifically used to: determine that the target object has reached the payment range of the biometric payment device if the strength of the short-range communication signal between the biometric payment device and the second terminal reaches a preset strength and the duration is greater than a preset duration, and the ambient voice volume around the biometric payment device is greater than a preset volume.
[0016] In some implementations, the detection module is specifically used to: determine that the target object has not reached the payment range of the biometric payment device if the strength of the short-range communication signal between the biometric payment device and the second terminal does not reach a preset strength, or the duration is less than or equal to a preset duration, or the ambient voice volume around the biometric payment device is less than a preset volume.
[0017] In some implementations, the detection module is specifically used to: determine the distance between the biometric payment device and the second terminal based on the strength of the short-range communication signal between the biometric payment device and the second terminal; and detect whether the target object has reached the payment range of the biometric payment device based on the distance between the biometric payment device and the second terminal.
[0018] In some implementations, the detection module is specifically used to: determine the payment range of the biometric payment device if the distance between the biometric payment device and the second terminal is less than a preset distance.
[0019] In some implementations, the detection module is specifically used to: determine that the target object has not reached the payment range of the biometric payment device if the distance between the biometric payment device and the second terminal is greater than or equal to a preset distance.
[0020] In some implementations, the biometric payment device further includes an execution module for performing at least one of the following while acquiring a biometric image of the target object: turning off the screen of the biometric payment device; increasing the volume of the biometric payment device.
[0021] In some implementations, the generation module is further configured to: after the target object completes the payment, generate second guidance information based on the strength of the short-range communication signal between the biometric payment device and the second terminal and the directional information of the second terminal; wherein the second guidance information is used to guide the target object away from the biometric payment device; the push module is further configured to push the second guidance information.
[0022] In some implementations, the generation module is specifically used to: determine the distance between the biometric payment device and the second terminal based on the strength of the short-range communication signal between the biometric payment device and the second terminal; and generate second guidance information based on the distance between the biometric payment device and the second terminal and the orientation information of the second terminal.
[0023] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to perform the methods as described in the first to second aspects or their respective implementations.
[0024] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program that causes a computer to perform the methods described in the first to second aspects or their respective implementations.
[0025] Fifthly, embodiments of this application provide a computer program product including computer program instructions that cause a computer to perform the methods as described in the first to second aspects or their respective implementations.
[0026] Sixthly, embodiments of this application provide a computer program that causes a computer to perform the methods described in the first to second aspects or their respective implementations.
[0027] The technical solution provided in this application generates first guidance information to guide a visually impaired person to approach the first terminal by using the strength of the short-range communication signal between the first terminal and the second terminal and the directional information of the second terminal, so as to guide the visually impaired person to make a payment, thereby improving the payment experience of the visually impaired person. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 This is a schematic diagram of a system architecture according to an embodiment of this application;
[0030] Figure 2 An interactive flowchart of a biometric-based payment method provided for embodiments of this application;
[0031] Figure 3 An interactive flowchart of another biometric-based payment method provided in this application embodiment;
[0032] Figure 4 A schematic diagram of a biometric-based payment device 400 provided for an embodiment of this application;
[0033] Figure 5 This is a schematic block diagram of the electronic device 500 provided in the embodiments of this application. Detailed Implementation
[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0036] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0037] The embodiments of this application may involve mobile payment technology, but are not limited thereto.
[0038] Mobile payment refers to the use of mobile devices such as smartphones to make electronic payments. It effectively connects the internet, terminal devices, and financial institutions, forming a new payment system. Mobile payment has pioneered a new payment method, leading to the widespread adoption of electronic currency.
[0039] Biometric mobile payment technology is an advanced payment method that combines biotechnology and information technology. It completes the payment process by identifying the unique biometric characteristics of the recipient. This technology digitizes inherent physiological or behavioral characteristics of the human body, such as palm prints, veins, faces, fingerprints, and irises, using computer technology, optics, acoustics, and biosensors, and uses this digitized information as the basis for identity authentication.
[0040] Palm payment is a biometric payment method that primarily utilizes palmprint recognition technology. Palmprint recognition technology scans the texture features of the palm, extracts unique palmprint characteristics, and compares them with pre-stored palmprint features to verify the recipient's identity and complete the payment. The advantages of palm payment technology lie in its high security and accuracy. Each person's palmprint is unique, making it difficult to copy or forge, greatly enhancing payment security. Simultaneously, palmprint recognition technology boasts high accuracy, accurately identifying the recipient and reducing the risk of misjudgments and incorrect payments. Furthermore, palm payment technology is convenient. The recipient does not need to carry any physical cards or mobile phones; simply placing their palm on the payment terminal completes the payment, greatly simplifying the process and improving efficiency.
[0041] Palm payment technology can also use palmprint and palm vein recognition technology, which can adapt to complex lighting environments, improve payment efficiency, and simplify object handling.
[0042] Facial recognition payment technology captures an image of the person's face using the camera of the facial recognition terminal and sends it to the backend server of the facial recognition payment application (APP). The backend server extracts features from the facial image to obtain the person's facial features and compares these features with the facial features registered by the person with a bank or other financial institution. Once the identity of the person is confirmed, the payment is completed.
[0043] Fingerprint payment technology is based on fingerprint recognition technology, using an individual's fingerprint information for identity verification and payment authorization. The individual needs to register on a device that supports fingerprint payment, recording their fingerprint information into the system. The system processes and analyzes the individual's fingerprint image, extracting its unique fingerprint features and converting them into a specific mathematical model. When the individual makes a payment, the system requires them to verify their identity through the fingerprint recognition device. The individual simply places their finger in the fingerprint recognition area, and the system reads and compares the fingerprint information with the previously registered information. If the verification is successful, payment is authorized and the transaction is completed.
[0044] Iris recognition payment technology is based on iris identification, which uses the acquisition and analysis of an individual's iris image for identity verification. The iris is the ring-shaped portion of the eye located between the black pupil and the white sclera. Its complex fibrous structure and unique detailed features (such as spots, filaments, and stripes) make it highly unique and stable across individuals. Iris recognition systems use camera-like technology to photograph the iris and employ sophisticated encoding algorithms to create a digital template, forming a unique value that matches only the individual. During the payment process, the system requires the individual to undergo an iris scan, comparing it against the pre-registered digital template to verify their identity and complete the payment.
[0045] The technical problems to be solved, the inventive concept and the system architecture of the embodiments of this application will be described below:
[0046] As mentioned above, for visually impaired individuals to make payments based on biometrics, they first need to be near the merchant's terminal. However, this presents a significant challenge for visually impaired individuals, resulting in a poor payment experience.
[0047] To address the aforementioned technical issues, this application proposes generating guidance information to guide visually impaired individuals to approach the first terminal by utilizing the strength of short-range communication signals between the merchant-side terminal and the object-side terminal, as well as the directional information of the object-side terminal. This information guides the visually impaired individual to make a payment, thereby improving their payment experience.
[0048] In some possible implementations, the system architecture of embodiments of this application is as follows: Figure 1 As shown.
[0049] Figure 1 This is a schematic diagram of a system architecture according to an embodiment of this application, including a first terminal 110, a second terminal 120, and a backend server 130. The first terminal 110 and the second terminal 120 can establish a short-range communication connection. The first terminal 110 and the second terminal 120 can be directly or indirectly connected to the backend server 130 via wired or wireless communication methods, which is not limited herein.
[0050] It should be understood that the short-range communication connection refers to a connection using a short-range communication method, which can be Bluetooth, ZigBee, Near Field Communication (NFC), Infrared Data Association (IrDA), Wireless Fidelity (WiFi), Ultra Wideband (UWB), and other communication methods.
[0051] It should be understood that, since the first terminal 110 is located on the merchant side, it is also referred to as a merchant-side device or merchant-side terminal. Because it is used for biometric-based payments, it is also referred to as a biometric-based payment device or biometric-based payment terminal. Since the first terminal needs to collect the biometric image of the person making a payment through it, the first terminal is also referred to as a biometric image acquisition device or biometric image acquisition terminal.
[0052] It should be understood that if the first terminal 110 is used to implement palm payment, then the first terminal 110 is also referred to as a palm payment device, palm payment terminal, palm payment device, palm payment terminal, etc. If the first terminal 110 is used to implement facial recognition payment, then the first terminal 110 is also referred to as a facial recognition device, facial recognition terminal, facial payment device, facial payment terminal, etc. If the first terminal 110 is used to implement fingerprint payment, then the first terminal 110 is also referred to as a fingerprint payment device, fingerprint terminal, fingerprint payment device, fingerprint payment terminal, etc. If the first terminal 110 is used to implement iris recognition payment, then the first terminal 110 is also referred to as an iris recognition device, iris recognition terminal, iris payment device, iris payment terminal, etc.
[0053] In summary, the name of the first terminal 110 is not limited in the embodiments of this application.
[0054] In some possible implementations, the first terminal 110 may be a point-of-sale (POS) terminal, cash register, self-checkout system, barcode (payment code) box, smartphone, tablet computer, portable wearable device, etc., but is not limited to these.
[0055] In some possible implementations, portable wearable devices can be smartwatches, smart bracelets, headbands, etc., but are not limited to these.
[0056] In some possible implementations, the head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, or other similar devices, but is not limited to these.
[0057] In some implementations, a camera may be installed on the first terminal 110 to capture biometric images of the subject.
[0058] In some implementations, the first terminal 110 can acquire biometric images of the object via an external camera. This external camera can be a standalone camera or a camera on another device besides the first terminal; this application embodiment does not impose any limitations on this.
[0059] In some possible implementations, in the embodiments of this application, the camera may be a 3D camera or a conventional camera.
[0060] It should be understood that 3D cameras can include, but are not limited to, depth cameras and infrared cameras. A depth camera is a camera capable of acquiring depth information of an object. It obtains the object's three-dimensional coordinates by measuring the distance from the object to the camera, i.e., depth, thus acquiring the object's three-dimensional shape and size information. An infrared camera is a special type of camera capable of capturing infrared spectrum images that are invisible to the human eye. The infrared spectrum refers to electromagnetic waves with wavelengths between 700 nanometers and 1 millimeter, located between visible light and microwaves. Infrared cameras, through special lenses and photosensitive elements, can capture this portion of electromagnetic waves emitted or reflected by objects, thereby forming images invisible to the naked eye.
[0061] It should be understood that traditional cameras refer to cameras other than 3D cameras, and are therefore also called non-3D cameras.
[0062] In some implementations, a payment application can be installed on the first terminal 110, which can call the camera to collect the biometric features of the object, thereby realizing payment.
[0063] In some possible implementations, the payment application can be an instant messaging client with payment functionality, or it can be other payment applications; this application embodiment does not limit this.
[0064] It should be understood that instant messaging clients are communication tools based on internet technology, allowing users to communicate in real time via text, voice, video, and other means. Common instant messaging clients include WeChat, QQ, and WeChat Work, but are not limited to these. These communication tools typically offer features such as instant messaging, voice calls, video calls, and file transfer, enabling users to communicate and collaborate conveniently.
[0065] In some implementations, the first terminal 110 is often equipped with a display device, which is also called a monitor, display screen, touch screen, etc. The touch screen is also called a touch screen, touch panel, etc.
[0066] It should be understood that since the second terminal 120 is located on the object side, it is also referred to as an object-side device or an object-side terminal. The name of the second terminal 120 is not limited in this application embodiment.
[0067] In some possible implementations, the second terminal 120 may be a smartphone, tablet, portable wearable device, etc., but is not limited to these.
[0068] In some implementations, a payment application can be installed on the second terminal 120, through which the object can register and confirm the identity of the visually impaired object, etc.
[0069] In some possible implementations, the payment application can be an instant messaging client with payment functionality, or it can be other payment applications; this application embodiment does not limit this.
[0070] In some implementations, the second terminal 120 is often equipped with a display device, which is also referred to as a monitor, display screen, touch screen, etc., and the touch screen is also referred to as a touch screen, touch panel, etc.
[0071] In some implementations, the backend server 130 can be the backend server corresponding to the payment application. The backend server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0072] Wherein, if the first terminal 110 determines that the target object corresponding to the second terminal 120 is a visually impaired object, and if the target object does not reach the payment range of the first terminal 110, the first terminal 110 generates first guidance information based on the strength of the short-range communication signal between the first terminal 110 and the second terminal 120 and the directional information of the second terminal 120; wherein, the first guidance information is used to guide the target object to approach the first terminal 110; the first terminal 110 pushes the first guidance information; if the target object reaches the payment range of the first terminal 110, the first terminal 110 collects the biometric image of the target object and makes payment based on the biometric image of the target object.
[0073] It should be noted that, Figure 1 This is merely a schematic diagram of a system architecture provided in this application embodiment; the system architecture involved in this application embodiment is not limited to... Figure 1 The system architecture shown, for example, in some possible implementations, is... Figure 1 Based on the system architecture shown, the system architecture involved in this application embodiment may further include: other terminals, which can be connected to the backend server 130 to realize mobile payment.
[0074] Before introducing the embodiments of this application, it should be noted that the information involved in the embodiments of this application includes: information interacting between the first terminal and the second terminal, information interacting between the first terminal, the second terminal and the backend server, and information before and after processing by the first terminal, the second terminal and the backend server. For example, biometric images and biometric features are all authorized by the relevant parties or fully authorized by all parties, and the collection, use and processing of relevant information comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0075] The embodiments of this application will be described in detail below:
[0076] Figure 2 This application provides an interactive flowchart of a biometric-based payment method. The execution entities involved in this method include a first terminal and a second terminal, wherein the first terminal may be... Figure 1 The first terminal 110 shown, the second terminal can be Figure 1 The second terminal 120 is shown. A short-range communication connection is established between the first terminal and the second terminal, such as... Figure 2 As shown, the method may include:
[0077] S210: The first terminal determines that the target object corresponding to the second terminal is a visually impaired object;
[0078] In some possible implementations, before establishing a short-range communication connection, the first terminal and the second terminal can establish a short-range communication pairing so that they can automatically establish a short-range communication connection with each other when both the first terminal and the second terminal have their short-range communication modes enabled.
[0079] The following explanation uses Bluetooth, a short-range communication method, as an example to illustrate the Bluetooth pairing process:
[0080] Once both the first and second terminals have Bluetooth enabled, the second terminal will automatically search for nearby Bluetooth devices. It can display all available Bluetooth devices, allowing the user to select a device to pair with by clicking its corresponding icon. Further, if the device does not support automatic pairing, the user can enter a pairing code or confirm the connection request as prompted by the second terminal. This pairing code is usually found in the device's manual or on the device itself and may default to simple numbers such as "0000" or "1234". If the device supports automatic pairing, no manual pairing code is required. Clicking the "Pair" or "Connect" button indicates that Bluetooth pairing between the first and second terminals is complete.
[0081] In some implementations, when the first terminal and the second terminal are paired via Bluetooth, a Secure Simple Pairing (SSP) method or mechanism can be used to prevent attacks on the Bluetooth pairing process.
[0082] It should be understood that SSP is a secure pairing method based on public-key cryptography, used for authentication and key negotiation between Bluetooth devices. The SSP process includes providing various flexible pairing models to adapt to the input / output capabilities of different devices, enabling objects to complete pairing more easily.
[0083] In some implementations, the pairing model can be any of the following pairing models, but is not limited to: Numeric Comparison model, Passkey Entry model, JustWorks model, and Out Of Band (OOB) model.
[0084] It should be understood that the numeric comparison model requires both parties to display a 6-digit number. The device checks if the number matches and confirms by entering Yes / No. If both parties confirm the match, the pairing is successful. This numeric comparison model is suitable for scenarios where both devices can display numbers and provide confirmation options, such as pairing between a mobile phone and an in-vehicle terminal.
[0085] It should be understood that the Passkey Entry model requires one paired device to have input capability but not the ability to display numbers, while the other device must be able to output and display numbers. The device with input capability needs to correctly input the 6-digit number displayed on the other device for pairing to succeed. This Passkey Entry model is suitable for scenarios where one device can only input, such as a Bluetooth keyboard, while the other device can display numbers, such as a mobile phone.
[0086] It should be understood that the Just Works model requires that at least one of the paired devices lacks the ability to display or input a 6-digit number. This model is similar to the Numeric Comparison model, but instead of displaying numbers, the application simply requests the device to accept the connection. The Just Works model is suitable for pairing devices that cannot display or input numbers, such as pairing a Bluetooth headset with another device.
[0087] It should be understood that the out-of-band (OOB) model requires two paired devices to exchange pairing information through other means, such as using NFC technology. However, this model is rarely used in practical applications.
[0088] It should be understood that, in order to improve the communication security between the first terminal and the second terminal, this application embodiment also proposes that after a short-range communication connection is established between the first terminal and the second terminal, identity authentication can be performed between the first terminal and the second terminal.
[0089] In some possible implementations, authentication between the first terminal and the second terminal can be based on Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols, but is not limited to these.
[0090] In some implementations, on the Android operating system, classes in the javax.net.ssl package can be used to implement an authentication process based on the SSL or TLS protocol.
[0091] In some implementations, the authentication process between the first terminal and the second terminal includes: the first terminal generating a key pair, including a public key and a private key, where the public key is public and only the first terminal holds the private key. Similarly, the second terminal can also generate a key pair, including a public key and a private key, where the public key is public and only the second terminal holds the private key. Further, the first terminal can send its generated public key to the second terminal, and the second terminal can also send its generated public key to the first terminal. Going even further, the first terminal can send a challenge to the second terminal, such as a random number or a timestamp. The second terminal signs the challenge using its own generated private key and sends the signed challenge to the first terminal. The first terminal uses the second terminal's public key to verify the validity of the signature. If the signature verification is successful, the first terminal can determine that the signed challenge originated from the second terminal, because only the second terminal possesses the corresponding private key to generate a valid signature. Similarly, the second terminal can send a challenge, such as a random number or a timestamp, to the first terminal. The first terminal signs the challenge using its own generated private key and sends the signed challenge to the second terminal. The second terminal uses the first terminal's public key to verify the validity of the signature. If the signature verification is successful, the second terminal can determine that the signed challenge came from the first terminal, because only the first terminal has the corresponding private key to generate a valid signature.
[0092] In some implementations, both the first and second terminals can use algorithms such as RSA encryption or digital signature algorithm (DSA) to generate key pairs.
[0093] In some possible implementations, the authentication process between the first terminal and the second terminal includes: the first terminal sending a digital certificate containing the first terminal's public key and signature to the second terminal; after receiving the first terminal's digital certificate, the second terminal verifies the validity period of the first terminal's digital certificate to ensure that the digital certificate has not expired, and verifies the first terminal's digital certificate chain, that is, tracing back from the first terminal's digital certificate to the trusted root digital certificate to ensure the integrity and trustworthiness of the digital certificate chain; and performs a blacklist check on the first terminal's digital certificate to ensure that the first terminal's digital certificate has not been revoked; finally, the public key of the root digital certificate is used to verify the signature of the first terminal's digital certificate to ensure the authenticity and integrity of the first terminal's digital certificate. Similarly, the second terminal sends a digital certificate containing its public key and signature to the first terminal. Upon receiving the second terminal's digital certificate, the first terminal verifies its validity period to ensure it hasn't expired. It also verifies the second terminal's digital certificate chain, tracing it from the second terminal's certificate all the way to the trusted root certificate to ensure its integrity and trustworthiness. Furthermore, it performs a blacklist check on the second terminal's digital certificate to ensure it hasn't been revoked. Finally, it uses the public key of the root certificate to verify the signature of the second terminal's digital certificate, ensuring its authenticity and integrity. Further, after both the first and second terminal's digital certificates have been verified, the first terminal can send a challenge to the second terminal, such as a random number or timestamp. The second terminal signs the challenge using its own generated private key and sends the signed challenge back to the first terminal. The first terminal uses the second terminal's public key to verify the signature's validity. If the signature verification is successful, the first terminal can confirm that the signed challenge originated from the second terminal, as only the second terminal possesses the corresponding private key to generate a valid signature. Similarly, the second terminal can send a challenge, such as a random number or a timestamp, to the first terminal. The first terminal signs the challenge using its own generated private key and sends the signed challenge to the second terminal. The second terminal uses the first terminal's public key to verify the validity of the signature. If the signature verification is successful, the second terminal can determine that the signed challenge came from the first terminal, because only the first terminal has the corresponding private key to generate a valid signature.
[0094] In some implementations, if authentication between the first terminal and the second terminal fails, either the first terminal or the second terminal can actively disconnect the short-range communication connection between them. If authentication between the first terminal and the second terminal succeeds, the first terminal and the second terminal can maintain the short-range communication connection between them.
[0095] In some possible implementations, after successful authentication between the first terminal and the second terminal, if the second terminal determines that the target object is a visually impaired object, the second terminal can maintain a short-range communication connection with each other; if the second terminal determines that the target object is not a visually impaired object, the second terminal can actively disconnect the short-range communication connection with each other.
[0096] In some possible implementations, while the short-range communication connection between the first terminal and the second terminal remains, the first terminal needs to determine whether the target object is a visually impaired object.
[0097] In some implementations, the first terminal can send a request message to the second terminal. This request message requests the identity information of a target object, including the object's identifier, such as its account on an instant messaging client or its mobile phone number. Further, if the second terminal locally stores the target object's identity information, it returns this information to the first terminal. This identity information includes indications of whether the target object is visually impaired, allowing the first terminal to determine if the target object is visually impaired. If the second terminal does not store the target object's identity information, it sends the request message to the backend server of the payment application, receives the target object's identity information from the backend server, and finally returns this information to the first terminal, enabling the first terminal to determine whether the target object is visually impaired based on this information.
[0098] S220: If the target object does not reach the payment range of the first terminal, the first terminal generates first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal; wherein, the first guidance information is used to guide the target object to approach the first terminal;
[0099] It should be understood that the payment range of the first terminal refers to the area within which an object can make a payment through the first terminal. For example, the payment range of the first terminal is a circular area with a radius of 50 centimeters centered on the location of the first terminal. Another example is a sector-shaped area with a radius of 30 centimeters centered on the location of the first terminal, where the two sides of this sector form angles of ±45 degrees with the x-axis, which extends horizontally to the left from the location of the first terminal as its origin.
[0100] In some implementations, the biometric-based payment method further includes: the first terminal detecting whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal.
[0101] In some implementations, the first terminal can detect in real time whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal.
[0102] In some implementations, the first terminal can periodically detect whether a target object has entered the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal. For example, the first terminal can detect whether a target object has entered the payment range of the first terminal every 10 milliseconds based on the strength of the short-range communication signal between the first terminal and the second terminal.
[0103] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, including: if the strength of the short-range communication signal between the first terminal and the second terminal reaches a preset strength, then it is determined that the target object has reached the payment range of the first terminal.
[0104] In some possible implementations, the strength of the short-range communication signal between the first terminal and the second terminal can be measured by the Received Signal Strength Indication (RSSI), but is not limited to this.
[0105] In some implementations, the preset intensity can be -50dBm, -60dBm, or -70dBm, but is not limited to these.
[0106] For example, if the preset intensity is -70dBm and the RSSI value between the first terminal and the second terminal is -60dBm, since -60dBm > -70dBm, the payment range of the target object reaching the first terminal is determined.
[0107] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, including: if the strength of the short-range communication signal between the first terminal and the second terminal does not reach a preset strength, the first terminal determines that the target object has not reached the payment range of the first terminal.
[0108] For example, if the preset intensity is -70dBm and the RSSI value between the first terminal and the second terminal is -80dBm, since -80dBm < -70dBm, it is determined that the target object has not reached the payment range of the first terminal.
[0109] It should be understood that there are usually voices and conversations near the first terminal. Based on this, this application proposes that the first terminal can detect the surrounding environmental voice information and use this information as auxiliary information to detect whether the target object has reached the payment range of the first terminal, thereby improving the detection accuracy of whether the target object has reached the payment range of the first terminal.
[0110] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, including: the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the surrounding environmental voice information of the first terminal.
[0111] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the surrounding environmental voice information of the first terminal. This includes: if the strength of the short-range communication signal between the first terminal and the second terminal reaches a preset strength, and the volume of the surrounding environmental voice of the first terminal is greater than a preset volume, then the first terminal determines that the target object has reached the payment range of the first terminal.
[0112] It should be understood that the explanation of the preset intensity can be found above, and will not be repeated in the embodiments of this application.
[0113] In some possible implementations, the preset volume value can be 5 decibels, 10 decibels, etc., but it is not limited to this.
[0114] For example, if the preset intensity is -70dBm, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -60dBm, and the ambient voice volume of the first terminal is 8dB, since -60dBm > -70dBm, and the ambient voice volume of the first terminal is 8dB greater than the preset volume of 5dB, it is determined that the target object has reached the payment range of the first terminal.
[0115] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the surrounding environmental voice information of the first terminal. This includes: if the strength of the short-range communication signal between the first terminal and the second terminal does not reach a preset strength, or if the volume of the surrounding environmental voice of the first terminal is less than or equal to a preset volume, then the first terminal determines that the target object has not reached the payment range of the first terminal.
[0116] For example, if the preset intensity is -70dBm, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -80dBm, and the ambient voice volume of the first terminal is 8dB, although the ambient voice volume of the first terminal is 8dB, which is greater than the preset volume of 5dB, -80dBm < -70dBm. Therefore, the first terminal determines that the target object has not reached the payment range of the first terminal.
[0117] For example, if the preset intensity is -70dBm, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -60dBm, and the ambient voice volume of the first terminal is 4dB, although -60dBm > -70dBm, the first terminal determines that the target object has not reached the payment range of the first terminal because the ambient voice volume of the first terminal is 4dB less than the preset volume of 5dB.
[0118] For example, if the preset intensity is -70dBm, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -80dBm, and the ambient voice volume of the first terminal is 4dB, since -80dBm < -70dBm, and the ambient voice volume of the first terminal is 4dB less than the preset volume of 5dB, the first terminal determines that the target object has not reached the payment range of the first terminal.
[0119] It should be understood that in the above-described implementation, the strength of the short-range communication signal between the first terminal and the second terminal can be an instantaneous signal strength. In order to further improve the detection accuracy of whether the target object has reached the payment range of the first terminal, this application embodiment proposes that the strength of the short-range communication signal between the first terminal and the second terminal and the duration of the strength can be used to detect whether the target object has reached the payment range of the first terminal.
[0120] In some implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, including: the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the duration of the strength of the short-range communication signal between the first terminal and the second terminal.
[0121] In some possible implementations, the duration can be 2 seconds, 3 seconds, etc., and this application embodiment does not limit this.
[0122] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the duration of the short-range communication signal between the first terminal and the second terminal. This includes: if the strength of the short-range communication signal between the first terminal and the second terminal reaches a preset strength and the duration is greater than a preset duration, then the first terminal determines that the target object has reached the payment range of the first terminal.
[0123] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, and the RSSI value between the first terminal and the second terminal is -60dBm, and the duration of -60dBm is 5 seconds, since -60dBm > -70dBm and the duration of -60dBm is greater than 2 seconds, the payment range of the target object reaching the first terminal is determined.
[0124] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the duration of the short-range communication signal strength between the first terminal and the second terminal. This includes: if the strength of the short-range communication signal between the first terminal and the second terminal does not reach a preset strength, or the duration is less than or equal to a preset duration, then the first terminal determines that the target object has not reached the payment range of the first terminal.
[0125] For example, if the preset intensity is -70dBm and the RSSI value between the first terminal and the second terminal is -80dBm, since -80dBm < -70dBm, it is determined that the target object has not reached the payment range of the first terminal.
[0126] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, and the RSSI value between the first terminal and the second terminal is -60dBm, and the duration of -60dBm is only 1 second, although -60dBm > -70dBm, since the duration of -60dBm is only 1 second, it is determined that the target object has not reached the payment range of the first terminal.
[0127] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, and the RSSI value between the first terminal and the second terminal is -80dBm, and the duration of -80dBm is only 1 second, since -80dBm < -70dBm and the duration of -80dBm is only 1 second, it is determined that the target object has not reached the payment range of the first terminal.
[0128] It should be understood that there are usually voices and conversations near the first terminal. Based on this, the embodiments of this application propose that the first terminal can detect the surrounding environmental voice information and use this information as auxiliary information to detect whether the target object has reached the payment range of the first terminal, thereby further improving the detection accuracy of whether the target object has reached the payment range of the first terminal.
[0129] In some implementations, the first terminal detects whether a target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the duration of the short-range communication signal strength between the first terminal and the second terminal. This includes: the first terminal detects whether a target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the short-range communication signal strength between the first terminal and the second terminal, and the surrounding environmental voice information of the first terminal.
[0130] In some possible implementations, the first terminal detects whether a target object has entered the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the short-range communication signal between the first terminal and the second terminal, and the ambient voice information of the first terminal. This includes: if the strength of the short-range communication signal between the first terminal and the second terminal reaches a preset strength and the duration is greater than a preset duration, and the ambient voice volume of the first terminal is greater than a preset volume, then the first terminal determines that the target object has entered the payment range of the first terminal.
[0131] It should be understood that the explanations regarding preset intensity, preset duration, and preset audio can be found above, and will not be repeated in the embodiments of this application.
[0132] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -60dBm, and the duration of -60dBm is 5 seconds, and the ambient voice volume around the first terminal is 8dB, since -60dBm > -70dBm, and the duration of -60dBm is greater than 2 seconds, and the ambient voice volume around the first terminal is 8dB greater than the preset volume of 5dB, it is determined that the target object has reached the payment range of the first terminal.
[0133] In some possible implementations, the first terminal detects whether a target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the short-range communication signal strength between the first terminal and the second terminal, and the ambient voice information of the first terminal. This includes: if the strength of the short-range communication signal between the first terminal and the second terminal does not reach a preset strength, or the duration is less than or equal to a preset duration, or the ambient voice volume of the first terminal is less than a preset volume, then the first terminal determines that the target object has not reached the payment range of the first terminal.
[0134] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -80dBm, the ambient voice volume of the first terminal is 8dB, and the duration of -80dBm is 5 seconds, although the ambient voice volume of the first terminal is 8dB, which is greater than the preset volume of 5dB, and the duration of -80dBm is greater than 2 seconds, the first terminal determines that the target object has not reached the payment range of the first terminal because -80dBm < -70dBm.
[0135] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -60dBm, and the duration of -60dBm is only 1 second, and the ambient voice volume of the first terminal is 8dB, although -60dBm > -70dBm, and the ambient voice volume of the first terminal is 8dB, which is greater than the preset volume of 5dB, the first terminal determines that the target object has not reached the payment range of the first terminal because the duration of -60dBm is only 1 second.
[0136] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -60dBm, and the duration of -60dBm is 5 seconds, and the ambient voice volume of the first terminal is 2dB, although -60dBm > -70dBm, and the duration of -60dBm is 5 seconds, which is greater than the preset duration of 2 seconds, the first terminal determines that the target object has not reached the payment range of the first terminal because the ambient voice volume of the first terminal is 2dB, which is less than the preset volume of 5dB.
[0137] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -80dBm, the ambient voice volume of the first terminal is 8dB, and the duration of -80dBm is only 1 second, although the ambient voice volume of the first terminal is 8dB, which is greater than the preset volume of 5dB, the first terminal determines that the target object has not reached the payment range of the first terminal because -80dBm < -70dBm and the duration of -80dBm is less than 2 seconds.
[0138] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -60dBm, and the duration of this -60dBm is only 1 second, and the ambient voice volume of the first terminal is 2dB, although -60dBm > -70dBm, because the duration of -60dBm is only 1 second, and the ambient voice volume of the first terminal is 2dB less than the preset volume of 5dB, the first terminal determines that the target object has not reached the payment range of the first terminal.
[0139] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -80dBm, and the duration of -80dBm is 5 seconds, and the ambient voice volume of the first terminal is 2dB, although the duration of -80dBm for 5 seconds is greater than 2 seconds, since -80dBm < -70dBm, and the ambient voice volume of the first terminal for 2dB is less than the preset volume of 5dB, the first terminal determines that the target object has not reached the payment range of the first terminal.
[0140] For example, if the preset intensity is -70dBm, the preset duration is 2 seconds, the preset volume is 5dB, and the RSSI value between the first terminal and the second terminal is -80dBm, and the duration of -80dBm is only 1 second, and the ambient voice volume of the first terminal is 2dB, since -80dBm < -70dBm, and the duration of -80dBm is less than 2 seconds, and the ambient voice volume of the first terminal is less than 2dB, the first terminal determines that the target object has not reached the payment range of the first terminal.
[0141] It should be understood that in the above-described implementation, the ambient voice volume of the first terminal can be an instantaneous volume. In order to further improve the detection accuracy of whether the target object has reached the payment range of the first terminal, this application embodiment proposes to detect whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the strength of the short-range communication signal between the first terminal and the second terminal, and the ambient voice information of the first terminal, and the duration of the volume of the ambient voice information.
[0142] In some possible implementations, the first terminal detects whether a target object has entered the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the strength of the short-range communication signal between the first terminal and the second terminal, and the ambient voice information of the first terminal, the duration of the volume of the ambient voice information. This includes: if the strength of the short-range communication signal between the first terminal and the second terminal reaches a preset strength and the duration is greater than a first preset duration, and the ambient voice volume of the first terminal is greater than a preset volume and the duration is greater than a second preset duration, then the first terminal determines that the target object has entered the payment range of the first terminal.
[0143] For example, if the preset intensity is -70dBm, the first preset duration is 2 seconds, the preset volume is 5dB, the second preset duration is 2 seconds, and the RSSI value between the first terminal and the second terminal is -60dBm, and the duration of this -60dBm is 5 seconds, and the ambient voice volume around the first terminal is 8dB, and the duration of this 8dB is 3 seconds, since -60dBm > -70dBm, and the duration of this -60dBm is greater than the first preset duration of 2 seconds, and the ambient voice volume around the first terminal is 8dB greater than the preset volume of 5dB, and the duration of this 8dB for 3 seconds is greater than the second preset duration of 2 seconds, then it is determined that the target object has reached the payment range of the first terminal.
[0144] In some possible implementations, the first terminal detects whether a target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the strength of the short-range communication signal between the first terminal and the second terminal, and the ambient voice information of the first terminal, the duration of the volume of the ambient voice information. This includes: if the strength of the short-range communication signal between the first terminal and the second terminal does not reach a preset strength, or the duration is less than or equal to a first preset duration, or the ambient voice volume of the first terminal is less than a preset volume, or the duration is less than or equal to a second preset duration, then the first terminal determines that the target object has not reached the payment range of the first terminal.
[0145] For example, if the preset intensity is -70dBm, the first preset duration is 2 seconds, the preset volume is 5dB, the second preset duration is 2 seconds, and the RSSI value between the first terminal and the second terminal is -80dBm, with a duration of -80dBm of 1 second, the ambient voice volume around the first terminal is 8dB, and the duration of -80dBm is 5 seconds, although the ambient voice volume of the first terminal (8dB) is greater than the preset volume (5dB) and the duration of -80dBm is greater than the second preset duration (2 seconds), since -80dBm < -70dBm and the duration of -80dBm (1 second) is less than the first preset duration (2 seconds), the first terminal determines that the target object has not reached the payment range of the first terminal.
[0146] For example, if the preset intensity is -70dBm, the first preset duration is 2 seconds, the preset volume is 5dB, the second preset duration is 2 seconds, and the RSSI value between the first terminal and the second terminal is -60dBm, and the duration of this -60dBm is only 1 second, the ambient voice volume of the first terminal is 8dB, and the duration of this 8dB is 3 seconds, although -60dBm > -70dBm, and the ambient voice volume of the first terminal is 8dB, which is greater than the preset volume of 5dB, and the duration of this 8dB for 3 seconds is greater than the second preset duration of 2 seconds, the first terminal determines that the target object has not reached the payment range of the first terminal because the duration of this -60dBm is only 1 second.
[0147] In some possible implementations, the first terminal detects whether a target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, including: the first terminal determines the distance between the first terminal and the second terminal based on the strength of the short-range communication signal between the first terminal and the second terminal; and detects whether the target object has reached the payment range of the first terminal based on the distance between the first terminal and the second terminal.
[0148] In some implementations, there is a mapping relationship between the strength of the short-range communication signal between the first terminal and the second terminal, and the distance between the first terminal and the second terminal. Based on this, the first terminal can determine the distance between the first terminal and the second terminal based on this mapping relationship and the strength of the short-range communication signal between the first terminal and the second terminal.
[0149] For example, Table 1 exemplarily illustrates the mapping relationship between the Bluetooth signal strength between the first terminal and the second terminal, and the distance between the first terminal and the second terminal:
[0150] Table 1
[0151]
[0152]
[0153] Assuming the current Bluetooth signal strength between the first terminal and the second terminal is -50dBm, based on the mapping relationship shown in Table 1, the first terminal can determine that the distance between the first terminal and the second terminal is less than or equal to 30 centimeters.
[0154] In some possible implementations, the first terminal determines the distance between the first terminal and the second terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, including: the first terminal can input the strength of the short-range communication signal between the first terminal and the second terminal into a first neural network model to obtain the distance between the first terminal and the second terminal.
[0155] In some implementations, the first neural network model can be trained using training samples. Each training sample may include the strength of a short-range communication signal between two devices and the actual distance between the two devices, where the actual distance can serve as a sample label. The training device can employ supervised training; for example, it can input the strength of the short-range communication signal between the two devices into the first neural network model and output the predicted distance between the two devices. Further, the training device can calculate a loss based on the actual and predicted distances included in all training samples, and adjust the parameters of the first neural network model based on this loss until the training iterations reach a preset number or the loss reaches a minimum, at which point training stops.
[0156] In some implementations, the training device may use any of the following loss functions when training the first neural network model, but is not limited to: L1 loss function, mean squared error (MSE) loss function, cross-entropy loss function, etc.
[0157] In some possible implementations, the first terminal determines the distance between the first terminal and the second terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, including: the first terminal calculates the ratio of the strength of the short-range communication signal to a preset threshold to obtain a first ratio; if the first ratio is less than 1, the distance between the first terminal and the second terminal is calculated using a power function; if the first ratio is greater than 1, the distance between the first terminal and the second terminal is calculated using a formula that includes power operations and linear terms.
[0158] For example, the following code snippet illustrates how the distance between the first terminal and the second terminal is calculated:
[0159]
[0160] It should be understood that Math.Pow(ratio, x) is an expression used in many programming languages, especially in languages like Python, to calculate ratio to the power of x. For example, Math.pow(ratio, 10) calculates ratio to the power of 10, and Math.Pow(ratio, 7.7095) calculates ratio to the power of 7.7095.
[0161] It should be understood that the embodiments of this application do not limit how the first terminal determines the distance between the first terminal and the second terminal based on the strength of the short-range communication signal between the first terminal and the second terminal.
[0162] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the distance between the first terminal and the second terminal, including: if the distance between the first terminal and the second terminal is less than a preset distance, the first terminal determines that the target object has reached the payment range of the first terminal.
[0163] In some possible implementations, the preset distance can be 30 cm, 20 cm, 10 cm, etc., and the embodiments of this application do not limit this.
[0164] For example, suppose the preset distance is 30 centimeters, and the current distance between the first terminal and the second terminal is 20 centimeters. Since the current distance between the first terminal and the second terminal is 20 centimeters, which is less than the preset distance of 30 centimeters, the first terminal determines that the target object has reached the payment range of the first terminal.
[0165] In some possible implementations, the first terminal detects whether the target object has reached the payment range of the first terminal based on the distance between the first terminal and the second terminal, including: if the distance between the first terminal and the second terminal is greater than or equal to a preset distance, the first terminal determines that the target object has not reached the payment range of the first terminal.
[0166] For example, suppose the preset distance is 30 centimeters, and the current distance between the first terminal and the second terminal is 40 centimeters. Since the current distance between the first terminal and the second terminal is 40 centimeters, which is greater than the preset distance of 30 centimeters, the first terminal determines that the target object has not reached the payment range of the first terminal.
[0167] In some possible implementations, the first terminal generates first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the orientation information of the second terminal, including: the first terminal determining the distance between the first terminal and the second terminal based on the strength of the short-range communication signal between the first terminal and the second terminal; and generating the first guidance information based on the distance between the first terminal and the second terminal and the orientation information of the second terminal.
[0168] It should be understood that, regarding how the first terminal determines the distance between the first terminal and the second terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, please refer to the above, and this application embodiment will not repeat it here.
[0169] In some implementations, the orientation information of the second terminal can be obtained based on the second terminal's acceleration sensor and geomagnetic field sensor.
[0170] In some implementations, the second terminal can obtain the orientation information of the second terminal based on the second terminal's acceleration sensor and geomagnetic field sensor, and then send the orientation information of the second terminal to the first terminal.
[0171] In some implementations, the second terminal can send the values collected by the acceleration sensor and the geomagnetic field sensor of the second terminal to the first terminal, and the first terminal can calculate the orientation information of the second terminal based on the values collected by the acceleration sensor and the geomagnetic field sensor.
[0172] For example, the following code snippet illustrates how the direction information of the second terminal is calculated:
[0173]
[0174]
[0175]
[0176] It should be understood that the calculation method for the direction information of the second terminal can be referred to above, and will not be repeated in this embodiment.
[0177] In some implementations, the first guidance information includes: vibration frequency information of the second terminal and / or guidance information in the form of voice.
[0178] In some possible implementations, the first terminal generates first guidance information based on the distance between the first terminal and the second terminal and the orientation information of the second terminal, including: the first terminal generates the first guidance information based on the distance between the first terminal and the second terminal, the orientation information of the second terminal, and the mapping relationship between the guidance information.
[0179] For example, Table 2 exemplarily illustrates the mapping relationship between the distance between the first terminal and the second terminal, the orientation information of the second terminal, and the guidance information:
[0180] Table 2
[0181]
[0182]
[0183] In some possible implementations, the first terminal generates first guidance information based on the distance between the first terminal and the second terminal and the orientation information of the second terminal. This includes: the first terminal can input the distance between the first terminal and the second terminal and the orientation information of the second terminal into a second neural network model to obtain the first guidance information.
[0184] In some implementations, the second neural network model can be trained using training samples. Each training sample may include: the distance between two devices, the orientation information of one of the devices, and actual guidance information, where the actual guidance information can serve as a sample label. The training device can employ supervised training; for example, it can input the distance between the two devices and the orientation information of one device into the second neural network model and output predicted guidance information. Further, the training device can calculate a loss based on the actual and predicted guidance information included in all training samples, and adjust the parameters of the second neural network model based on this loss until the training iterations reach a preset number or the loss reaches its minimum value, at which point training stops.
[0185] In some implementations, the training device may use any of the following loss functions when training the second neural network model, but is not limited to: L1 loss function, MSE loss function, cross-entropy loss function, etc.
[0186] It should be understood that the embodiments of this application do not limit how the first terminal generates the first guidance information based on the distance between the first terminal and the second terminal and the orientation information of the second terminal.
[0187] In some implementations, the first terminal generates first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal. This includes: the first terminal generating the first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal, the direction information of the second terminal, and the mapping relationship between the guidance information.
[0188] For example, Table 3 exemplarily illustrates the mapping relationship between the short-range communication signal strength between the first terminal and the second terminal, the directional information of the second terminal, and the guidance information:
[0189] Table 3
[0190]
[0191]
[0192] In some possible implementations, the first terminal generates first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal. This includes: the first terminal can input the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal into a third neural network model to obtain the first guidance information.
[0193] In some implementations, the third neural network model can be trained using training samples. Each training sample may include: the strength of a short-range communication signal between two devices, the orientation information of one of the devices, and actual guidance information, where the actual guidance information can serve as a sample label. The training device can employ supervised training; for example, it can input the strength of the short-range communication signal between the two devices and the orientation information of one device into the third neural network model and output predicted guidance information. Furthermore, the training device can calculate a loss based on the actual and predicted guidance information included in all training samples, and adjust the parameters of the third neural network model based on this loss until the training iterations reach a preset number or the loss reaches its minimum value, at which point training stops.
[0194] In some implementations, the training device may use any of the following loss functions when training the third neural network model, but is not limited to: L1 loss function, MSE loss function, cross-entropy loss function, etc.
[0195] It should be understood that the embodiments of this application do not limit how the first terminal generates the first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the directional information of the second terminal.
[0196] S230: The first terminal pushes the first guidance information;
[0197] In some implementations, if the first guidance information includes the vibration frequency information of the second terminal, then the first terminal can send the vibration frequency information of the second terminal to the second terminal so that the second terminal vibrates according to the vibration frequency information.
[0198] In some implementations, if the first guidance information includes guidance information in the form of voice, then the first terminal can broadcast the guidance information to push the guidance information.
[0199] S240: If the target object is within the payment range of the first terminal, the first terminal collects the biometric image of the target object and makes payment based on the biometric image of the target object.
[0200] In some possible implementations, the biometrics involved in the embodiments of this application may be palm prints, veins, faces, fingerprints, irises, etc., but are not limited to these. The payment process based on these biometrics can be referred to the description above, and will not be repeated in the embodiments of this application.
[0201] In some implementations, the first terminal can acquire at least one biometric image of the target object.
[0202] In some possible implementations, if the first terminal collects multiple biometric images of the target object, the first terminal can select the optimal biometric image based on at least one of the following: image clarity, contrast, resolution, and the size and angle of the collected biometric image. Then, the optimal biometric image is sent to the backend server so that the backend server can perform biometric recognition and obtain the target object's identity information, membership information, or payment code information, etc., to complete the payment.
[0203] For example, in palm-scanning payments, the payment application within the palm-scanning device can utilize a 3D camera to capture multiple images of the target's palm. Furthermore, the device can select the optimal palm image based on at least one of the following parameters: palm size, angle, image contrast, brightness, and clarity. This optimal palm image is then sent to a backend server for palmprint recognition, which retrieves the target's identity information, membership information, or payment code information, etc., to complete the payment.
[0204] It should be understood that, in order to improve payment security and further enhance the payment experience for visually impaired individuals, this application embodiment also proposes that, while collecting the biometric image of the target object, the first terminal performs at least one of the following: turning off the screen of the first terminal; increasing the volume of the first terminal.
[0205] This application provides a biometric-based payment method, comprising: a first terminal determining that the target object corresponding to a second terminal is a visually impaired object; if the target object does not reach the payment range of the first terminal, the first terminal generates first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the directional information of the second terminal; wherein the first guidance information is used to guide the target object closer to the first terminal; the first terminal pushes the first guidance information; if the target object reaches the payment range of the first terminal, the first terminal collects a biometric image of the target object and performs payment based on the biometric image of the target object. Since the first guidance information used to guide the visually impaired object closer to the first terminal can be generated through the strength of the short-range communication signal between the first terminal and the second terminal and the directional information of the second terminal, thereby guiding the visually impaired object to make payment, the payment experience for the visually impaired object can be improved.
[0206] Figure 3 The flowchart illustrates another biometric-based payment method provided in this application. The method involves two execution entities: a first terminal and a second terminal. The first terminal may be... Figure 1 The first terminal 110 shown, the second terminal can be Figure 1 The second terminal 120 is shown. A short-range communication connection is established between the first terminal and the second terminal, such as... Figure 3 As shown, the method may include:
[0207] S310: The first terminal determines that the target object corresponding to the second terminal is a visually impaired object;
[0208] S320: If the target object does not reach the payment range of the first terminal, the first terminal generates first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal; wherein, the first guidance information is used to guide the target object to approach the first terminal;
[0209] S330: The first terminal pushes the first guidance information;
[0210] S340: If the target object enters the payment range of the first terminal, the first terminal collects the biometric image of the target object and makes payment based on the biometric image of the target object;
[0211] It should be understood that the explanations of S310 to S340 can be found in the explanations of S210 to S240 above, and will not be repeated in this application embodiment.
[0212] S350: After the target object completes the payment, the first terminal generates second guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal; wherein, the second guidance information is used to guide the target object away from the first terminal;
[0213] In some possible implementations, the first terminal generates second guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the orientation information of the second terminal, including: the first terminal determining the distance between the first terminal and the second terminal based on the strength of the short-range communication signal between the first terminal and the second terminal; and generating the second guidance information based on the distance between the first terminal and the second terminal and the orientation information of the second terminal.
[0214] It should be understood that the method by which the first terminal determines the distance between the first terminal and the second terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, and how to obtain the direction information of the second terminal, can be referred to the above, and will not be repeated in the embodiments of this application.
[0215] In some implementations, the second guidance information includes: vibration frequency information of the second terminal and / or guidance information in the form of voice.
[0216] In some possible implementations, the first terminal generates first guidance information based on the distance between the first terminal and the second terminal and the orientation information of the second terminal, including: the first terminal generates the second guidance information based on the distance between the first terminal and the second terminal, the orientation information of the second terminal, and the mapping relationship between the guidance information.
[0217] For example, Table 4 exemplarily illustrates the mapping relationship between the distance between the first terminal and the second terminal, the orientation information of the second terminal, and the guidance information:
[0218] Table 4
[0219]
[0220] In some possible implementations, the first terminal generates second guidance information based on the distance between the first terminal and the second terminal and the orientation information of the second terminal. This includes: the first terminal can input the distance between the first terminal and the second terminal and the orientation information of the second terminal into a fourth neural network model to obtain the second guidance information.
[0221] In some implementations, the fourth neural network model can be trained using training samples. Each training sample may include: the distance between two devices, the orientation information of one of the devices, and actual guidance information, where the actual guidance information can serve as the sample label. The training device can employ supervised training; for example, it can input the distance between the two devices and the orientation information of one device into the fourth neural network model and output predicted guidance information. Further, the training device can calculate a loss based on the actual and predicted guidance information included in all training samples, and adjust the parameters of the fourth neural network model based on this loss until the training iterations reach a preset number or the loss reaches its minimum value, at which point training stops.
[0222] In some implementations, the training device may use any of the following loss functions when training the fourth neural network model, but is not limited to: L1 loss function, MSE loss function, cross-entropy loss function, etc.
[0223] It should be understood that the embodiments of this application do not limit how the first terminal generates the second guidance information based on the distance between the first terminal and the second terminal and the orientation information of the second terminal.
[0224] In some implementations, the first terminal generates second guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal. This includes: the first terminal generating the second guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal, the direction information of the second terminal, and the mapping relationship between the guidance information.
[0225] For example, Table 5 exemplarily illustrates the mapping relationship between the short-range communication signal strength between the first terminal and the second terminal, the directional information of the second terminal, and the guidance information:
[0226] Table 5
[0227]
[0228]
[0229] In some possible implementations, the first terminal generates second guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal. This includes: the first terminal can input the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal into a fifth neural network model to obtain the second guidance information.
[0230] In some implementations, the fifth neural network model can be trained using training samples. Each training sample may include: the strength of a short-range communication signal between two devices, the orientation information of one of the devices, and actual guidance information, where the actual guidance information can serve as a sample label. The training device can employ supervised training; for example, it can input the strength of the short-range communication signal between the two devices and the orientation information of one device into the fifth neural network model and output predicted guidance information. Furthermore, the training device can calculate a loss based on the actual and predicted guidance information included in all training samples, and adjust the parameters of the fifth neural network model based on this loss until the training iterations reach a preset number or the loss reaches its minimum value, at which point training stops.
[0231] In some implementations, the training device may use any of the following loss functions when training the fifth neural network model, but is not limited to: L1 loss function, MSE loss function, cross-entropy loss function, etc.
[0232] It should be understood that the embodiments of this application do not limit how the first terminal generates the second guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the directional information of the second terminal.
[0233] S360: The first terminal pushes the second guidance information.
[0234] In some implementations, if the second guidance information includes the vibration frequency information of the second terminal, then the first terminal can send the vibration frequency information of the second terminal to the second terminal so that the second terminal vibrates according to the vibration frequency information.
[0235] In some implementations, if the second guidance information includes guidance information in the form of voice, then the first terminal can broadcast the guidance information to push the guidance information.
[0236] In this embodiment of the application, after the target object completes the payment, the first terminal generates and pushes second guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the directional information of the second terminal, so as to guide the target object away from the first terminal, thereby further improving the payment experience of visually impaired objects.
[0237] The preferred embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this application, various simple modifications can be made to the technical solutions of this application, and these simple modifications all fall within the protection scope of this application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this application will not describe the various possible combinations separately. Furthermore, various different embodiments of this application can also be arbitrarily combined, as long as they do not violate the spirit of this application, they should also be considered as the content disclosed in this application.
[0238] It should also be understood that, in the various method embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0239] The methods provided in the embodiments of this application have been described above. The biometric payment device provided in the embodiments of this application will be described below.
[0240] Figure 4This is a schematic diagram of a biometric payment device 400 provided in an embodiment of this application. The biometric payment device 400 establishes a short-range communication connection with a second terminal. The biometric payment device 400 includes: a determination module 410, a generation module 420, a push module 430, a collection module 440, and a payment module 450. The determination module 410 determines that the target object corresponding to the second terminal is a visually impaired object. The generation module 420 generates first guidance information based on the strength of the short-range communication signal between the biometric payment device 400 and the second terminal and the directional information of the second terminal if the target object has not reached the payment range of the biometric payment device 400. The first guidance information guides the target object closer to the biometric payment device 400. The push module 430 pushes the first guidance information. The collection module 440 and the payment module 450 collect biometric images of the target object if the target object reaches the payment range of the biometric payment device 400, and perform payment based on the biometric images of the target object.
[0241] In some implementations, the generation module 420 is specifically used to: determine the distance between the biometric payment device 400 and the second terminal based on the strength of the short-range communication signal between the biometric payment device 400 and the second terminal; and generate first guidance information based on the distance between the biometric payment device 400 and the second terminal and the orientation information of the second terminal.
[0242] In some implementations, the biometric payment device 400 further includes a detection module 460, used to detect whether a target object has reached the payment range of the biometric payment device 400 based on the strength of the short-range communication signal between the biometric payment device 400 and the second terminal.
[0243] In some implementations, the detection module 460 is specifically used to: determine that the target object has reached the payment range of the biometric payment device 400 if the strength of the short-range communication signal between the biometric payment device 400 and the second terminal reaches a preset strength.
[0244] In some implementations, the detection module 460 is specifically used to: determine that the target object has not reached the payment range of the biometric payment device 400 if the strength of the short-range communication signal between the biometric payment device 400 and the second terminal does not reach a preset strength.
[0245] In some implementations, the detection module 460 is specifically used to: detect whether the target object has reached the payment range of the biometric payment device 400 based on the strength of the short-range communication signal between the biometric payment device 400 and the second terminal and the duration of the strength of the short-range communication signal between the biometric payment device 400 and the second terminal.
[0246] In some implementations, the detection module 460 is specifically used to: determine that the target object has reached the payment range of the biometric payment device 400 if the strength of the short-range communication signal between the biometric payment device 400 and the second terminal reaches a preset strength and the duration is longer than a preset duration.
[0247] In some implementations, the detection module 460 is specifically used to: determine that the target object has not reached the payment range of the biometric payment device 400 if the strength of the short-range communication signal between the biometric payment device 400 and the second terminal does not reach a preset strength, or the duration is less than or equal to a preset duration.
[0248] In some implementations, the detection module 460 is specifically used to: detect whether the target object has reached the payment range of the biometric payment device 400 based on the strength of the short-range communication signal between the biometric payment device 400 and the second terminal, the duration of the strength of the short-range communication signal between the biometric payment device 400 and the second terminal, and the surrounding environmental voice information of the biometric payment device 400.
[0249] In some implementations, the detection module 460 is specifically used to: determine that the target object has reached the payment range of the biometric payment device 400 if the strength of the short-range communication signal between the biometric payment device 400 and the second terminal reaches a preset strength and the duration is longer than a preset duration, and the ambient voice volume around the biometric payment device 400 is greater than a preset volume.
[0250] In some implementations, the detection module 460 is specifically used to: determine that the target object has not reached the payment range of the biometric payment device 400 if the strength of the short-range communication signal between the biometric payment device 400 and the second terminal does not reach a preset strength, or the duration is less than or equal to a preset duration, or the ambient voice volume around the biometric payment device 400 is less than a preset volume.
[0251] In some implementations, the detection module 460 is specifically used to: determine the distance between the biometric payment device 400 and the second terminal based on the strength of the short-range communication signal between the biometric payment device 400 and the second terminal; and detect whether the target object has reached the payment range of the biometric payment device 400 based on the distance between the biometric payment device 400 and the second terminal.
[0252] In some implementations, the detection module 460 is specifically used to: determine the payment range of the target object reaching the biometric payment device 400 if the distance between the biometric payment device 400 and the second terminal is less than a preset distance.
[0253] In some implementations, the detection module 460 is specifically used to: determine that the target object has not reached the payment range of the biometric payment device 400 if the distance between the biometric payment device 400 and the second terminal is greater than or equal to a preset distance.
[0254] In some implementations, the biometric payment device 400 further includes an execution module 470, configured to perform at least one of the following while acquiring a biometric image of a target object: turning off the screen of the biometric payment device 400; increasing the volume of the biometric payment device 400.
[0255] In some implementations, the generation module 420 is further configured to: after the target object completes the payment, generate second guidance information based on the strength of the short-range communication signal between the biometric payment device 400 and the second terminal and the directional information of the second terminal; wherein the second guidance information is used to guide the target object away from the biometric payment device 400; the push module 430 is further configured to push the second guidance information.
[0256] In some implementations, the generation module 420 is specifically used to: determine the distance between the biometric payment device 400 and the second terminal based on the strength of the short-range communication signal between the biometric payment device 400 and the second terminal; and generate second guidance information based on the distance between the biometric payment device 400 and the second terminal and the orientation information of the second terminal.
[0257] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, further details will not be provided here. Specifically, Figure 4 The device 400 shown can perform Figure 2 and Figure 3The corresponding first terminal-side method embodiment, and the foregoing and other operations and / or functions of each module in the device 400 are respectively for implementing Figure 2 and Figure 3 For the sake of brevity, the corresponding processes in each method of the first terminal-side method embodiment will not be described in detail here.
[0258] The apparatus 500 of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application embodiment can be directly embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.
[0259] Figure 5 This is a schematic block diagram of the electronic device 500 provided in an embodiment of this application. The electronic device 500 may be the aforementioned backend server, but is not limited thereto. Figure 5 As shown, the electronic device 500 may include:
[0260] The system includes a memory 510 and a processor 520. The memory 510 stores a computer program 530 and transfers the computer program 530 to the processor 520. In other words, the processor 520 can retrieve and run the computer program 530 from the memory 510 to implement the methods described in the embodiments of this application.
[0261] For example, the processor 520 can be used to execute the steps in the above method according to the instructions in the computer program 530.
[0262] In some embodiments of this application, the processor 520 may include, but is not limited to:
[0263] General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0264] In some embodiments of this application, the memory 510 includes, but is not limited to:
[0265] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0266] In some embodiments of this application, the computer program 530 may be divided into one or more modules, which are stored in the memory 510 and executed by the processor 520 to perform the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program 530 in the electronic device.
[0267] like Figure 5 As shown, the electronic device 500 may further include:
[0268] Transceiver 540, which can be connected to processor 520 or memory 510.
[0269] The processor 520 can control the transceiver 540 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 540 may include a transmitter and a receiver. The transceiver 540 may further include antennas, and the number of antennas may be one or more.
[0270] It should be understood that the various components in the electronic device 500 are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.
[0271] According to one aspect of this application, a computer storage medium is provided that stores a computer program thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, embodiments of this application also provide a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.
[0272] According to another aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method described in the above-described method embodiments.
[0273] In other words, when implemented using software, it can be implemented wholly or partially in the form of a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0274] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0275] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0276] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0277] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A biometric-based payment method, characterized in that, The method is applied to a first terminal, and a short-range communication connection is established between the first terminal and a second terminal. The method includes: It was determined that the target object corresponding to the second terminal was a visually impaired object; If the target object does not reach the payment range of the first terminal, then based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal, first guidance information is generated; wherein, the first guidance information is used to guide the target object to approach the first terminal; Push the first guidance information; If the target object is within the payment range of the first terminal, then the biometric image of the target object is collected, and payment is made based on the biometric image of the target object.
2. The method according to claim 1, characterized in that, The generation of first guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal includes: The distance between the first terminal and the second terminal is determined based on the strength of the short-range communication signal between the first terminal and the second terminal. The first guidance information is generated based on the distance between the first terminal and the second terminal and the orientation information of the second terminal.
3. The method according to claim 1 or 2, characterized in that, Also includes: Based on the strength of the short-range communication signal between the first terminal and the second terminal, it is detected whether the target object has reached the payment range of the first terminal.
4. The method according to claim 3, characterized in that, The method of detecting whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal includes: If the strength of the short-range communication signal between the first terminal and the second terminal reaches a preset strength, then it is determined that the target object has reached the payment range of the first terminal.
5. The method according to claim 3, characterized in that, The method of detecting whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal includes: Based on the strength of the short-range communication signal between the first terminal and the second terminal, and the duration of the strength of the short-range communication signal between the first terminal and the second terminal, it is detected whether the target object has reached the payment range of the first terminal.
6. The method according to claim 5, characterized in that, The method of detecting whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the duration of the strength of the short-range communication signal between the first terminal and the second terminal includes: If the strength of the short-range communication signal between the first terminal and the second terminal reaches a preset strength and the duration is longer than a preset duration, then it is determined that the target object has reached the payment range of the first terminal.
7. The method according to claim 5, characterized in that, The method of detecting whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the duration of the strength of the short-range communication signal between the first terminal and the second terminal includes: If the strength of the short-range communication signal between the first terminal and the second terminal does not reach the preset strength, or the duration is less than or equal to the preset duration, then it is determined that the target object has not reached the payment range of the first terminal.
8. The method according to claim 5, characterized in that, The method of detecting whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal and the duration of the strength of the short-range communication signal between the first terminal and the second terminal includes: Based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the short-range communication signal strength between the first terminal and the second terminal, and the surrounding environmental voice information of the first terminal, it is detected whether the target object has reached the payment range of the first terminal.
9. The method according to claim 8, characterized in that, The method of detecting whether the target object has entered the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the short-range communication signal strength between the first terminal and the second terminal, and the surrounding environmental voice information of the first terminal includes: If the strength of the short-range communication signal between the first terminal and the second terminal reaches a preset strength and the duration is greater than a preset duration, and the ambient voice volume around the first terminal is greater than a preset volume, then it is determined that the target object has reached the payment range of the first terminal.
10. The method according to claim 8, characterized in that, The method of detecting whether the target object has entered the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal, the duration of the short-range communication signal strength between the first terminal and the second terminal, and the surrounding environmental voice information of the first terminal includes: If the strength of the short-range communication signal between the first terminal and the second terminal does not reach the preset strength, or the duration is less than or equal to the preset duration, or the ambient voice volume around the first terminal is less than the preset volume, then it is determined that the target object has not reached the payment range of the first terminal.
11. The method according to claim 3, characterized in that, The method of detecting whether the target object has reached the payment range of the first terminal based on the strength of the short-range communication signal between the first terminal and the second terminal includes: The distance between the first terminal and the second terminal is determined based on the strength of the short-range communication signal between the first terminal and the second terminal. Based on the distance between the first terminal and the second terminal, it is detected whether the target object has reached the payment range of the first terminal.
12. The method according to claim 11, characterized in that, The step of detecting whether the target object has reached the payment range of the first terminal based on the distance between the first terminal and the second terminal includes: If the distance between the first terminal and the second terminal is less than a preset distance, then the target object is determined to be within the payment range of the first terminal.
13. The method according to claim 11, characterized in that, The step of detecting whether the target object has reached the payment range of the first terminal based on the distance between the first terminal and the second terminal includes: If the distance between the first terminal and the second terminal is greater than or equal to a preset distance, then it is determined that the target object has not reached the payment range of the first terminal.
14. The method according to claim 1 or 2, characterized in that, Also includes: While acquiring the biometric image of the target object, perform at least one of the following: Turn off the screen of the first terminal; Turn up the volume of the first terminal.
15. The method according to claim 1 or 2, characterized in that, Also includes: After the target object completes the payment, second guidance information is generated based on the strength of the short-range communication signal between the first terminal and the second terminal and the directional information of the second terminal; wherein, the second guidance information is used to guide the target object away from the first terminal; The second guidance information is pushed out.
16. The method according to claim 15, characterized in that, The generation of second guidance information based on the strength of the short-range communication signal between the first terminal and the second terminal and the direction information of the second terminal includes: The distance between the first terminal and the second terminal is determined based on the strength of the short-range communication signal between the first terminal and the second terminal. The second guidance information is generated based on the distance between the first terminal and the second terminal and the orientation information of the second terminal.
17. A biometric-based payment device, characterized in that, The biometric payment device establishes a short-range communication connection with the second terminal. The biometric payment device includes: a determination module, a generation module, a push module, a collection module, and a payment module. The determining module is used to determine that the target object corresponding to the second terminal is a visually impaired object; The generation module is used to: if the target object does not reach the payment range of the biometric payment device, generate first guidance information based on the strength of the short-range communication signal between the biometric payment device and the second terminal and the direction information of the second terminal; wherein, the first guidance information is used to guide the target object to approach the biometric payment device; The push module is used to push the first guidance information; The acquisition module and the payment module are respectively used to: if the target object enters the payment range of the biometric payment device, acquire the biometric image of the target object, and make payment based on the biometric image of the target object.
18. An electronic device, characterized in that, include: A processor and a memory, the memory being used to store a computer program, the processor being used to invoke and run the computer program stored in the memory to perform the method of any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that, Used to store a computer program that causes a computer to perform the method as described in any one of claims 1 to 16.
20. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method as described in any one of claims 1 to 16.