CN110766396A - Graphic code display method and electronic equipment - Google Patents

Graphic code display method and electronic equipment Download PDF

Info

Publication number
CN110766396A
CN110766396A CN201910940180.4A CN201910940180A CN110766396A CN 110766396 A CN110766396 A CN 110766396A CN 201910940180 A CN201910940180 A CN 201910940180A CN 110766396 A CN110766396 A CN 110766396A
Authority
CN
China
Prior art keywords
electronic equipment
screen
preset
electronic device
condition
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.)
Pending
Application number
CN201910940180.4A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910940180.4A priority Critical patent/CN110766396A/en
Publication of CN110766396A publication Critical patent/CN110766396A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • 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/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a graphic code display method and electronic equipment, wherein the method comprises the following steps: under the condition that a first input indicating that a graphic code is displayed is received, controlling the screen of the electronic equipment to be turned off; and under the condition that a preset lighting condition is met, lighting the screen of the electronic equipment. The graphic code is prevented from being illegally scanned, and the safety of payment of a user through the graphic code is improved.

Description

Graphic code display method and electronic equipment
Technical Field
The embodiment of the invention relates to the field of electronic equipment, in particular to a graphic code display method and electronic equipment.
Background
With the popularization of smart phones, mobile payment has become the most common payment means in people's life. Payment via a graphic code such as a two-dimensional code is also the most common payment method in mobile payment.
When a user pays through the graphic code, the user often finishes paying after waiting for a long time after displaying the graphic code, so that the risk of illegal scanning of the graphic code exists.
Disclosure of Invention
The embodiment of the invention provides a graphic code display method, electronic equipment and a computer readable storage medium, which aim to solve the problem that the graphic code has the risk of being illegally scanned.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for displaying a graphic code, including:
under the condition that a first input indicating that a graphic code is displayed is received, controlling the screen of the electronic equipment to be turned off;
and under the condition that a preset lighting condition is met, lighting the screen of the electronic equipment.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
a determination unit configured to control a screen of the electronic device to be turned off in a case where a first input indicating that a graphic code is displayed is received;
a processing unit configured to light a screen of the electronic device if a preset lighting condition is satisfied.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the graphic code display method comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the computer program realizes the steps of the graphic code display method provided by the embodiment of the invention when being executed by the processor.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the graphic code display method provided in the embodiment of the present invention are implemented.
In the embodiment of the invention, under the condition that a first input indicating that a graphic code is displayed is received, the screen of the electronic equipment is controlled to be turned off; and under the condition that a preset lighting condition is met, lighting the screen of the electronic equipment. By reducing the display time of the graphic code, the graphic code is prevented from being illegally scanned, and the safety of payment of a user through the graphic code is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a graphic code display method according to an embodiment of the present invention;
FIG. 2 illustrates a flow chart for a user of an electronic device completing a payment;
FIG. 3 illustrates a flow diagram for turning on a screen backlight of an electronic device via a payment gesture;
FIG. 4 is a schematic diagram of a flow chart of turning on a screen backlight of an electronic device by the electronic device in a preset pose and detecting a proximity barrier;
FIG. 5 is a flow chart illustrating turning on a screen backlight of an electronic device through face recognition;
FIG. 6 is a block diagram of an electronic device provided by an embodiment of the invention;
fig. 7 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments that can be obtained by a person skilled in the art based on the embodiments of the present invention without any inventive step belong to the scope of the embodiments of the present invention.
Referring to fig. 1, a flowchart of a graphic code display method according to an embodiment of the present invention is shown, where the method includes:
and 101, under the condition that a first input indicating that the graphic code is displayed is received, controlling the screen of the electronic equipment to be extinguished.
In the embodiment of the invention, under the condition that the first input for indicating the display of the graphic code is received, the screen of the electronic equipment can be directly controlled to be turned off. Or displaying the graphic code first, and determining whether the preset extinguishing condition is met or not in real time after the graphic code is displayed. Under the condition that the preset extinction condition is met, the screen of the electronic equipment can be controlled to be extinguished so as to avoid the graphic code from being scanned.
For example, the graphic code is a two-dimensional code, and the preset turning-off condition is that the two-dimensional code is not scanned after a long time from the time when the two-dimensional code is displayed. Under the condition that the preset extinguishing condition that the two-dimensional code is not scanned after a long time from the moment of displaying the two-dimensional code is met, the screen of the electronic equipment can be controlled to be extinguished, and the two-dimensional code is prevented from being scanned.
In some embodiments, controlling the blanking of the screen of the electronic device comprises: under the condition that a preset extinguishing condition is met, closing screen backlight of the electronic equipment, wherein the preset extinguishing condition is at least one of the following conditions: the time from the display of the graphic code to the completion of payment in multiple times of historical payments performed on the electronic equipment exceeds a first preset time; the time length from the moment when the graphic code is displayed when the user does not watch the screen of the electronic equipment exceeds a second preset time length and the graphic code is not scanned; receiving a second input of the user, wherein the second input indicates to turn off the screen backlight of the electronic equipment.
In the embodiment of the invention, in order to control the screen of the electronic device to be extinguished, a plurality of extinguishing conditions, such as a time period from the display of the graphic code to the completion of payment in a plurality of times of historical payments performed on the electronic device exceeding a first preset time period, a time period from the time when the graphic code is displayed when a user does not watch on the screen of the electronic device exceeding a second preset time period and the graphic code being not scanned, and a second input of the user are received, can be preset. When one of a plurality of preset turning-off conditions is satisfied, the preset turning-off condition is satisfied.
In the embodiment of the present invention, after the graphic code is displayed, in a case where an extinguishing condition that a time period from the display of the graphic code to the completion of payment in a plurality of times of historical payments performed on the electronic device exceeds a first preset time period is satisfied, the screen backlight of the electronic device may be turned off, in other words, in each time period from the display of the graphic code to the completion of payment exceeds the first preset time period, the screen backlight of the electronic device is turned off, and thus, the screen of the electronic device is controlled to be extinguished. The multiple historical payments may be historical payments greater than a time, or may be historical payments greater than a threshold number of times.
For example, the first preset time duration is 60 seconds, the graphic code is a two-dimensional code, after the two-dimensional code is displayed, it is determined that a turning-off condition that the time duration from the display of the graphic code to the completion of payment exceeds 60 seconds in multiple times of historical payment performed on the electronic device is satisfied, and in a case that the turning-off condition that the time duration from the display of the graphic code to the completion of payment exceeds 60 seconds in multiple times of historical payment performed on the electronic device is satisfied, the screen backlight of the electronic device is turned off, so that the turning-off of the screen of the electronic device is controlled.
In the embodiment of the present invention, after the graphic code is displayed, in a case where an off condition that a duration that a user does not watch on a screen of the electronic device from a time when the graphic code is displayed exceeds a second preset duration and the graphic code is not scanned is satisfied, a screen backlight of the electronic device may be turned off, thereby controlling the screen of the electronic device to be turned off.
For example, the graphic code is a two-dimensional code, and after the two-dimensional code is displayed, if a turn-off condition that a time period during which a user does not watch on a screen of the electronic device exceeds 10 seconds from a time when the two-dimensional code is displayed and the two-dimensional code is not scanned is determined, in a case where the turn-off condition that a time period during which the user does not watch on the screen of the electronic device exceeds a second preset time period from the time when the graphic code is displayed and the graphic code is not scanned is satisfied, a screen backlight of the electronic device is turned off, thereby controlling the screen of the electronic device to be turned off.
In the embodiment of the invention, whether the user of the electronic equipment watches the screen or not can be determined by whether a face image related to the watching screen of the user of the electronic equipment is collected or not.
For example, when a user of the electronic device is looking at the screen, the pose of the user's face in the captured face image of the user of the electronic device may be within a certain pose range. If the face image of the face of the user in a certain posture range is not acquired in a time period exceeding a second preset time period when the time at which the graphic code is displayed is taken as the starting time, it can be determined that the time period from the time at which the graphic code is displayed when the user does not watch the screen of the electronic device exceeds the second preset time period.
In the embodiment of the invention, under the condition that the second input of the user is received, the screen backlight of the electronic equipment is turned off, so that the screen of the electronic equipment is controlled to be turned off.
For example, the second input is an input corresponding to one of actions such as double-click and long-press on the screen of the electronic device. When the user performs one of double-click, long-press and the like on the screen of the electronic equipment, the second input of the user can be received, and under the condition that the second input of the user is received, the screen backlight of the electronic equipment is turned off, so that the screen of the electronic equipment is controlled to be turned off.
In some embodiments of the present invention, turning off the screen backlight of the electronic device in case that a preset extinguishing condition is satisfied includes: displaying reminding information for reminding a user whether to pay or not under the condition that a preset extinguishing condition is met; turning off a screen backlight of the electronic device in a case where a third input of the user is received, the third input instructing the user to abandon the payment.
In the embodiment of the invention, the reminding information can be displayed under the condition of meeting the preset extinguishing condition. After displaying the reminder information, a third input by the user may be received in the event that the user relinquishes payment. For example, the third input is an input corresponding to an action of the user clicking a button on a screen of the electronic device indicating that payment is to be abandoned. And under the condition that a third input of the user is received, closing the screen backlight of the electronic equipment, so that the screen of the electronic equipment used by the user is in a screen-off state, and the graphic code cannot be scanned, thereby preventing the graphic code from being illegally scanned.
And 102, lighting a screen of the electronic equipment under the condition that a preset lighting condition is met.
In the embodiment of the invention, after the screen of the electronic equipment is controlled to be turned off, the screen of the electronic equipment can be turned on under the condition that the preset lighting condition is met, so that the graphic code is visible, and the graphic code can be scanned to complete payment.
For example, the preset lighting condition is that the electronic device is close to an object whose distance from the electronic device is smaller than a threshold value. An object whose distance from the electronic device is less than a threshold may be detected by an infrared distance sensor or other distance sensor of the electronic device. In the case where it is detected that there is an object whose distance from the electronic apparatus is less than the threshold value, it may be detected by the acceleration sensor whether the electronic apparatus is moving toward the object. When it is detected that the electronic device is moving towards an object, it may then be determined that the electronic device is near an object that is less than a threshold distance from the electronic device. An object that is close to the electronic device and whose distance from the electronic device is less than a threshold value is typically a graphic code scanner, such as a two-dimensional code scanner. Under the condition that the preset lighting condition that the electronic equipment is close to an object with the distance from the electronic equipment to the object being smaller than the threshold value is met, the screen of the electronic equipment can be lighted, the graphic code can be made visible, and the graphic code can be scanned to complete payment.
For another example, the preset lighting condition is that a preset time period has elapsed from the time when the screen of the control electronic device is turned off. After the screen of the electronic device is controlled to be turned off, timing can be started from the moment when the screen of the electronic device is controlled to be turned off, after a third preset time length, the screen of the electronic device is determined to meet a preset lighting condition, and then the screen of the electronic device is lighted, so that the graphic code is visible, and the graphic code can be scanned to complete payment.
Referring to fig. 2, a flowchart of a user of an electronic device completing a payment via a two-dimensional code is shown.
A user of the electronic device opens the payment app and displays the two-dimensional code upon receiving a first input indicating that the two-dimensional code is displayed. For example, the user can open the two-dimensional code payment interface by clicking an icon corresponding to the two-dimensional code payment interface in the main interface of the payment app, and the two-dimensional code is displayed in the two-dimensional code interface. The received first input indicating that the two-dimensional code is displayed is input corresponding to an action that a user clicks an icon corresponding to the two-dimensional code payment interface. After the two-dimensional code is displayed, the preset extinguishing condition is determined to be met, and the screen backlight of the electronic equipment is closed, so that the screen of the electronic equipment is controlled to be extinguished, the two-dimensional code cannot be scanned, and the two-dimensional code is prevented from being illegally scanned. And under the condition that the preset lighting condition is met, lighting the screen of the electronic equipment to enable the two-dimensional code to be visible, and scanning the two-dimensional code to complete payment.
In some embodiments, the preset lighting condition is at least one of: receiving a payment gesture input of a user; the gesture of the electronic equipment is a preset gesture and a shelter, the distance between which and the electronic equipment is smaller than a threshold value, is detected; a facial image is captured by the camera and it is determined that the captured facial image matches the target facial image.
In the embodiment of the invention, in order to light up the screen of the electronic device after the screen of the electronic device is turned off, it may be preset to receive a payment gesture input of a user, the posture of the electronic device is a preset posture, a barrier with a distance from the electronic device smaller than a threshold value is detected, a face image is collected through a camera, and a plurality of lighting conditions such as matching of the collected face image with a target face image are determined. When one of a plurality of lighting conditions set in advance is satisfied, the preset lighting condition is satisfied.
In the embodiment of the invention, whether the payment gesture input of the user is received or not can be determined in real time aiming at the lighting condition that the payment gesture input of the user is received. If the payment gesture input of the user is determined to be received, under the condition that the payment gesture input of the user is received, the backlight of the screen of the electronic equipment is turned on, the graphic code is made to be visible, and the graphic code can be scanned to complete payment.
For example, the payment gesture is a palm of the user pressing a screen of the electronic device, and the user's payment gesture input is an input corresponding to a payment gesture in which the palm of the user presses the screen of the electronic device. When the palm of the user presses the screen of the electronic equipment, the payment gesture input of the user is received, and under the condition that the payment gesture input of the user is received, the backlight of the screen of the electronic equipment is turned on, so that the graphic code is visible and can be scanned to complete payment.
In an embodiment of the present invention, for a lighting condition that a face image is captured by a camera and it is determined that the captured face image matches a preset face image of a target object, after turning off a backlight of a screen of an electronic device, the camera may be activated to capture the face image and determine whether the captured face image matches the target face image.
In the embodiment of the present invention, the target face image is a face image of the target object. The target object may be an owner of the electronic device. In case the user of the electronic device is ready for payment, the user may orient his face towards the screen of the electronic device. At this time, the camera may capture a facial image and determine whether the captured facial image matches the facial image of the owner of the electronic device, i.e., the user. In the case where a facial image is captured by the camera and it is determined that the captured facial image matches the user's facial image, the screen backlight of the electronic device may be turned on so that the graphical code is visible and may be scanned to complete the payment.
In the embodiment of the invention, for the lighting condition that the posture of the electronic equipment is the preset posture and the shielding object with the distance from the electronic equipment smaller than the threshold value is detected, whether the posture of the electronic equipment is the preset posture or not can be determined in real time and whether the shielding object with the distance from the electronic equipment smaller than the threshold value exists or not can be detected. In the case where the electronic device is in the preset posture, the obstruction whose distance from the electronic device is smaller than the threshold value is generally a graphic code scanner such as a two-dimensional code scanner. Under the condition that the lighting condition that the gesture of the electronic equipment is the preset gesture and the shielding object with the distance to the electronic equipment smaller than the threshold value is detected, the screen backlight of the electronic equipment can be turned on, so that the graphic code is visible, and the graphic code can be scanned to complete payment.
In the embodiment of the invention, the preset gesture is the gesture of the electronic equipment under the condition that the graphic code is scanned.
In some embodiments of the present invention, in a case where a lighting condition that the posture of the electronic device is a preset posture and a shield whose distance from the electronic device is less than a threshold is detected is satisfied, the preset posture is one of: vertical attitude, horizontal attitude.
For example, the electronic device is a mobile terminal, the graphic code is a two-dimensional code, and the posture of the mobile terminal is usually a vertical posture or a horizontal posture in the case of scanning the two-dimensional code, and both the vertical posture and the horizontal posture can be respectively used as a preset posture. When the gesture of the electronic equipment is any preset gesture, the gesture of the electronic equipment is a preset gesture.
In an embodiment of the present invention, the attitude of the electronic device may be determined by a gravity sensor on the electronic device. An obstacle whose distance from the electronic device is less than a threshold value may be detected by an infrared distance sensor or other distance sensor of the electronic device.
Referring to fig. 3, a flow chart of turning on a backlight of a screen of an electronic device through a payment gesture is shown.
After the screen backlight of the electronic equipment is turned off to control the screen of the electronic equipment to be turned off, the screen is in a screen-off state, and the two-dimensional code cannot be scanned. Then, it is determined in real time whether a preset lighting condition is satisfied. In a case where a user of the electronic device is ready for payment, a payment gesture input of the user may be received, and in a case where a lighting condition that the payment gesture input of the user is received is satisfied, a screen backlight of the electronic device may be turned on.
Referring to FIG. 4, a flow diagram of the electronic device turning on the screen backlight of the electronic device by being in a preset posture and detecting the close-range obstruction is shown.
After the screen backlight of the electronic equipment is turned off to control the screen of the electronic equipment to be turned off, the screen is in a screen-off state, and the two-dimensional code cannot be scanned. Then, it may be determined in real time whether the preset lighting condition is satisfied. In the case where the user of the electronic device is ready to pay, the user of the electronic device holds the electronic device with the electronic device in a preset posture of a substantially vertical posture toward the two-dimensional code scanning device. The gesture of the electronic equipment can be determined to be a preset gesture through the gravity sensor, and the shielding object with the distance smaller than the threshold value from the electronic equipment is detected through the infrared distance sensor. When the lighting condition that the posture of the electronic device is the preset posture and the shielding object with the distance from the electronic device smaller than the threshold value is detected is met, the screen backlight of the electronic device can be turned on.
Referring to fig. 5, a flow chart of turning on a screen backlight of an electronic device through face recognition is shown.
After the screen backlight of the electronic equipment is turned off to control the screen of the electronic equipment to be turned off, the screen is in a screen-off state, and the two-dimensional code cannot be scanned. Then, it may be determined in real time whether the preset lighting condition is satisfied. In case the user of the electronic device is ready for payment, the user may face his own face towards the screen of the electronic device. At this time, the camera may capture a face image and determine that the captured face image matches the target object, i.e., the face image of the user. In the case where a face image is captured by the camera and it is determined that the captured face image matches the face image of the user, the backlight of the screen of the electronic device may be turned on.
Referring to fig. 6, a block diagram of an electronic device according to an embodiment of the invention is shown. The electronic device includes:
a determination unit configured to control a screen of the electronic device to be turned off in a case where a first input indicating that a graphic code is displayed is received;
a processing unit configured to light a screen of the electronic device if a preset lighting condition is satisfied.
In some embodiments of the invention, the processing unit comprises: a screen backlight shutdown module configured to:
and under the condition that a first input indicating that a graphic code is displayed is received and a preset extinguishing condition is met, closing screen backlight of the electronic equipment.
The preset extinguishing condition is at least one of the following conditions: the time from the display of the graphic code to the completion of payment in the historical payment made on the electronic equipment exceeds a first preset time; the time length from the moment when the graphic code is displayed, when a user does not watch the screen of the electronic equipment, exceeds a second preset time length, and the graphic code is not scanned; receiving a second input of the user, wherein the second input indicates to turn off screen backlight of the electronic equipment.
In some embodiments of the present invention, the screen backlight shutdown module is further configured to: displaying reminding information for reminding a user whether to pay or not under the condition that a preset extinguishing condition is met; turning off a screen backlight of the electronic device upon receiving a third input by the user, the third input instructing the user to abort payment.
In some embodiments of the present invention, the preset lighting condition is at least one of: after controlling the screen of the electronic equipment to be extinguished for a third preset time; receiving a payment gesture input of a user; the gesture of the electronic equipment is a preset gesture and a shelter of which the distance from the electronic equipment is smaller than a threshold value is detected; acquiring a face image through a camera and determining that the acquired face image matches a target face image; and the preset gesture is the gesture of the electronic equipment under the condition that the graphic code is scanned.
In some embodiments of the invention, the preset posture is one of: vertical attitude, horizontal attitude.
The electronic device provided by the embodiment of the present invention can implement each process in the method embodiments of fig. 1 to fig. 5, and is not described herein again to prevent repetition.
In the embodiment of the invention, under the condition that a first input indicating that a graphic code is displayed is received, the screen of the electronic equipment is controlled to be turned off; and under the condition that a preset lighting condition is met, lighting the screen of the electronic equipment. The graphic code is prevented from being illegally scanned, and the safety of payment of a user through the graphic code is improved.
Figure 7 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
Wherein, the processor 710 is configured to:
under the condition that a first input indicating that a graphic code is displayed is received, controlling the screen of the electronic equipment to be turned off;
and under the condition that a preset lighting condition is met, lighting the screen of the electronic equipment.
In the embodiment of the invention, under the condition that a first input indicating that a graphic code is displayed is received, the screen of the electronic equipment is controlled to be turned off; and under the condition that a preset lighting condition is met, lighting the screen of the electronic equipment. The graphic code is prevented from being illegally scanned, and the safety of payment of a user through the graphic code is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic apparatus 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 1041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the electronic device 700 is moved to the ear. As one type of motion sensor, an accelerometer sensor can determine the magnitude of acceleration in various directions (generally three axes), determine the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (e.g., horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (e.g., pedometer, tapping), and the like; the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-emitting diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on the touch panel 7071 or near the touch panel 1071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch determination device and a touch controller. The touch determining device determines the touch direction of a user, determines a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch determination device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 determines a touch operation thereon or nearby, the touch operation is transmitted to the processor 710 to determine a type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the electronic apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby monitoring the whole electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, the power supply 711 may be logically coupled to the processor 710 via a power management system, such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, the electronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement the processes of the foregoing method embodiments, and can achieve the same technical effects, and details are not repeated here to prevent repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effect, and is not described herein again to prevent repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A graphic code display method is applied to electronic equipment, and is characterized by comprising the following steps:
under the condition that a first input indicating that a graphic code is displayed is received, controlling the screen of the electronic equipment to be turned off;
and under the condition that a preset lighting condition is met, lighting the screen of the electronic equipment.
2. The method of claim 1, wherein controlling the screen of the electronic device to be extinguished if the first input indicating that the graphic code is displayed is received comprises:
under the condition that a first input indicating that a graphic code is displayed is received and a preset extinguishing condition is met, closing screen backlight of the electronic equipment;
the preset extinguishing condition is at least one of the following conditions: the time from the display of the graphic code to the completion of payment in the historical payment made on the electronic equipment exceeds a first preset time; the time length from the moment when the graphic code is displayed, when a user does not watch the screen of the electronic equipment, exceeds a second preset time length, and the graphic code is not scanned; receiving a second input of the user, wherein the second input indicates to turn off screen backlight of the electronic equipment.
3. The method according to claim 2, wherein turning off the screen backlight of the electronic device if a preset extinction condition is met comprises:
displaying reminding information for reminding a user whether to pay or not under the condition that a preset extinguishing condition is met;
turning off a screen backlight of the electronic device upon receiving a third input by the user, the third input instructing the user to abort payment.
4. The method according to any one of claims 1 to 3, wherein the preset lighting condition is at least one of: after controlling the screen of the electronic equipment to be extinguished for a third preset time; receiving a payment gesture input of a user; the gesture of the electronic equipment is a preset gesture and a shelter of which the distance from the electronic equipment is smaller than a threshold value is detected; acquiring a face image through a camera and determining that the acquired face image matches a target face image; and the preset gesture is the gesture of the electronic equipment under the condition that the graphic code is scanned.
5. The method of claim 4, wherein the preset gesture is one of: vertical attitude, horizontal attitude.
6. An electronic device, characterized in that the electronic device comprises:
a determination unit configured to control a screen of the electronic device to be turned off in a case where a first input indicating that a graphic code is displayed is received;
a processing unit configured to light a screen of the electronic device if a preset lighting condition is satisfied.
7. The electronic device of claim 6, wherein the processing unit comprises:
a screen backlight shutdown module configured to: under the condition that a first input indicating that a graphic code is displayed is received and a preset extinguishing condition is met, closing screen backlight of the electronic equipment;
the preset extinguishing condition is at least one of the following conditions: the time from the display of the graphic code to the completion of payment in the historical payment made on the electronic equipment exceeds a first preset time; the time length from the moment when the graphic code is displayed, when a user does not watch the screen of the electronic equipment, exceeds a second preset time length, and the graphic code is not scanned; receiving a second input of the user, wherein the second input indicates to turn off screen backlight of the electronic equipment.
8. The electronic device of claim 7, wherein the screen backlight shutdown module is further configured to:
displaying reminding information for reminding a user whether to pay or not under the condition that a preset extinguishing condition is met; turning off a screen backlight of the electronic device upon receiving a third input by the user, the third input instructing the user to abort payment.
9. The electronic device according to one of claims 6 to 8, wherein the preset lighting condition is at least one of: after controlling the screen of the electronic equipment to be extinguished for a third preset time; receiving a payment gesture input of a user; the gesture of the electronic equipment is a preset gesture and a shelter of which the distance from the electronic equipment is smaller than a threshold value is detected; acquiring a face image through a camera and determining that the acquired face image matches a target face image; and the preset gesture is the gesture of the electronic equipment under the condition that the graphic code is scanned.
10. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to any one of claims 1 to 5.
11. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201910940180.4A 2019-09-29 2019-09-29 Graphic code display method and electronic equipment Pending CN110766396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910940180.4A CN110766396A (en) 2019-09-29 2019-09-29 Graphic code display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910940180.4A CN110766396A (en) 2019-09-29 2019-09-29 Graphic code display method and electronic equipment

Publications (1)

Publication Number Publication Date
CN110766396A true CN110766396A (en) 2020-02-07

Family

ID=69329193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910940180.4A Pending CN110766396A (en) 2019-09-29 2019-09-29 Graphic code display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110766396A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112288424A (en) * 2020-10-30 2021-01-29 维沃移动通信有限公司 Graphic code display method and device
CN113139174A (en) * 2021-04-02 2021-07-20 维沃移动通信有限公司 Identity verification method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729765A (en) * 2014-01-15 2014-04-16 腾讯科技(深圳)有限公司 Verification control method and system, terminal, server, terminal equipment
CN107122817A (en) * 2017-04-26 2017-09-01 努比亚技术有限公司 Processing method and Quick Response Code terminal based on Quick Response Code
CN107613116A (en) * 2017-09-07 2018-01-19 广东欧珀移动通信有限公司 Notification message processing method and device
CN108629580A (en) * 2018-05-11 2018-10-09 维沃移动通信有限公司 One kind putting out screen method of payment and mobile terminal
CN109544139A (en) * 2018-11-26 2019-03-29 努比亚技术有限公司 A kind of method of payment, terminal and readable storage medium storing program for executing
CN109544140A (en) * 2018-11-26 2019-03-29 努比亚技术有限公司 A kind of identification code scan method, terminal and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729765A (en) * 2014-01-15 2014-04-16 腾讯科技(深圳)有限公司 Verification control method and system, terminal, server, terminal equipment
CN107122817A (en) * 2017-04-26 2017-09-01 努比亚技术有限公司 Processing method and Quick Response Code terminal based on Quick Response Code
CN107613116A (en) * 2017-09-07 2018-01-19 广东欧珀移动通信有限公司 Notification message processing method and device
CN108629580A (en) * 2018-05-11 2018-10-09 维沃移动通信有限公司 One kind putting out screen method of payment and mobile terminal
CN109544139A (en) * 2018-11-26 2019-03-29 努比亚技术有限公司 A kind of method of payment, terminal and readable storage medium storing program for executing
CN109544140A (en) * 2018-11-26 2019-03-29 努比亚技术有限公司 A kind of identification code scan method, terminal and readable storage medium storing program for executing

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112288424A (en) * 2020-10-30 2021-01-29 维沃移动通信有限公司 Graphic code display method and device
CN112288424B (en) * 2020-10-30 2024-04-30 维沃移动通信有限公司 Graphic code display method and device
CN113139174A (en) * 2021-04-02 2021-07-20 维沃移动通信有限公司 Identity verification method and device
CN113139174B (en) * 2021-04-02 2023-07-28 维沃移动通信有限公司 Identity verification method and device

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
CN108459797B (en) Control method of folding screen and mobile terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN107943374B (en) Method for starting application program in foldable terminal and foldable terminal
CN108089891B (en) Application program starting method and mobile terminal
CN110837327B (en) Message viewing method and terminal
CN109523253B (en) Payment method and device
CN110837328B (en) Display method and electronic equipment
CN107832110A (en) A kind of information processing method and mobile terminal
CN109257505B (en) Screen control method and mobile terminal
CN109753350B (en) Resource management method and terminal equipment
CN111125800B (en) Icon display method and electronic equipment
CN110096203B (en) Screenshot method and mobile terminal
CN109544172B (en) Display method and terminal equipment
CN110971510A (en) Message processing method and electronic equipment
CN109445653B (en) Icon processing method and mobile terminal
CN109814799A (en) Screen response control mehtod and terminal device
CN111144877A (en) Code scanning payment method and electronic equipment
CN108009031B (en) Application program control method and mobile terminal
CN109871253A (en) A kind of display methods and terminal
CN107729100B (en) Interface display control method and mobile terminal
CN109992941B (en) Authority management method and terminal equipment
CN111144876A (en) Payment method and electronic equipment
CN110766396A (en) Graphic code display method and electronic equipment
CN108196663B (en) Face recognition method and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207