CN110032904B - Graphic code identification method and mobile terminal - Google Patents

Graphic code identification method and mobile terminal Download PDF

Info

Publication number
CN110032904B
CN110032904B CN201810025210.4A CN201810025210A CN110032904B CN 110032904 B CN110032904 B CN 110032904B CN 201810025210 A CN201810025210 A CN 201810025210A CN 110032904 B CN110032904 B CN 110032904B
Authority
CN
China
Prior art keywords
graphic code
target
target picture
network environment
mobile terminal
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
CN201810025210.4A
Other languages
Chinese (zh)
Other versions
CN110032904A (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 CN201810025210.4A priority Critical patent/CN110032904B/en
Priority to PCT/CN2019/071146 priority patent/WO2019137428A1/en
Publication of CN110032904A publication Critical patent/CN110032904A/en
Application granted granted Critical
Publication of CN110032904B publication Critical patent/CN110032904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/1093Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing, after transfer of the image of the data-field to an intermediate store, e.g. storage with cathode ray tube
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Artificial Intelligence (AREA)
  • Toxicology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a graphic code identification method and a mobile terminal, wherein the method comprises the following steps: scanning a target graphic code; detecting a current network environment; under the condition that the current network environment does not meet the preset code scanning condition, acquiring a target picture comprising the target graphic code, and storing the target picture; and when the network environment meets the preset code scanning condition, identifying the target graphic code in the target picture. The invention can effectively realize the identification of the scanned graphic code when the network environment is poor, and improve the identification efficiency of the graphic code.

Description

Graphic code identification method and mobile terminal
Technical Field
The invention relates to the technical field of terminals, in particular to a graphic code identification method and a mobile terminal.
Background
With the development of terminal technology and graphic code technology, graphic codes such as bar codes and two-dimensional codes are widely applied to daily life of people. For example, electronic payment, adding friends, account login, obtaining relevant information, etc. are performed by scanning the graphic code.
In practical application, the graphic code identification process depends on a network environment. When the terminal scans the graphic code, if the current network environment is good, the terminal can identify the scanned graphic code and acquire the content corresponding to the graphic code.
However, if the current network environment is poor, the terminal cannot identify the scanned graphic code. Even if the network environment of the subsequent terminal is good, the identification of the graphic code may not be completed because the graphic code is not around. For example, when a user scans a two-dimensional code provided by a friend through a mobile phone to perform operation of adding the friend, if the current network environment is poor, the operation of identifying the two-dimensional code to add the friend cannot be completed; when the user changes the geographical position subsequently to make the network environment in which the user is located better, the two-dimensional code provided by the friend may not be obtained because the friend is not nearby, and further, the operation of identifying the two-dimensional code and adding the friend may not be completed.
Disclosure of Invention
The embodiment of the invention provides a graphic code identification method and a mobile terminal, which aim to solve the problem that the existing graphic code which is scanned when the network environment is poor cannot be identified.
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 identifying a graphic code, including:
scanning a target graphic code;
detecting a current network environment;
under the condition that the current network environment does not meet the preset code scanning condition, acquiring a target picture comprising the target graphic code, and storing the target picture;
and when the network environment meets the preset code scanning condition, identifying the target graphic code in the target picture.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the scanning module is used for scanning the target graphic code;
the detection module is used for detecting the current network environment;
the acquisition module is used for acquiring a target picture comprising the target graphic code and storing the target picture under the condition that the current network environment does not meet a preset code scanning condition;
and the identification module is used for identifying the target graphic code in the target picture when the network environment meets the preset code scanning condition.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a pattern code identification program stored on the memory and capable of running on the processor, where the pattern code identification program, when executed by the processor, implements the steps of the pattern code identification method described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a graphic code identification program is stored on the computer-readable storage medium, and when the graphic code identification program is executed by a processor, the steps of the graphic code identification method described above are implemented.
In the embodiment of the invention, the target graphic code is scanned, the current network environment is detected, and the target picture comprising the target graphic code is acquired and stored under the condition that the current network environment does not meet the preset code scanning condition, so that when the network environment meets the preset code scanning condition, the target graphic code can be identified by identifying the target graphic code in the target picture, the identification of the scanned graphic code under the poor network environment is effectively realized, and the graphic code identification efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart of a graphic code identification method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a two-dimensional code identification method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following specific embodiments and accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Example 1
Fig. 1 is a schematic flow chart of a graphic code identification method according to an embodiment of the present invention. The method may be as follows.
Step 102: and scanning the target graphic code.
When the user needs to perform graphic code recognition, a code scanning function in the mobile terminal is started, for example, a scanning function in the mobile terminal is started.
After the user starts the code scanning function, the mobile terminal calls the camera, and the user aligns the target graphic code to be identified by adjusting the position of the mobile terminal, so that the target graphic code is scanned.
In an embodiment of the present invention, the target pattern code includes one of: bar code, two-dimensional code, AR identification code.
Step 104: the current network environment is detected.
Step 106: and under the condition that the current network environment does not meet the preset code scanning condition, acquiring a target picture comprising a target graphic code, and storing the target picture.
The mobile terminal detects the current network environment in the process of scanning the target graphic code through the camera, and judges whether the current network environment meets the preset code scanning condition or not according to the detection result of the current network environment.
If the current network environment meets the preset code scanning condition, the mobile terminal identifies the scanned target graphic code and acquires the content corresponding to the target graphic code; and if the current network environment does not meet the preset code scanning condition, the mobile terminal photographs the scanned target graphic code to obtain a target picture comprising the target graphic code, and stores the target picture in the mobile terminal.
It should be noted that the current network environment meets the preset code scanning condition, which indicates that the current network environment can recognize the graphic code.
For example, in the process that the mobile terminal scans the target graphic code through the camera, if the current network environment is detected to be better and meets the preset code scanning condition, the mobile terminal identifies the scanned target graphic code and acquires the content corresponding to the target graphic code; if the current network environment is detected to be poor and the preset code scanning condition is not met, the mobile terminal photographs the scanned target graphic code to obtain a target picture comprising the target graphic code, and the target picture is stored in the mobile terminal, so that when the subsequent network environment is good, the target graphic code in the target picture can be identified by scanning the target graphic code to complete the identification of the target graphic code even if the target graphic code is not nearby.
Step 108: and when the network environment meets the preset code scanning condition, identifying the target graphic code in the target picture.
When the mobile terminal is in a network environment meeting the preset code scanning condition and the target picture acquired when the network environment does not meet the preset code scanning condition is determined to be stored in the mobile terminal, the mobile terminal can recognize the target graphic code by recognizing the target graphic code in the target picture.
In the embodiment of the present invention, when a network environment meets a preset code scanning condition, identifying a target graphic code in a target picture includes:
when the network environment meets a preset code scanning condition, generating prompt information, wherein the prompt information is used for prompting whether a target graphic code in a target picture is identified or not;
and if an identification instruction determined by responding to the prompt message is received, identifying the target graphic code in the target picture.
The mobile terminal is in a network environment meeting a preset code scanning condition, and when the mobile terminal is determined to store a target picture acquired when the network environment does not meet the preset code scanning condition, the mobile terminal can prompt a user whether the target graphic code in the target picture needs to be identified or not by generating prompt information, and after receiving an identification instruction determined by the user responding to the prompt information, the mobile terminal identifies the target graphic code in the target picture.
Alternatively, the prompt may be in the form of a dialog box.
For example, when the mobile terminal is in a network environment meeting a preset code scanning condition and a target picture acquired when the network environment does not meet the preset code scanning condition is determined to be stored in the mobile terminal, a prompt dialog box pops up to prompt a user whether the target graphic code in the target picture needs to be identified. And if the mobile terminal receives an identification instruction determined by clicking an identification control in the prompt dialog box by the user, identifying the target graphic code in the target picture according to the identification instruction.
In the embodiment of the application, if the mobile terminal determines that at least two target pictures acquired when the network environment does not meet the preset code scanning condition are stored, and after receiving the identification instruction, the mobile terminal can generate selection prompt information to prompt a user to select and identify a target graphic code in one target picture of the at least two target pictures; the mobile terminal can also sequentially identify the target graphic codes in the at least two target pictures according to the storage sequence.
In the embodiment of the invention, the method further comprises the following steps:
and if a deleting instruction determined by responding to the prompt message is received, deleting the target picture.
After the mobile terminal generates the prompt message to prompt the user whether the target graphic code in the target picture needs to be identified, if the mobile terminal receives a deletion instruction determined by the user responding to the prompt message, the user does not want to identify the target graphic code, and at the moment, the mobile terminal responds to the deletion instruction to delete the stored target picture.
For example, when the mobile terminal is in a network environment meeting a preset code scanning condition and a target picture acquired when the network environment does not meet the preset code scanning condition is determined to be stored in the mobile terminal, a prompt dialog box pops up to prompt a user whether the target graphic code in the target picture needs to be identified. And if the mobile terminal receives a deleting instruction determined by clicking a deleting control in the prompt dialog box by the user, deleting the target picture according to the deleting instruction.
In the embodiment of the invention, the method further comprises the following steps:
and if the identification instruction is not received, generating the prompt message again according to the preset time interval.
After the mobile terminal generates the prompt message to prompt the user whether to identify the target graphic code in the target picture, if the identification instruction determined by the user responding to the prompt message is not received, the prompt message for prompting the user whether to identify the target graphic code in the target picture is generated again according to the preset time interval.
It should be noted that the preset time interval may be determined according to actual situations, and is not specifically limited herein.
For example, the mobile terminal prompts the user whether to identify the target graphic code in the target picture or not by popping up a prompt dialog box, and if the user clicks a cancel control in the prompt dialog box, the mobile terminal hides the current prompt dialog box, and after a preset time interval, the mobile terminal pops up again the prompt dialog box for prompting the user whether to identify the target graphic code in the target picture or not.
In the embodiment of the invention, the method further comprises the following steps:
and if the identification instruction is not received within the preset time length, deleting the target picture.
And in a preset time length, the mobile terminal generates prompt information for multiple times to prompt a user whether to identify the target graphic code in the target picture, if the identification instruction is not received all the time, the user does not want to identify the target graphic code, and at the moment, the mobile terminal deletes the stored target picture to save the memory space.
It should be noted that the preset time period may be determined according to actual needs, and is not specifically limited herein.
In the embodiment of the application, the target picture can be deleted after the prompt message is generated for the preset times and the identification instruction is not received.
In the embodiment of the invention, the method further comprises the following steps:
and deleting the target picture after the target picture code in the target picture is identified.
After receiving an identification instruction for a certain target picture determined by a user response prompt message, the mobile terminal identifies the target graphic code in the target picture, and after acquiring the content corresponding to the target graphic code, the mobile terminal deletes the target picture to save the memory space.
It should be noted that, for the identified target picture, the mobile terminal may delete the identified target picture individually after the identification, may delete all the identified target pictures collectively within a preset time period, and may delete the identified target pictures after receiving a deletion instruction from the user, which is not limited herein.
According to the technical scheme, the target graphic code is scanned, the current network environment is detected, and the target picture comprising the target graphic code is acquired and stored under the condition that the current network environment does not meet the preset code scanning condition, so that when the network environment meets the preset code scanning condition, the target graphic code can be identified by identifying the target graphic code in the target picture, the identification of the scanned graphic code under the condition of poor network environment is effectively realized, and the graphic code identification efficiency is improved.
Example 2
The present invention is described in detail based on the foregoing embodiment 1, and in order to better understand the technical features, means and effects of the present invention, the method for recognizing a graphic code of the present invention is further described below, thereby forming a further embodiment of the present invention.
The process of identifying a graphic code in embodiment 2 of the present invention is similar to the process of identifying a graphic code described in embodiment 1, and other steps that are not introduced in embodiment 2 may refer to the related description in embodiment 1, and are not described herein again.
Before the implementation of the scheme is described in detail, a simple description is first given to the implementation scenario of the scheme.
In this implementation scenario, the target graphical code is a two-dimensional code.
Fig. 2 is a schematic flow chart of a two-dimensional code identification method according to an embodiment of the present invention. The method may be as follows.
Step 201: and scanning the two-dimensional code to be identified.
Step 202: the current network environment is detected.
Step 203: and judging whether the current network environment meets a preset code scanning condition or not. If yes, skipping to execute step 204; if not, go to step 205.
Step 204: and identifying the two-dimension code and acquiring the content corresponding to the two-dimension code.
Step 205: and acquiring a target picture comprising the two-dimensional code, and saving the target picture.
Step 206: and when the network environment meets the preset code scanning condition, generating prompt information to prompt whether to identify the two-dimensional code in the target picture.
Step 207: if an identification instruction determined by responding to the prompt message is received, identifying the two-dimensional code in the target picture, acquiring the content corresponding to the two-dimensional code, and skipping to execute the step 209; if a delete instruction determined by responding to the prompt message is received, go to step 209; if the identification instruction or the deletion instruction is not received, whether the time length of the current storage target picture reaches the preset time length is judged, if not, the step 208 is executed, and if so, the step 209 is executed.
Step 208: and generating the prompt message again according to the preset time interval.
Step 209: and deleting the target picture.
According to the technical scheme, the two-dimension code to be identified is scanned, the current network environment is detected, and the target picture comprising the two-dimension code is obtained and stored under the condition that the current network environment does not meet the preset code scanning condition, so that when the network environment meets the preset code scanning condition, the two-dimension code can be identified by identifying the two-dimension code in the target picture, the identification of the scanned graphic code under the condition of poor network environment is effectively realized, and the identification efficiency of the two-dimension code is improved.
Example 3
Fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal 300 includes: a scanning module 301, a detection module 302, an acquisition module 303, and an identification module 304, wherein:
a scanning module 301, configured to scan a target graphic code;
a detection module 302 for detecting a current network environment;
an obtaining module 303, configured to obtain a target picture including a target graphics code and store the target picture when a current network environment does not meet a preset code scanning condition;
the identifying module 304 is configured to identify a target graphic code in a target picture when a network environment meets a preset code scanning condition.
Optionally, the mobile terminal 300 further includes: a generation module, wherein:
the generation module is used for generating prompt information when the network environment meets a preset code scanning condition, wherein the prompt information is used for prompting whether to identify a target graphic code in a target picture;
the identifying module 303 is specifically configured to identify the target graphic code in the target picture when receiving the identifying instruction determined by the response prompt information.
Optionally, the generating module is further configured to generate the prompt message again according to a preset time interval when the identification instruction is not received.
Optionally, the mobile terminal 300 further includes: a first deletion module, wherein:
the first deleting module is used for deleting the target picture after the target picture code in the target picture is identified;
the first deleting module is further used for deleting the target picture when the identification instruction is not received within the preset time length.
Optionally, the mobile terminal 300 further includes: a second deletion module, wherein:
and the second deleting module is used for deleting the target picture when a deleting instruction determined by responding to the prompt message is received.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 is not intended to be limiting of mobile terminals, and that a mobile terminal 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 mobile terminal includes, 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 410 is configured to scan a target graphic code; detecting a current network environment; under the condition that the current network environment does not meet the preset code scanning condition, acquiring a target picture comprising a target graphic code, and storing the target picture; and when the network environment meets the preset code scanning condition, identifying the target graphic code in the target picture.
The method comprises the steps of scanning a target graphic code, detecting a current network environment, and acquiring and storing the target graphic code under the condition that the current network environment does not meet a preset code scanning condition, so that when the network environment meets the preset code scanning condition, the target graphic code can be identified by identifying the target graphic code in the target graphic code, the identification of the scanned graphic code under the condition that the network environment is poor is effectively realized, and the graphic code identification efficiency is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture 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 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound 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 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, 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 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 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., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 1061 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 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. 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 408 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 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 409 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 410 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 operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 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 the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the foregoing graphic code identification method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
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 each process of the above-mentioned graphic code identification method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. 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 a terminal (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 (10)

1. A graphic code identification method is characterized by comprising the following steps:
scanning a target graphic code;
detecting a current network environment;
under the condition that the current network environment does not meet the preset code scanning condition, acquiring a target picture comprising the target graphic code, and storing the target picture;
when the network environment meets the preset code scanning condition, identifying the target graphic code in the target picture;
when the network environment meets the preset code scanning condition, identifying the target graphic code in the target picture, including:
when the network environment meets the preset code scanning condition, generating prompt information, wherein the prompt information is used for prompting whether the target graphic code in the target picture is identified or not;
if an identification instruction determined by responding to the prompt message is received, identifying the target graphic code in the target picture;
the method further comprises the following steps: and if the identification instruction is not received within a preset time length, deleting the target picture.
2. The method of claim 1, wherein the method further comprises:
and if the identification instruction is not received, generating the prompt message again according to a preset time interval.
3. The method of claim 1 or 2, wherein the method further comprises:
deleting the target picture after identifying the target graphic code in the target picture.
4. The method of claim 1, wherein the method further comprises:
and if a deleting instruction determined by responding to the prompt message is received, deleting the target picture.
5. A mobile terminal, comprising:
the scanning module is used for scanning the target graphic code;
the detection module is used for detecting the current network environment;
the acquisition module is used for acquiring a target picture comprising the target graphic code and storing the target picture under the condition that the current network environment does not meet a preset code scanning condition;
the identification module is used for identifying the target graphic code in the target picture when the network environment meets the preset code scanning condition;
further comprising:
the generating module is used for generating prompt information when the network environment meets the preset code scanning condition, wherein the prompt information is used for prompting whether the target graphic code in the target picture is identified or not;
the identification module is specifically configured to identify the target graphic code in the target picture when receiving an identification instruction determined by responding to the prompt information;
and the first deleting module is used for deleting the target picture when the identification instruction is not received within a preset time length.
6. The mobile terminal of claim 5, wherein the generating module is further configured to generate the prompt message again according to a preset time interval when the identification instruction is not received.
7. The mobile terminal according to claim 5 or 6, wherein the first deleting module is configured to delete the target picture after identifying the target graphic code in the target picture.
8. The mobile terminal of claim 5, further comprising:
and the second deleting module is used for deleting the target picture when a deleting instruction determined by responding to the prompt message is received.
9. A mobile terminal, characterized by comprising a processor, a memory and a graphic code recognition program stored on the memory and operable on the processor, the graphic code recognition program, when executed by the processor, implementing the steps of the graphic code recognition method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a graphic code recognition program is stored, the graphic code recognition program implementing the steps of the graphic code recognition method according to any one of claims 1 to 4 when executed by a processor.
CN201810025210.4A 2018-01-11 2018-01-11 Graphic code identification method and mobile terminal Active CN110032904B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810025210.4A CN110032904B (en) 2018-01-11 2018-01-11 Graphic code identification method and mobile terminal
PCT/CN2019/071146 WO2019137428A1 (en) 2018-01-11 2019-01-10 Method for identifying graphical code, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810025210.4A CN110032904B (en) 2018-01-11 2018-01-11 Graphic code identification method and mobile terminal

Publications (2)

Publication Number Publication Date
CN110032904A CN110032904A (en) 2019-07-19
CN110032904B true CN110032904B (en) 2020-10-23

Family

ID=67218506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810025210.4A Active CN110032904B (en) 2018-01-11 2018-01-11 Graphic code identification method and mobile terminal

Country Status (2)

Country Link
CN (1) CN110032904B (en)
WO (1) WO2019137428A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279383A (en) * 2013-05-31 2013-09-04 北京小米科技有限责任公司 Photographing method with two-dimensional bar code scanning function and photographing system with two-dimensional bar code scanning function
CN107169393A (en) * 2017-04-12 2017-09-15 北京小米移动软件有限公司 Two-dimensional code scanning method and device
US20170308732A1 (en) * 2014-09-09 2017-10-26 Huawei Technologies Co., Ltd. Fingerprint recognition method and apparatus, and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106384071A (en) * 2016-09-28 2017-02-08 乐视控股(北京)有限公司 Two-dimensional code scanning recognition processing method and device
CN106650547A (en) * 2016-11-18 2017-05-10 惠州Tcl移动通信有限公司 Method and system for recording two-dimensional code scanning information by mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279383A (en) * 2013-05-31 2013-09-04 北京小米科技有限责任公司 Photographing method with two-dimensional bar code scanning function and photographing system with two-dimensional bar code scanning function
US20170308732A1 (en) * 2014-09-09 2017-10-26 Huawei Technologies Co., Ltd. Fingerprint recognition method and apparatus, and mobile terminal
CN107169393A (en) * 2017-04-12 2017-09-15 北京小米移动软件有限公司 Two-dimensional code scanning method and device

Also Published As

Publication number Publication date
CN110032904A (en) 2019-07-19
WO2019137428A1 (en) 2019-07-18

Similar Documents

Publication Publication Date Title
CN108845853B (en) Application program starting method and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN109523253B (en) Payment method and device
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN111401463B (en) Method for outputting detection result, electronic equipment and medium
CN109521684B (en) Household equipment control method and terminal equipment
CN110674662A (en) Scanning method and terminal equipment
CN109145731B (en) Fingerprint identification method and device and mobile terminal
CN107835495B (en) Message prompting method and device and mobile terminal
CN107704182B (en) Code scanning method and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109544172B (en) Display method and terminal equipment
CN109166164B (en) Expression picture generation method and terminal
CN108009031B (en) Application program control method and mobile terminal
CN109982273B (en) Information reply method and mobile terminal
CN108196663B (en) Face recognition method and mobile terminal
CN110516495B (en) Code scanning method and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN110929238B (en) Information processing method and device
CN110740265B (en) Image processing method and terminal equipment
CN110677537B (en) Note information display method, note information sending method and electronic equipment
CN110213437B (en) Editing method and mobile terminal
CN109521981B (en) Graphic code display method and terminal
CN108304744B (en) Scanning frame position determining 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