CN110516495B - Code scanning method and mobile terminal - Google Patents

Code scanning method and mobile terminal Download PDF

Info

Publication number
CN110516495B
CN110516495B CN201810496210.2A CN201810496210A CN110516495B CN 110516495 B CN110516495 B CN 110516495B CN 201810496210 A CN201810496210 A CN 201810496210A CN 110516495 B CN110516495 B CN 110516495B
Authority
CN
China
Prior art keywords
graphic
camera
code
mobile terminal
graphic 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
CN201810496210.2A
Other languages
Chinese (zh)
Other versions
CN110516495A (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.)
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 CN201810496210.2A priority Critical patent/CN110516495B/en
Publication of CN110516495A publication Critical patent/CN110516495A/en
Application granted granted Critical
Publication of CN110516495B publication Critical patent/CN110516495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image

Abstract

The invention provides a code scanning method and a mobile terminal, wherein the method comprises the following steps: under the condition that the camera is in a low-power-consumption running state, collecting graphic codes through the camera, wherein the low-power-consumption running state is a state when the running power of the camera is smaller than a preset power; if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes; and displaying an interface corresponding to the target graphic code. Therefore, under the condition that the camera is in a low-power-consumption running state, if at least two graphic codes are acquired, the target graphic code can be determined from the at least two graphic codes, and then an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized.

Description

Code scanning method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a code scanning method and a mobile terminal.
Background
At present, functions of a mobile terminal are more and more diversified, and a user can use a camera of the mobile terminal to scan a graphic code, so that payment operation can be performed or public numbers corresponding to the graphic code are focused on. And when the camera scans, one graphic code may be scanned, or a plurality of graphic codes may be scanned. If the camera scans a plurality of graphic codes, the scanned graphic codes cannot be identified. Therefore, in the prior art, when the camera of the mobile terminal scans a plurality of graphic codes, the graphic code identification cannot be performed.
Disclosure of Invention
The embodiment of the invention provides a code scanning method and a mobile terminal, which are used for solving the problem that in the prior art, when a camera of the mobile terminal scans a plurality of graphic codes, the graphic codes cannot be identified.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a code scanning method, which is applied to a mobile terminal having a camera, where the method includes:
under the condition that the camera is in a low-power-consumption running state, collecting graphic codes through the camera, wherein the low-power-consumption running state is a state when the running power of the camera is smaller than a preset power;
if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes;
and displaying an interface corresponding to the target graphic code.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal has a camera, and the mobile terminal includes:
the acquisition module is used for acquiring the graphic code through the camera under the condition that the camera is in a low-power-consumption operation state, wherein the low-power-consumption operation state is a state when the operation power of the camera is smaller than a preset power;
the determining module is used for determining a target graphic code from at least two graphic codes if the at least two graphic codes are acquired through the camera;
and the display module is used for displaying the interface corresponding to the target graphic code.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program when executed by the processor implements the steps of the code scanning method described above.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the steps of the code scanning method described above.
In this way, in the embodiment of the present invention, under the condition that the camera is in a low-power-consumption operation state, the graphics code is collected by the camera, where the low-power-consumption operation state is a state when the operation power of the camera is less than a preset power; if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes; and displaying an interface corresponding to the target graphic code. Therefore, under the condition that the camera is in a low-power-consumption running state, if at least two graphic codes are acquired, the target graphic code can be determined from the at least two graphic codes, and then an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized.
Drawings
FIG. 1 is a flow chart of a code scanning method provided by an embodiment of the invention;
FIG. 2 is a flowchart of another code scanning method according to an embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 5 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a code scanning method provided in an embodiment of the present invention, which is applied to a mobile terminal with a camera. As shown in fig. 1, the method comprises the following steps:
step 101, under the condition that the camera is in a low-power-consumption running state, collecting graphic codes through the camera, wherein the low-power-consumption running state is a state when the running power of the camera is smaller than a preset power.
In step 101, in the case that the camera is in a low power consumption operation state, the graphic code may be acquired by the camera. The low-power-consumption operation state is a state when the operation power of the camera is smaller than the preset power.
Step 102, if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes.
In step 102, it should be noted that the scanning area of the camera is relatively large, and one graphic code may be acquired, or a plurality of graphic codes may be acquired. If at least two graphic codes are acquired through the camera, a target graphic code can be determined from the at least two graphic codes.
For example, if at least two graphic codes are acquired by the camera, the at least two graphic codes may be displayed. Then, a user selection operation of any one of the at least two graphic codes displayed may be received. Next, the user-selected graphic code may be determined as the target graphic code.
And 103, displaying an interface corresponding to the target graphic code.
After determining the target graphic code in step 103, an interface corresponding to the target graphic code may be displayed. Therefore, under the condition that the camera is in a low-power-consumption running state, if at least two graphic codes are acquired, the target graphic code can be determined from the at least two graphic codes, and then an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized.
In the embodiment of the present invention, the mobile terminal may be a mobile phone, a tablet (Tablet Personal Computer), a Laptop (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), a mobile internet Device (Mobile Internet Device, MID), or a Wearable Device (web Device).
The code scanning method provided by the embodiment of the invention is applied to the mobile terminal with the camera. Under the condition that the camera is in a low-power-consumption running state, collecting graphic codes through the camera, wherein the low-power-consumption running state is a state when the running power of the camera is smaller than a preset power; if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes; and displaying an interface corresponding to the target graphic code. Therefore, under the condition that the camera is in a low-power-consumption running state, if at least two graphic codes are acquired, the target graphic code can be determined from the at least two graphic codes, and then an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized.
Referring to fig. 2, fig. 2 is a flowchart of another code scanning method provided in an embodiment of the present invention, which is applied to a mobile terminal with a camera. The main difference between this embodiment and the previous embodiment is that the process of outputting the hint information in the case of successful payment based on the scanned graphic code is described in detail. As shown in fig. 2, the method comprises the following steps:
step 201, under the condition that payment based on the scanned graphic code is successful, outputting prompt information, wherein the prompt information is used for prompting a user to acquire the graphic code when the mobile terminal is in a screen-off state, or prompting the user to acquire the graphic code when the mobile terminal displays a non-camera preview interface.
In step 201, if the mobile terminal detects that the user uses the prior art identification graphic code, starting a corresponding application; starting a graphic code scanning function of the application; the graphic code is aligned for scanning. It may be determined that the user may not be aware of the scheme of the present invention, and the user may be prompted at this time. For example, in the case of successful payment based on the scanned graphic code, a hint message may be output. The prompt information is used for prompting a user to acquire a graphic code when the mobile terminal is in a screen-off state; or the prompt information is used for prompting the user to collect the graphic code under the condition that the mobile terminal displays a non-camera preview interface. Therefore, the user can be prompted, so that the user knows that the mobile terminal can acquire the graphic code in the screen-off state; or the mobile terminal can acquire the graphic code when displaying the non-camera preview interface.
Step 202, under the condition that the mobile terminal is turned off and the camera is in a low-power-consumption operation state, collecting a graphic code through the camera, wherein the low-power-consumption operation state is a state when the operation power of the camera is smaller than a preset power.
In step 202, in the case that the mobile terminal is turned off and the camera is in a low power consumption operation state, the graphic code may be collected by the camera. The low-power-consumption operation state is a state when the operation power of the camera is smaller than the preset power.
Step 203, if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes.
In step 203, it should be noted that the scanning area of the camera is relatively large, and one graphic code may be acquired, or a plurality of graphic codes may be acquired. If at least two graphic codes are acquired through the camera, a target graphic code can be determined from the at least two graphic codes.
Optionally, if at least two graphic codes are acquired by the camera, determining the target graphic code from the at least two graphic codes includes:
if at least two graphic codes are acquired through the camera, displaying the at least two graphic codes;
receiving the selection operation of a user on any one of the at least two displayed graphic codes;
and determining the graphic code selected by the user as a target graphic code.
For example, if at least two graphic codes are acquired by the camera, the at least two graphic codes may be displayed. Then, a user selection operation of any one of the at least two graphic codes displayed may be received. Next, the user-selected graphic code may be determined as the target graphic code. After the target graphic code of the at least two graphic codes is selected, an interface corresponding to the target graphic code can be displayed. I.e. the user can select the displayed interface according to his own needs. It should be noted that, in the embodiment of the present invention, the mobile terminal supports scanning of a plurality of graphic codes, so that a plurality of graphic codes can be displayed. The user can select the target graphic code from the graphic codes according to the self requirement, and then the interface corresponding to the target graphic code can be displayed. The multiple graphic codes are not required to be identified one by one, so that the identification time is saved, and the method is convenient and quick.
Optionally, if at least two graphic codes are acquired by the camera, determining the target graphic code from the at least two graphic codes includes:
if at least two graphic codes are acquired through the camera, determining an application program corresponding to each graphic code;
and determining a target graphic code, wherein the grade of an application program corresponding to the target graphic code is greater than or equal to the grade of application programs corresponding to other graphic codes in the at least two graphic codes.
If at least two graphic codes are acquired through the camera, an application program corresponding to each graphic code can be determined. Next, a target graphic code may be determined. The grade of the application program corresponding to the target graphic code is greater than or equal to the grade of the application program corresponding to other graphic codes in at least two graphic codes.
For example, assume that the mobile terminal last acquired at least two graphics codes and the user selected a first of the at least two graphics codes. After selecting a first one of the at least two graphics codes, the mobile terminal may pop up a dialog box asking the user if the first graphics code is reserved. If the user chooses to retain the first graphic code, the level of the application corresponding to the first graphic code may be determined to be the highest level.
If the camera collects at least two graphic codes and one graphic code exists in the at least two graphic codes collected at this time, the application program corresponding to the graphic code is the application program corresponding to the first graphic code, and the graphic code can be directly determined to be the target graphic code. At the moment, a plurality of graphic codes are not displayed, namely, a user does not need to select a target graphic code in a manual mode, so that the operation process is simplified, and convenience and rapidness are realized.
Or, assume that the camera collects two graphic codes, namely a first graphic code and a second graphic code. The first graphic code corresponds to a first application program, the second graphic code corresponds to a second application program, and the first application program and the second application program can be application programs with payment functions. The level of the two applications may be determined according to the number of payments of the first application and the number of payments of the second application. For example, assuming that the number of payments by the first application is greater than the number of payments by the second application, it may be determined that the level of the first application is higher than the level of the second application. At this time, the first graphic code may be determined as the target graphic code. The first application pays the most often, indicating that the user is accustomed to making payments using the first application. Thus, if the mobile terminal scans a plurality of graphic codes, the graphic codes correspond to a plurality of application programs, and the graphic code corresponding to the application program with the largest payment number can be directly determined as the target graphic code. Therefore, the using habit of the user can be attached, the user does not need to select the target graphic code in a manual mode, and convenience and rapidness are realized.
Or, assume that the camera collects two graphic codes, namely a first graphic code and a second graphic code. The first graphic code corresponds to a first application program, the second graphic code corresponds to a second application program, and the first application program and the second application program can be application programs with payment functions. The ranking of the two applications may be determined based on the account balance corresponding to the first application and the account balance corresponding to the second application. For example, assuming that the account balance corresponding to the first application is greater than the account balance corresponding to the second application, it may be determined that the level of the first application is higher than the level of the second application. At this time, the first graphic code may be determined as the target graphic code. Therefore, if the mobile terminal scans a plurality of graphic codes, the graphic codes correspond to a plurality of application programs, the graphic code corresponding to the application program with the largest account balance can be directly determined as the target graphic code, a user does not need to select the target graphic code in a manual mode, and the method is convenient and quick.
Optionally, if at least two graphic codes are acquired by the camera, determining the target graphic code from the at least two graphic codes includes:
and if at least two graphic codes are acquired through the camera, determining the graphic code corresponding to the target application program in the at least two graphic codes as a target graphic code.
If at least two graphic codes are acquired through the camera, the graphic code corresponding to the target application program in the at least two graphic codes can be determined to be the target graphic code. Wherein the target application may be a default application. Therefore, a user does not need to select the target graphic code in a manual mode, and convenience and rapidness are realized.
And 204, displaying an interface corresponding to the target graphic code.
After the target graphic code is determined in step 204, an interface corresponding to the target graphic code may be displayed. Therefore, under the condition that the camera is in a low-power-consumption running state, if at least two graphic codes are acquired, the target graphic code can be determined from the at least two graphic codes, and then an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized.
The code scanning method provided by the embodiment of the invention is applied to the mobile terminal with the camera. Under the condition that the camera is in a low-power-consumption running state, if at least two graphic codes are acquired, a target graphic code can be determined from the at least two graphic codes, and then an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized. Furthermore, if the mobile terminal detects that the user uses the prior art identification graphic code, the user can be prompted. Enabling a user to know that the mobile terminal can acquire the graphic code in a screen-off state; or the mobile terminal can acquire the graphic code when displaying the non-camera preview interface. The process of identifying the graphic code is simpler.
Referring to fig. 3, fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention, where the mobile terminal has a camera. As shown in fig. 3, the mobile terminal 300 includes an acquisition module 301, a determination module 302, and a display module 303, where:
the acquisition module 301 is configured to acquire a graphics code by using the camera when the camera is in a low-power operation state, where the low-power operation state is a state when the operation power of the camera is less than a preset power;
a determining module 302, configured to determine a target graphic code from at least two graphic codes if the at least two graphic codes are acquired by the camera;
and the display module 303 is used for displaying the interface corresponding to the target graphic code.
Optionally, as shown in fig. 4, the determining module 302 includes:
a display submodule 3021, configured to display at least two graphic codes if the at least two graphic codes are acquired by the camera;
a receiving submodule 3022, configured to receive a selection operation of any one of the at least two displayed graphic codes by a user;
a first determining submodule 3023 for determining the graphic code selected by the user as the target graphic code.
Optionally, as shown in fig. 5, the determining module 302 further includes:
a second determining submodule 3024, configured to determine an application program corresponding to each graphic code if at least two graphic codes are collected by the camera;
and a third determining submodule 3025, configured to determine a target graphics code, where the level of the application program corresponding to the target graphics code is greater than or equal to the level of the application program corresponding to the other graphics code in the at least two graphics codes.
Optionally, the determining module 302 is specifically configured to determine that a graphic code corresponding to the target application program in the at least two graphic codes is a target graphic code if the at least two graphic codes are acquired by the camera. Optionally, as shown in fig. 6, the collecting module 301 is specifically configured to collect, by the camera, a graphic code when the mobile terminal is turned off and the camera is in a low-power running state;
the mobile terminal further includes:
the output module 304 is configured to output a prompt message when the payment based on the scanned graphic code is successful, where the prompt message is used to prompt a user to collect the graphic code when the mobile terminal is in a screen-off state, or the prompt message is used to prompt a user to collect the graphic code when the mobile terminal displays a non-camera preview interface.
The mobile terminal 300 is capable of implementing each process implemented by the mobile terminal in the method embodiments of fig. 1 and 2, and for avoiding repetition, a detailed description is omitted herein. And the mobile terminal 300 can determine the target graphic code from the at least two graphic codes if the at least two graphic codes are collected under the condition that the camera is in the low-power-consumption running state, so that an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized. Furthermore, if the mobile terminal detects that the user uses the prior art identification graphic code, the user can be prompted. Enabling a user to know that the mobile terminal can acquire the graphic code in a screen-off state; or the mobile terminal can acquire the graphic code when displaying the non-camera preview interface. The process of identifying the graphic code is simpler.
Fig. 7 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor 710, and power supply 711. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 7 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the mobile terminal comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
The processor 710 is configured to collect a graphics code by the camera when the camera is in a low-power operation state, where the low-power operation state is a state when the operation power of the camera is less than a preset power;
if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes;
and displaying an interface corresponding to the target graphic code.
Under the condition that the camera is in a low-power-consumption running state, if at least two graphic codes are acquired, a target graphic code can be determined from the at least two graphic codes, and then an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized. Furthermore, if the mobile terminal detects that the user uses the prior art identification graphic code, the user can be prompted. Enabling a user to know that the mobile terminal can acquire the graphic code in a screen-off state; or the mobile terminal can acquire the graphic code when displaying the non-camera preview interface. The process of identifying the graphic code is simpler.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station, and then processing the received downlink data by the processor 710; and, the uplink data is transmitted to the base station. Typically, the radio 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 unit 701 may also communicate with networks and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 702, such as helping the user to send and receive e-mail, browse web pages, access streaming media, etc.
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 (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 700. The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used for receiving an audio or video signal. The input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing apparatus (such as 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 graphics processor 7041 may be stored in memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 701 in the case of a telephone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 7061 and/or the backlight when the mobile terminal 700 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 705 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and will not be described again here.
The display unit 706 is used to display information input by a 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 (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 to generate key signal inputs related to user settings and function control of the mobile terminal. 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 thereon or thereabout by a user (e.g., operations of the user on the touch panel 7071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 7071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 710, and receives and executes commands sent from the processor 710. In addition, the touch panel 7071 may be implemented in 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, other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 710 to determine a type of a 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 in fig. 7, the touch panel 7071 and the display panel 7061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface to which an external device is connected to the mobile terminal 700. For example, the external devices may include a wired or wireless headset port, an external power (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 mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and an 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 that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, 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 mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal 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 performing overall monitoring of the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may preferably be logically coupled to the processor 710 via a power management system, such as to perform charge, discharge, and power consumption management functions via the power management system.
In addition, the mobile terminal 700 includes some functional modules, which are not shown, and will not be described herein.
Optionally, the processor 710 is further configured to:
if at least two graphic codes are acquired through the camera, displaying the at least two graphic codes;
receiving the selection operation of a user on any one of the at least two displayed graphic codes;
and determining the graphic code selected by the user as a target graphic code.
Optionally, the processor 710 is further configured to:
if at least two graphic codes are acquired through the camera, determining an application program corresponding to each graphic code;
and determining a target graphic code, wherein the grade of an application program corresponding to the target graphic code is greater than or equal to the grade of application programs corresponding to other graphic codes in the at least two graphic codes.
Optionally, the processor 710 is further configured to:
and if at least two graphic codes are acquired through the camera, determining the graphic code corresponding to the target application program in the at least two graphic codes as a target graphic code.
Optionally, the processor 710 is further configured to:
under the condition that the mobile terminal is in a screen-off state and the camera is in a low-power-consumption running state, acquiring a graphic code through the camera;
under the condition that the payment based on the scanned graphic code is successful, outputting prompt information, wherein the prompt information is used for prompting a user to acquire the graphic code when the mobile terminal is in a screen-off state, or prompting the user to acquire the graphic code when the mobile terminal displays a non-camera preview interface.
The mobile terminal 700 is capable of implementing each process implemented by the mobile terminal in the foregoing embodiments, and will not be described herein again for avoiding repetition. And the mobile terminal 700 can determine the target graphic code from the at least two graphic codes if the at least two graphic codes are collected under the condition that the camera is in the low-power-consumption running state, so that an interface corresponding to the target graphic code can be displayed. When a plurality of graphic codes exist, the identification of the graphic codes can be realized. Furthermore, if the mobile terminal detects that the user uses the prior art identification graphic code, the user can be prompted. Enabling a user to know that the mobile terminal can acquire the graphic code in a screen-off state; or the mobile terminal can acquire the graphic code when displaying the non-camera preview interface. The process of identifying the graphic code is simpler.
Preferably, the embodiment of the present invention further provides a mobile terminal, 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 when executed by the processor 710 implements each process of the foregoing embodiment of the code scanning method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above-mentioned code scanning method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (7)

1. The code scanning method is applied to a mobile terminal with a camera, and is characterized by comprising the following steps:
under the condition that the camera is in a low-power-consumption running state, collecting graphic codes through the camera, wherein the low-power-consumption running state is a state when the running power of the camera is smaller than a preset power;
if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes;
displaying an interface corresponding to the target graphic code;
if at least two graphic codes are acquired through the camera, determining a target graphic code from the at least two graphic codes comprises:
if at least two graphic codes are acquired through the camera, determining an application program corresponding to each graphic code;
determining a target graphic code, wherein the grade of an application program corresponding to the target graphic code is greater than or equal to the grade of application programs corresponding to other graphic codes in the at least two graphic codes;
the grade of the application program corresponding to the graphic code is determined according to any one of the following steps: historical selections of graphic codes by a user, historical payment times of an application program and account balance of the application program.
2. The method of claim 1, wherein determining the target graphic code from at least two graphic codes if the at least two graphic codes are acquired by the camera comprises:
if at least two graphic codes are acquired through the camera, displaying the at least two graphic codes;
receiving the selection operation of a user on any one of the at least two displayed graphic codes;
and determining the graphic code selected by the user as a target graphic code.
3. The method of claim 1, wherein the capturing, with the camera in the low power operating state, the graphics code by the camera comprises:
under the condition that the mobile terminal is in a screen-off state and the camera is in a low-power-consumption running state, acquiring a graphic code through the camera;
before the mobile terminal is turned off and the camera is in the low-power-consumption running state and the graphic code is collected by the camera, the method further comprises:
under the condition that the payment based on the scanned graphic code is successful, outputting prompt information, wherein the prompt information is used for prompting a user to acquire the graphic code when the mobile terminal is in a screen-off state, or prompting the user to acquire the graphic code when the mobile terminal displays a non-camera preview interface.
4. A mobile terminal having a camera, the mobile terminal comprising:
the acquisition module is used for acquiring the graphic code through the camera under the condition that the camera is in a low-power-consumption operation state, wherein the low-power-consumption operation state is a state when the operation power of the camera is smaller than a preset power;
the determining module is used for determining a target graphic code from at least two graphic codes if the at least two graphic codes are acquired through the camera;
the display module is used for displaying an interface corresponding to the target graphic code;
the determining module includes:
the second determining submodule is used for determining an application program corresponding to each graphic code if at least two graphic codes are acquired through the camera;
a third determining sub-module, configured to determine a target graphics code, where a level of an application program corresponding to the target graphics code is greater than or equal to a level of an application program corresponding to another graphics code in the at least two graphics codes;
the grade of the application program corresponding to the graphic code is determined according to any one of the following steps: historical selections of graphic codes by a user, historical payment times of an application program and account balance of the application program.
5. The mobile terminal of claim 4, wherein the determination module comprises:
the display sub-module is used for displaying at least two graphic codes if the at least two graphic codes are acquired through the camera;
the receiving sub-module is used for receiving the selection operation of a user on any one of the at least two displayed graphic codes;
and the first determining sub-module is used for determining the graphic code selected by the user as the target graphic code.
6. The mobile terminal of claim 4, wherein the acquisition module is specifically configured to acquire a graphics code by the camera when the mobile terminal is off-screen and the camera is in a low-power-consumption operating state;
the mobile terminal further includes:
the output module is used for outputting prompt information under the condition that the payment based on the scanned graphic code is successful, wherein the prompt information is used for prompting a user to acquire the graphic code when the mobile terminal is in a screen-off state, or the prompt information is used for prompting the user to acquire the graphic code when the mobile terminal displays a non-camera preview interface.
7. A mobile terminal comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the code scanning method according to any of claims 1 to 3.
CN201810496210.2A 2018-05-22 2018-05-22 Code scanning method and mobile terminal Active CN110516495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810496210.2A CN110516495B (en) 2018-05-22 2018-05-22 Code scanning method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810496210.2A CN110516495B (en) 2018-05-22 2018-05-22 Code scanning method and mobile terminal

Publications (2)

Publication Number Publication Date
CN110516495A CN110516495A (en) 2019-11-29
CN110516495B true CN110516495B (en) 2023-11-21

Family

ID=68621728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810496210.2A Active CN110516495B (en) 2018-05-22 2018-05-22 Code scanning method and mobile terminal

Country Status (1)

Country Link
CN (1) CN110516495B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881703A (en) * 2020-07-30 2020-11-03 维沃移动通信(杭州)有限公司 Graphic code identification method and device and electronic equipment
CN114330403B (en) 2020-10-09 2023-07-25 腾讯科技(深圳)有限公司 Graphic code processing method, device, equipment and medium
CN113255390A (en) * 2021-04-16 2021-08-13 摩拜(北京)信息技术有限公司 Code scanning method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875181A (en) * 2017-02-28 2017-06-20 努比亚技术有限公司 A kind of barcode scanning payment processing method and mobile terminal
WO2017157327A1 (en) * 2016-03-18 2017-09-21 腾讯科技(深圳)有限公司 Method and device for displaying graphic code
CN107229888A (en) * 2017-05-19 2017-10-03 努比亚技术有限公司 A kind of barcode scanning method, equipment and computer-readable storage medium
CN107248072A (en) * 2017-05-19 2017-10-13 努比亚技术有限公司 Barcode scanning method of payment, mobile terminal and computer-readable recording medium
CN107609437A (en) * 2017-08-17 2018-01-19 阿里巴巴集团控股有限公司 A kind of targeted graphical code recognition methods and device
CN107944325A (en) * 2017-11-23 2018-04-20 维沃移动通信有限公司 A kind of barcode scanning method, barcode scanning device and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017157327A1 (en) * 2016-03-18 2017-09-21 腾讯科技(深圳)有限公司 Method and device for displaying graphic code
CN106875181A (en) * 2017-02-28 2017-06-20 努比亚技术有限公司 A kind of barcode scanning payment processing method and mobile terminal
CN107229888A (en) * 2017-05-19 2017-10-03 努比亚技术有限公司 A kind of barcode scanning method, equipment and computer-readable storage medium
CN107248072A (en) * 2017-05-19 2017-10-13 努比亚技术有限公司 Barcode scanning method of payment, mobile terminal and computer-readable recording medium
CN107609437A (en) * 2017-08-17 2018-01-19 阿里巴巴集团控股有限公司 A kind of targeted graphical code recognition methods and device
CN107944325A (en) * 2017-11-23 2018-04-20 维沃移动通信有限公司 A kind of barcode scanning method, barcode scanning device and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ARM11的无线视频监控系统的设计;郭巧云;许雪梅;李岸;墨芹;;计算机测量与控制(第08期);全文 *

Also Published As

Publication number Publication date
CN110516495A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN109151180B (en) Object identification method and mobile terminal
CN108279948B (en) Application program starting method and mobile terminal
CN110837327B (en) Message viewing method and terminal
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN109151367B (en) Video call method and terminal equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109412932B (en) Screen capturing method and terminal
CN109388456B (en) Head portrait selection method and mobile terminal
CN108629579B (en) Payment method and mobile terminal
CN107734172B (en) Information display method and mobile terminal
CN107783709B (en) Image viewing method and mobile terminal
CN110442281B (en) Application icon display method and terminal
CN109523253B (en) Payment method and device
CN109634438B (en) Input method control method and terminal equipment
CN110516495B (en) Code scanning method and mobile terminal
CN108920040B (en) Application icon sorting method and mobile terminal
CN110519503B (en) Method for acquiring scanned image and mobile terminal
CN108196781B (en) Interface display method and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109982273B (en) Information reply method and mobile terminal
CN110012151B (en) Information display method and terminal equipment
CN109284146B (en) Light application starting method and mobile terminal
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN108062370B (en) Application program searching 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
GR01 Patent grant
GR01 Patent grant