Payment method and related device

By detecting user gestures and device status, using the camera to identify the scanning device and displaying the QR code under specific conditions, it solves the problems of cumbersome and inefficient payment operations in the existing technology and achieves a more efficient user payment process.

CN118261595BActive Publication Date: 2025-01-24HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410425421.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-06
Publication Date
2025-01-24
Estimated Expiration
2041-08-06

AI Technical Summary

Technical Problem

In the existing electronic device payment method, users need to display the QR code on the screen through multiple touch operations, resulting in cumbersome operations and inefficient payment.

Method used

By detecting the user's gestures and device status, it determines whether the preset conditions are met, uses the camera to capture images to identify the scanning device, and displays the QR code when specific conditions are met to reduce the probability of misrecognition.

Benefits of technology

It simplifies the user payment operation, improves the efficiency of user payment, and reduces the probability of misidentification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118261595B_ABST
    Figure CN118261595B_ABST
Patent Text Reader

Abstract

The present application discloses a payment method and related devices, which relate to the field of terminal technology. The method includes: when the screen of the electronic device 100 is in a bright screen and unlocked state, the electronic device 100 can detect whether the posture of the electronic device 100 meets the preset conditions. If so, the electronic device 100 can capture one or more frames of images through a designated camera. When the electronic device 100 can determine the code scanning device based on the one or more frames of images, and the distance between the electronic device 100 and the code scanning device is within a preset distance threshold 1, the electronic device 100 can display a QR code. In this way, the code scanning device can read the information in the QR code more quickly, so that the code scanning device and the electronic device 100 perform payment operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a payment method and related devices. Background Art

[0002] With the development of terminal technology, users can use electronic devices to pay for goods in addition to cash. For example, when a user needs to pay for goods through an electronic device, the electronic device can receive and receive the user's payment for a specified application (such as application, In response to the touch operation, the electronic device can display a QR code for payment on the screen display interface based on the payment application. When there is a code scanning device within a preset range of the electronic device, the code scanning device can scan the QR code displayed on the screen display interface of the electronic device, so that the amount in the device account can be transferred to the seller's account, thereby completing the payment operation.

[0003] However, it can be seen from the above process that when the user makes a payment in this way, multiple touch operations are required to display the user's payment QR code on the screen display interface of the electronic device. Therefore, the operation is very cumbersome and the payment efficiency is very low. Summary of the invention

[0004] The present application provides a payment method and related devices. Through the technical solution provided by the present application, the probability of misidentification when the electronic device 100 identifies the first target device is reduced, while also simplifying the user's payment operation and improving the user's payment efficiency.

[0005] In a first aspect, the present application provides a payment method, which may include: an electronic device displays a first interface, which is not a lock screen interface. The electronic device detects a first operation. In response to the first operation, the electronic device detects the state of the electronic device. The electronic device determines that the state of the electronic device satisfies a first preset condition, and the first camera of the electronic device acquires a first image. The electronic device determines that the first image includes a first target object. The electronic device displays a second interface, wherein the second interface includes a QR code. In this way, the probability of misidentification when the electronic device 100 identifies the first target device can be reduced, while also simplifying the user's payment operation and improving the efficiency of the user's payment.

[0006] In a possible implementation, the first preset condition may include: the angle between the display screen of the electronic device and the ground plane is less than a first threshold, and the time the electronic device is in the hovering state is greater than a second threshold. In this way, the probability of false triggering of the display of the QR code can be reduced by the state of the electronic device, simplifying the user's payment operation.

[0007] In a possible implementation, before the electronic device displays the second interface, the method further includes: the second camera of the electronic device acquires a second image and a third image, the second image is different from the first image, and the third image is different from the first image. The electronic device determines that both the second image and the third image include the first target object. In this way, by identifying the first target object through multiple images, the first target object can be determined more efficiently and accurately, thereby improving the efficiency of user payment.

[0008] In a possible implementation, before the electronic device displays the second interface, the method further includes: determining that the distance between the electronic device and the first target object is less than a third threshold. In this way, the user's intention can be more accurately determined by identifying the distance between the electronic device and the first target object, thereby improving the efficiency of the user's payment.

[0009] In a possible implementation, the method further includes: the first interface does not include a QR code.

[0010] In a possible implementation, the second camera is the same as the first camera. In this way, the first target object can be easily and quickly identified, the identification time is reduced, and the payment efficiency of the user is improved.

[0011] In a possible implementation, the first camera is a low-power camera, and the second camera is a non-low-power camera. In this way, the first target object can be identified more accurately, reducing the probability of misidentification.

[0012] In a possible implementation, the method specifically includes: the electronic device transmits a pulse wave to the code scanning device through a TOF sensor. The electronic device obtains the flight time from the emission of the pulse wave to the reflection of the pulse wave by the first target object back to the TOF sensor. Based on the flight time and the speed of the pulse wave, the electronic device determines that the distance between the electronic device and the first target object is less than a third threshold. In this way, by using the sensor to determine the distance between the electronic device and the first target object, the user's intention can be more accurately determined, thereby improving the efficiency of the user's payment.

[0013] In a possible implementation, before the electronic device displays the second interface, the method further includes: the electronic device detecting the first interface. When the electronic device determines that the first interface does not display a QR code, the electronic device displays the second interface.

[0014] In a possible implementation, the electronic device sends the information of the QR code to the first server based on the first target object. The information of the QR code includes the identifier of the first application and the information of the first account, and the first server is the server corresponding to the first application. When the information of the first account triggers the first server to determine that the amount in the first account is equal to or greater than the first amount, and transfers the first amount in the first account to the second account, the electronic device receives the payment success prompt information sent by the first server.

[0015] In a possible implementation, the method further includes: the first interface includes an icon of a second application. When the information of the first account triggers the first server to determine that the amount in the first account is less than the first amount, the electronic device receives a payment failure prompt message sent by the first server. The electronic device receives a first input from a user on the icon of the second application. In response to the first input, the electronic device displays a third interface of the second application, wherein the third interface includes a QR code corresponding to the second application. In this way, the user can quickly switch the payment method, simplify the user's payment operation, and improve the user's payment efficiency.

[0016] In a possible implementation, before the electronic device is in an unlocked state and displays the first interface, the method further includes: the electronic device displays a fourth interface, wherein the fourth interface includes a first control. The electronic device receives a second input from a user for the first control. In response to the second input, the electronic device selects the first application as a default payment application. In this way, the user's payment operation can be simplified and the user's payment efficiency can be improved.

[0017] In a second aspect, the present application provides an electronic device, which may include: one or more processors, one or more sensors, one or more memories, a display screen, and a transceiver. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the method in any possible implementation of the first aspect. In this way, the probability of misidentification when the electronic device 100 identifies the first target device is reduced, and the user payment operation is also simplified, thereby improving the efficiency of the user payment.

[0018] In a third aspect, the present application provides a computer storage medium, which may include computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method in any possible implementation of the first aspect. In this way, the probability of misidentification when the electronic device 100 identifies the first target device is reduced, and the user's payment operation is simplified, thereby improving the efficiency of the user's payment.

[0019] In a fourth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method in any possible implementation of the first aspect. In this way, the probability of misidentification when the electronic device 100 identifies the first target device is reduced, and the user's payment operation is simplified, thereby improving the efficiency of the user's payment. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;

[0021] Figure 2 This is a schematic diagram of a misidentification scenario provided by an embodiment of the present application;

[0022] Figure 3 This is a flow chart of a payment method provided in an embodiment of the present application;

[0023] Figure 4A is a schematic diagram of a user interface provided in an embodiment of the present application;

[0024] Figure 4B is a user gesture schematic diagram provided in an embodiment of the present application;

[0025] Figure 4C It is a coordinate axis schematic diagram provided in an embodiment of the present application;

[0026] Figure 4D This is a schematic diagram of a recognition scene provided by an embodiment of the present application;

[0027] Figure 4E This is another schematic diagram of a recognition scenario provided by an embodiment of the present application;

[0028] Figure 4F-4G is a set of user interface schematic diagrams provided in an embodiment of the present application;

[0029] Figure 5A-5D is a set of user interface schematic diagrams provided in an embodiment of the present application;

[0030] Figure 6A-6K is a set of user interface schematic diagrams provided in an embodiment of the present application;

[0031] Figure 7A-7G is a set of user interface schematic diagrams provided in an embodiment of the present application;

[0032] Figure 8 It is a software architecture diagram provided by an embodiment of the present application;

[0033] Fig. 9 This is another software architecture diagram provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the attached claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear contrary indication in its context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations including one or more of the listed striking ones. In the embodiments of the present application, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can expressly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise stated, the meaning of "multiple" is two or more.

[0035] First, an exemplary electronic device 100 provided in an embodiment of the present application is introduced.

[0036] Please refer to Figure 1 , Figure 1 The hardware structure diagram of an electronic device 100 provided in an embodiment of the present application is exemplarily shown.

[0037] The electronic device 100 may be a mobile phone, a tablet computer, a PC, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or other electronic devices. The embodiment of the present application does not impose any particular limitation on the specific type of the electronic device.

[0038] The electronic device 100 may include a processor 101, a memory 102, a wireless communication module 103, a display screen 104, a sensor module 105, an audio module 106, a speaker 107, and a mobile communication module 108. The above modules may be connected via a bus or other means, and the embodiment of the present application takes the connection via a bus as an example.

[0039] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0040] The processor 101 may include one or more processor units, for example, the processor 101 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0041] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0042] The processor 101 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. The memory may store instructions or data that the processor 101 has just used or circulated. If the processor 101 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.

[0043] In some embodiments, the processor 101 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface, etc.

[0044] The memory 102 is coupled to the processor 101 and is used to store various software programs and / or multiple groups of instructions. In a specific implementation, the memory 102 may include a volatile memory, such as a random access memory (RAM); it may also include a non-volatile memory, such as a ROM, a flash memory, a hard disk drive (HDD) or a solid state drive (SSD); the memory 102 may also include a combination of the above-mentioned types of memories. The memory 102 may also store some program codes so that the processor 101 can call the program codes stored in the memory 102 to implement the implementation method of the embodiment of the present application in the electronic device 100. The memory 102 may store an operating system, such as an embedded operating system such as uCOS, VxWorks, RTLinux, etc.

[0045] The wireless communication module 103 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 103 can be one or more devices integrating at least one communication processing module. The wireless communication module 103 receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 101. The wireless communication module 103 can also receive signals to be sent from the processor 101, modulate and amplify them, and convert them into electromagnetic waves for radiation through the antenna. In some embodiments, the electronic device 100 can also communicate with the processor 101 through the Bluetooth module ( Figure 1 Not shown), WLAN module ( Figure 1 The device 100 may be connected to the electronic device 100 through a wireless communication module (not shown) to detect or scan devices near the electronic device 100, and establish a wireless communication connection with the nearby devices and transmit data. The Bluetooth module may provide solutions including one or more Bluetooth communications in classic Bluetooth (basic rate / enhanced data rate, BR / EDR) or Bluetooth low energy (bluetooth low energy, BLE), and the WLAN module may provide solutions including one or more WLAN communications in Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.

[0046] The display screen 104 can be used to display images, videos, etc. The display screen 104 may include a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 104, where N is a positive integer greater than 1.

[0047] The sensor module 105 may include a touch sensor 105A and the like. The touch sensor 105A may also be referred to as a "touch control device". The touch sensor 105A may be disposed on the display screen 104, and the touch sensor 105A and the display screen 104 form a touch screen, also referred to as a "touch control screen". The touch sensor 105A may be used to detect a touch operation applied thereto or thereabout. Optionally, the sensor module 105 may also include a gyroscope sensor ( Figure 1 Not shown), acceleration sensor ( Figure 1 The gyroscope sensor can be used to determine the motion posture of the electronic device 100. In some embodiments, the electronic device 100 can determine the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) through the gyroscope sensor. The acceleration sensor can be used to detect the magnitude of the acceleration of the electronic device 100 in various directions (generally x, y, and z axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected.

[0048] The audio module 106 can be used to convert digital audio information into analog audio signal output, and can also be used to convert analog audio input into digital audio signal. The audio module 106 can also be used to encode and decode audio signals. In some embodiments, the audio module 106 can also be arranged in the processor 101, or some functional modules of the audio module 106 can be arranged in the processor 101.

[0049] The speaker 107 , which may also be called a “speaker”, is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or a hands-free phone call through the speaker 107 .

[0050] The mobile communication module 108 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the electronic device 100 .

[0051] Next, a payment method provided by this application is introduced.

[0052] The electronic device 100 can capture one or more frames of images through a designated camera (e.g., a front-facing low-power camera). The electronic device 100 can identify the code scanning device based on the one or more frames of images according to shape features (e.g., square and / or rectangular, etc.). Then, the electronic device 100 can run application 1 and display application 1 (e.g., application, The QR code 1 for payment may include the identification of the application 1 and information of the designated account 1 (for example, the identity document (ID) of the designated account 1). The code scanning device and the electronic device 100 may perform payment operations based on the QR code 1 for payment.

[0053] It can be seen from the above process that when the electronic device 100 uses a designated camera (for example, a front low-power camera) to identify a code scanning device within a preset range, misidentification is very likely to occur.

[0054] For example, Figure 2 As shown, when the electronic device 100 identifies the square ceiling light 201, and / or the long tubular ceiling light 202, and / or the central air conditioner 203, since the square ceiling light 201, the long tubular ceiling light 202, and the central air conditioner 203 have similar shape features to the code scanning device 200, the electronic device 100 will identify the square ceiling light 201, the long tubular ceiling light 202, and the central air conditioner 203 as the code scanning device 200, thereby causing the electronic device to display the payment QR code 1 of the specified application on the screen display interface, resulting in the occurrence of misrecognition.

[0055] Therefore, the present application provides a payment method.

[0056] In the embodiment of the present application, the electronic device 100 can provide the payment method based on the electronic device 100 smart assistant "YOYO", that is, the "YOYO" quick payment method, and the subsequent descriptions all take the "YOYO" quick payment method as an example. Among them, the above-mentioned "YOYO" can be the name of the electronic device 100 smart assistant.

[0057] When the screen of the electronic device 100 is in the bright screen and unlocked state, the electronic device 100 can detect whether the posture of the electronic device 100 meets the preset conditions (for example, whether the screen of the electronic device 100 is flipped due to the user's gesture 1, the angle between the screen of the electronic device 100 and the ground is within a specified angle range, and whether the hovering time of the electronic device 100 is greater than the preset time value, etc.). If so, the electronic device 100 can capture one or more frames of images through a specified camera (for example, a front low-power camera). When the electronic device 100 can determine the code scanning device based on the one or more frames of images, and the distance between the electronic device 100 and the code scanning device is within a preset distance threshold 1 (for example, 8 cm-20 cm), the electronic device 100 can display a QR code. In this way, the code scanning device can read the information in the payment QR code 1 more quickly, so that the code scanning device and the electronic device 100 perform the payment operation. Among them, for the description of the payment QR code 1, reference can be made to the aforementioned related instructions, which will not be repeated here.

[0058] Therefore, it can be seen that implementing the above-mentioned YOYO quick payment method can reduce the probability of misrecognition, and at the same time can also simplify the user's operation and improve the user's payment efficiency.

[0059] The following describes a YOYO quick payment method provided in an embodiment of the present application.

[0060] Please refer to Figure 3 , Figure 3 The following is a flowchart of a YOYO quick payment method provided in an embodiment of the present application.

[0061] S301. The electronic device 100 detects a screen display status.

[0062] Specifically, the electronic device 100 can obtain the current screen display state through a preset mechanism (for example, a broadcast mechanism). The screen display state may include a screen-off state, a lock screen interface display state, a screen-on and unlocked state, and the like.

[0063] Among them, the screen-off state may refer to a state in which the screen does not display interface elements or a part of the screen area remains always on to display information such as time and notifications when the electronic device 100 is in a screen-locked state. The lock screen interface display state refers to the user interface of the electronic device 100 in a lock screen state. The screen-on and unlocked state means that the electronic device 100 can receive user input based on the interface displayed in this state, and run one or more applications in response to the input, which is the unlocked state of the electronic device referred to in the prior art.

[0064] When the screen state of the electronic device 100 is in the off state, the electronic device 100 can receive and respond to the user's input to light up the screen, and display the lock screen interface. Among them, the lock screen interface may refer to an interface in which some functions of the electronic device 100 are locked, that is, the electronic device 100 does not provide some functions. The functions provided by the electronic device 100 under the lock screen interface have lower requirements for data security. Exemplarily, the functions provided by the electronic device 100 under the lock screen interface may include: answering a call, hanging up a call, adjusting the music volume, starting the camera application, turning on / off the airplane mode, etc.

[0065] When the screen state of the electronic device 100 is in the lock screen interface display state, the electronic device 100 can verify the identity of the user through the biometric authentication method to unlock, so that the screen display state is in the bright screen and unlocked state. Among them, the biometric authentication method can include one or more of password authentication, face authentication, fingerprint authentication, iris authentication, voiceprint authentication, etc. Bright screen can refer to the state in which all areas of the display screen on the electronic device 100 are lit and displayed.

[0066] S302. When the electronic device 100 displays interface 1 (which may be referred to as the first interface) and determines that the current screen display state is a bright screen and unlocked state, the electronic device 100 detects a user gesture 1 (which may also be referred to as a first operation).

[0067] Specifically, the interface 1 displayed by the electronic device 100 in the unlocked state may be a desktop, a user interface displayed when running an application 3 (e.g., a music application, a news application, a video application, etc.). It should be noted that the application 3 is different from the application 1 and is not used for payment.

[0068] For example, the interface 1 displayed by the electronic device 100 may be a desktop. The electronic device 100 may detect that the current screen display state is a bright screen and unlocked state. Figure 4A As shown, the electronic device 100 may display a desktop 400. One or more application icons may be displayed on the desktop 400. The one or more application icons may include a weather application icon, a stock application icon, a calculator application icon, a setting application icon, a mail application icon, a theme application icon, a calendar application icon, and a video application icon.

[0069] Optionally, a status bar, a page indicator and a tray icon area may also be displayed in the desktop 400. Among them, the status bar may include one or more signal strength indicators of mobile communication signals (also known as cellular signals), signal strength indicators of wireless fidelity (Wi-Fi) signals, battery status indicators, time indicators, etc. The page indicator can be used to indicate the positional relationship between the currently displayed page and other pages. The tray icon area includes multiple tray icons (such as dialing application icons, information application icons, contact application icons, camera application icons, etc.), and the tray icon remains displayed when the page is switched. The above-mentioned page may also include multiple application icons and page indicators. The page indicator may not be part of the page but exist independently. The above-mentioned tray icon is also optional, and the embodiments of the present application are not limited to this.

[0070] In addition, the electronic device 100 may also include a front low-power camera 401. The front low-power camera 401 can be used to capture images. The electronic device 100 can identify and determine the code scanning device based on the captured image. The process of identifying and determining the code scanning device will be described in detail in the subsequent embodiments and will not be repeated here.

[0071] When the electronic device 100 displays the interface 1 and determines that the current screen display state is the bright screen and unlocked state, the electronic device 100 can detect the user's gesture 1 based on the motion sensor. The motion sensor may include an accelerometer (also referred to as an acceleration sensor), and / or a gyroscope, and / or a gravity sensor, etc. The gesture 1 may be a wrist-turning gesture (also referred to as a wrist-turning action) of the user, etc. When the electronic device 100 detects through the motion sensor that the motion data meets the preset condition 1, for example, the acceleration 1 in the specified axis (for example, the Z axis) changes from the specified direction 1 (for example, opposite to the direction of gravity acceleration) to the specified direction 2 (for example, the same as or perpendicular to the direction of gravity acceleration), and the value of the acceleration 1 is within the preset acceleration threshold 1 (for example, 0.75g-1.1g), the electronic device 100 can detect the user's gesture 1.

[0072] For example, the electronic device 100 can detect the user's wrist flip gesture through an acceleration sensor. When the electronic device 100 detects based on the acceleration sensor that the acceleration in the Z-axis direction changes from the opposite direction of the gravity acceleration to the same direction as the gravity acceleration, and the value of the acceleration in the Z-axis direction is between 0.75g and 1.1g, the electronic device 100 can determine that the user's wrist flip gesture is true.

[0073] S303: After the electronic device 100 determines the user's gesture 1, the electronic device 100 may detect the orientation of the screen of the electronic device 100 and the hovering time of the electronic device 100.

[0074] Specifically, the electronic device 100 can detect acceleration value 2 in the X-axis direction, acceleration value 3 in the Y-axis direction, and acceleration value 4 in the Z-axis direction based on the motion sensor, and detect the orientation of the screen based on the above data.

[0075] For example, Figure 4B As shown, the electronic device 100 can make the angle between the screen on the electronic device 100 and the ground within a specified angle range (e.g., 90 degrees to 180 degrees) based on the user's wrist turning action. For example, when the angle between the screen on the electronic device 100 and the ground is 90 degrees, the screen on the electronic device 100 is perpendicular to the ground. When the angle between the screen on the electronic device 100 and the ground is 180 degrees, the screen on the electronic device 100 faces the ground. The electronic device 100 can detect the orientation of the screen on the electronic device 100 based on the gravity sensor.

[0076] like Figure 4C As shown, the axis perpendicular to the screen on the electronic device 100 is the Z axis, the axis perpendicular to the upper side and the lower side of the electronic device 100 is the Y axis, and the axis perpendicular to the left side and the right side of the electronic device 100 is the X axis. When the electronic device 100 obtains the value of the acceleration 4 in the Z axis direction as -g through the gravity sensor, the electronic device 100 can determine that the orientation of the screen on the electronic device 100 is facing the ground. When the electronic device 100 obtains the value of the acceleration 2 in the X axis direction as g through the gravity sensor, the electronic device 100 can determine that the orientation of the screen on the electronic device 100 is perpendicular to the ground and the right side of the electronic device 100 is facing upward. When the electronic device 100 obtains the value of the acceleration 3 in the Y axis direction as g through the gravity sensor, the electronic device 100 can determine that the screen on the electronic device 100 is perpendicular to the ground and the upper side of the electronic device 100 is facing upward.

[0077] S304. When the electronic device 100 determines that the state of the electronic device 100 is that the angle between the screen of the electronic device 100 and the ground is within a specified angle range (for example, 90 degrees-180 degrees, which can also be referred to as less than the first threshold, for example, the angle is less than 90 degrees), and the hovering time of the electronic device 100 is greater than a preset time value 1 (can also be referred to as the second threshold, for example, 2 seconds), the electronic device 100 can capture image 1 (can also be referred to as the first camera, for example, a front low-power camera) through a designated camera 1 (can also be referred to as the first camera, for example, a front low-power camera). The electronic device 100 can identify a code scanning device (can also be referred to as a first target object) based on the image 1. The code scanning device can be a code scanning box or a large code scanning machine, and this application does not limit this.

[0078] Among them, hovering may refer to the user holding the electronic device 100 and keeping the electronic device within a certain area for more than a predetermined time, and the electronic device 100 keeps the screen facing the ground at an angle within a specified angle range. Optionally, the state of the electronic device is hovering above the code scanning device, which can be interpreted as staying on the code scanning device, stationary or staying within a certain area (for example, due to the user's hand shaking or changing posture causing the position of the electronic device to change) for a time exceeding a preset time value 1.

[0079] Specifically, when the electronic device 100 detects through the motion sensor that the acceleration value 2 in the X-axis direction is within the acceleration threshold 2 (for example, -g to g), the acceleration value 3 in the Y-axis direction is within the acceleration threshold 3 (for example, 0-0.2), and the acceleration value 4 in the Z-axis direction is within the acceleration threshold 4 (for example, -g to 0), the electronic device 100 can determine that the angle between the screen orientation of the electronic device 100 and the ground is within the specified angle range (for example, 90 degrees to 180 degrees).

[0080] The electronic device 100 may be pre-installed with an image 2 including a screen of a code scanning device. The electronic device 100 may capture a preset number (e.g., one) of images 1 through a designated camera 1 (e.g., a front low-power camera). When the electronic device 100 identifies the code scanning device based on the image 1, the electronic device 100 may calculate and compare the similarity between the image 1 and the image 2. When the calculation result 1 is within the designated similarity threshold range 1, the electronic device 100 may determine that the image 1 includes a code scanning device.

[0081] For example, Figure 4D As shown, when the electronic device 100 determines that the screen of the electronic device 100 is facing the ground, the electronic device 100 can capture an image 410 (also referred to as image 1) through the front low-power camera 401. For a description of the front low-power camera 401, please refer to the aforementioned Figure 4A The electronic device 100 can perform a similarity calculation and comparison based on the image 410 and the preset image 2 including the code scanning device. When the calculation result 1 is within the specified similarity threshold range 1, the electronic device 100 can determine that the image 410 includes the code scanning device 410A.

[0082] S305. When the electronic device 100 identifies the code scanning device based on the above-mentioned image 1, the electronic device 100 can capture multiple images through the designated camera 1 (for example, the front low-power camera). The electronic device 100 can identify the code scanning device based on the multiple images that have been captured. The multiple images that have been captured include image 1, image 3 (also referred to as the second image) and image 4 (also referred to as the third image).

[0083] Specifically, the electronic device 100 can perform a comparative calculation of the similarity between the multiple images captured by the designated camera 1 (e.g., the front low-power camera) and the image 2 preset in the aforementioned step S304. When the calculation result of each image is within the specified similarity threshold range 2, for example, when the calculation result 1 of image 1, the calculation result 2 of image 3, and the calculation result 3 of image 4 are all within the similarity threshold range 2, the electronic device 100 can further determine the code scanning device. Among them, the interval of the similarity threshold range 2 is smaller than the interval of the similarity threshold range 1 in the aforementioned S304.

[0084] For example, Figure 4E As shown, when the electronic device 100 is based on the aforementioned Figure 4D After the image 410 in the image 410 identifies the code scanning device, the electronic device 100 can capture multiple images through the front low-power camera 401. For the description of the front low-power camera 401, please refer to the aforementioned Figure 4A The relevant descriptions in the figure are not repeated here. The multiple images may include image 410 (also referred to as image 1), image 411 (also referred to as image 3) and image 412 (also referred to as image 4), etc. The electronic device 100 can respectively calculate and compare the similarity of image 410, image 411 and image 412 with image 2. When the calculation results of each image, such as calculation result 1 of image 410, calculation result 2 of image 411 and calculation result 3 of image 412 are all within the specified similarity threshold range 2, the electronic device 100 can determine that image 410, image 411 and image 412 all include a code scanning device 410A, and therefore, the electronic device 100 can further determine the code scanning device 410A.

[0085] Optionally, when the code scanning device is a shopping deduction scanning device used in a shopping mall, the code scanning device is a shopping deduction scanning device in a shopping mall; when the code scanning device is a transportation fare deduction scanning device used in transportation, the code scanning device is a transportation fare deduction scanning device.

[0086] In one possible implementation, the electronic device 100 may capture multiple images of code scanning devices at the same angle. In another possible implementation, the electronic device 100 may also capture multiple images of code scanning devices at different angles. This application does not limit this.

[0087] In one possible implementation, the electronic device 100 may capture image 1 with designated camera 1 in step S304, and capture image 3 and image 4 with designated camera 2 (also referred to as a second camera) in step S305. The designated camera 1 and the designated camera 2 may be different. For example, in some embodiments, the designated camera 1 may be a low-power camera, and the designated camera 2 may be a non-low-power camera. In some embodiments, the designated camera 1 may be a close-up camera, and the designated camera 2 may be a long-range camera. This application does not limit this.

[0088] In a possible implementation, the electronic device 100 may also only capture image 3 in step 305. The electronic device 100 may perform a comparative calculation of similarity between image 1 and image 3 and the preset image 2. When the electronic device 100 determines that the calculation result 1 of image 1 and the calculation result 2 of image 3 are both within the similarity threshold range 2, the electronic device 100 may further determine the code scanning device. Optionally, the interval of the similarity threshold range 2 is smaller than the interval of the similarity threshold range 1 in the aforementioned S304.

[0089] S306. The electronic device 100 may detect whether the distance between the code scanning device and the electronic device 100 is within a distance threshold 1 (also referred to as a third threshold, for example, 8 cm-20 cm).

[0090] Specifically, the electronic device 100 can detect the distance between the code scanning device and the electronic device 100 based on a designated sensor (e.g., a time of flight (TOF) sensor). When the electronic device 100 determines that the electronic device 100 is no longer moving and is in a stable state based on the acceleration sensor, the designated sensor can calculate the distance between the code scanning device and the electronic device 100.

[0091] Exemplarily, the electronic device 100 can detect the distance between the code scanning device and the electronic device 100 based on the TOF sensor. When the electronic device 100 determines that the electronic device 100 is no longer moving and is in a stable state according to the acceleration sensor, the TOF sensor can obtain the distance between the code scanning device and the electronic device 100 by calculating the flight time from the emission of the pulse wave to the reflection of the pulse wave by the code scanning device back to the TOF sensor.

[0092] In a possible implementation, the TOF sensor can obtain multiple sets of distance values ​​between the code scanning device and the electronic device 100 based on the pulse waves emitted multiple times, and determine the average value of the multiple sets of distance values ​​as the distance between the code scanning device and the electronic device 100.

[0093] S307 , the electronic device 100 may detect whether a QR code is displayed on the interface 1 .

[0094] Specifically, the electronic device 100 can intercept the image on the interface 1 and obtain the image 4. The electronic device 100 can detect whether a QR code is displayed on the interface 1 based on the image 4.

[0095] S308: When the electronic device 100 determines that the distance between the code scanning device and the electronic device 100 is within a distance threshold 1 (e.g., 8 cm-20 cm), and no QR code is displayed on the interface 1, the electronic device 100 may display an interface 2 (also referred to as a second interface) corresponding to the application 1. The interface 2 may include a QR code and a floating window.

[0096] Optionally, when the code scanning device is a shopping deduction scanning device used in a shopping mall, the QR code can be a payment QR code used for shopping; when the code scanning device is a transportation fare deduction scanning device used in transportation, the QR code can also be a subway QR code or a bus QR code.

[0097] In this embodiment, the QR code is used as a payment QR code 1 for shopping. The application 1 may be a default application for payment of an amount preset by the electronic device 100, for example application, Applications, etc. The payment QR code 1 may include an identification of the application 1 and information of the designated account 1 (e.g., an ID number of the designated account 1). The floating window may include one or more payment application icons. The one or more payment application icons may include an icon of the application 1. The one or more payment application icons may receive user input, so that the electronic device 100 runs the designated payment application in response to the input to perform an amount payment operation.

[0098] For example, Figure 4F As shown, the electronic device 100 can display a user interface 420 (also referred to as interface 2). The user interface 420 can display a page title, a return control 421A, a payment QR code 421B (also referred to as payment QR code 1), and a floating window 422. The page title can be a text prompt, such as "Pay to the merchant". The return control 421A can be used to receive a touch operation (e.g., click) from the user, so that the electronic device 100 returns to the previous page in response to the touch operation. The floating window 422 can include Application Icon 422A, Application icon 422B, check box 422C, and close control 422D. The check box 422C can prompt the user of the application currently selected for payment. The close control 422D can be used to receive a touch operation (e.g., click) from the user, so that the electronic device 100 no longer displays the floating window 422 in response to the touch operation. In the embodiment of the present application, The application (may also be referred to as application 1) may be a default application preset by the electronic device 100 for amount payment.

[0099] In a possible implementation, the electronic device 100 may not display a floating window for the user to switch payment applications in the interface 2. This application does not limit this.

[0100] In a possible implementation, when the electronic device 100 displays the interface 2, the electronic device 100 may output a voice message and / or a vibration prompt to inform the user that the electronic device 100 has displayed the interface 2. This application does not limit this.

[0101] It should be noted that the above steps S305-S307 can be performed in parallel. When the electronic device 100 determines that the image does not include a code scanning device, and / or the distance between the code scanning device and the electronic device 100 is not within a preset distance range 1 (for example, 8 cm-20 cm), and / or a QR code is displayed on the interface 1, the electronic device 100 can terminate the execution of the YOYO quick payment method process provided by this application.

[0102] S309. The electronic device 100 can perform payment operations based on the QR code and the code scanning device.

[0103] Specifically, in this embodiment, the QR code is a payment QR code 1 applied to shopping. When the scanning device reads the information in the payment QR code 1, the application 1 identifier and the information of the designated account 1 in the payment QR code 1 can be sent to the server 1 (also referred to as the first server) based on the scanning device. Among them, the server 1 can be the server corresponding to the application 1 (also referred to as the first application). Based on the information of the designated account 1 (also referred to as the first account), the server 1 can query the amount in the designated account 1. When the server 1 determines that the amount in the designated account 1 is equal to or greater than the designated amount to be paid (also referred to as the first amount), the server 1 transfers the designated amount to be paid in the designated account 1 to the designated account 2 (also referred to as the second account) to perform the payment operation. After performing the payment operation, the server 1 can send a payment success prompt message to the electronic device 100. The electronic device 100 can display an interface 3 based on the payment success prompt message to prompt the user that the payment operation of this amount has been completed. Among them, the payment QR code 1 can be an Aztec QR code, a QR Code QR code, a PDF417 QR code, etc., and this application does not impose any restrictions on this.

[0104] For example, Figure 4G As shown, when the code scanning device reads the information in the payment QR code 421B, Server 1 corresponding to the application can The application transfers the designated amount to be paid in the corresponding designated account 1 to the designated account 2 to perform the payment operation. The electronic device 100 can display a user interface 430 (also referred to as interface 3). The user interface 430 may include payment amount information, payment method information, information of the designated account 2, and a completion control 431. Among them, the payment amount information may be a text prompt information "¥10.8", the payment method information may be a text prompt information "account balance", and the information of the designated account 2 may be the name of the designated account 2 "convenience chain store". The completion control 431 can be used to receive a touch operation (e.g., click) performed by the user thereon, so that the electronic device 100 no longer displays the user interface 430 in response to the touch operation.

[0105] It should be noted that the above steps are only used to exemplify the payment method provided by this application and do not constitute a specific limitation on this application. In a specific implementation, the embodiment of this application may include fewer steps. This application does not limit this.

[0106] For example, in some embodiments, the electronic device 100 can identify the scanning device based on the image 1 captured by the designated camera 1 (for example, the front low-power camera) when it detects that the interface 1 is not a lock screen interface, and detects the user's gesture 1 and the state of the electronic device 100 is that the angle between the screen of the electronic device 100 and the ground is within a specified angle range, and the hovering time is greater than a preset time value 1, and then displays an interface 2 including a QR code.

[0107] In other embodiments, after detecting that interface 1 is not a lock screen interface and detecting a user's gesture 1, the electronic device 100 can identify a code scanning device based on an image 1 captured by a designated camera 1 (for example, a front low-power camera), and then display an interface 2 including a QR code.

[0108] In other embodiments, after the electronic device 100 detects the user's gesture 1, the electronic device 100 may execute steps S304 and S305, and then display an interface 2 including a QR code.

[0109] In some other implementations, after detecting the user's gesture 1, the electronic device 100 may execute steps S303 and S304, and then display an interface 2 including a QR code.

[0110] In some other implementations, after detecting the user's gesture 1, the electronic device 100 may execute step S303, step S304, and step S305, and then display an interface 2 including a QR code.

[0111] In other embodiments, after detecting the user's gesture 1, the electronic device 100 may execute step S303, step S304, step S305 and step S306, and then display the interface 2 including the QR code. This application does not limit this.

[0112] In one possible implementation, when the server 1 is unable to transfer the designated amount from the designated account 1 to the designated account 2 because the amount in the designated account 1 is less than the designated amount to be deducted (also referred to as the first amount), the electronic device 100 may receive a payment failure prompt message sent by the server 1. The electronic device 100 may display an interface 2 based on the payment failure prompt message, and display the payment failure prompt message on the interface 2. The payment failure prompt message may be used to prompt the user that the electronic device 100 fails to make a payment when running application 1. The electronic device 100 may receive the user's input on the icon of application 2 on the floating window (also referred to as the first input), and run application 2 (also referred to as the second application, for example, application, Application) and displays interface 4 (also referred to as the third interface). The interface 4 may include a payment QR code 2 corresponding to application 2. Among them, application 2 is different from application 1, but both application 2 and application 1 can be used for amount payment. The information in the payment QR code 2 may include information of the designated account 3 (for example, the ID number of the designated account 3) and the identifier of application 2. When the code scanning device reads the information in the payment QR code 2, the application 2 identifier and the information of the designated account 3 in the payment QR code 2 can be sent to server 2 based on the code scanning device. Among them, the server 2 can be the server corresponding to application 2. Based on the information of the designated account 3, the server 2 can query the amount in the designated account 3. When the server 2 determines that the amount in the designated account 3 is equal to or greater than the designated amount to be paid, the server 2 transfers the designated amount to be paid in the designated account 3 to the designated account 2 to perform the payment operation.

[0113] For example, Figure 5AAs shown, when the amount in the designated account 1 corresponding to the application 1 is less than the designated amount to be deducted, resulting in a payment failure, the electronic device 100 can display a prompt box 501 on the user interface 420. Among them, the prompt box 501 may include a payment failure prompt message, and the payment failure prompt message may be, for example, a text prompt message "Sorry, insufficient balance, please try again". The prompt box 501 may also include a control 501A and a control 501B. The control 501A may be used to receive a touch operation (e.g., click) performed by a user thereon, so that the electronic device 100 no longer displays the user interface 420 in response to the touch operation. The control 501B may be used to receive a touch operation (e.g., click) performed by a user thereon, so that the electronic device 100 can switch the payment method (e.g., use a bank card account for payment, etc.) in response to the touch operation.

[0114] When the electronic device 100 receives the user's action in the floating frame 422 When a touch operation (e.g., click) is performed on the application icon 422B, the electronic device 100 may execute The application (may also be referred to as application 2) displays a user interface 510 (may also be referred to as interface 4).

[0115] like Figure 5B As shown, the user interface 510 may include a page title, a return control 511, and a payment QR code 512 (also referred to as a payment QR code 2). The page title may be a text prompt, such as "Payment". The return control 511 may be used to receive a touch operation (e.g., click) from a user, so that the electronic device 100 returns to the previous page in response to the touch operation.

[0116] When the code scanning device reads the information in the payment QR code 512, The server 2 corresponding to the application can transfer the designated amount to be paid in the designated account 3 to the designated account 2 to perform the payment operation. The electronic device 100 can display a user interface 520 to prompt the user that the payment operation has been successfully performed.

[0117] like Figure 5C As shown, the user interface 520 may include payment amount information, information of the designated account 2, and a completion control 521. The payment amount information may be a text prompt information "¥10.8", and the information of the designated account 2 may be the name of the designated account 2 "convenience store chain". The completion control 521 may be used to receive a touch operation (e.g., click) from a user, so that the electronic device 100 no longer displays the user interface 520 in response to the touch operation.

[0118] In a possible implementation, when the electronic device 100 runs the application 1 (eg application, When the electronic device 100 displays the interface 2 including the payment QR code 1, the electronic device 100 may output a voice message and / or a vibration prompt to inform the user that the electronic device 100 has displayed the interface 2. The electronic device 100 may receive and respond to the user's touch operation (e.g., click) on the icon of the application 2 in the floating window, run the application 2 (e.g., application, Application) and display interface 4. Among them, application 2 is different from application 1, but both application 2 and application 1 can be used for amount payment. For the description of interface 4 and payment QR code 2, reference can be made to the corresponding description in the above embodiment, which will not be repeated here.

[0119] For example, Figure 5D As shown, application 1 is For example, when the electronic device 100 runs When the user interface 420 is applied and displayed, the electronic device 100 may output a voice message or a vibration prompt to inform the user that the electronic device 100 has displayed the user interface 420. The electronic device 100 may receive and respond to the user's action in the floating window 422. When a touch operation (e.g., click) is performed on the application icon, the electronic device 100 can run The application (also referred to as application 2) displays a user interface 510 (also referred to as interface 4). For a description of the user interface 510, please refer to the aforementioned Figure 5B The description of the illustrated embodiment will not be repeated here.

[0120] When the code scanning device reads the information in the payment QR code 512, The server 2 corresponding to the application can transfer the specified amount in the specified account 3 to the specified account 2 to perform the payment operation. The electronic device 100 can display a user interface 520 to prompt the user that the payment operation has been successfully performed. Figure 5C The description of the illustrated embodiment will not be repeated here.

[0121] In a possible implementation, when the electronic device 100 does not have the application 1 installed (eg application, When the electronic device 100 runs the application 2 (for example, the payment application 2 icon), the electronic device 100 may display a floating window on the interface 1. The floating window may include a prompt message for prompting the user that the application 1 fails to run, one or more payment application icons, etc. The electronic device 100 may receive and respond to the user's touch operation (for example, click) on the application 2 icon on the floating window, and run the application 2 (for example, application, Application) and display interface 4. Among them, application 2 is different from application 1, but both application 2 and application 1 can be used for amount payment. For the description of interface 4 and payment QR code 2, reference can be made to the corresponding description in the above embodiment, which will not be repeated here.

[0122] For example, Fig. 6A As shown, application 1 is For example, when the electronic device 100 is not installed When the application is running, the electronic device 100 can display a floating window 601 on the desktop 400. The floating window 601 may include prompt information that the application 1 fails to run, Application Icon 422A, Application icon 422B, check box 422C, close control 422D, etc. Among them, the prompt information can be a text message "Default payment method failed, please reselect". For the description of the check box 422C and the close control 422D, please refer to the aforementioned Figure 4F The description in the illustrated embodiment will not be repeated here.

[0123] like Figure 6B As shown, when the electronic device 100 receives the user's action in the floating frame 601 When a touch operation (e.g., click) is performed on the application icon 422B, the electronic device 100 may execute The application (also referred to as application 2) displays a user interface 510 (also referred to as interface 4). For a description of the user interface 510, please refer to the aforementioned Figure 5B The description of the illustrated embodiment will not be repeated here.

[0124] When the code scanning device reads the information in the payment QR code 512, The server 2 corresponding to the application can transfer the specified amount in the specified account 3 to the specified account 2 to perform the payment operation. The electronic device 100 can display a user interface 520 to prompt the user that the payment operation has been successfully performed. Figure 5C The description of the illustrated embodiment will not be repeated here.

[0125] In a possible implementation, when the electronic device 100 does not store data of the designated account 1, the electronic device 100 may display an interface 5 before running the application 1 to display the payment QR code 1. The interface 5 may include a floating window, which may display one or more payment application icons. For the description of the one or more payment application icons, reference may be made to the description in the aforementioned step S308, which will not be repeated here. The electronic device 100 may obtain the account information (e.g., account ID, account password) of the designated account 1 based on the user's input to the interface 5, and then send the account information to the server 1 corresponding to the application 1. The server may verify whether the account password in the account information matches the account ID. When the account password matches the account ID, the server may send a successful verification instruction message to the electronic device 100. After receiving the successful verification instruction, the electronic device 100 may obtain the data of the designated account 1 from the server and display an interface 2 including the payment QR code 1.

[0126] For example, Figure 6C As shown, application 1 is For example, when the electronic device 100 does not store When applying the data of the corresponding designated account 1, the electronic device 100 can display a user interface 610. The user interface 610 may include an exit control 611, an input prompt box 612, and a floating window 613. Among them, the exit control 611 can receive a touch operation (for example, a click) performed by the user, so that the electronic device 100 can no longer display the user interface 610 in response to the touch operation. The input prompt box 612 can display a text prompt message "Please enter your mobile phone number" to prompt the user to enter the specified data information. The input prompt box 612 can display the specified data information based on the user's input. The floating window 613 may include Application icon 613A. The application icon 613A may receive a touch operation (eg, click) from the user, so that the electronic device 100 may run the application in response to the touch operation. Apply and complete payment.

[0127] like Figure 6C-6D As shown, when the electronic device 100 receives a touch operation from the user on any blank area of ​​the user interface 610, the floating window 613 can be hidden. The electronic device 100 can obtain the account information (e.g., account ID, account password) of the specified account 1 based on the specified data information entered by the user in the input box 612, and then send the account information to The server 1 corresponding to the application can verify whether the account password in the account information matches the account ID. When the account password matches the account ID, the server can send a successful verification instruction to the electronic device 100. After receiving the successful verification instruction, the electronic device 100 can obtain the data of the specified account 1 from the server and display the user interface 420. For the description of the user interface 420, please refer to the aforementioned Figure 4F The description of the illustrated embodiment will not be repeated here.

[0128] When the code scanning device reads the information in the payment QR code 421B, Server 1 corresponding to the application can The application transfers the specified amount in the corresponding designated account 1 to the designated account 2 to perform the payment operation. The electronic device 100 can display a user interface 430 to prompt the user that the payment operation has been successfully performed. For the description of the user interface 430, please refer to the aforementioned Figure 4G The description of the illustrated embodiment will not be repeated here.

[0129] In a possible implementation, interface 1 may be a user interface displayed after the electronic device 100 is unlocked based on the lock screen interface. The electronic device 100 may execute the process of the YOYO quick payment method provided in this application based on the interface 1. The lock screen interface refers to the interface when the electronic device 100 is in the lock screen state.

[0130] like Fig. 6E As shown, the electronic device 100 can display a lock screen interface 620. The lock screen interface 620 can display a status bar, a calendar indicator, and a lock screen icon 621. Among them, the status bar may include one or more signal strength indicators of a mobile communication signal (also referred to as a cellular signal), one or more signal strength indicators of a wireless high fidelity (wireless fidelity, Wi-Fi) signal, a battery status indicator, etc. The calendar indicator can be used to indicate the current time, such as the date, day of the week, and hour and minute information. A text prompt message "Face recognition in progress" may be displayed below the lock screen icon 621.

[0131] When the electronic device 100 displays the lock screen interface, the electronic device 100 can verify the identity of the user through biometric authentication, which may include one or more of password authentication, face authentication, fingerprint authentication, iris authentication, voiceprint authentication, etc.

[0132] like Fig. 6FAs shown, when the electronic device 100 displays the lock screen interface 620, the electronic device 100 can be unlocked through face verification. The electronic device 100 can display an unlock icon 622 on the lock screen interface 620 to prompt the user that it has been unlocked. Among them, a text prompt message "Face unlocked" can be displayed below the unlock icon 622. The electronic device 100 can execute the process of the YOYO quick payment method provided in this application based on the user interface 620. For an explanation of the process, please refer to the description of the aforementioned S301-S309 steps, which will not be repeated here.

[0133] In a possible implementation, interface 1 may be a user interface displayed when electronic device 100 runs application 3. Electronic device 100 may execute the process of the YOYO quick payment method provided in this application based on interface 1. Application 3 may be an immersive application that provides video playback and runs games without displaying a status bar, or may be a non-immersive application that cannot be used for payment.

[0134] For example, take application 3 as an example, which is a video application in an immersive application. Figure 6G As shown, the electronic device 100 can display a video interface 630 when running application 3. The video interface 630 can include a video screen 631 and a progress bar 632. The electronic device 100 can execute the process of the YOYO quick payment method provided in this application based on the video interface 630. For the description of the process, please refer to the description of the aforementioned S301-S309 steps, which will not be repeated here.

[0135] For example, take application 3 as an example, which is a music application in a non-immersive application. Figure 6H As shown, the electronic device 100 can display a music playback interface 640 when running application 3. The music playback interface 640 may include a music playback screen 641, a progress bar 642, and one or more controls (e.g., music pause / play control, play next music control, play previous music control, etc.). The electronic device 100 can execute the process of the YOYO quick payment method provided in this application based on the music playback interface 640. For an explanation of the process, please refer to the description of the aforementioned S301-S309 steps, which will not be repeated here.

[0136] In a possible implementation, the interface 1 may be a negative one screen interface. The negative one screen interface refers to the leftmost page of the mobile phone. The negative one screen may display the user's commonly used applications or the shortcut functions provided by the application. The electronic device 100 may execute the process of the YOYO quick payment method provided in this application based on the interface 1.

[0137] For example, Fig.6IAs shown, the electronic device 100 can display the negative one-screen interface 650 when the user performs a right swipe gesture operation on the desktop 400. The negative one-screen interface 650 may include a search box 651, one or more shortcut functions (for example, a scan shortcut function, a payment shortcut function, a recharge shortcut function, etc.), and a message prompt box 652. Among them, the message prompt box 652 may include text prompt information "Today's steps 2598 steps", "Consumption of 356 cards". The electronic device 100 can execute the process of the YOYO quick payment method provided in this application based on the negative one-screen interface 650. For an explanation of the process, please refer to the description of the aforementioned S301-S309 steps, which will not be repeated here.

[0138] In a possible implementation, the interface 1 may be a drop-down interface. The drop-down interface may include one or more notification information. The electronic device 100 may execute the process of the YOYO quick payment method provided in this application based on the interface 1.

[0139] For example, Figure 6J As shown, when the electronic device 100 detects a downward gesture operation by the user on the desktop 400, the electronic device 100 can display a drop-down interface 660 in response to the downward gesture. The drop-down interface 660 may include a close control 661 and a notification window 662. Among them, the notification window 662 can display notification information, such as "Beijing, today to tomorrow, cloudy, 18-29 degrees...". The control 661 can receive a touch operation (e.g., click) performed by the user on it, so that the electronic device 100 can clear all notifications of the drop-down interface in response to the touch operation. The electronic device 100 can execute the process of the YOYO quick payment method provided in this application based on the drop-down interface 660. For an explanation of the process, please refer to the description of the aforementioned S301-S309 steps, which will not be repeated here.

[0140] In a possible implementation, the interface 1 may also be an archive interface. The archive interface refers to a user interface on the electronic device 100 that can display one or more cards (e.g., flight cards, schedule cards, weather cards, etc.). The electronic device 100 may execute the process of the YOYO quick payment method provided in this application based on the interface 1. This application does not limit this.

[0141] In a possible implementation, after the electronic device 100 displays the interface 2, the electronic device 100 may receive and respond to the user input on the interface 2 and no longer display the interface 2 but display the desktop.

[0142] For example, Figure 6KAs shown, the electronic device 100 may receive a touch operation of the user sliding upward from the lower edge of the user interface 420. In response to the touch operation, the electronic device 100 may no longer display the user interface 420, but display the desktop 400. For the description of the desktop 400, please refer to the aforementioned Figure 4A The description of the illustrated embodiment will not be repeated here.

[0143] In a possible implementation, the electronic device 100 may be configured with a main screen and a sub-screen. The orientation of the main screen may be the same as that of the front camera, and the orientation of the sub-screen may be the same as that of the rear camera. When the electronic device 100 determines that the current screen state is a bright screen and unlocked state, and determines the user's gesture 1 and the orientation and hovering time of the screen, the electronic device 100 may capture one or more frames of images through the rear camera. The electronic device 100 may identify the code scanning device through the one or more frames of images. When the electronic device 100 identifies the code scanning device and determines that the distance between the code scanning device and the electronic device 100 is at a distance threshold 1, the electronic device 100 may run application 1 and display a payment QR code 1 on the main screen and / or the sub-screen. The code scanning device may perform a payment operation based on the payment QR code 1 on the main screen or the sub-screen.

[0144] When the payment QR code 1 of application 1 is displayed on both the main screen and the secondary screen, the electronic device 100 may receive a user input based on the main screen. In response to the input, the electronic device 100 may run application 2 so that the main screen and the secondary screen display the payment QR code 2 instead of the payment QR code 1. The code scanning device may perform a payment operation based on the payment QR code 2. In this way, the user may switch payment applications more conveniently, thereby improving payment efficiency.

[0145] In some embodiments, before the electronic device 100 performs the aforementioned steps S301-S309, the electronic device 100 may display a fourth interface including a first control. The electronic device 100 may receive and respond to a second input from a user on the first control to set a default application 1 for amount payment.

[0146] For example, application 1 is Take application as an example, Fig. 7A As shown, the electronic device 100 can display a desktop 400. For a description of the desktop 400, please refer to the aforementioned Figure 4A The description of the illustrated embodiment will not be repeated here.

[0147] The electronic device 100 may receive a touch operation (eg, click) from a user on the setting application icon 701. In response to the touch operation, the electronic device 100 may display a setting interface.

[0148] like Figure 7B As shown, the electronic device 100 may display a settings interface 710. The settings interface 710 may include one or more settings items (e.g., airplane mode settings item, Wi-Fi settings item, Bluetooth settings item, mobile network settings item, do not disturb mode settings item, display and brightness settings item, account settings item, and YOYO quick payment settings item 711). The electronic device 100 may receive a touch operation (e.g., click) from a user on the YOYO quick payment settings item 711. In response to the touch operation, the electronic device 100 may display the YOYO quick payment settings interface.

[0149] like Figure 7C As shown, the electronic device 100 may display the YOYO quick payment setting interface 720 (also referred to as the fourth interface). The YOYO quick payment interface may include a page title, a return control 721, a YOYO quick payment setting control 722, a quick payment method information column 723, and a disclaimer entry. Among them, the page title may be the text message "YOYO quick payment". The return control 721 may receive a touch operation (e.g., click) applied by a user thereon, so that the electronic device 100 returns to the previous page in response to the touch operation. The text information on the YOYO quick payment setting control 722 may be a prompt message "OFF" to turn off the YOYO quick payment. The YOYO quick payment setting control 722 may be used to receive a touch operation (e.g., click) applied by a user thereon, so that the electronic device 100 turns on or off the YOYO quick payment function in response to the touch operation.

[0150] like Figure 7D-Figure 7E As shown, when the electronic device 100 receives and responds to a touch operation (e.g., click) on the YOYO quick payment setting control 722, the electronic device 100 may display a prompt box 731 on the YOYO quick payment setting interface 720. The prompt box 731 may include Application icon and corresponding control 731A (also referred to as first control), Icon and corresponding control 731B, cancel control 731C and confirmation control 731D, etc. When the electronic device 100 receives the user's touch operation (also referred to as the second input, for example, click) on control 731A and the touch operation (for example, click) on confirmation control 731D, the electronic device 100 may The application is set as the default application for money payment. Figure 7F As shown, the electronic device 100 can display the quick payment information column 723 in the YOYO quick payment setting interface 720. The information of the application, such as the name “Alipay”. The text information on the YOYO quick payment setting control 722 may be a prompt message “ON” for turning on the YOYO quick payment.

[0151] In a possible implementation, when the electronic device 100 receives and responds to the user's input to set application 1 as the default application for amount payment, and application 1 is not bound to a bank card account, the electronic device 100 may display a prompt box on the YOYO quick payment setting interface. The prompt box may include a control for binding a bank card account.

[0152] For example, application 1 is Take application as an example, Figure 7G As shown, the electronic device 100 can display a prompt box 741 on the YOYO quick payment setting interface 720. Among them, the prompt box 741 may include a text prompt message "Your Alipay has not been bound to a card, and you can use it after binding the card", a control 741A and a control 741B. Controls 741A and 741B can be used to receive input (e.g., click) from a user, so that the electronic device 100 performs a corresponding operation in response to the input. When the electronic device 100 receives and responds to the user's input (e.g., click) on control 741B, the electronic device 100 can bind a specified bank card account.

[0153] Next, a software architecture provided by an embodiment of the present application and applicable to the electronic device 100 is introduced.

[0154] Please refer to Figure 8 , Figure 8 A software architecture diagram provided in an embodiment of the present application is exemplified.

[0155] like Figure 8 As shown, the software architecture provided by the embodiment of the present application may include an application layer, an application framework layer, a hardware abstraction layer, a hardware layer, a low-power awareness module and a trusted execution environment (TEE).

[0156] The application layer can include a series of application packages. Figure 8 As shown, the application package may include a calculator, a camera, a calendar, a weather, a memo, an application 1 for payment (e.g., application, applications, etc.) and YOYO quick payment application.

[0157] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 8 As shown, in the embodiment of the present application, the application framework layer may include a fusion perception module. The fusion perception module may include a northbound interface, a screen display state detection module, a wrist flip motion detection module, a screen orientation / hover detection module, a screen QR code detection module, a distance detection module, a viewing angle perception module, and a data bus. The functions of each module will be described in detail in the subsequent embodiments, and will not be repeated here.

[0158] The hardware abstraction layer can provide an interface between other modules and the hardware layer. Figure 8 As shown, the hardware abstraction layer may include a sensor interface module, an audio interface module and an always-on (AO) module. The functions of the AO module and the sensor interface module will be described in detail in subsequent embodiments and will not be repeated here.

[0159] The hardware layer can include a series of hardware modules. Figure 8 As shown, the hardware layer may include a computing device module and a camera module. The computing device module may include a gyroscope sensor, an acceleration sensor, a gravity sensor, and a TOF sensor. For the functions of each sensor, please refer to the description in the aforementioned steps S301-S309, which will not be repeated here.

[0160] The low power sensing module can be used to obtain data information detected by each sensor in the hardware layer. The low power sensing module may include a screen orientation / hover module, a distance detection module, and a wrist flip recognition module. The functions of each module will be described in detail in subsequent embodiments and will not be repeated here.

[0161] TEE can provide a secure environment isolated from other modules for data calculation and information storage. In the embodiment of the present application, the TEE may include a code scanning device identification module and a suspected code scanning device identification module. The functions of each module will be described in detail in the subsequent embodiments, so I will not go into details here.

[0162] Next, take gesture 1, which is a wrist flip, as an example, combined with the above Figure 8 The software architecture diagram shown introduces a module interaction process provided in an embodiment of the present application.

[0163] S1. YOYO quick payment can send a data instruction for screen display status detection to the screen display status detection module in the fusion perception module, triggering the screen display status detection module to detect the screen display status.

[0164] Specifically, for the description of the screen display status, reference may be made to the description in the aforementioned step S301, which will not be repeated here.

[0165] S2. The screen display status detection module can obtain the current screen display status through a preset mechanism (for example, a broadcast mechanism), and send the screen display status information to YOYO quick payment.

[0166] S3. When YOYO Express Payment determines that the current screen display state is bright and unlocked, YOYO Express Payment can send a data instruction to trigger wrist-flipping action detection to the wrist-flipping action detection module in the fusion perception module. After receiving the above data instruction, the wrist-flipping action detection module can trigger the wrist-flipping recognition module in the low-power perception module to communicate with the sensor interface module in the hardware abstraction layer, so that the sensor interface module drives the measurement device module in the hardware layer to detect the data information (for example, acceleration data) used to determine whether the user flips his wrist.

[0167] S4. When the measuring device module detects the data information (e.g., acceleration data) used to determine whether the user has turned his wrist, the data information can be sent to the wrist turning recognition module in the low-power sensing module via the hardware abstraction layer. After receiving the data information, the wrist turning recognition module can send the data information to the wrist turning action detection module in the fusion sensing module, so that the wrist turning action detection module determines whether the user has turned his wrist based on the data information, and sends the result to YOYO quick payment.

[0168] Specifically, for the description of the wrist turning action detection process, reference may be made to the description in the aforementioned step S302, which will not be repeated here.

[0169] In a possible implementation, the wrist-turning recognition module in the low-power sensing module may determine whether the user has turned his wrist based on the above data information, and then send the determination result to YOYO quick payment through the wrist-turning action detection module in the fusion sensing module. This application does not limit this.

[0170] S5. When YOYO Express Payment receives the result sent by the wrist-flipping action detection module that determines that the user has flipped his wrist, YOYO Express Payment can send a data instruction for triggering screen orientation / hovering detection to the screen orientation / hovering detection module in the fusion perception module. After receiving the above data instruction, the screen orientation / hovering detection module can trigger the screen orientation / hovering detection module in the low-power perception module to communicate with the sensor interface module in the hardware abstraction layer, so that the sensor interface module drives the measurement device module in the hardware layer to detect the data information (for example, acceleration data) used to determine the orientation and hovering time of the screen.

[0171] S6. When the measuring device module detects the above data information (e.g., acceleration data) for determining the screen orientation and hovering, the data information can be sent to the screen orientation / hovering detection module in the low-power perception module via the hardware abstraction layer. After receiving the data information, the screen orientation / hovering detection module in the low-power perception module can send the data information to the screen orientation / hovering detection module in the fusion perception module, so that the screen orientation / hovering detection module in the fusion perception module determines the screen orientation and hovering time based on the data information, and sends the result to YOYO quick payment.

[0172] Specifically, for the description of the screen orientation and the hovering detection process of the electronic device 100, reference may be made to the description in the aforementioned step S303, which will not be repeated here.

[0173] In a possible implementation, the screen orientation / hovering detection module in the low power sensing module may determine the orientation and hovering time of the screen based on the above data information, and then send the determination result to YOYO quick payment through the screen orientation / hovering detection module in the fusion sensing module. This application does not limit this.

[0174] S7. When YOYO quick payment receives the judgment result sent by the screen orientation / hovering detection module in the fusion perception module, and the judgment result determines that the angle between the screen orientation and the ground is within the specified angle range (for example, 90 degrees-180 degrees), and the hovering time is greater than the preset time value 1 (for example, 2 seconds), YOYO quick payment can send the data instruction recognized by the code scanning device to the perspective perception module in the fusion perception module. After receiving the above data instruction, the perspective perception module can trigger the AO service module in the hardware abstraction layer to capture image 1 through the camera module in the hardware layer. Then, the camera module can send the captured image 1 to the suspected code scanning device identification module in the TEE module for code scanning device identification.

[0175] S8. After the suspected code scanning device identification module in the TEE module performs the code scanning device identification operation based on image 1, the identification result can be sent to the visual perception module in the fusion perception module through the AO service module, so that YOYO quick payment can obtain the identification result.

[0176] Specifically, for the description of the scanning device identification process, please refer to the description in the aforementioned step S304, which will not be repeated here.

[0177] S9. When YOYO quick payment receives the judgment result sent by the visual perception module that the image 1 includes a code scanning device, it can send a data instruction to further determine the code scanning device to the perspective perception module in the fusion perception module. After receiving the above data instruction, the perspective perception module can trigger the AO service module in the hardware abstraction layer to capture multiple images through the camera module in the hardware layer. Then, the camera module can send the multiple images that have been captured to the code scanning device identification module in the TEE module for further determination of the code scanning device. Among them, the multiple images that have been captured include image 1 and image 3.

[0178] S10. After the code scanning device recognition module in the TEE module performs the code scanning device recognition and judgment operation based on the above multiple images, the judgment result can be sent to the visual perception module in the fusion perception module through the AO service module, so that YOYO quick payment can obtain the recognition result.

[0179] Specifically, for the description of the scanning device identification process, please refer to the description in the aforementioned step S304, which will not be repeated here.

[0180] S11. When YOYO Express Payment obtains the judgment result that the multiple images taken include the code scanning device, YOYO Express Payment can send a data instruction to trigger the detection of the distance between the electronic device 100 and the code scanning device to the distance detection module in the fusion perception. After receiving the above data instruction, the distance detection module can send a distance detection instruction to the distance detection module in the low-power perception module, so that the low-power perception module can drive the measurement device module in the hardware layer to detect and obtain the distance data between the electronic device 100 and the code scanning device based on the sensor interface module in the hardware abstraction layer.

[0181] S12. After the measuring device module obtains the distance data between the electronic device 100 and the code scanning device, the measuring device module can send the distance data to the distance detection module in the low-power fusion perception module through the hardware abstraction layer. After receiving the distance data, the distance detection module in the fusion perception module can determine whether the distance data is within the distance threshold 1 (for example, 8 cm-20 cm), and send the judgment result to YOYO quick payment.

[0182] Specifically, the acquisition of the distance data may refer to the related description in the aforementioned step S306, which will not be repeated here.

[0183] S13. When YOYO Express Payment receives the result sent by the distance detection module in the fusion perception module that the distance between the electronic device 100 and the code scanning device is within the distance threshold 1 (for example, 8 cm-20 cm), YOYO Express Payment can send a data instruction for screen QR code detection to the screen QR code detection module in the fusion perception module. After receiving the above data instruction, the screen QR code detection module can intercept the image of the interface 1 currently displayed by the electronic device 100 and detect whether the interface 1 displays a QR code.

[0184] S14. The screen QR code detection module can send data information including the screen QR code detection result to YOYO quick payment.

[0185] In some embodiments, the screen QR code detection process of S13-S14, the scanning device confirmation process of S11-S12, and the distance detection process of S9-10 can be performed in parallel. When the electronic device 100 determines that the image does not include the scanning device, and / or the distance between the scanning device and the electronic device 100 is not within the preset distance range 1 (for example, 8 cm-20 cm), and / or when a QR code is displayed on the interface 1, the electronic device 100 can terminate the process of the YOYO quick payment method provided in this application.

[0186] S15. When YOYO Quick Payment determines that the distance between the code scanning device and the electronic device 100 is within a preset distance threshold 1 (e.g., 8 cm-20 cm), and no QR code is displayed on the interface 1, YOYO Quick Payment can send a data instruction to the application 1 (e.g., application, Applications, etc.), so that the application 1 can run and display the interface 2 corresponding to the application 1. Among them, the interface 2 may include a payment QR code 1 and a floating window. The electronic device 100 can perform a payment operation based on the payment QR code 1 and the code scanning device.

[0187] Specifically, for instructions on the application 1, interface 2, payment QR code 1, floating window and payment operations, please refer to the relevant descriptions in the aforementioned steps S308-S309, which will not be repeated here.

[0188] Next, another software architecture provided by an embodiment of the present application and applicable to the electronic device 100 is introduced.

[0189] Please refer to Fig. 9 , Fig. 9 A software architecture diagram provided in an embodiment of the present application is exemplified.

[0190] like Fig. 9As shown, the software architecture provided in the embodiment of the present application may include an application layer, an application framework layer, a hardware abstraction layer, a hardware layer, a low-power perception module and a trusted execution environment (TEE). In this software architecture, the application layer may include a YOYO quick payment application and a fusion perception application. The fusion perception application may include a northbound interface, a screen display status detection module, a wrist flip action detection module, a screen orientation / hover detection module, a screen QR code detection module, a distance detection module, a viewing angle perception module and a data bus. The functions of each module will be described in detail in the subsequent embodiments, so I will not go into details here.

[0191] For a description of the application layer, application framework layer, hardware abstraction layer, hardware layer, low power perception module, and trusted execution environment, please refer to the previous Figure 8 The relevant description in the embodiments will not be repeated here.

[0192] Next, combined with the above Fig. 9 The software architecture diagram shown introduces a module interaction process provided in an embodiment of the present application.

[0193] Step S1 to step S12, please refer to the above Figure 8 The descriptions of steps S1 to S12 shown in the embodiment will not be repeated here.

[0194] S13. After receiving the result sent by the distance detection module in the fusion perception module that the distance between the electronic device 100 and the code scanning device is within the distance threshold 1 (for example, 8 cm-20 cm), YOYO Express Payment can send a data instruction for screen QR code detection to the screen QR code detection module in the fusion perception module. After receiving the above data instruction, the screen QR code detection module can call the specified interface of the application framework layer to intercept the image of the interface 1 displayed by the current electronic device 100.

[0195] S14, after the screen QR code detection module receives the above image intercepted by the specified interface in the application framework layer, it can detect whether the interface 1 displays a QR code. The screen QR code detection module can send data information including the screen QR code detection result to YOYO Express Payment.

[0196] Step S15, please refer to the above Figure 8 The description of step S15 in the illustrated embodiment will not be repeated here.

[0197] In a possible implementation, YOYO quick payment may also include a fusion perception module, which is not limited in this application.

[0198] In a possible implementation, the data instructions of each module in the low power perception module (for example, the screen orientation / hovering detection module, the distance detection module, and the wrist turning detection module) can trigger the measurement device module in the hardware layer to detect data via the application framework layer and the hardware abstraction layer. Then, the data detected by the measurement device detection module can be sent to each module in the low power perception module (for example, the screen orientation / hovering detection module, the distance detection module, and the wrist turning detection module) via the hardware abstraction layer and the application framework layer.

[0199] In a possible implementation, a sensor driving module may be provided on the same side of the low power perception module. Data instructions of each module in the low power perception module (e.g., screen orientation / hovering detection module, distance detection module, and wrist turning detection module) may trigger the measurement device module in the hardware layer to detect data via the sensor driving module. Then, the data detected by the measurement device detection module may be sent to each module in the low power perception module (e.g., screen orientation / hovering detection module, distance detection module, and wrist turning detection module) via the sensor driving module.

[0200] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0201] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. 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 contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0202] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A payment method, characterized in that: Applied to an electronic device, the electronic device includes a wrist flip motion detection module, a first screen orientation / hover detection module, a payment module and a camera module, and the method includes: The electronic device displays a first interface; wherein the first interface is not a lock screen interface; The wrist-turning motion detection module detects a first operation; In response to the first operation, the wrist-turning motion detection module triggers the payment module to send a first data instruction to the first screen direction / hover detection module; In response to the first data instruction, the first screen orientation / hovering detection module detects the screen orientation and the hovering time of the electronic device, and sends the screen orientation and the hovering time of the electronic device to the payment module; When the payment module determines that the state of the electronic device meets a first preset condition based on the screen orientation and the hovering time of the electronic device, the payment module activates the camera module to acquire a first image; After the electronic device recognizes the first target object based on the first image, the camera module acquires a second image and a third image; wherein the second image, the third image and the first image are different; When the electronic device calculates that the similarities between the second image and the third image and a preset fourth image are within a specified similarity threshold range, the electronic device determines that both the second image and the third image include the first target object; wherein the fourth image includes the first target object; The electronic device displays a second interface, wherein the second interface is an interface of a first application, and the first application is an application for payment of money.

2. The method according to claim 1, characterized in that: The first preset condition includes: The angle between the display screen of the electronic device and the ground plane is smaller than a first threshold, and the time for which the electronic device is in the hovering state is greater than a second threshold.

3. The method according to claim 1, characterized in that: The electronic device further includes a first distance detection module, and the method further includes: Before the electronic device displays the second interface, the first distance detection module determines that the distance between the electronic device and the first target object is less than a third threshold.

4. The method according to claim 3, characterized in that The electronic device comprises a calculation device module and a wrist turning recognition module, the calculation device comprises one or more sensors, and the method further comprises: Before the wrist-turning motion detection module detects the first operation, the measuring device detects first acceleration data of the electronic device, and sends the first acceleration data to the wrist-turning motion detection module through the wrist-turning recognition module; The wrist-turning action detection module detects the first operation, specifically including: The wrist-turning motion detection module detects a first operation based on the first acceleration data.

5. The method according to claim 4, characterized in that The electronic device further includes a second screen orientation / hovering detection module; before the first screen orientation / hovering detection module detects the screen orientation and the hovering time of the electronic device, the method further includes: The measuring device detects second acceleration data of the electronic device, and sends the second acceleration data to the first screen orientation / hovering detection module through the second screen orientation / hovering detection module; The first screen orientation / hovering detection module detects the screen orientation and hovering time of the electronic device, specifically including: The first screen orientation / hovering detection module detects the screen orientation and hovering time of the electronic device based on the second acceleration data.

6. The method according to claim 4, characterized in that The electronic device further includes a second distance detection module, the measuring device includes a TOF sensor, and before the first distance detection module determines that the distance between the electronic device and the first target object is less than a third threshold, the method further includes: The TOF sensor transmits a pulse wave to the first target object; The TOF sensor acquires the flight time from when the pulse wave is emitted to when the pulse wave is reflected by the first target object back to the TOF sensor; The TOF sensor determines distance data based on the flight time and the speed of the pulse wave; The TOF sensor sends the distance data to the first distance detection module through the second distance detection module; The first distance detection module determines that the distance between the electronic device and the first target object is less than a third threshold value, specifically including: Before the display screen displays the second interface, the first distance detection module determines, based on the distance data, that the distance between the electronic device and the first target object is less than a third threshold.

7. The method according to claim 1, characterized in that The electronic device further includes a screen display state detection module, and the method further includes: Before the wrist-turning motion detection module detects the first operation, the payment module sends a second data instruction to the screen display state detection module; In response to the second data instruction, the screen display state detection module detects the screen display state; When the screen display state of the display screen displaying the first interface is in a bright screen and unlocked state, the screen display state detection module sends a third data instruction to the wrist turning action detection module; The wrist-turning action detection module detects the first operation, specifically including: In response to the third data instruction, the wrist-turning motion detection module detects a first operation.

8. The method according to claim 4, characterized in that The camera module includes a first camera and a second camera; The payment module starts the camera module to acquire the first image, specifically including: The payment module activates the first camera in the camera module to acquire a first image; The camera module acquires the second image and the third image, specifically including: The second camera in the camera module acquires a second image and a third image.

9. The method according to claim 3, characterized in that: The electronic device further includes a viewing angle perception module and a first service module; when the payment module determines that the state of the electronic device meets a first preset condition based on the screen orientation and the hovering time of the electronic device, the payment module activates the camera module to acquire a first image, specifically including: When the payment module determines that the state of the electronic device meets the first preset condition based on the screen orientation and the hovering time of the electronic device, the payment module sends a fourth data instruction to the viewing angle perception module; In response to the fourth data instruction, the viewing angle perception module starts the camera module through the first service module to acquire a first image.

10. The method according to claim 9, characterized in that The electronic device includes a first device recognition module and a second device recognition module; after the electronic device recognizes a first target object based on the first image, the camera module acquires a second image and a third image, specifically including: When the first device recognition module receives the first image and calculates that the similarity between the first image and the fourth image is within a specified similarity threshold range, the first device recognition module determines that the first image includes the first target object; The first device identification module triggers the first service module to start the camera module to acquire the second image and the third image through the payment module; The electronic device determines that both the second image and the third image include the first target object, specifically including: The camera module sends the second image and the third image to the second device identification module; When the second device identification module receives the second image and the third image and calculates that the similarity among the second image, the third image and the fourth image is within a specified similarity threshold range, the second device identification module determines that the second image and the third image both include the first target object.

11. The method according to claim 10, characterized in that Before the electronic device displays the second interface, the first distance detection module determines that the distance between the electronic device and the first target object is less than a third threshold, specifically including: When the first device recognition module receives and recognizes that the first image includes the first target object, and the second device recognition module recognizes that the second image and the third image both include the first target object, the payment module sends a fifth data instruction to the first distance detection module; In response to the fifth data instruction, the first distance detection module detects the distance between the electronic device and the first target object, and determines that the distance between the electronic device and the first target object is less than a third threshold.

12. The method according to claim 3, characterized in that The electronic device further includes a screen two-dimensional code detection module; after the first distance detection module determines that the distance between the electronic device and the first target object is less than a third threshold, the method further includes: The payment module sends a QR code detection instruction to the screen QR code detection module; In response to the QR code detection instruction, the screen QR code detection module detects whether the first interface displays a QR code; When the first interface does not display the QR code, the payment module triggers the electronic device to display the second interface.

13. The method according to claim 4, characterized in that The one or more sensors include one or more of the following: a TOF sensor, a gyroscope sensor, an acceleration sensor, and a gravity sensor.

14. The method according to claim 10, characterized in that The first device identification module and the second device identification module are located in a trusted execution environment TEE.

15. A computer storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 14.

16. A computer program product, characterized in that When the computer program product is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 14.

17. A chip system, characterized in that: The method comprises a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit the code instructions to the processing circuit, and the processing circuit is used to run the code instructions to execute the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Display method and electronic equipment

    CN110837328A

  • Downloading method and device of machine learning model, terminal and storage medium

    CN112698848A