[go: up one dir, main page]

CN112613475B - Code scanning interface display method and device, mobile terminal and storage medium - Google Patents

Code scanning interface display method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN112613475B
CN112613475B CN202011633743.4A CN202011633743A CN112613475B CN 112613475 B CN112613475 B CN 112613475B CN 202011633743 A CN202011633743 A CN 202011633743A CN 112613475 B CN112613475 B CN 112613475B
Authority
CN
China
Prior art keywords
mobile terminal
payment
code scanning
interface
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011633743.4A
Other languages
Chinese (zh)
Other versions
CN112613475A (en
Inventor
孙哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011633743.4A priority Critical patent/CN112613475B/en
Publication of CN112613475A publication Critical patent/CN112613475A/en
Application granted granted Critical
Publication of CN112613475B publication Critical patent/CN112613475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P15/00Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
    • G01P15/14Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration by making use of gyroscopes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P15/00Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
    • G01P15/18Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration in two or more dimensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例提供了一种扫码界面显示方法、装置、移动终端及存储介质,涉及移动支付技术领域。所述方法包括:获取移动终端的移动位姿信息;对移动位姿信息进行识别处理,得到识别结果,识别结果用于指示移动终端是否处于扫码前置状态,扫码前置状态是指显示扫码界面时的前置状态;响应于识别结果用于指示移动终端处于扫码前置状态,获取目标图像,目标图像用于指示基于服务提供方提供的图形码进行支付;显示服务提供方提供的图形码对应的扫码界面。本申请实施例通过基于移动终端的位置和姿态从而实现自动显示与图形码对应的扫码界面,无需进行繁琐的界面触控操作,简化了扫码界面打开流程所需的操作,提高了界面打开效率。

Embodiments of the present application provide a code scanning interface display method, device, mobile terminal and storage medium, and relate to the technical field of mobile payment. The method includes: obtaining the mobile posture information of the mobile terminal; performing recognition processing on the mobile posture information to obtain a recognition result; the recognition result is used to indicate whether the mobile terminal is in a code scanning pre-state, and the code scanning pre-state refers to displaying The front state when scanning the code interface; in response to the recognition result, it is used to indicate that the mobile terminal is in the front state of scanning the code, and the target image is obtained. The target image is used to indicate payment based on the graphic code provided by the service provider; the display provided by the service provider The scanning interface corresponding to the graphic code. The embodiment of the present application automatically displays the code scanning interface corresponding to the graphic code based on the position and posture of the mobile terminal, eliminating the need for cumbersome interface touch operations, simplifying the operations required to open the code scanning interface, and improving the interface opening process. efficiency.

Description

扫码界面显示方法、装置、移动终端及存储介质Code scanning interface display method, device, mobile terminal and storage medium

技术领域Technical field

本申请实施例涉及移动支付技术领域,特别涉及一种扫码界面显示方法、装置、移动终端及存储介质。The embodiments of the present application relate to the technical field of mobile payment, and in particular to a code scanning interface display method, device, mobile terminal and storage medium.

背景技术Background technique

随着终端技术的发展,用户可以使用手机支付物品对应的金额。With the development of terminal technology, users can use their mobile phones to pay the amount corresponding to the item.

在相关技术中,用户可以通过扫码支付的方式购买商品。用户首先需要找到二维码对应的应用程序的图标,使得该应用程序显示首页;然后用户需要在该首页中找到扫描上述二维码的入口;通过该入口扫描二维码,从而完成扫码支付流程。In related technologies, users can purchase goods by scanning QR codes to pay. The user first needs to find the icon of the application corresponding to the QR code so that the application displays the homepage; then the user needs to find the entrance to scan the above QR code on the homepage; scan the QR code through the entrance to complete the scan code payment process.

发明内容Contents of the invention

本申请实施例提供一种扫码界面显示方法、装置、移动终端及存储介质。所述技术方案如下:Embodiments of the present application provide a code scanning interface display method, device, mobile terminal and storage medium. The technical solutions are as follows:

一方面,本申请实施例提供一种扫码界面显示方法,所述方法包括:On the one hand, embodiments of the present application provide a method for displaying a code scanning interface. The method includes:

获取移动终端的移动位姿信息,所述移动位姿信息用于指示处于移动状态的所述移动终端的位置和姿态;Obtaining movement posture information of the mobile terminal, the movement posture information being used to indicate the position and posture of the mobile terminal in a moving state;

对所述移动位姿信息进行识别处理,得到识别结果,所述识别结果用于指示所述移动终端是否处于扫码前置状态,所述扫码前置状态是指显示扫码界面时的前置状态;The mobile pose information is recognized and processed to obtain a recognition result. The recognition result is used to indicate whether the mobile terminal is in a code scanning pre-state. The code scanning pre-state refers to the pre-scanning interface when the code scanning interface is displayed. Set state;

响应于所述识别结果用于指示所述移动终端处于所述扫码前置状态,获取目标图像,所述目标图像用于指示基于服务提供方提供的图形码进行支付;In response to the recognition result indicating that the mobile terminal is in the code scanning pre-state, a target image is obtained, and the target image is used to indicate payment based on the graphic code provided by the service provider;

显示所述服务提供方提供的图形码对应的扫码界面。Display the code scanning interface corresponding to the graphic code provided by the service provider.

另一方面,本申请实施例提供一种扫码界面显示装置,所述装置包括:On the other hand, embodiments of the present application provide a code scanning interface display device, which includes:

信息获取模块,用于获取移动终端的移动位姿信息,所述移动位姿信息用于指示处于移动状态的所述移动终端的位置和姿态;An information acquisition module, configured to acquire movement posture information of the mobile terminal, where the movement posture information is used to indicate the position and posture of the mobile terminal in a moving state;

信息识别模块,用于对所述移动位姿信息进行识别处理,得到识别结果,所述识别结果用于指示所述移动终端是否处于扫码前置状态,所述扫码前置状态是指显示扫码界面时的前置状态;An information recognition module, used to perform recognition processing on the mobile posture information to obtain a recognition result. The recognition result is used to indicate whether the mobile terminal is in a code scanning pre-state. The code scanning pre-state refers to displaying The preset state when scanning the QR code interface;

图像获取模块,用于响应于所述识别结果用于指示所述移动终端处于所述扫码前置状态,获取目标图像,所述目标图像用于指示基于服务提供方提供的图形码进行支付;An image acquisition module, configured to acquire a target image in response to the recognition result indicating that the mobile terminal is in the code scanning pre-state, where the target image is used to indicate payment based on the graphic code provided by the service provider;

界面显示模块,用于显示所述服务提供方提供的图形码对应的扫码界面。The interface display module is used to display the code scanning interface corresponding to the graphic code provided by the service provider.

另一方面,本申请实施例提供一种移动终端,所述移动终端包括处理器和存储器,所述存储器存储有计算机程序,所述计算机程序由所述处理器加载并执行以实现如上述方面所述的扫码界面显示方法。On the other hand, embodiments of the present application provide a mobile terminal. The mobile terminal includes a processor and a memory. The memory stores a computer program. The computer program is loaded and executed by the processor to implement the above aspects. The method of displaying the QR code scanning interface described above.

又一方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现如上述方面所述的扫码界面显示方法。On the other hand, embodiments of the present application provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. The computer program is loaded and executed by a processor to implement the code scanning as described above. Interface display method.

又一方面,本申请实施例提供一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。移动终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该移动终端执行上述扫码界面显示方法。In another aspect, embodiments of the present application provide a computer program product, the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the mobile terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the mobile terminal executes the above code scanning interface display method.

本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided by the embodiments of this application can bring the following beneficial effects:

通过基于移动终端的移动位姿信息,确定移动终端是否处于扫码前置状态;当确定移动终端处于扫码前置状态时,获取用于指示服务提供方提供的图形码的图像,显示与图形码对应的扫码界面。本申请实施例通过基于移动终端的位置和姿态从而实现自动显示与图形码对应的扫码界面,无需进行繁琐的界面触控操作,简化了扫码界面打开流程所需的操作,提高了界面打开效率。Based on the mobile posture information of the mobile terminal, it is determined whether the mobile terminal is in the code scanning pre-state; when it is determined that the mobile terminal is in the code scanning pre-state, an image used to indicate the graphic code provided by the service provider is obtained, and the graphics are displayed The code scanning interface corresponding to the code. The embodiment of the present application automatically displays the code scanning interface corresponding to the graphic code based on the position and posture of the mobile terminal, eliminating the need for cumbersome interface touch operations, simplifying the operations required to open the code scanning interface, and improving the interface opening process. efficiency.

附图说明Description of the drawings

图1是本申请一个实施例提供的扫码界面显示方法的流程图;Figure 1 is a flow chart of a code scanning interface display method provided by an embodiment of the present application;

图2是本申请另一个实施例提供的扫码界面显示方法的流程图;Figure 2 is a flow chart of a code scanning interface display method provided by another embodiment of the present application;

图3是本申请一个实施例提供的识别模型训练的示意图;Figure 3 is a schematic diagram of recognition model training provided by an embodiment of the present application;

图4是本申请一个实施例提供的支付流程的示意图;Figure 4 is a schematic diagram of the payment process provided by an embodiment of the present application;

图5是本申请另一个实施例提供的扫码界面显示方法的流程图;Figure 5 is a flow chart of a code scanning interface display method provided by another embodiment of the present application;

图6是本申请一个实施例提供的扫码界面显示流程的示意图;Figure 6 is a schematic diagram of the code scanning interface display process provided by an embodiment of the present application;

图7是本申请一个实施例提供的扫码界面显示装置的框图;Figure 7 is a block diagram of a code scanning interface display device provided by an embodiment of the present application;

图8是本申请一个实施例提供的移动终端的结构框图。Figure 8 is a structural block diagram of a mobile terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

本申请实施例提供的方法,各步骤的执行主体可以是移动终端。在可能的实现方式中,移动终端是诸如手机、平板电脑、智能可穿戴设备、膝上型便携计算机等电子设备。In the method provided by the embodiments of this application, the execution subject of each step may be a mobile terminal. In a possible implementation, the mobile terminal is an electronic device such as a mobile phone, a tablet computer, a smart wearable device, a laptop computer, etc.

示例性地,本申请实施例中的移动终端包括显示屏。可选地,上述显示屏可以是TFT(Thin Film Transistor,薄膜场效应晶体管)液晶显示屏,TFT液晶显示屏是指液晶显示器上的每一液晶像素点都是由集成在其后的薄膜晶体管来驱动,从而可以做到高速度、高亮度、高对比度显示屏幕信息。可选地,上述显示屏可以是STN(Super Twisted Nematic,超扭曲向列相)屏幕,STN屏幕具有功耗小、省电的优势。可选地,上述显示屏还可以是OLED(Organic Light-Emitting Display,有机发光显示屏)显示屏,OLED显示屏具有更薄更轻、主动发光、无视角问题、高清晰、高亮度、响应速度快、能耗低、使用温度范围广、抗震能力强,成本低和可实现柔软显示等特点。上述终端的显示屏可以仅具有显示功能,当然,在其他可能的实现方式中,终端的显示屏还可以同时具有显示和触控功能,本申请实施例对此不作限定。Illustratively, the mobile terminal in the embodiment of the present application includes a display screen. Optionally, the above-mentioned display screen may be a TFT (Thin Film Transistor, thin film field effect transistor) liquid crystal display screen. A TFT liquid crystal display screen means that each liquid crystal pixel point on the liquid crystal display is composed of a thin film transistor integrated behind it. driver, so that screen information can be displayed at high speed, high brightness, and high contrast. Optionally, the above-mentioned display screen may be an STN (Super Twisted Nematic) screen. The STN screen has the advantages of low power consumption and power saving. Optionally, the above-mentioned display screen can also be an OLED (Organic Light-Emitting Display, organic light-emitting display) display screen. OLED display screen has the characteristics of thinner and lighter, active light emitting, no viewing angle problems, high definition, high brightness, and response speed. It has the characteristics of fast speed, low energy consumption, wide operating temperature range, strong earthquake resistance, low cost and soft display. The display screen of the above-mentioned terminal may only have a display function. Of course, in other possible implementations, the display screen of the terminal may also have both display and touch functions, which is not limited in the embodiments of the present application.

示例性地,本申请实施例中的移动终端还包括图像采集设备,该图像采集设备可以是摄像头,还可以是其它设备,本申请实施例对此不作限定。以移动终端为手机为例进行介绍说明,图像采集设备可以设置在移动终端的前面板上,也可以设置在移动终端的背板上,还可以同时设置在移动终端的前面板和背板上,本申请实施例对此不作限定。Illustratively, the mobile terminal in the embodiment of the present application also includes an image collection device, and the image collection device may be a camera or other device, which is not limited in the embodiment of the present application. Taking the mobile terminal as a mobile phone as an example for introduction and explanation, the image acquisition device can be set on the front panel of the mobile terminal, or can be set on the back panel of the mobile terminal, or can be set on both the front panel and the back panel of the mobile terminal. The embodiments of the present application do not limit this.

下面,通过几个实施例对本申请进行介绍说明。Below, the present application is introduced and explained through several embodiments.

请参考图1,其示出了本申请一个实施例提供的扫码界面显示方法的流程图。该方法可以应用于移动终端中,该方法可以包括如下几个步骤。Please refer to Figure 1, which shows a flow chart of a code scanning interface display method provided by an embodiment of the present application. This method can be applied to mobile terminals, and the method can include the following steps.

步骤101,获取移动终端的移动位姿信息。Step 101: Obtain the mobile posture information of the mobile terminal.

在本申请实施例中,移动位姿信息用于指示处于移动状态的移动终端的位置和姿态。In this embodiment of the present application, the movement posture information is used to indicate the position and posture of the mobile terminal in a moving state.

在可能的实现方式中,通过传感器获取移动终端的移动位姿信息。示例性地,当移动终端处于工作状态时,通过传感器持续采集传感器数据,并将传感器数据作为移动终端的移动位姿信息。In a possible implementation, the movement posture information of the mobile terminal is obtained through a sensor. For example, when the mobile terminal is in a working state, sensor data is continuously collected through the sensor, and the sensor data is used as the mobile posture information of the mobile terminal.

在可能的实现方式中,传感器数据可以由单一传感器采集,也可以由多个不同类型的传感器采集。In possible implementations, sensor data can be collected by a single sensor or by multiple sensors of different types.

在一个示例中,移动终端可以通过陀螺仪传感器采集在加速度和位移两个维度上的数据,得到加速度数据和位移数据,加速度数据包括三轴(x轴、y轴、z轴)三个方向的加速度,位移数据包括三轴(x轴、y轴、z轴)三个方向的位移,移动终端将加速度数据和位移数据确定为移动终端的移动位姿信息。In one example, the mobile terminal can collect data in two dimensions of acceleration and displacement through a gyroscope sensor to obtain acceleration data and displacement data. The acceleration data includes three axes (x-axis, y-axis, z-axis). Acceleration and displacement data include displacement in three directions (x-axis, y-axis, z-axis). The mobile terminal determines the acceleration data and displacement data as the mobile posture information of the mobile terminal.

在另一个示例中,移动终端可以通过加速度传感器(Accelerometer Sensor,ASensor)和重力传感器(Gravity Sensor,GSensor)采集加速度数据和位移数据,加速度数据包括三轴(x轴、y轴、z轴)三个方向的加速度,位移数据包括三轴(x轴、y轴、z轴)三个方向的位移,移动终端将加速度数据和位移数据确定为移动终端的移动位姿信息。In another example, the mobile terminal can collect acceleration data and displacement data through an acceleration sensor (Accelerometer Sensor, ASensor) and a gravity sensor (Gravity Sensor, GSensor). The acceleration data includes three axes (x-axis, y-axis, z-axis). acceleration in three directions, and the displacement data includes displacement in three directions (x-axis, y-axis, z-axis). The mobile terminal determines the acceleration data and displacement data as the mobile posture information of the mobile terminal.

在可能的实现方式中,移动终端通过传感器采集预设次数的传感器数据,将该预设次数的传感器数据确定为移动终端的移动位姿信息,示例性地,预设次数可以为30-200次,若预设次数太少,则移动终端采集时间过短,可能会导致最终得到的识别结果较不准确;若预设次数太长,则移动终端采集时间过长,可能会导致需要用户长时间手持移动终端才能进行资源转移,使得资源转移效率较低。示例性地,移动终端可以采集128次传感器数据(x、y、z三个方向上的位移以及加速度),将采集的128次传感器数据拼接成128*6维的数据(移动终端的移动位姿信息)。In a possible implementation, the mobile terminal collects sensor data for a preset number of times through the sensor, and determines the sensor data for the preset number of times as the mobile posture information of the mobile terminal. For example, the preset number of times may be 30-200 times. , if the preset times are too few, the mobile terminal collection time is too short, which may result in less accurate recognition results; if the preset times are too long, the mobile terminal collection time is too long, which may require the user to take a long time Only handheld mobile terminals can carry out resource transfer, making resource transfer efficiency low. For example, the mobile terminal can collect 128 times of sensor data (displacement and acceleration in the three directions of x, y, and z), and splice the collected 128 times of sensor data into 128*6-dimensional data (mobile posture of the mobile terminal). information).

步骤102,对移动位姿信息进行识别处理,得到识别结果,识别结果用于指示移动终端是否处于扫码前置状态。Step 102: Perform recognition processing on the mobile pose information to obtain a recognition result. The recognition result is used to indicate whether the mobile terminal is in a code scanning pre-state.

扫码前置状态是指显示扫码界面时的前置状态。在可能的实现方式中,当用户执行扫码支付动作时,移动终端获取移动位姿信息,基于该移动位姿信息确定移动终端处于扫码前置状态,示例性地,扫码前置状态也可以称之为待支付状态,当然,在其它可能的实现方式中,扫码前置状态还可以称之为其它状态,本申请实施例对此不作限定。The QR code scanning front state refers to the front state when the QR code scanning interface is displayed. In a possible implementation, when the user performs a code scanning payment action, the mobile terminal obtains mobile posture information, and determines based on the mobile posture information that the mobile terminal is in the code scanning pre-state. For example, the code scanning pre-state is also It can be called the pending payment state. Of course, in other possible implementations, the code scanning pre-state can also be called other states, which is not limited in the embodiments of this application.

步骤103,响应于识别结果用于指示移动终端处于扫码前置状态,获取目标图像,目标图像用于指示基于服务提供方提供的图形码进行支付。Step 103: In response to the recognition result indicating that the mobile terminal is in the code scanning pre-state, obtain a target image. The target image is used to indicate payment based on the graphic code provided by the service provider.

服务提供方是指提供服务的对象,示例性地,服务提供方可以提供以下至少一项服务:美食、酒店、玩乐、电影、乘车、休闲等。The service provider refers to the object that provides services. For example, the service provider can provide at least one of the following services: food, hotels, entertainment, movies, rides, leisure, etc.

服务提供方提供的图形码可以是任意一个图形码,例如,服务提供方提供的图形码可以是条形码、二维码或者其它形式的图形码等,本申请实施例对图形码的显示形式不作限定。The graphic code provided by the service provider can be any graphic code. For example, the graphic code provided by the service provider can be a barcode, a QR code, or other forms of graphic codes. The embodiment of the present application does not limit the display form of the graphic code. .

在可能的实现方式中,在识别结果用于指示移动终端处于扫码前置状态的情况下,通过图像采集设备获取目标图像。示例性地,移动终端在后台获取目标图像,用户不会感知到该操作。在可能的实现方式中,图像采集设备可以是AON(Always on,常开)摄像头,AON摄像头功耗较小。In a possible implementation, when the recognition result is used to indicate that the mobile terminal is in a pre-code scanning state, the target image is acquired through an image acquisition device. For example, the mobile terminal obtains the target image in the background, and the user will not perceive this operation. In a possible implementation, the image acquisition device may be an AON (Always on) camera, which consumes less power.

在可能的实现方式中,目标图像可以包括一张或多张图像,目标图像包括的图像数量可以由图像采集设备的采集频率确定。目标图像可以是图像采集设备在一秒内采集的图像,也可以是图像采集设备在预设时间内采集的图像,该预设时间可以是默认时间,也可以是由用户设置的时间。In a possible implementation, the target image may include one or more images, and the number of images included in the target image may be determined by the acquisition frequency of the image acquisition device. The target image may be an image collected by the image acquisition device within one second, or an image collected by the image acquisition device within a preset time. The preset time may be a default time, or a time set by the user.

在可能的实现方式中,移动终端的前面板和背板上都设置有图像采集设备,移动终端会基于当前的姿态,确定通过哪个图像采集设备采集目标图像。移动终端可以基于当前用户握持移动终端的姿势和移动终端当前的姿态,确定是采用前面板上的图像采集设备采集目标图像还是采用背板上的图像采集设备采集目标图像。在可能的实现方式中,移动终端可以同时采用前面板上的图像采集设备和背板上的图像采集设备采集目标图像。In a possible implementation, image acquisition devices are provided on both the front panel and the back panel of the mobile terminal, and the mobile terminal determines which image acquisition device should be used to collect the target image based on the current posture. The mobile terminal can determine whether to use the image acquisition device on the front panel to collect the target image or the image acquisition device on the back panel to collect the target image based on the current posture of the user holding the mobile terminal and the current posture of the mobile terminal. In a possible implementation, the mobile terminal can simultaneously use the image acquisition device on the front panel and the image acquisition device on the back panel to collect the target image.

步骤104,显示服务提供方提供的图形码对应的扫码界面。Step 104: Display the code scanning interface corresponding to the graphic code provided by the service provider.

在本申请实施例中,扫码界面用于扫描服务提供方提供的图形码。In this embodiment of the present application, the code scanning interface is used to scan the graphic code provided by the service provider.

不同的图形码对应的扫码界面可能不同,终端需要显示与图形码对应的扫码界面才能成功扫描识别该图形码。Different graphic codes may correspond to different code scanning interfaces. The terminal needs to display the scanning interface corresponding to the graphic code to successfully scan and identify the graphic code.

在可能的实现方式中,响应于识别结果用于指示移动终端不处于扫码前置状态,再次从步骤101开始执行。In a possible implementation, in response to the recognition result indicating that the mobile terminal is not in the code scanning pre-state, execution starts from step 101 again.

需要说明的是,支付也可以称之为资源转移,当然,在其它可能的实现方式中,支付还可以有其它的叫法,本申请实施例对此不作限定。It should be noted that payment can also be called resource transfer. Of course, in other possible implementation methods, payment can also be called by other names, which is not limited in the embodiments of this application.

综上所述,本申请实施例提供的技术方案中,通过基于移动终端的移动位姿信息,确定移动终端是否处于扫码前置状态;当确定移动终端处于扫码前置状态时,获取用于指示服务提供方提供的图形码的图像,显示与图形码对应的扫码界面。本申请实施例通过基于移动终端的位置和姿态从而实现自动显示与图形码对应的扫码界面,无需进行繁琐的界面触控操作,简化了扫码界面打开流程所需的操作,提高了界面打开效率。To sum up, in the technical solution provided by the embodiments of the present application, it is determined whether the mobile terminal is in the code scanning pre-state based on the mobile posture information of the mobile terminal; when it is determined that the mobile terminal is in the code scanning pre-state, the user is obtained Display the code scanning interface corresponding to the graphic code on the image indicating the graphic code provided by the service provider. The embodiment of the present application automatically displays the code scanning interface corresponding to the graphic code based on the position and posture of the mobile terminal, eliminating the need for cumbersome interface touch operations, simplifying the operations required to open the code scanning interface, and improving the interface opening process. efficiency.

请参考图2,其示出了本申请另一个实施例提供的扫码界面显示方法的流程图。该方法可以应用于移动终端中,该方法可以包括如下几个步骤。Please refer to FIG. 2 , which shows a flow chart of a code scanning interface display method provided by another embodiment of the present application. This method can be applied to mobile terminals, and the method can include the following steps.

步骤201,获取移动终端的移动位姿信息。Step 201: Obtain the mobile posture information of the mobile terminal.

在本申请实施例中,移动位姿信息用于指示处于移动状态的移动终端的位置和姿态。In this embodiment of the present application, the movement posture information is used to indicate the position and posture of the mobile terminal in a moving state.

有关步骤201的介绍说明可参见上文实施例,此处不再赘述。For an introduction to step 201, please refer to the above embodiment and will not be described again here.

步骤202,通过识别模型对移动位姿信息进行识别处理,得到识别结果,识别结果用于指示移动终端是否处于扫码前置状态,扫码前置状态是指显示扫码界面时的前置状态。Step 202: Perform recognition processing on the mobile pose information through the recognition model to obtain a recognition result. The recognition result is used to indicate whether the mobile terminal is in a code scanning pre-state. The code scanning pre-state refers to the pre-state when the code scanning interface is displayed. .

识别模型是指用于识别移动终端是否处于扫码前置状态的模型。示例性地,识别模型可以是CNN(Convolutional Neural Network,卷积神经网络)模型。The identification model refers to the model used to identify whether the mobile terminal is in the pre-scanning state. For example, the recognition model may be a CNN (Convolutional Neural Network, convolutional neural network) model.

识别模型可以设置在SensorHub(智能传感集线器)中,SensorHub作为一种基于低功耗MCU(Micro Control Unit,微控制单元)和轻量级RTOS(Real-Time OperatingSystem,实时操作系统)的软硬件解决方案,用于连接并处理各种传感器采集到的传感器数据。在可能的实现方式中,终端的SOC(System on Chip,系统级芯片)上集成有MCU,其中,SOC上运行操作系统,而MCU上运行RTOS,MCU即对传感器采集到的传感器数据(即移动终端的移动位姿信息)进行动作识别。The recognition model can be set in SensorHub (intelligent sensor hub). SensorHub is a kind of software and hardware based on low-power MCU (Micro Control Unit) and lightweight RTOS (Real-Time Operating System, real-time operating system). Solutions for connecting and processing sensor data collected by various sensors. In a possible implementation, the terminal's SOC (System on Chip, system-on-chip) is integrated with an MCU. The operating system runs on the SOC, and the RTOS runs on the MCU. The MCU processes sensor data collected by the sensor (i.e., mobile The mobile posture information of the terminal) is used for action recognition.

示例性地,本申请实施例中的识别模型能够适应于序列数据,本申请实施例中的识别模型经过量化后大小只有不到20kb,量化后的识别模型存储在SensorHub中。Illustratively, the recognition model in the embodiment of the present application can be adapted to sequence data. The size of the recognition model in the embodiment of the present application is less than 20kb after quantization. The quantized recognition model is stored in SensorHub.

在可能的实现方式中,当移动终端通过识别模型对移动位姿信息进行识别处理,得到识别结果之前,需要对识别模型进行训练,识别模型的训练过程可以包括如下几个步骤:In a possible implementation, when the mobile terminal performs recognition processing on the mobile posture information through the recognition model, before obtaining the recognition result, the recognition model needs to be trained. The training process of the recognition model may include the following steps:

1、获取训练数据,训练数据包括至少一个训练移动位姿信息和训练移动位姿信息对应的标准识别结果;1. Obtain training data, which includes at least one training movement pose information and a standard recognition result corresponding to the training movement pose information;

2、通过识别模型对训练移动位姿信息进行识别处理,得到预测识别结果;2. Use the recognition model to identify and process the training mobile pose information to obtain the predicted recognition results;

3、基于预测识别结果和标准识别结果对识别模型进行训练,得到完成训练的识别模型。3. Train the recognition model based on the predicted recognition results and standard recognition results, and obtain the recognition model that has completed the training.

在可能的实现方式中,以移动终端处于扫码前置状态时的训练移动位姿信息为正样本,以移动终端不处于扫码前置状态时的训练移动位姿信息为负样本,对初始神经网络模型进行训练,最终训练得到满足识别准确度需求的识别模型。In a possible implementation, the training movement pose information when the mobile terminal is in the code scanning pre-state is used as a positive sample, and the training movement posture information when the mobile terminal is not in the code scanning pre-state is used as a negative sample. The neural network model is trained, and finally a recognition model that meets the recognition accuracy requirements is obtained.

示例性地,如图3所示,其示出了本申请一个实施例提供的识别模型训练的示意图。假设将传感器采集的128次传感器数据拼接成的128*6维的数据作为训练移动位姿信息;对该训练移动位姿信息进行标注(可以是人工标注,也可以是由标注模型进行标注),得到标准识别结果;通过神经网络模型(识别模型)对训练移动位姿信息进行识别处理,得到预测识别结果;响应于预测识别结果和标准识别结果之间的误差小于阈值,得到完成训练的识别模型。For example, as shown in Figure 3, it shows a schematic diagram of recognition model training provided by an embodiment of the present application. Assume that the 128*6-dimensional data collected by the sensor is spliced into 128*6-dimensional data as the training movement pose information; the training movement pose information is labeled (either manually or by an annotation model), Obtain the standard recognition result; perform recognition processing on the training mobile pose information through the neural network model (recognition model) to obtain the predicted recognition result; in response to the error between the predicted recognition result and the standard recognition result being less than the threshold, obtain the recognition model that has completed the training .

步骤203,响应于识别结果用于指示移动终端处于扫码前置状态,通过移动终端的后置摄像头进行图像采集,得到采集图像。Step 203: In response to the recognition result indicating that the mobile terminal is in the pre-code scanning state, image collection is performed through the rear camera of the mobile terminal to obtain the collected image.

在移动终端处于扫码前置状态的情况下,移动终端通过后置摄像头进行图像采集,示例性地,该后置摄像头可以AON后置摄像头,功耗较小。When the mobile terminal is in the pre-code scanning state, the mobile terminal collects images through a rear camera. For example, the rear camera can be an AON rear camera, which consumes less power.

在可能的实现方式中,响应于识别结果用于指示移动终端处于扫码前置状态,通过移动终端的前置摄像头进行图像采集,得到采集图像。In a possible implementation, in response to the recognition result being used to indicate that the mobile terminal is in the pre-code scanning state, image collection is performed through the front camera of the mobile terminal to obtain the collected image.

在可能的实现方式中,移动终端基于当前的姿态确定是采用前置摄像头还是后置摄像头进行图像采集。In a possible implementation, the mobile terminal determines whether to use the front camera or the rear camera for image collection based on the current posture.

在可能的实现方式中,移动终端的中框上也可以设置有图像采集设备,移动终端可以通过设置在中框上的图像采集设备进行图像采集。In a possible implementation, an image collection device may also be provided on the middle frame of the mobile terminal, and the mobile terminal may collect images through the image collection device provided on the middle frame.

步骤204,响应于采集图像中包括图形码,从采集图像中获取包括图形码的目标图像。Step 204: In response to the graphic code being included in the captured image, obtain a target image including the graphic code from the captured image.

在本申请实施例中,目标图像用于指示基于服务提供方提供的图形码进行支付。In this embodiment of the present application, the target image is used to indicate payment based on the graphic code provided by the service provider.

在可能的实现方式中,移动终端对采集图像进行图像识别,确定采集图像中是否包括图形码,响应于采集图像中包括图形码,从采集图像中获取目标图像。In a possible implementation, the mobile terminal performs image recognition on the collected image, determines whether the collected image includes a graphic code, and obtains the target image from the collected image in response to the graphic code being included in the collected image.

在可能的实现方式中,当移动终端进行图像采集,得到采集图像后,对上述采集图像进行识别发现不存在服务提供方提供的图形码,则终端可以确认采集图像中是否包括扫码设备,若采集图像中既不包括扫码设备又不包括服务提供方提供的图形码,则此时可能发生了误识别,移动终端就可以再次从获取移动终端的移动位姿信息的步骤开始执行。In a possible implementation, when the mobile terminal performs image collection and obtains the collected image, and recognizes the above collected image and finds that there is no graphic code provided by the service provider, the terminal can confirm whether the collected image includes a code scanning device. If If the collected image does not include the scanning device or the graphic code provided by the service provider, misrecognition may occur at this time, and the mobile terminal can start again from the step of obtaining the mobile terminal's movement posture information.

在识别出移动终端处于扫码前置状态后,采用图像识别技术进行图形码检测,有助于降低扫码界面的误呼出概率,提高扫码界面的显示实际的准确性以及显示安全性。After identifying that the mobile terminal is in the code scanning pre-state, image recognition technology is used to detect graphic codes, which helps to reduce the probability of false calls on the code scanning interface and improve the actual display accuracy and display security of the code scanning interface.

步骤205,基于目标图像的图像特征,确定服务提供方提供的图形码对应的支付程序,支付程序是指提供支付功能的应用程序。Step 205: Based on the image characteristics of the target image, determine the payment program corresponding to the graphic code provided by the service provider. The payment program refers to an application program that provides payment functions.

在可能的实现方式中,移动终端从目标图像中裁剪图形码区域;确定图形码区域的图像特征。不同的支付程序对应的图形码不同,因此,不同支付程序对应的图形码区域的图像特征不同。目标图像的图像特征用于指示支付程序的标识信息,移动终端基于该支付程序的标识信息,确定用于扫描服务提供方提供的图形码的支付程序。In a possible implementation, the mobile terminal crops the graphic code area from the target image; and determines the image characteristics of the graphic code area. Different payment programs correspond to different graphic codes. Therefore, the image characteristics of the graphic code areas corresponding to different payment programs are different. The image characteristics of the target image are used to indicate the identification information of the payment program, and the mobile terminal determines the payment program for scanning the graphic code provided by the service provider based on the identification information of the payment program.

在可能的实现方式中,若移动终端无法确定出服务提供方提供的图形码对应的支付程序,则移动终端可以将图形码对应的支付程序确定为默认支付程序,该默认支付程序可以是用户自己设置的,也可以是移动终端基于使用频率确定的,本申请实施例对此不作限定。如果使用默认支付程序扫码后出现扫码错误则自动切换到另一支付程序对应的扫码界面。In a possible implementation, if the mobile terminal cannot determine the payment program corresponding to the graphic code provided by the service provider, the mobile terminal can determine the payment program corresponding to the graphic code as the default payment program. The default payment program can be the user's own The setting may also be determined by the mobile terminal based on the frequency of use, which is not limited in the embodiments of the present application. If a scanning error occurs after using the default payment program to scan the QR code, it will automatically switch to the corresponding scanning interface of another payment program.

在可能的实现方式中,移动终端中可以预先存储有图形码识别模型,该图形码识别模型的输入为目标图像,输出为目标图像中的图形码对应的支付程序。示例性地,对于训练得到的扫码设备检测模型,在模型部署之前,还可以通过裁剪网络、优化网络以及量化模型等方式对模型进行处理,进一步精简模型,提高模型推理速度,满足移动端的实时检测需求。In a possible implementation, a graphic code recognition model may be pre-stored in the mobile terminal. The input of the graphic code recognition model is a target image, and the output is a payment program corresponding to the graphic code in the target image. For example, for the trained code scanning device detection model, before the model is deployed, the model can also be processed by cutting the network, optimizing the network, and quantifying the model to further streamline the model, improve the model inference speed, and meet the real-time requirements of the mobile terminal. Testing requirements.

步骤206,显示支付程序对应的扫码界面。Step 206: Display the QR code scanning interface corresponding to the payment program.

扫码界面是上述步骤205确定出的支付程序对应的界面。The QR code scanning interface is the interface corresponding to the payment program determined in step 205 above.

步骤207,显示支付界面,支付界面中包括支付金额的输入框以及确认支付控件。Step 207: Display the payment interface, which includes an input box for the payment amount and a payment confirmation control.

响应于扫码界面成功扫描识别服务提供方提供的图形码,移动终端会跳转显示支付界面。In response to the code scanning interface successfully scanning and identifying the graphic code provided by the service provider, the mobile terminal will jump to display the payment interface.

支付金额的输入框是指用于输入支付金额的控件,确认支付控件是指用于确认向服务提供方支付的控件。The payment amount input box refers to the control used to enter the payment amount, and the payment confirmation control refers to the control used to confirm payment to the service provider.

步骤208,获取在支付金额的输入框中输入的金额数量。Step 208: Obtain the amount entered in the payment amount input box.

在可能的实现方式中,用户可以通过语音、触控、手势等方式在支付金额的输入框中输入金额数量。In a possible implementation, the user can input the amount in the payment amount input box through voice, touch, gesture, etc.

以用户通过语音的方式在支付金额的输入框中输入金额为例进行介绍说明,移动终端接收针对支付金额的输入框的语音指令;从语音指令中确定金额数量。Taking the user inputting the amount in the input box of the payment amount through voice as an example for introduction and explanation, the mobile terminal receives the voice instruction for the input box of the payment amount; the amount is determined from the voice instruction.

在可能的实现方式中,终端需要对语音指令进行声纹识别,基于声纹识别确定出注册用户(注册用户可以是指支付应用程序的注册用户)或移动终端的机主的声纹,基于注册用户或机主的声纹确定出金额数量,本申请实施例仅基于注册用户或机主的声纹确定金额数量,有助于提高支付的安全性。在可能的实现方式中,通过声纹识别确定出注册用户或机主的信息后,移动终端可以不用接收到确认支付控件的选择指令,即可向服务提供方提供支付金额的数量,也即,可以不用执行下述步骤209。In a possible implementation, the terminal needs to perform voiceprint recognition on the voice command, and determine the voiceprint of the registered user (the registered user may refer to the registered user of the payment application) or the owner of the mobile terminal based on the voiceprint recognition. Based on the registration The amount of money is determined by the voiceprint of the user or the owner of the machine. The embodiment of the present application determines the amount of money based only on the voiceprint of the registered user or the owner of the machine, which helps to improve the security of payment. In a possible implementation, after the registered user or owner's information is determined through voiceprint recognition, the mobile terminal can provide the service provider with the amount of the payment amount without receiving an instruction to confirm the selection of the payment control, that is, It is not necessary to perform the following step 209.

如图4所示,用户翻转移动终端401,移动终端401获取移动位姿信息,基于移动位姿信息确定处于扫码前置状态,移动终端获取目标图像,目标图像用于指示基于服务提供方提供的图形码402进行支付,移动终端显示扫码界面403,当移动终端401通过扫码界面403成功扫描识别服务提供方提供的图形码402后,移动终端401显示支付界面404,移动终端401采集机主的声纹确定出金额数量,向服务提供方支付金额数量的金额。As shown in Figure 4, the user turns over the mobile terminal 401, the mobile terminal 401 obtains the mobile pose information, and determines that it is in the QR code scanning pre-state based on the mobile pose information. The mobile terminal acquires a target image, and the target image is used to indicate based on the information provided by the service provider. The graphic code 402 is used for payment, and the mobile terminal displays the code scanning interface 403. When the mobile terminal 401 successfully scans and identifies the graphic code 402 provided by the service provider through the code scanning interface 403, the mobile terminal 401 displays the payment interface 404, and the mobile terminal 401 collects the The owner's voiceprint determines the amount, and the amount is paid to the service provider.

本申请实施例可以基于服务提供方提供的图形码自动切换支付程序,提供更加便捷支付的方式,为人们的生活带来较高的便捷和安全。本申请实施例通过检测用户手持移动终端的手势动作或者姿态,来触发移动终端支付,通过动作检测触发后置摄像头拍照识别图形码,根据识别到的图形码自动打开对应的支付程序,解锁后根据机主的声纹识别金额数量,让移动终端自动输入需要支付的具体金额,在用户不方便通过触控输入金额数量的时候,提高用户支付的便捷性。The embodiments of this application can automatically switch the payment program based on the graphic code provided by the service provider, provide a more convenient payment method, and bring higher convenience and security to people's lives. The embodiment of the present application triggers payment on the mobile terminal by detecting the gestures or postures of the user holding the mobile terminal. The motion detection triggers the rear camera to take pictures and identify the graphic code. The corresponding payment program is automatically opened based on the recognized graphic code. After unlocking, the payment program is triggered according to the pattern code. The owner's voiceprint identifies the amount, allowing the mobile terminal to automatically enter the specific amount to be paid, making payment more convenient when it is inconvenient for the user to enter the amount through touch.

步骤209,响应于接收到对确认支付控件的选择指令,向服务提供方支付金额数量的金额。Step 209: In response to receiving the selection instruction for the confirmation payment control, pay the service provider the amount of the amount.

在可能的实现方式中,确认支付控件的选择指令可以由语音、手势、触控等方式触发。In a possible implementation, the instruction to confirm the selection of the payment control can be triggered by voice, gesture, touch, etc.

在可能的实现方式中,当移动终端成功向服务提供方支付金额数量的金额(即,移动终端成功将交换资源从第一资源账户转移至第二资源账户,第一资源账户是移动终端的用户对应的资源账户,第二资源账户是服务提供方对应的资源账户)之后,移动终端恢复显示原始用户界面,该原始用户界面是指移动终端处于扫码前置状态之前移动终端显示的用户界面。示例性地,原始用户界面可以是息屏界面、解锁桌面、上一个应用程序的用户界面等,本申请实施例对原始用户界面不作限定。In a possible implementation, when the mobile terminal successfully pays the amount of money to the service provider (that is, the mobile terminal successfully transfers the exchange resources from the first resource account to the second resource account, the first resource account is the user of the mobile terminal) After the corresponding resource account (the second resource account is the resource account corresponding to the service provider), the mobile terminal resumes displaying the original user interface. The original user interface refers to the user interface displayed by the mobile terminal before the mobile terminal is in the QR code scanning pre-state. For example, the original user interface may be a screen-closed interface, an unlocked desktop, a user interface of a previous application, etc. The embodiment of the present application does not limit the original user interface.

在可能的实现方式中,当支付程序开启免密支付时,支付界面中仅包括支付金额的输入框,获取在支付金额的输入框中输入的金额数量,移动终端向服务提供方支付金额数量的金额。In a possible implementation, when the payment program enables password-free payment, the payment interface only includes an input box for the payment amount, obtains the amount entered in the input box for the payment amount, and obtains the amount entered by the mobile terminal to the service provider. amount.

通过语音输入金额,以及语音确认支付,本申请实施例提供了无感无接触的便捷支付方式,提高了用户的体验。Through voice input of the amount and voice confirmation of payment, the embodiment of the present application provides a convenient payment method that is touchless and contactless, improving the user experience.

需要说明的是,金额也可以称之为虚拟资源,金额数量也可以称之为虚拟资源数量,当然,在其它可能的实现方式中,金额和金额数量还可以有其它叫法,本申请实施例对此不作限定。It should be noted that the amount can also be called virtual resources, and the amount amount can also be called the virtual resource amount. Of course, in other possible implementation methods, the amount and amount amount can also be called other names. Embodiments of this application There is no limit to this.

在本申请实施例中,用户只需要执行扫码前置动作,并使用移动终端拍摄图形码的图像,移动终端即能够自动显示扫码界面,无需进行繁琐的界面触控操作。并且,以扫码前置动作为前置条件,移动终端无需长时间开启摄像头进行图像采集,降低了自动显示扫码界面时终端的整体功耗。In this embodiment of the present application, the user only needs to perform pre-code scanning actions and use the mobile terminal to capture the image of the graphic code, and the mobile terminal can automatically display the code scanning interface without the need for cumbersome interface touch operations. Moreover, with the code scanning pre-action as the prerequisite, the mobile terminal does not need to turn on the camera for a long time to collect images, which reduces the overall power consumption of the terminal when automatically displaying the code scanning interface.

本申请实施例通过传感器检测用户的手势动作是否是打开支付程序识别图形码,当识别结果是打开支付程序识别图形码时,自动打开图形码对应的支付程序进行扫码,避免了用户打开错误的应用程序而需要切换带来的不便捷之处,提升了用户体验。本申请实施例通过后置摄像头拍摄一张与移动终端的后置摄像头相对的环境的图像,确认是否是基于图形码进行资源转移,从而避免了第一次基于移动位姿信息的误识别,确保支付场景的识别准确性和成功率,为用户提供了无感无接触的便捷支付方式。The embodiment of the present application uses a sensor to detect whether the user's gesture action is to open the payment program to identify the graphic code. When the recognition result is to open the payment program to identify the graphic code, the payment program corresponding to the graphic code is automatically opened to scan the code, avoiding the user from opening the wrong one. The inconvenience caused by needing to switch applications improves the user experience. The embodiment of the present application uses the rear camera to capture an image of the environment opposite to the rear camera of the mobile terminal to confirm whether the resource transfer is based on the graphic code, thus avoiding the first misidentification based on the mobile pose information and ensuring The recognition accuracy and success rate of payment scenarios provide users with a convenient payment method that is touchless and contactless.

综上所述,本申请实施例提供的技术方案中,通过自动显示扫码界面,简化了支付操作流程,提高了支付效率。To sum up, in the technical solution provided by the embodiment of the present application, the payment operation process is simplified and the payment efficiency is improved by automatically displaying the QR code scanning interface.

本申请实施例通过在确定移动终端处于扫码前置状态后,再通过图像识别技术确定出服务提供方提供的图形码对应的支付程序,然后显示该支付程序对应的扫码界面,提高了支付成功的概率。The embodiment of the present application improves payment efficiency by determining that the mobile terminal is in the code scanning pre-state, and then using image recognition technology to determine the payment program corresponding to the graphic code provided by the service provider, and then displaying the code scanning interface corresponding to the payment program. Probability of success.

请参考图5,其示出了本申请另一个实施例提供的扫码界面显示方法的流程图。该方法可以应用于移动终端中,该方法可以包括如下几个步骤。Please refer to FIG. 5 , which shows a flow chart of a code scanning interface display method provided by another embodiment of the present application. This method can be applied to mobile terminals, and the method can include the following steps.

步骤501,获取移动终端的移动位姿信息,移动位姿信息用于指示处于移动状态的移动终端的位置和姿态。Step 501: Obtain the movement posture information of the mobile terminal. The movement posture information is used to indicate the position and posture of the mobile terminal in a moving state.

步骤502,对移动位姿信息进行识别处理,得到识别结果,识别结果用于指示移动终端是否处于扫码前置状态,扫码前置状态是指显示扫码界面时的前置状态。Step 502: Perform recognition processing on the mobile pose information to obtain a recognition result. The recognition result is used to indicate whether the mobile terminal is in a code scanning pre-state. The code scanning pre-state refers to the pre-state when the code scanning interface is displayed.

步骤503,响应于识别结果用于指示移动终端处于扫码前置状态,获取目标图像,目标图像用于指示基于服务提供方提供的图形码进行支付。Step 503: In response to the recognition result indicating that the mobile terminal is in the code scanning pre-state, obtain a target image. The target image is used to indicate payment based on the graphic code provided by the service provider.

有关步骤501至步骤503的介绍说明可参见上文实施例,此处不再赘述。For an introduction to steps 501 to 503, please refer to the above embodiments and will not be described again here.

步骤504,在移动终端处于解锁状态的情况下,从原始用户界面跳转至扫码界面。Step 504: When the mobile terminal is in an unlocked state, jump from the original user interface to the QR code scanning interface.

解锁状态是指移动终端处于正常运行的状态,解锁状态和锁屏状态是两种不同的状态。The unlocked state means that the mobile terminal is in normal operation. The unlocked state and the locked screen state are two different states.

原始用户界面是指移动终端处于扫码前置状态之前移动终端显示的用户界面,也即,用户执行扫码支付操作之前用户正在观看的用户界面。The original user interface refers to the user interface displayed by the mobile terminal before the mobile terminal is in the QR code scanning pre-state, that is, the user interface that the user is watching before the user performs the QR code scanning payment operation.

在移动终端处于扫码前置状态的情况下,且目标图像用于指示基于服务提供方提供的图形码进行支付,则移动终端确认需要通过扫码界面进行支付。若移动终端处于解锁状态,则移动终端可以直接从原始用户界面跳转至扫码界面,而不需要再执行解锁操作。When the mobile terminal is in the code scanning pre-state and the target image is used to indicate payment based on the graphic code provided by the service provider, the mobile terminal confirms that payment needs to be made through the code scanning interface. If the mobile terminal is in an unlocked state, the mobile terminal can jump directly from the original user interface to the QR code scanning interface without performing an unlocking operation.

步骤505,在移动终端处于锁屏状态的情况下,接收用户输入的身份验证信息,身份验证信息用于触发移动终端进行身份验证;响应于用户输入的身份验证信息与预设的身份验证信息一致,从锁屏界面跳转至扫码界面。Step 505: When the mobile terminal is in the lock screen state, receive the identity verification information input by the user. The identity verification information is used to trigger the mobile terminal to perform identity verification; in response to the user input, the identity verification information is consistent with the preset identity verification information. , jump from the lock screen interface to the QR code scanning interface.

身份验证可以包括以下任意一种方式:密码验证、声音验证、人脸验证、虹膜验证、指纹验证。示例性地,身份验证信息可以包括以下任意一项:密码、声音、人脸、虹膜、指纹。Identity verification can include any of the following methods: password verification, voice verification, face verification, iris verification, and fingerprint verification. For example, the identity verification information may include any of the following: password, voice, face, iris, fingerprint.

需要说明的是,步骤504和步骤505不会同时执行,移动终端会确定是否处于解锁状态;当移动终端处于解锁状态的时候,执行步骤504;当移动终端处于锁屏状态的时候,从步骤505开始执行。It should be noted that steps 504 and 505 will not be executed at the same time, and the mobile terminal will determine whether it is in an unlocked state; when the mobile terminal is in an unlocked state, step 504 will be executed; when the mobile terminal is in a lock screen state, step 505 will be executed. Begin execution.

预设的身份验证信息是用户预先存储在移动终端中的,用于验证用户身份的信息。预设的身份验证信息和用户输入的身份验证信息的类型一致,也即,当用户输入的身份验证信息是密码时,预设的身份验证信息是密码;当用户输入的身份验证信息是声音时,预设的身份验证信息是声音;当用户输入的身份验证信息是人脸时,预设的身份验证信息是人脸;当用户输入的身份验证信息是虹膜时,预设的身份验证信息是虹膜;当用户输入的身份验证信息是指纹时,预设的身份验证信息是指纹。The preset identity verification information is information pre-stored by the user in the mobile terminal and used to verify the user's identity. The default authentication information is of the same type as the authentication information entered by the user, that is, when the authentication information entered by the user is a password, the default authentication information is a password; when the authentication information entered by the user is a voice , the default authentication information is voice; when the authentication information input by the user is a face, the default authentication information is a face; when the authentication information input by the user is iris, the default authentication information is Iris; when the authentication information entered by the user is a fingerprint, the default authentication information is the fingerprint.

以身份验证为密码验证为例,移动终端显示密码输入界面,移动终端接收用户在密码输入界面中输入的密码,响应于输入的密码与设置的密码一致时,确定身份验证通过。Taking identity verification as password verification as an example, the mobile terminal displays a password input interface. The mobile terminal receives the password entered by the user in the password input interface. When the password entered in response is consistent with the set password, it is determined that the identity verification is passed.

在可能的实现方式中,移动终端内预先存储有多个预设的身份验证信息,当用户输入的身份验证信息与多个预设的身份验证信息中的一个身份验证信息相一致时,确认身份验证通过。In a possible implementation, multiple preset identity verification information are pre-stored in the mobile terminal. When the identity verification information input by the user is consistent with one of the multiple preset identity verification information, the identity is confirmed. Verification passed.

锁屏界面是指移动终端未解锁时显示的界面,是移动终端处于锁屏状态时所展示的界面。当移动终端确定用户输入的身份验证信息与预设的身份验证信息一致时,说明移动终端解锁成功,移动终端从锁屏界面跳转至扫码界面。The lock screen interface refers to the interface displayed when the mobile terminal is not unlocked, and is the interface displayed when the mobile terminal is in the locked screen state. When the mobile terminal determines that the identity verification information entered by the user is consistent with the preset identity verification information, it means that the mobile terminal is successfully unlocked and the mobile terminal jumps from the lock screen interface to the QR code scanning interface.

在可能的实现方式中,当用户输入的身份验证信息与预设的身份验证信息不一致时,移动终端显示提示信息,该提示信息用于提示用户重新输入身份验证信息。In a possible implementation, when the identity verification information input by the user is inconsistent with the preset identity verification information, the mobile terminal displays prompt information, and the prompt information is used to prompt the user to re-enter the identity verification information.

步骤506,显示服务提供方提供的图形码对应的扫码界面。Step 506: Display the code scanning interface corresponding to the graphic code provided by the service provider.

以移动终端处于锁屏状态为例进行介绍说明,如图6所示,其示出了一种扫码界面显示流程的示意图。移动终端显示锁屏界面601,用户移动移动终端,使得移动终端处于扫码前置状态;移动终端获取目标图像,目标图像用于指示服务提供方提供的资源转移方式为基于图形码进行资源转移;移动终端接收用户输入的身份验证信息,响应于用户输入的身份验证信息和预设的身份验证信息一致,移动终端从锁屏界面601跳转至扫码界面602。移动终端后台模拟打开图形码对应的支付程序,并进入支付程序的首页,然后从支付程序的首页中模拟接收到对扫码界面的打开指令,从而使得终端屏幕显示扫码界面,操作简单。The mobile terminal is in the locked screen state as an example for introduction and explanation, as shown in Figure 6, which shows a schematic diagram of a code scanning interface display process. The mobile terminal displays a lock screen interface 601, and the user moves the mobile terminal so that the mobile terminal is in a pre-code scanning state; the mobile terminal obtains a target image, and the target image is used to indicate that the resource transfer method provided by the service provider is resource transfer based on graphic codes; The mobile terminal receives the identity verification information input by the user, and in response to the identity verification information input by the user being consistent with the preset identity verification information, the mobile terminal jumps from the lock screen interface 601 to the QR code scanning interface 602. The mobile terminal simulates opening the payment program corresponding to the graphic code in the background, and enters the home page of the payment program, and then simulates receiving an instruction to open the code scanning interface from the home page of the payment program, so that the terminal screen displays the code scanning interface, making the operation simple.

下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to execute method embodiments of the present application. For details not disclosed in the device embodiments of this application, please refer to the method embodiments of this application.

请参考图7,其示出了本申请一个实施例提供的扫码界面显示装置的框图,该装置具有实现上述方法示例的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置700可以包括:Please refer to Figure 7, which shows a block diagram of a code scanning interface display device provided by an embodiment of the present application. The device has the function of implementing the above method example. The function can be implemented by hardware, or the hardware can execute corresponding software. accomplish. The device 700 may include:

信息获取模块710,用于获取移动终端的移动位姿信息,所述移动位姿信息用于指示处于移动状态的所述移动终端的位置和姿态;The information acquisition module 710 is used to obtain the movement posture information of the mobile terminal, where the movement posture information is used to indicate the position and posture of the mobile terminal in a moving state;

信息识别模块720,用于对所述移动位姿信息进行识别处理,得到识别结果,所述识别结果用于指示所述移动终端是否处于扫码前置状态,所述扫码前置状态是指显示扫码界面时的前置状态;The information recognition module 720 is used to perform recognition processing on the mobile posture information to obtain a recognition result. The recognition result is used to indicate whether the mobile terminal is in a code scanning pre-state. The code scanning pre-state refers to The front state when displaying the QR code scanning interface;

图像获取模块730,用于响应于所述识别结果用于指示所述移动终端处于所述扫码前置状态,获取目标图像,所述目标图像用于指示基于服务提供方提供的图形码进行支付;Image acquisition module 730, configured to acquire a target image in response to the recognition result indicating that the mobile terminal is in the code scanning pre-state, where the target image is used to indicate payment based on the graphic code provided by the service provider. ;

界面显示模块740,用于显示所述服务提供方提供的图形码对应的扫码界面。The interface display module 740 is used to display the code scanning interface corresponding to the graphic code provided by the service provider.

综上所述,本申请实施例提供的技术方案中,通过基于移动终端的移动位姿信息,确定移动终端是否处于扫码前置状态;当确定移动终端处于扫码前置状态时,获取用于指示服务提供方提供的图形码的图像,显示与图形码对应的扫码界面。本申请实施例通过基于移动终端的位置和姿态从而实现自动显示与图形码对应的扫码界面,无需进行繁琐的界面触控操作,简化了扫码界面打开流程所需的操作,提高了界面打开效率。To sum up, in the technical solution provided by the embodiments of the present application, it is determined whether the mobile terminal is in the code scanning pre-state based on the mobile posture information of the mobile terminal; when it is determined that the mobile terminal is in the code scanning pre-state, the user is obtained Display the code scanning interface corresponding to the graphic code on the image indicating the graphic code provided by the service provider. The embodiment of the present application automatically displays the code scanning interface corresponding to the graphic code based on the position and posture of the mobile terminal, eliminating the need for cumbersome interface touch operations, simplifying the operations required to open the code scanning interface, and improving the interface opening process. efficiency.

在示意性实施例中,所述图像获取模块730,用于:In an exemplary embodiment, the image acquisition module 730 is used for:

通过所述移动终端的后置摄像头进行图像采集,得到采集图像;Perform image collection through the rear camera of the mobile terminal to obtain the collected image;

响应于所述采集图像中包括所述图形码,从所述采集图像中获取包括所述图形码的所述目标图像。In response to the graphic code being included in the captured image, the target image including the graphic code is acquired from the captured image.

在示意性实施例中,所述界面显示模块740,用于:In an exemplary embodiment, the interface display module 740 is used for:

基于所述目标图像的图像特征,确定所述服务提供方提供的图形码对应的支付程序,所述支付程序是指提供支付功能的应用程序;Based on the image characteristics of the target image, determine the payment program corresponding to the graphic code provided by the service provider, where the payment program refers to an application program that provides payment functions;

显示所述支付程序对应的扫码界面。Display the QR code scanning interface corresponding to the payment program.

在示意性实施例中,所述装置,还包括:数量获取模块、金额支付模块(图中未示出)。In an exemplary embodiment, the device further includes: a quantity acquisition module and an amount payment module (not shown in the figure).

界面显示模块740,还用于显示支付界面,所述支付界面中包括支付金额的输入框以及确认支付控件;The interface display module 740 is also used to display the payment interface, which includes an input box for the payment amount and a payment confirmation control;

数量获取模块,用于获取在所述支付金额的输入框中输入的金额数量;A quantity acquisition module, used to obtain the amount entered in the input box of the payment amount;

金额支付模块,用于响应于接收到对所述确认支付控件的选择指令,向所述服务提供方支付所述金额数量的金额。An amount payment module, configured to pay the amount of the amount to the service provider in response to receiving a selection instruction on the confirmation payment control.

在示意性实施例中,所述数量获取模块,用于:In an exemplary embodiment, the quantity acquisition module is used for:

接收针对所述支付金额的输入框的语音指令;Receive voice instructions for the input box of the payment amount;

从所述语音指令中确定所述金额数量。The amount is determined from the voice command.

在示意性实施例中,所述装置还包括:界面跳转模块(图中未示出)。In an exemplary embodiment, the device further includes: an interface jump module (not shown in the figure).

所述界面跳转模块,用于:The interface jump module is used for:

在所述移动终端处于解锁状态的情况下,从原始用户界面跳转至所述扫码界面;When the mobile terminal is in an unlocked state, jump from the original user interface to the code scanning interface;

在所述移动终端处于锁屏状态的情况下,接收用户输入的身份验证信息,所述身份验证信息用于触发所述移动终端进行身份验证;响应于所述用户输入的身份验证信息与预设的身份验证信息一致,从锁屏界面跳转至所述扫码界面。When the mobile terminal is in a locked screen state, receive identity verification information input by the user, and the identity verification information is used to trigger the mobile terminal to perform identity verification; in response to the identity verification information input by the user and the preset The identity verification information is consistent and jumps from the lock screen interface to the QR code scanning interface.

在示意性实施例中,所述信息识别模块720,用于:In an exemplary embodiment, the information identification module 720 is used for:

通过识别模型对所述移动位姿信息进行识别处理,得到所述识别结果。The mobile pose information is recognized and processed through a recognition model to obtain the recognition result.

在示意性实施例中,所述装置,还包括:模型训练模块(图中未示出);In an illustrative embodiment, the device further includes: a model training module (not shown in the figure);

所述模型训练模块,用于:The model training module is used for:

获取训练数据,所述训练数据包括至少一个训练移动位姿信息和所述训练移动位姿信息对应的标准识别结果;Obtain training data, the training data including at least one training movement pose information and a standard recognition result corresponding to the training movement pose information;

通过所述识别模型对所述训练移动位姿信息进行识别处理,得到预测识别结果;Perform recognition processing on the training movement pose information through the recognition model to obtain predicted recognition results;

基于所述预测识别结果和所述标准识别结果对所述识别模型进行训练,得到完成训练的所述识别模型。The recognition model is trained based on the predicted recognition results and the standard recognition results to obtain the trained recognition model.

需要说明的是,上述实施例提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the device provided in the above embodiment implements its functions, only the division of the above functional modules is used as an example. In actual application, the above functions can be allocated to different functional modules according to needs, that is, the equipment The internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be described again here.

请参考图8,其示出了本申请一个实施例提供的移动终端的结构框图。Please refer to FIG. 8 , which shows a structural block diagram of a mobile terminal provided by an embodiment of the present application.

本申请实施例中的移动终端可以包括一个或多个如下部件:处理器810和存储器820。The mobile terminal in the embodiment of the present application may include one or more of the following components: a processor 810 and a memory 820.

处理器810可以包括一个或者多个处理核心。处理器810利用各种接口和线路连接整个终端内的各个部分,通过运行或执行存储在存储器820内的指令、程序、代码集或指令集,以及调用存储在存储器820内的数据,执行终端的各种功能和处理数据。可选地,处理器810可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器810可集成中央处理器(CentralProcessing Unit,CPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统和应用程序等;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器810中,单独通过一块芯片进行实现。Processor 810 may include one or more processing cores. The processor 810 uses various interfaces and lines to connect various parts of the entire terminal, and executes the terminal by running or executing instructions, programs, code sets or instruction sets stored in the memory 820, and calling data stored in the memory 820. Various functions and processing data. Optionally, the processor 810 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form. The processor 810 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU) and a modem. Among them, the CPU mainly handles operating systems and applications, etc.; the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 810 and may be implemented by a separate chip.

可选地,处理器810执行存储器820中的程序指令时实现上述各个方法实施例提供的方法。Optionally, when the processor 810 executes the program instructions in the memory 820, the methods provided by the above method embodiments are implemented.

存储器820可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器820包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器820可用于存储指令、程序、代码、代码集或指令集。存储器820可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令、用于实现上述各个方法实施例的指令等;存储数据区可存储根据移动终端的使用所创建的数据等。The memory 820 may include random access memory (RAM) or read-only memory (Read-Only Memory, ROM). Optionally, the memory 820 includes non-transitory computer-readable storage medium. Memory 820 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 820 may include a stored program area and a stored data area, where the stored program area may store instructions for implementing the operating system, instructions for at least one function, instructions for implementing each of the above method embodiments, etc.; the storage data area Data created based on the use of the mobile terminal, etc. can be stored.

上述移动终端的结构仅是示意性的,在实际实现时,移动终端可以包括更多或更少的组件,比如:显示屏、图像采集设备等,本实施例对此不作限定。The structure of the above mobile terminal is only illustrative. In actual implementation, the mobile terminal may include more or fewer components, such as a display screen, an image acquisition device, etc., which is not limited in this embodiment.

本领域技术人员可以理解,图8中示出的结构并不构成对移动终端的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in Figure 8 does not constitute a limitation on the mobile terminal, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.

在示例性实施例中,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序由移动终端的处理器加载并执行以实现上述扫码界面显示方法实施例中的各个步骤。In an exemplary embodiment, a computer-readable storage medium is also provided. A computer program is stored in the computer-readable storage medium. The computer program is loaded and executed by a processor of the mobile terminal to implement the above code scanning interface. Various steps in method embodiments are shown.

在示例性实施例中,提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。移动终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该移动终端执行上述扫码界面显示方法。In an exemplary embodiment, a computer program product is provided that includes computer instructions stored in a computer-readable storage medium. The processor of the mobile terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the mobile terminal executes the above code scanning interface display method.

应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。It should be understood that "plurality" mentioned in this article means two or more. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the numbering sequence, such as two different numbers. The steps are executed simultaneously, or two steps with different numbers are executed in the reverse order as shown in the figure, which is not limited in the embodiments of the present application.

以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (10)

1. The code scanning interface display method is characterized by comprising the following steps of:
acquiring movement pose information of a mobile terminal, wherein the movement pose information is used for indicating the position and the pose of the mobile terminal in a movement state;
the mobile pose information is identified to obtain an identification result, wherein the identification result is used for indicating whether the mobile terminal is in a code scanning preposition state, and the code scanning preposition state refers to a preposition state when a code scanning interface is displayed;
responding to the identification result to indicate that the mobile terminal is in the pre-scanning state, and acquiring a target image, wherein the target image is used for indicating payment based on a graphic code provided by a service provider; the mobile terminal acquires the target image in the background, and the operation of acquiring the target image in the background is not perceived by a user;
determining a payment program corresponding to the graphic code provided by the service provider based on the image characteristics of the target image, wherein the payment program refers to an application program for providing a payment function;
And displaying a code scanning interface corresponding to the payment program.
2. The method of claim 1, wherein the acquiring the target image comprises:
acquiring an image through a rear camera of the mobile terminal to obtain an acquired image;
and in response to the acquired image including the graphic code, acquiring the target image including the graphic code from the acquired image.
3. The method of claim 1, wherein after displaying the scan code interface corresponding to the payment procedure, further comprising:
displaying a payment interface, wherein the payment interface comprises an input box of payment amount and a payment control;
acquiring the amount input in the payment amount input box;
and in response to receiving a selection instruction of the confirmed payment control, paying the amount of the amount to the service provider.
4. A method according to claim 3, wherein the obtaining the amount entered in the payment amount entry box comprises:
receiving a voice instruction of an input box for the payment amount;
the amount is determined from the voice command.
5. The method of claim 1, wherein before displaying the scan code interface corresponding to the payment procedure, further comprises:
jumping from an original user interface to the code scanning interface under the condition that the mobile terminal is in an unlocking state;
under the condition that the mobile terminal is in a screen locking state, receiving authentication information input by a user, wherein the authentication information is used for triggering the mobile terminal to perform authentication; and responding to the identity verification information input by the user being consistent with the preset identity verification information, and jumping from the screen locking interface to the code scanning interface.
6. The method according to any one of claims 1 to 5, wherein the identifying the moving pose information to obtain an identification result includes:
and carrying out recognition processing on the mobile pose information through a recognition model to obtain a recognition result.
7. The method according to claim 6, wherein the identifying the moving pose information by the identifying model further comprises, before obtaining the identifying result:
acquiring training data, wherein the training data comprises at least one piece of training movement pose information and a standard recognition result corresponding to the training movement pose information;
The training movement pose information is identified through the identification model, and a prediction identification result is obtained;
and training the recognition model based on the predicted recognition result and the standard recognition result to obtain the recognition model after training.
8. A code scanning interface display device, the device comprising:
the information acquisition module is used for acquiring movement pose information of the mobile terminal, wherein the movement pose information is used for indicating the position and the pose of the mobile terminal in a movement state;
the information identification module is used for carrying out identification processing on the mobile pose information to obtain an identification result, wherein the identification result is used for indicating whether the mobile terminal is in a code scanning preposition state, and the code scanning preposition state refers to a preposition state when a code scanning interface is displayed;
the image acquisition module is used for responding to the identification result and used for indicating that the mobile terminal is in the code scanning preposition state and acquiring a target image, and the target image is used for indicating that payment is carried out based on the graphic code provided by the service provider; the mobile terminal acquires the target image in the background, and the operation of acquiring the target image in the background is not perceived by a user;
The interface display module is used for determining a payment program corresponding to the graphic code provided by the service provider based on the image characteristics of the target image, wherein the payment program refers to an application program for providing a payment function; and displaying a code scanning interface corresponding to the payment program.
9. A mobile terminal, characterized in that it comprises a processor and a memory, said memory storing a computer program, said computer program being loaded and executed by said processor to implement the method of displaying a swipe code interface according to any of claims 1 to 7.
10. A computer readable storage medium having a computer program stored therein, the computer program being loaded and executed by a processor to implement the scan code interface display method of any one of claims 1 to 7.
CN202011633743.4A 2020-12-31 2020-12-31 Code scanning interface display method and device, mobile terminal and storage medium Active CN112613475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011633743.4A CN112613475B (en) 2020-12-31 2020-12-31 Code scanning interface display method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011633743.4A CN112613475B (en) 2020-12-31 2020-12-31 Code scanning interface display method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112613475A CN112613475A (en) 2021-04-06
CN112613475B true CN112613475B (en) 2023-10-31

Family

ID=75252919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011633743.4A Active CN112613475B (en) 2020-12-31 2020-12-31 Code scanning interface display method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112613475B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115034780B (en) * 2021-03-04 2025-03-11 Oppo广东移动通信有限公司 Payment method, device, storage medium and mobile terminal for mobile terminal
CN113177471A (en) * 2021-04-28 2021-07-27 Oppo广东移动通信有限公司 Motion detection method, motion detection device, electronic device, and storage medium
CN113298212B (en) * 2021-05-25 2024-08-23 艾酷软件技术(上海)有限公司 Graphic code display method and device
CN113887264B (en) * 2021-06-07 2022-06-21 荣耀终端有限公司 Code scanning method, system and related device
CN118261595B (en) * 2021-08-06 2025-01-24 荣耀终端有限公司 Payment method and related device
CN115016712B (en) * 2021-09-27 2024-05-14 荣耀终端有限公司 Method and device for exiting two-dimensional code
CN113935349B (en) * 2021-10-18 2024-06-21 交互未来(北京)科技有限公司 Method and device for scanning two-dimension code, electronic equipment and storage medium
CN113935348B (en) * 2021-10-18 2024-06-28 交互未来(北京)科技有限公司 Two-dimensional code scanning method and device and electronic equipment
CN115079886B (en) * 2022-07-21 2023-01-03 荣耀终端有限公司 Two-dimensional code recognition method, electronic device, and storage medium
CN117077703A (en) * 2023-09-14 2023-11-17 荣耀终端有限公司 Image processing method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656684A (en) * 2017-09-21 2018-02-02 珠海市魅族科技有限公司 Pay control method, device, computer installation and computer-readable recording medium
CN109067964A (en) * 2018-06-12 2018-12-21 Oppo广东移动通信有限公司 Camera control method and device, mobile terminal and storage medium
CN109213326A (en) * 2018-11-23 2019-01-15 深圳市万通顺达科技股份有限公司 Two dimensional code call-out method based on gyroscope, device, payment system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656684A (en) * 2017-09-21 2018-02-02 珠海市魅族科技有限公司 Pay control method, device, computer installation and computer-readable recording medium
CN109067964A (en) * 2018-06-12 2018-12-21 Oppo广东移动通信有限公司 Camera control method and device, mobile terminal and storage medium
CN109213326A (en) * 2018-11-23 2019-01-15 深圳市万通顺达科技股份有限公司 Two dimensional code call-out method based on gyroscope, device, payment system

Also Published As

Publication number Publication date
CN112613475A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN112613475B (en) Code scanning interface display method and device, mobile terminal and storage medium
US9916514B2 (en) Text recognition driven functionality
CN110321047B (en) A display control method and device
US20170293387A1 (en) Input circuitry, terminal, and touch response method and device
WO2020156194A1 (en) Fingerprint unlocking method and device, terminal and storage medium
KR102092931B1 (en) Method for eye-tracking and user terminal for executing the same
CN112036331B (en) Living body detection model training method, device, equipment and storage medium
EP2879095A1 (en) Method, apparatus and terminal device for image processing
CN112200187A (en) Target detection method, device, machine readable medium and equipment
AU2017293746A1 (en) Electronic device and operating method thereof
CN102662473A (en) Device and method for implementation of man-machine information interaction based on eye motion recognition
CN103616953A (en) Method and device for unlocking screen and initiating application
EP3873074B1 (en) Apparatus in mobile terminal for identifying application program, and terminal
CN110517033A (en) A fast scanning payment method and device
CN112712498A (en) Vehicle damage assessment method and device executed by mobile terminal, mobile terminal and medium
CN113721582B (en) Cabin system response efficiency testing method, equipment, storage medium and device
CN112989299A (en) Interactive identity recognition method, system, device and medium
CN115034780B (en) Payment method, device, storage medium and mobile terminal for mobile terminal
CN112486387A (en) Application program control method and device
KR20240167075A (en) Gesture-based application invocation
WO2022268023A1 (en) Fingerprint recognition method and apparatus, and electronic device and readable storage medium
CN112486394A (en) Information processing method and device, electronic equipment and readable storage medium
CN107563163A (en) A kind of screen unlocked by fingerprint method and terminal
CN112818733B (en) Information processing method, device, storage medium and terminal
KR20150027687A (en) A method and system for providing user interaction when capturing content in an electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant