CN106936975B - Two-dimensional code identification method and device and mobile terminal - Google Patents

Two-dimensional code identification method and device and mobile terminal Download PDF

Info

Publication number
CN106936975B
CN106936975B CN201511007533.3A CN201511007533A CN106936975B CN 106936975 B CN106936975 B CN 106936975B CN 201511007533 A CN201511007533 A CN 201511007533A CN 106936975 B CN106936975 B CN 106936975B
Authority
CN
China
Prior art keywords
identification
dimensional code
instruction
module
received
Prior art date
Application number
CN201511007533.3A
Other languages
Chinese (zh)
Other versions
CN106936975A (en
Inventor
朱洪达
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Priority to CN201511007533.3A priority Critical patent/CN106936975B/en
Publication of CN106936975A publication Critical patent/CN106936975A/en
Application granted granted Critical
Publication of CN106936975B publication Critical patent/CN106936975B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; 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
    • G06K7/14172D bar codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/247Telephone sets including user guidance or features selection means facilitating their use; Fixed telephone terminals for accessing a variety of communication services via the PSTN network
    • H04M1/2477Telephone sets including user guidance or features selection means facilitating their use; Fixed telephone terminals for accessing a variety of communication services via the PSTN network for selecting a function from a menu display

Abstract

The invention discloses a two-dimension code identification method, a device and a mobile terminal, wherein the method comprises the steps of presetting an identification instruction of a two-dimension code; the identification instructions comprise biometric instructions; and when the identification instruction is received, acquiring the two-dimensional code, and identifying the acquired two-dimensional code. According to the invention, the two-dimension code identification instruction is preset, and the acquisition function and the identification function of the two-dimension code are called according to the identification instruction of the two-dimension code, so that the problem that the operation flow of the conventional two-dimension code identification is complicated is effectively solved, the operation time of a user is saved, and the user experience is improved.

Description

Two-dimensional code identification method and device and mobile terminal

Technical Field

The invention relates to the field of mobile communication, in particular to a two-dimensional code identification method and device and a mobile terminal.

Background

At present, the two-dimension code is widely spread, such as a discount in a market, a personal name card, an internet address and the like. The mobile terminal (for example, a mobile phone) mainly recognizes the two-dimensional code through a preset APP or an installed third-party APP, and the implementation modes mainly include two types: one is through camera preview acquisition identification; and the other type is loading a picture with a two-dimensional code as a data source to realize identification.

At present, two-dimensional code has some use inadequacies in the use:

1. the process of using the two-dimensional code by the user is relatively complicated. For example, when a user needs to scan a certain "two-dimensional code", first, an APP with a "scan two-dimensional code" function needs to be searched on a mobile terminal; then, entering the APP; and thirdly, finding a corresponding function of scanning the two-dimensional code in the APP. Therefore, the whole operation flow is more complicated; meanwhile, the position of the function of scanning the two-dimensional code set by some APPs is difficult to find, and if a user is unfamiliar with the APP, the function can be found only by consuming time. For another example, when a user needs to identify a certain two-dimensional code picture, the user needs to press the two-dimensional code picture for a long time, then the user enters a selection mode on a display interface of the APP, and when the function of identifying the two-dimensional code is selected, the user performs analysis again.

The two-dimension code function is used abundantly, and potential safety hazards exist. For example, anyone can perform a "two-dimensional code" analysis operation on the mobile terminal in a standby state, and if the operator is not the holder of the mobile terminal, the operator can acquire some sensitive information in the "two-dimensional code" without the knowledge of the holder, such as a payment account number, so that a certain security risk exists in the identification process of the "two-dimensional code".

Disclosure of Invention

The invention aims to provide a two-dimension code identification method, a two-dimension code identification device and a mobile terminal, which are used for at least solving the problem that the operation flow of the existing two-dimension code identification is complicated.

The purpose of the invention is mainly realized by the following technical scheme:

according to an aspect of the present invention, there is provided a two-dimensional code recognition method, including:

presetting an identification instruction of the two-dimensional code; the identification instructions comprise biometric instructions;

and when the identification instruction is received, acquiring the two-dimensional code, and identifying the acquired two-dimensional code.

Further, when the identification instruction is received, acquiring the two-dimensional code, and identifying the acquired two-dimensional code, specifically comprising:

judging the mode of the display interface;

when the display interface is in a camera preview mode and the identification instruction is received, calling the camera to acquire the two-dimensional code and identifying the acquired two-dimensional code;

when a display interface is in a screen preview mode and the identification instruction is received, acquiring a picture in the display interface, extracting the two-dimensional code on the acquired picture, and identifying the two-dimensional code.

Further, the determining the manner of receiving the identification instruction includes:

and when the fingerprint identification module detects that the fingerprint is input, judging that the identification instruction is received.

Further, after the step of receiving the identification instruction, the method further includes:

verifying the input fingerprint according to a preset fingerprint library;

and triggering the step of acquiring the two-dimensional code after the verification is passed.

According to an aspect of the present invention, there is provided a two-dimensional code recognition apparatus including:

the instruction setting module is used for presetting an identification instruction of the two-dimensional code; the identification instructions comprise biometric instructions;

the instruction receiving module is used for triggering the identification module when receiving the identification instruction;

and the identification module is used for acquiring the two-dimension code under the triggering of the instruction receiving module and identifying the acquired two-dimension code.

Further, the device also comprises an interface judgment module;

the interface judging module is used for judging the mode of the display interface and sending the judgment result to the instruction receiving module;

the instruction receiving module is specifically configured to trigger the identification module when the judgment result of the interface judgment module is received that the display interface is in the camera preview mode and the identification instruction is received; the identification module is specifically used for calling a camera to acquire the two-dimensional code under the triggering of the instruction receiving module and identifying the acquired two-dimensional code;

the instruction receiving module is specifically configured to trigger the identification module when the judgment result received from the interface judgment module is that the display interface is in the screen preview mode and the identification instruction is received; the identification module is specifically configured to collect a picture in the display interface under the trigger of the instruction receiving module, extract the collected two-dimensional code on the picture, and identify the two-dimensional code.

Further, the determining, by the instruction receiving module, a manner of receiving the identification instruction includes:

and when the fingerprint identification module detects that the fingerprint is input, judging that the identification instruction is received.

Further, the apparatus further comprises a verification module;

the verification module is used for verifying the input fingerprint according to a preset fingerprint library when the instruction receiving module judges that the identification instruction is received;

and after the verification is passed, notifying the instruction receiving module of the verification result so as to enable the instruction receiving module to trigger the identification module to acquire the two-dimensional code.

According to an aspect of the present invention, there is provided a mobile terminal comprising the apparatus of the present invention.

The invention has the following beneficial effects: according to the invention, the two-dimension code identification instruction is preset, and the acquisition function and the identification function of the two-dimension code are called according to the identification instruction of the two-dimension code, so that the problem that the operation flow of the conventional two-dimension code identification is complicated is effectively solved, the operation time of a user is saved, and the user experience is improved.

Drawings

Fig. 1 is a main flow chart of a two-dimensional code identification method according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of a two-dimensional code recognition apparatus according to an embodiment of the present invention;

fig. 3 is a schematic structural diagram of a mobile terminal in an embodiment of the present invention.

Detailed Description

In order to at least solve the problem that the operation flow of the existing two-dimensional code identification is complicated, the invention provides a two-dimensional code identification method, a two-dimensional code identification device and a mobile terminal. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.

Example one

As shown in fig. 1, an embodiment of the present invention provides a two-dimensional code identification method, including:

s101, presetting an identification instruction of the two-dimensional code; that is, in this step, several two-dimensional code identification instructions are established in advance in the mobile terminal. These identification instructions include biometric instructions such as fingerprint instructions and voice instructions. For example, it may be specifically set that when the fingerprint recognition module detects that there is a fingerprint input, the fingerprint is a fingerprint instruction.

S102, when the identification instruction is received, collecting the two-dimensional code, and identifying the collected two-dimensional code. That is to say, the mobile terminal detects whether an identification instruction is input or not at any time, and if the identification instruction is input, the identification instruction is received to trigger the acquisition and identification of the two-dimensional code. That is, in this step, the identification instruction is first collected, and when the identification instruction input by the user is collected, the step of collecting the two-dimensional code is triggered.

According to the embodiment of the invention, the two-dimension code identification instruction is preset, and the acquisition function and the identification function of the two-dimension code are called according to the identification instruction of the two-dimension code, so that the problem that the operation flow of the conventional two-dimension code identification is complicated is effectively solved, the operation time of a user is saved, and the user experience is improved.

The step S102 in the embodiment of the present invention specifically includes:

judging the mode of the display interface;

when the display interface is in a camera preview mode and the identification instruction is received, calling a camera to acquire the two-dimension code and identifying the acquired two-dimension code;

when a display interface is in a screen preview mode and the identification instruction is received, acquiring a picture in the display interface, extracting the two-dimensional code on the acquired picture, and identifying the two-dimensional code.

Currently, when a user operates a mobile terminal, a display interface of the mobile terminal is generally in a camera preview mode or a screen preview mode. The camera preview mode generally refers to that the camera is in a working state (such as a photographing or shooting state); the screen preview mode generally refers to a screen on which a picture, a web page, a software interface or text, etc. is being displayed.

The identification instruction in the embodiment of the present invention includes, but is not limited to, a fingerprint instruction, a voice instruction, and the like, and the fingerprint instruction is preferred in the embodiment of the present invention.

Therefore, the method for determining that the identification instruction is received in the embodiment of the present invention includes:

and when the fingerprint identification module detects that the fingerprint is input, judging that the identification instruction is received.

That is to say, in the implementation of the present invention, the fingerprint is selected as the identification instruction, which obviously simplifies the operation flow of identifying the two-dimensional code, for example, in the camera preview mode, the mobile terminal can acquire and identify the two-dimensional code as long as the user clicks the fingerprint identification module, and in the screen preview mode, the mobile terminal can acquire the picture as long as the user clicks the fingerprint identification module, and the acquired picture is identified as the two-dimensional code.

The method of the embodiment of the present invention is described in detail below.

1. Taking two-dimensional code recognition of a mobile phone in a camera preview mode as an example:

and Setp1, when the mobile phone is in a standby state, the rear camera is turned on, and the mobile phone is in a camera preview mode at the moment.

And Setp2, clicking a fingerprint identification module by a user finger, and quickly entering a preview two-dimensional code scene.

And Setp3. when the mobile phone scans the two-dimensional code, the mobile phone takes out a frame of picture as the two-dimensional code to be analyzed.

And Setp4. the two-dimensional code is successfully analyzed, and a result is returned or the application is jumped. And if the two-dimensional code analysis fails, circularly analyzing the next frame of picture. Until the user's finger leaves the "fingerprint identification" button.

The Setp2 can verify the input fingerprint according to a preset fingerprint library; and triggering to acquire the two-dimensional code after the verification is passed. The verification mode is adopted as the premise of collecting and identifying the two-dimensional code, so that the safety of the two-dimensional code in the operation process can be effectively improved, and some potential safety hazards are avoided.

2. Taking two-dimensional code recognition of a mobile phone in a screen preview mode as an example:

and Setp1. when the mobile phone opens a picture, a webpage or software and browses the two-dimensional code.

And Setp2. ensuring that the two-dimensional code is displayed in a screen (display interface) of the mobile phone, and clicking the fingerprint identification module by a finger.

And step3, when the mobile phone judges that the picture or the view resource exists in the display interface, acquiring the two-dimensional code on the picture for analysis.

Setp4. returning the successful analysis; after the analysis fails, the user needs to operate again, and only needs to click the fingerprint identification module once.

According to the embodiment of the invention, the two-dimension code can be directly identified by pressing the fingerprint when the camera previewing mode is directly entered into the two-dimension code scanning mode or the two-dimension code is seen on the mobile phone screen, and the two-dimension code can be directly identified without screen capture, so that the complicated operation of the existing two-dimension code identification process is effectively simplified.

Example two

As shown in fig. 2, an embodiment of the present invention provides a two-dimensional code identification apparatus, including:

the instruction setting module 20 is used for presetting an identification instruction of the two-dimensional code; these identification instructions include biometric instructions such as fingerprint instructions and voice instructions.

The instruction receiving module 22 is configured to trigger the identification module 28 when receiving the identification instruction;

and the identification module 28 is configured to acquire the two-dimensional code under the trigger of the instruction receiving module 22, and identify the two-dimensional code.

Wherein, the device also comprises an interface judgment module 24;

the interface judging module 24 is configured to judge a mode of the display interface, and send a judgment result to the instruction receiving module 22;

the instruction receiving module is specifically configured to trigger the identifying module 28 when the determination result received by the interface determining module 24 is that the display interface is in the camera preview mode and the identifying instruction is received; the identification module 28 is specifically configured to invoke a camera to perform two-dimensional code acquisition under the triggering of the instruction receiving module 22, and identify the acquired two-dimensional code;

the instruction receiving module 22 is specifically configured to trigger the identifying module 28 when the determination result received by the interface determining module 24 is that the display interface is in the screen preview mode and the identifying instruction is received; the identification module 28 is further specifically configured to collect a picture in the display interface under the trigger of the instruction receiving module 22, and identify the collected picture as a two-dimensional code.

Specifically, the identification instruction is a fingerprint instruction;

the manner in which the instruction receiving module 22 determines that the identification instruction is received includes:

and when the fingerprint identification module detects that the fingerprint is input, judging that the identification instruction is received.

In order to improve the safety of the two-dimensional code identification process, the embodiment of the invention preferably further comprises a verification module 26;

the verification module 26 is configured to verify the input fingerprint according to a preset fingerprint library when the instruction receiving module 22 determines that the identification instruction is received;

and after the verification is passed, notifying the instruction receiving module 22 of the verification result, so that the instruction receiving module 22 triggers the identification module to acquire the two-dimensional code.

The embodiment of the invention is a device embodiment corresponding to the embodiment, and the embodiment of the invention effectively solves the problem of complicated operation flow of the existing two-dimension code identification by presetting a two-dimension code identification instruction and calling the acquisition function and the identification function of the two-dimension code according to the two-dimension code identification instruction, saves the user operation time and improves the user experience.

EXAMPLE III

As shown in fig. 3, an embodiment of the present invention provides a mobile terminal, where the mobile terminal 1 includes the apparatus 2 in the second embodiment, that is, the mobile terminal 1 in the embodiment of the present invention collects and identifies a two-dimensional code through the apparatus 2 in the second embodiment.

In the specific implementation of the embodiment of the present invention, reference may be made to the first and second embodiments, which also have the technical effects of the first and second embodiments, and details are not described herein.

Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and that the scope of the invention is not limited to the embodiments disclosed.

Claims (7)

1. A two-dimensional code recognition method is characterized by comprising the following steps:
presetting an identification instruction of the two-dimensional code; the identification instructions comprise biometric instructions;
when the identification instruction is received, acquiring a two-dimensional code, and identifying the acquired two-dimensional code; when the identification instruction is received, acquiring the two-dimensional code, and identifying the acquired two-dimensional code, wherein the method specifically comprises the following steps:
judging the mode of the display interface;
when the display interface is in a camera preview mode and the identification instruction is received, calling the camera to acquire the two-dimensional code and identifying the acquired two-dimensional code;
when a display interface is in a screen preview mode and the identification instruction is received, acquiring a picture in the display interface, extracting the two-dimensional code on the acquired picture, and identifying the two-dimensional code.
2. The method of claim 1, wherein determining a manner in which the identification instruction is received comprises:
and when the fingerprint identification module detects that the fingerprint is input, judging that the identification instruction is received.
3. The method of claim 2, wherein the step when the identification instruction is received further comprises:
verifying the input fingerprint according to a preset fingerprint library;
and triggering the step of acquiring the two-dimensional code after the verification is passed.
4. A two-dimensional code recognition device, comprising:
the instruction setting module is used for presetting an identification instruction of the two-dimensional code; the identification instructions comprise biometric instructions;
the instruction receiving module is used for triggering the identification module when receiving the identification instruction;
the identification module is used for acquiring the two-dimension code under the triggering of the instruction receiving module and identifying the acquired two-dimension code; the device also comprises an interface judgment module;
the interface judging module is used for judging the mode of the display interface and sending the judgment result to the instruction receiving module;
the instruction receiving module is specifically configured to trigger the identification module when the judgment result of the interface judgment module is received that the display interface is in the camera preview mode and the identification instruction is received; the identification module is specifically used for calling a camera to acquire the two-dimensional code under the triggering of the instruction receiving module and identifying the acquired two-dimensional code;
the instruction receiving module is specifically configured to trigger the identification module when the judgment result received from the interface judgment module is that the display interface is in the screen preview mode and the identification instruction is received; the identification module is specifically configured to collect a picture in the display interface under the trigger of the instruction receiving module, extract the collected two-dimensional code on the picture, and identify the two-dimensional code.
5. The apparatus of claim 4, wherein the means for determining the manner in which the identification instruction is received comprises:
and when the fingerprint identification module detects that the fingerprint is input, judging that the identification instruction is received.
6. The apparatus of claim 5, wherein the apparatus further comprises an authentication module;
the verification module is used for verifying the input fingerprint according to a preset fingerprint library when the instruction receiving module judges that the identification instruction is received;
and after the verification is passed, notifying the instruction receiving module of the verification result so as to enable the instruction receiving module to trigger the identification module to acquire the two-dimensional code.
7. A mobile terminal, characterized in that it comprises an apparatus according to any of claims 4-6.
CN201511007533.3A 2015-12-29 2015-12-29 Two-dimensional code identification method and device and mobile terminal CN106936975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511007533.3A CN106936975B (en) 2015-12-29 2015-12-29 Two-dimensional code identification method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511007533.3A CN106936975B (en) 2015-12-29 2015-12-29 Two-dimensional code identification method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106936975A CN106936975A (en) 2017-07-07
CN106936975B true CN106936975B (en) 2020-02-21

Family

ID=59457365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511007533.3A CN106936975B (en) 2015-12-29 2015-12-29 Two-dimensional code identification method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106936975B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005335A (en) * 2018-06-28 2018-12-14 深圳市沃特沃德股份有限公司 A kind of camera and its processing method of mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546639A (en) * 2013-10-29 2014-01-29 广东欧珀移动通信有限公司 Device for quick access to specified interface of application for mobile terminal
CN104184589A (en) * 2014-08-26 2014-12-03 重庆邮电大学 Identity authentication method, terminal device and system
CN104281827A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Method and device for recognizing two-dimensional code
CN105117630A (en) * 2015-08-21 2015-12-02 宇龙计算机通信科技(深圳)有限公司 Fingerprint authentication method, fingerprint authentication apparatus, and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281827A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Method and device for recognizing two-dimensional code
CN103546639A (en) * 2013-10-29 2014-01-29 广东欧珀移动通信有限公司 Device for quick access to specified interface of application for mobile terminal
CN104184589A (en) * 2014-08-26 2014-12-03 重庆邮电大学 Identity authentication method, terminal device and system
CN105117630A (en) * 2015-08-21 2015-12-02 宇龙计算机通信科技(深圳)有限公司 Fingerprint authentication method, fingerprint authentication apparatus, and terminal

Also Published As

Publication number Publication date
CN106936975A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
EP3070587A1 (en) Method and apparatus for scanning a barcode with a smart device while displaying an application on the smart device
JP6360558B2 (en) File locking method, file locking device, program, and recording medium
CN104320756B (en) A kind of variation and device of account information
CN103745186B (en) The processing method and communication terminal of 2 D code information
CN104618577B (en) A kind of response method and device of button request
US8774453B2 (en) Method and arrangement for retrieving information comprised in a barcode
TWI539393B (en) Method of binding a credit card for payment on website and system thereto
US20160171357A1 (en) Method of providing content transmission service by using printed matter
US20150156332A1 (en) Methods and apparatus to monitor usage of mobile devices
CN103282929B (en) Method and system for operating mobile device to complete ATM transaction of account holder
CN104090761B (en) A kind of sectional drawing application apparatus and method
EP2703980B1 (en) Text recognition apparatus and method for a terminal
CN105528698A (en) Fast code-scanning payment method and device
WO2015140600A1 (en) Electronic device with display-based fingerprint reader
WO2017036049A1 (en) User identity identification method, device, server and system
JP4396262B2 (en) Information processing apparatus, information processing method, and computer program
US20140036099A1 (en) Automated Scanning
CN104090648B (en) Data entry method and terminal
CN103777947B (en) The management method at the main interface of a kind of mobile terminal and device
KR101851239B1 (en) Device and method for processing an image expression of wireless terminal
CN104615769A (en) Image classification method and device
CN105933607B (en) A kind of take pictures effect method of adjustment and the mobile terminal of mobile terminal
CN101667251B (en) OCR recognition method and device with auxiliary positioning function
CN101997561B (en) Data transfer method and system
JP6255486B2 (en) Method and system for information recognition

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