CN107169393A - Two-dimensional code scanning method and device - Google Patents

Two-dimensional code scanning method and device Download PDF

Info

Publication number
CN107169393A
CN107169393A CN201710237613.0A CN201710237613A CN107169393A CN 107169393 A CN107169393 A CN 107169393A CN 201710237613 A CN201710237613 A CN 201710237613A CN 107169393 A CN107169393 A CN 107169393A
Authority
CN
China
Prior art keywords
quick response
response code
picture
terminal
code
Prior art date
Application number
CN201710237613.0A
Other languages
Chinese (zh)
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 CN201710237613.0A priority Critical patent/CN107169393A/en
Publication of CN107169393A publication Critical patent/CN107169393A/en

Links

Classifications

    • 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
    • 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/1495Methods for optical code recognition the method including an image compression step

Abstract

The disclosure is directed to two-dimensional code scanning method and device.This method includes:When detecting Quick Response Code, the Quick Response Code is scanned;When it is determined that the scan operation is successful, the picture of the Quick Response Code is obtained;The picture of the Quick Response Code is stored to the predeterminable area of terminal.The technical scheme can pass through the picture of acquisition Quick Response Code and storage when scanning Quick Response Code success, realize that the scanning historical data to Quick Response Code in terminal is recorded, allow user that two-dimensional code scanning history is reviewed and searched in terminal, overcome user in correlation technique can only be the problem of specific place scanning Quick Response Code causes poor user experience, user is facilitated to check or share Quick Response Code, it so, it is possible to improve Consumer's Experience.

Description

Two-dimensional code scanning method and device

Technical field

This disclosure relates to image identification technical field, more particularly to two-dimensional code scanning method and device.

Background technology

Compared to bar code, the data volume that Quick Response Code can be carried is bigger, for example, can represent card information, network address, electricity Talk about number, pictorial information and brief video etc.;The printing of Quick Response Code and recognition cost are relatively low, and space availability ratio is high, safe and secret Property is stronger, and recognition efficiency is also higher.

In correlation technique, user scans Quick Response Code using mobile phone, can obtain the information associated by Quick Response Code, for example, logical Quick Response Code is over-scanned to access the linked web pages of Quick Response Code, or, the account that trade company is obtained by scanning the Quick Response Code of trade company is believed Breath.

The content of the invention

To overcome problem present in correlation technique, the embodiment of the present disclosure provides a kind of two-dimensional code scanning method and device. The technical scheme is as follows:

According to the first aspect of the embodiment of the present disclosure there is provided a kind of two-dimensional code scanning method, including:

When detecting Quick Response Code, the Quick Response Code is scanned;

When it is determined that the scan operation is successful, the picture of the Quick Response Code is obtained;

The picture of the Quick Response Code is stored to the predeterminable area of terminal.

The technical scheme provided by this disclosed embodiment can include the following benefits:The technical scheme passes through in scanning Picture and the storage of Quick Response Code are obtained during Quick Response Code success, realizes that the scanning historical data to Quick Response Code in terminal is remembered Record so that user can review and search two-dimensional code scanning history in terminal, overcome user in correlation technique can only be specific Place scanning Quick Response Code and the problem of cause poor user experience, facilitate user to check or share Quick Response Code, so, it is possible to improve Consumer's Experience.

In one embodiment, it is described when detecting Quick Response Code, the Quick Response Code is scanned;It is determined that the scanning When operating successfully, the picture of the Quick Response Code is obtained, including:

When calling camera to detect Quick Response Code, the Quick Response Code is scanned;

When it is determined that the scan operation is successful, by the Quick Response Code take pictures generating the figure of the Quick Response Code Piece.

The technical scheme provided by this disclosed embodiment can include the following benefits:The present solution provides terminal The implementation for calling camera to be scanned and take pictures the Quick Response Code outside terminal, scheme realizes simpler, convenient use Realize at family.

In one embodiment, it is described when detecting Quick Response Code, the Quick Response Code is scanned;It is determined that the scanning When operating successfully, the picture of the Quick Response Code is obtained, including:

When the current display interface of terminal detects Quick Response Code, the Quick Response Code is scanned;

When it is determined that the scan operation is successful, the Quick Response Code for passing through the current display interface to terminal carries out sectional drawing Generate the picture of the Quick Response Code.

The technical scheme provided by this disclosed embodiment can include the following benefits:The present solution provides terminal The implementation of sectional drawing is scanned and current page carried out for the Quick Response Code of current page, both extends application scenarios, Scheme implementation complexity is also reduced, facilitates user to realize.

In one embodiment, the picture by the Quick Response Code is stored to the predeterminable area of terminal and included:

The picture of the Quick Response Code is compressed;

The picture that compression is obtained is stored to the predeterminable area of terminal.

The technical scheme provided by this disclosed embodiment can include the following benefits:The present solution provides pass through The picture of Quick Response Code is compressed, to reach the purpose for saving memory space, the storage resource service efficiency of terminal system is improved.

In one embodiment, methods described also includes:

The picture of the Quick Response Code is named based on current operating temporal;Or,

The picture of the Quick Response Code is named based on the keyword in information associated by the Quick Response Code.

The technical scheme provided by this disclosed embodiment can include the following benefits:The present solution provides terminal , can be using various ways to the Quick Response Code of acquisition when the picture of the Quick Response Code of acquisition is stored to the predeterminable area of terminal Picture is named, and facilitates user to check or share Quick Response Code.

According to the second aspect of the embodiment of the present disclosure there is provided a kind of two-dimensional code scanning device, including:

Detection module, for detecting Quick Response Code;

Scan module, for when detecting Quick Response Code, being scanned to the Quick Response Code;

Acquisition module, for when it is determined that the scan operation is successful, obtaining the picture of the Quick Response Code;

Memory module, for the picture of the Quick Response Code to be stored to the predeterminable area of terminal.

In one embodiment, detection module is when calling camera to detect Quick Response Code, and scan module is to the two dimension Code is scanned;Acquisition module is when it is determined that the scan operation is successful, by carrying out taking pictures described in generation to the Quick Response Code The picture of Quick Response Code.

In one embodiment, detection module is when the current display interface of terminal detects Quick Response Code, scan module pair The Quick Response Code is scanned;Acquisition module passes through the current display interface to terminal when it is determined that the scan operation is successful The Quick Response Code carry out the picture that sectional drawing generates the Quick Response Code.

In one embodiment, memory module, including:

Submodule is compressed, for the picture of the Quick Response Code to be compressed;

Sub-module stored, is stored to the predeterminable area of terminal for will compress obtained picture.

In one embodiment, described device also includes:

Module is named, for being named based on current operating temporal to the picture of the Quick Response Code;Or, based on described Keyword in information associated by Quick Response Code is named to the picture of the Quick Response Code.

According to the third aspect of the embodiment of the present disclosure there is provided a kind of two-dimensional code scanning device, including:

Processor;

Memory for storing processor-executable instruction;

Wherein, the processor is configured as:

When detecting Quick Response Code, the Quick Response Code is scanned;

When it is determined that the scan operation is successful, the picture of the Quick Response Code is obtained;

The picture of the Quick Response Code is stored to the predeterminable area of terminal.

It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.

Brief description of the drawings

Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.

Fig. 1 is the flow chart of the two-dimensional code scanning method according to an exemplary embodiment.

Fig. 2 is the flow chart of step 101-102 in two-dimensional code scanning method according to an exemplary embodiment.

Fig. 3 is the flow chart of step 101-102 in two-dimensional code scanning method according to an exemplary embodiment.

Fig. 4 is the flow chart of step 103 in two-dimensional code scanning method according to an exemplary embodiment.

Fig. 5 is the flow chart of the two-dimensional code scanning method according to an exemplary embodiment.

Fig. 6 is the block diagram of the two-dimensional code scanning device according to an exemplary embodiment.

Fig. 7 is the block diagram of the two-dimensional code scanning device according to an exemplary embodiment.

Fig. 8 is the block diagram of the two-dimensional code scanning device according to an exemplary embodiment.

Fig. 9 is the block diagram of the two-dimensional code scanning device according to an exemplary embodiment.

Figure 10 is the block diagram of the two-dimensional code scanning device according to an exemplary embodiment.

Figure 11 is the block diagram of the two-dimensional code scanning device according to an exemplary embodiment.

Embodiment

Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.

In correlation technique, user scans Quick Response Code using mobile phone, can obtain the information associated by Quick Response Code, for example, logical Quick Response Code is over-scanned to access the linked web pages of Quick Response Code, or, the account that trade company is obtained by scanning the Quick Response Code of trade company is believed Breath.However, user can only be in specific place scanning Quick Response Code, for example, user can scan the Quick Response Code of trade company in shop The two-dimension code image of trade company embedded in picture, or scanning webpage is printed, after mobile phone scans Quick Response Code, two will be jumped to The target associated by code is tieed up, mobile phone does not preserve the Quick Response Code;But, elsewhere after user leaves shop, it is impossible to sweep The Quick Response Code of the trade company is retouched or searched, also the Quick Response Code of the trade company good friend can not be shared with, cause poor user experience.

In order to solve the above problems, the embodiment of the present disclosure provides a kind of two-dimensional code scanning method, including:Detecting two When tieing up code, Quick Response Code is scanned;When it is determined that scan operation is successful, the picture of Quick Response Code is obtained;By the picture of Quick Response Code Store to the predeterminable area of terminal.The technical scheme that the embodiment of the present disclosure is provided can be used for realizing the scanning history to Quick Response Code Data are recorded and searched, and facilitate user to check or share Quick Response Code;The technical scheme is related to terminal, is, for example, intelligent hand Machine, tablet personal computer, Wearable or vehicle mobile terminals etc. possess two-dimensional code scanning function or support two-dimensional code scanning software Electronic equipment.

Fig. 1 is a kind of flow chart of two-dimensional code scanning method according to an exemplary embodiment, the execution of this method Main body can be terminal, as shown in figure 1, this method comprises the following steps 101-103:

In a step 101, when detecting Quick Response Code, Quick Response Code is scanned.

Example, terminal calls camera to detect outside terminal with the presence or absence of Quick Response Code;When detecting two outside terminal When tieing up code, terminal-pair Quick Response Code is scanned operation;Or, terminal detects whether exist in the current display interface of terminal screen Quick Response Code, when detecting Quick Response Code in the current display interface of terminal screen, the Quick Response Code of terminal-pair current display interface enters Row scan operation.

In a step 102, when it is determined that scan operation is successful, the picture of Quick Response Code is obtained.

Example, terminal judges whether scan operation succeeds;When judging scan operation failure, in the current display of terminal Interface display scanning failure prompt message, this flow terminates;When judge scan operation success when, obtain Quick Response Code picture and after It is continuous to perform step 103.

Example, in the case where terminal is by calling camera to detect to there is Quick Response Code outside terminal, when terminal is sentenced Surely during the success of scanning Quick Response Code, terminal is by calling camera to take pictures Quick Response Code, so as to generate the picture of Quick Response Code;Or Person, in the case where the current display interface of terminal screen detects Quick Response Code, when terminal judges scanning Quick Response Code success, eventually Hold and sectional drawing is carried out by the Quick Response Code to current display interface, so as to generate the picture of Quick Response Code.

In step 103, the picture of Quick Response Code is stored to the predeterminable area of terminal.

Example, terminal stores the picture of the Quick Response Code obtained in step 102 to the predeterminable area of terminal, such as by two The picture of dimension code is stored to the file pre-established, or stores into internal memory designated area.

The technical scheme provided by this disclosed embodiment, by obtaining the picture of Quick Response Code simultaneously when scanning Quick Response Code success Storage, realizes that the scanning historical data to Quick Response Code in terminal is recorded so that user can review and look into terminal Two-dimensional code scanning history is looked for, overcomes user present in correlation technique to cause user in specific place scanning Quick Response Code The problem of experience difference, facilitate user to check or share Quick Response Code, so, it is possible to improve Consumer's Experience.

In a kind of possible embodiment, as shown in Fig. 2 the step 101-102 shown in Fig. 1 may be embodied as step 201-202:

In step 201, when calling camera to detect Quick Response Code, Quick Response Code is scanned.

Example, terminal calls camera to detect outside terminal with the presence or absence of Quick Response Code;When detecting two outside terminal When tieing up code, terminal-pair Quick Response Code is scanned operation.

In step 202., when it is determined that scan operation is successful, the figure for generation Quick Response Code of being taken pictures to Quick Response Code progress is passed through Piece.

Example, terminal judges whether scan operation succeeds;When judging scan operation success, terminal is by calling shooting Head is taken pictures to Quick Response Code, so as to generate the picture of Quick Response Code;When judging scan operation failure, in the current display of terminal Interface display scanning failure prompt message, this flow terminates.

Above-mentioned embodiment of the disclosure calls camera to be scanned and clap the Quick Response Code outside terminal there is provided terminal According to implementation, scheme is realized simpler, facilitates user to realize.

In a kind of possible embodiment, as shown in figure 3, the step 101-102 shown in Fig. 1 may be embodied as step 301-302:

In step 301, when the current display interface of terminal detects Quick Response Code, Quick Response Code is scanned.

Example, terminal detects whether there is Quick Response Code in the current display interface of terminal screen, when in terminal screen When current display interface detects Quick Response Code, the Quick Response Code of terminal-pair current display interface is scanned operation.

In step 302, when it is determined that scan operation is successful, the Quick Response Code for passing through the current display interface to terminal is carried out Sectional drawing generates the picture of Quick Response Code.

Example, terminal judges whether scan operation succeeds;When judging scan operation success, terminal passes through to current aobvious Show that the Quick Response Code at interface carries out sectional drawing, so as to generate the picture of the Quick Response Code;When judging scan operation failure, in terminal Current display interface display scanning failure prompt message, flow terminates.

Above-mentioned embodiment of the disclosure is scanned and to current page there is provided terminal for the Quick Response Code of current page The implementation of sectional drawing is carried out, application scenarios is both extended, also reduces scheme implementation complexity, facilitate user to realize.

In a kind of possible embodiment, as shown in figure 4, the step 103 shown in Fig. 1 may be embodied as step 401- 402:

In step 401, the picture of Quick Response Code is compressed.

Example, terminal obtains the picture of Quick Response Code when it is determined that scan operation is successful, and the picture of Quick Response Code is pressed Required memory capacity or memory headroom when contracting, picture to reduce storage Quick Response Code;For example, terminal can be differentiated using reduction The mode of rate is compressed to the picture of Quick Response Code, or, it can use and hold the format conversion of the picture of Quick Response Code to be lower The mode of amount form is compressed to the picture of Quick Response Code, and the present embodiment is defined not to this.

In step 402, picture compression obtained is stored to the predeterminable area of terminal.

Example, the picture of the Quick Response Code after compression stores to the file pre-established into terminal, or store to Designated area in terminal internal memory.

Above-mentioned embodiment of the disclosure provides the picture by compressing Quick Response Code, to reach the mesh for saving memory space , improve the storage resource service efficiency of terminal system.

In a kind of possible embodiment, this disclosure relates to two-dimensional code scanning method, can also include:Terminal is being incited somebody to action When the picture of the Quick Response Code of acquisition is stored to the predeterminable area of terminal, the picture of the Quick Response Code is entered based on current operating temporal Row name, or the picture of the Quick Response Code is named based on the keyword in information associated by the Quick Response Code, it is convenient User checks or shared Quick Response Code.

Implementation process is discussed in detail below by several embodiments.

Fig. 5 is a kind of flow chart of two-dimensional code scanning method according to an exemplary embodiment, and this method is by terminal Implement;As shown in figure 5, this method comprises the following steps:

In step 501, when calling camera to detect Quick Response Code, the Quick Response Code is scanned.

In step 502, when it is determined that the scan operation is successful, by carrying out taking pictures described in generation to the Quick Response Code The picture of Quick Response Code.

In step 503, the picture of the Quick Response Code is named.

Example, terminal is named based on current operating temporal to the picture of the Quick Response Code;Or, based on described two Keyword in information associated by dimension code is named to the picture of the Quick Response Code.

In step 504, the picture of the Quick Response Code is compressed.

Example, terminal obtains the picture of Quick Response Code when it is determined that scan operation is successful, and the picture of Quick Response Code is pressed Required memory capacity or memory headroom when contracting, picture to reduce storage Quick Response Code;For example, terminal can be differentiated using reduction The mode of rate is compressed to the picture of Quick Response Code, or, it can use and hold the format conversion of the picture of Quick Response Code to be lower The mode of amount form is compressed to the picture of Quick Response Code, and the present embodiment is defined not to this.

In step 505, picture compression obtained is stored to the predeterminable area of terminal.

Example, the picture of the Quick Response Code after compression stores to the file pre-established into terminal, or store to Designated area in terminal internal memory.

The technical scheme provided by this disclosed embodiment, obtains the picture of Quick Response Code when scanning Quick Response Code success and deposits Storage, realizes that the scanning historical data to Quick Response Code in terminal is recorded so that user can review and search in terminal Two-dimensional code scanning history, overcomes user present in correlation technique to cause user's body in specific place scanning Quick Response Code The problem of testing difference, facilitates user to check or share Quick Response Code, so, it is possible to improve Consumer's Experience.

As a kind of possible embodiment, a kind of scheme for realizing record two-dimensional code scanning history, the program are provided here A capacity small picture as far as possible is generated after the success of middle terminal scanning Quick Response Code on backstage, the text of Quick Response Code history is stored in Part underedge, is named with Time of Day, and convenient check in the future uses;Concrete scheme includes:When scanning input Quick Response Code, terminal is led to Cross camera and generate a two-dimension code image file;File RNTO current time is stored in entitled two-dimensional code scanning by terminal In the file of history.

The technical scheme provided by this disclosed embodiment can cause the two-dimensional code scanning of user to have history to look into, Neng Gouti Rise Consumer's Experience.

Following is disclosure device embodiment, can be used for performing method of disclosure embodiment.

Fig. 6 is a kind of block diagram of two-dimensional code scanning device according to an exemplary embodiment;The device can be used Various modes are implemented, for example all components of implementation in the terminal, or, implement in end side dress in a coupled manner Component in putting;The device can by software, hardware or both be implemented in combination with it is above-mentioned this disclosure relates to method, such as scheme Shown in 6, the two-dimensional code scanning device includes:Detection module 601, scan module 602, acquisition module 603 and memory module 604, Wherein:

Detection module 601 is configured as detecting Quick Response Code;

Scan module 602 is configured as, when detecting Quick Response Code, being scanned the Quick Response Code;

Acquisition module 603 is configured as when it is determined that the scan operation is successful, obtaining the picture of the Quick Response Code;

Memory module 604 is configured as storing the picture of the Quick Response Code to the predeterminable area of terminal.

The two-dimensional code scanning device that the embodiment of the present disclosure is provided, Quick Response Code is detected by configuring detection module 601;Scan mould Block 602 is scanned when detecting Quick Response Code to the Quick Response Code;Acquisition module 603 is it is determined that scan operation success When, obtain the picture of the Quick Response Code;Memory module 604 stores the picture of the Quick Response Code to the predeterminable area of terminal;From And by obtaining picture and the storage of Quick Response Code when scanning Quick Response Code success, realize the scanning history in terminal to Quick Response Code Data are recorded so that user can review and search two-dimensional code scanning history in terminal, overcome in correlation technique and exist User the problem of can only cause poor user experience in specific place scanning Quick Response Code, facilitate user to check or share two dimension Code, so, it is possible to improve Consumer's Experience.

In a kind of possible embodiment, detection module 601 is when calling camera to detect Quick Response Code, scan module 602 pairs of Quick Response Codes are scanned;Acquisition module 603 is when it is determined that the scan operation is successful, by the Quick Response Code Progress, which is taken pictures, generates the picture of the Quick Response Code.

In a kind of possible embodiment, detection module 601 when the current display interface of terminal detects Quick Response Code, 602 pairs of Quick Response Codes of scan module are scanned;Acquisition module 603 is when it is determined that the scan operation is successful, by end The Quick Response Code of the current display interface at end carries out the picture that sectional drawing generates the Quick Response Code.

In a kind of possible embodiment, as shown in fig. 7, the two-dimensional code scanning device shown in Fig. 6 can also include handle Memory module 604 is configured to include:Submodule 701 and sub-module stored 702 are compressed, wherein:

Compression submodule 701 is configured as the picture of the Quick Response Code being compressed;

Sub-module stored 702 is configured as storing the picture that compression is obtained to the predeterminable area of terminal.

In a kind of possible embodiment, as shown in figure 8, the two-dimensional code scanning device shown in Fig. 6 can also include:Life Name module 801, wherein:

Name module 801 is configured as being named the picture of Quick Response Code based on current operating temporal;Or, based on two Keyword in information associated by dimension code is named to the picture of Quick Response Code.

Fig. 9 is a kind of block diagram of two-dimensional code scanning device 900 according to an exemplary embodiment, two-dimensional code scanning dress Putting 900 can adopt in various manners to implement, for example all components of implementation in the terminal, or, in end side with coupling Component in the mode implementation of conjunction;Two-dimensional code scanning device 900 includes:

Processor 901;

Memory 902 for storing processor-executable instruction;

Wherein, processor 901 is configured as:When detecting Quick Response Code, the Quick Response Code is scanned;It is determined that institute When stating scan operation success, the picture of the Quick Response Code is obtained;The picture of the Quick Response Code is stored to the predeterminable area of terminal.

In one embodiment, above-mentioned processor 901 is also configured to:When calling camera to detect Quick Response Code, The Quick Response Code is scanned;When it is determined that the scan operation is successful, passes through and generation institute of taking pictures is carried out to the Quick Response Code State the picture of Quick Response Code.

In one embodiment, above-mentioned processor 901 is also configured to:Two are detected in the current display interface of terminal When tieing up code, the Quick Response Code is scanned;When it is determined that the scan operation is successful, pass through the current display interface to terminal The Quick Response Code carry out the picture that sectional drawing generates the Quick Response Code.

In one embodiment, above-mentioned processor 901 is also configured to:The picture of the Quick Response Code is compressed; The picture that compression is obtained is stored to the predeterminable area of terminal.

In one embodiment, above-mentioned processor 901 is also configured to:Based on current operating temporal to the Quick Response Code Picture be named;Or, the picture of the Quick Response Code is carried out based on the keyword in information associated by the Quick Response Code Name.

The two-dimensional code scanning device that the above-mentioned embodiment of the present disclosure is provided, by obtaining Quick Response Code when scanning Quick Response Code success Picture and storage, realize that scanning historical data to Quick Response Code in terminal is recorded so that user can be in terminal Two-dimensional code scanning history is reviewed and searched, overcomes user present in correlation technique can only be in specific place scanning Quick Response Code The problem of causing poor user experience, facilitate user to check or share Quick Response Code, so, it is possible to improve Consumer's Experience.

On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.

Figure 10 is a kind of block diagram of two-dimensional code scanning device according to an exemplary embodiment;Two-dimensional code scanning device 1000 are applied to terminal;Two-dimensional code scanning device 1000 can include following one or more assemblies:Processing assembly 1002, storage Device 1004, power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensing Device assembly 1014, and communication component 1016.

The integrated operation of the generally control two-dimensional code scanning device 1000 of processing assembly 1002, such as with display, call, Data communication, the camera operation operation associated with record operation.Processing assembly 1002 can include one or more processors 1020 carry out execute instruction, to complete all or part of step of above-mentioned method.In addition, processing assembly 1002 can include one Or multiple modules, it is easy to the interaction between processing assembly 1002 and other assemblies.For example, processing assembly 1002 can include many matchmakers Module, to facilitate the interaction between multimedia groupware 1008 and processing assembly 1002.

Memory 1004 is configured as storing various types of data supporting the operation in two-dimensional code scanning device 1000. The example of these data includes the instruction of any application program or method for being operated on two-dimensional code scanning device 1000, connection It is personal data, telephone book data, message, picture, video etc..Memory 1004 can be by any kind of volatibility or non-volatile Property storage device or combinations thereof realize, such as static RAM (SRAM), electrically erasable is read-only to be deposited Reservoir (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory, disk or CD.

Power supply module 1006 provides electric power for the various assemblies of two-dimensional code scanning device 1000.Power supply module 1006 can be wrapped Power-supply management system, one or more power supplys are included, and other for two-dimensional code scanning device 1000 with generating, managing and distributing electric power Associated component.

Multimedia groupware 1008 is included in one output interface of offer between two-dimensional code scanning device 1000 and user Screen.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touching Panel is touched, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more Touch sensor is with the gesture on sensing touch, slip and touch panel.Touch sensor can not only sensing touch or slip The border of action, but also the detection duration related to touch or slide and pressure.In certain embodiments, many matchmakers Body component 1008 includes a front camera and/or rear camera.When two-dimensional code scanning device 1000 be in operator scheme, During such as screening-mode or video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each Front camera and rear camera can be a fixed optical lens systems or with focusing and optical zoom capabilities.

Audio-frequency assembly 1010 is configured as output and/or input audio signal.For example, audio-frequency assembly 1010 includes a wheat Gram wind (MIC), when two-dimensional code scanning device 1000 is in operator scheme, such as call model, logging mode and speech recognition mode When, microphone is configured as receiving external audio signal.The audio signal received can be further stored in memory 1004 or sent via communication component 1016.In certain embodiments, audio-frequency assembly 1010 also includes a loudspeaker, for defeated Go out audio signal.

I/O interfaces 1012 are that interface, above-mentioned peripheral interface module are provided between processing assembly 1002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.

Sensor cluster 1014 includes one or more sensors, for providing each side for two-dimensional code scanning device 1000 The state estimation in face.For example, sensor cluster 1014 can detect opening/closed mode of two-dimensional code scanning device 1000, The relative positioning of component, such as component are the display and keypad of two-dimensional code scanning device 1000, and sensor cluster 1014 is also It can detect that the position of 1,000 1 components of two-dimensional code scanning device 1000 or two-dimensional code scanning device changes, user and Quick Response Code The existence or non-existence that scanning means 1000 is contacted, the orientation of two-dimensional code scanning device 1000 or acceleration/deceleration and two-dimensional code scanning The temperature change of device 1000.Sensor cluster 1014 can include proximity transducer, be configured in not any thing The presence of object nearby is detected during reason contact.Sensor cluster 1014 can also include optical sensor, and such as CMOS or ccd image are passed Sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 1014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.

Communication component 1016 is configured to facilitate wired or wireless side between two-dimensional code scanning device 1000 and other equipment The communication of formula.Two-dimensional code scanning device 1000 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or it Combination.In one exemplary embodiment, communication component 1016 receives to manage from external broadcasting via broadcast channel is The broadcast singal or broadcast related information of system.In one exemplary embodiment, communication component 1016 also includes near-field communication (NFC) module, to promote junction service.For example, radio frequency identification (RFID) technology, Infrared Data Association can be based in NFC module (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.

In the exemplary embodiment, two-dimensional code scanning device 1000 can be by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), scene can Program gate array (FPGA), controller, microcontroller, microprocessor or other electronic building bricks to realize, for performing the above method.

In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1004 of instruction, above-mentioned instruction can be performed with completion by the processor 1020 of two-dimensional code scanning device 1000 State method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..

A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is by two-dimensional code scanning device 1000 Computing device when so that two-dimensional code scanning device 1000 is able to carry out following two-dimensional code scanning method, and method includes:

When detecting Quick Response Code, Quick Response Code is scanned;

When it is determined that scan operation is successful, the picture of Quick Response Code is obtained;

The picture of Quick Response Code is stored to the predeterminable area of terminal.

In one embodiment, when detecting Quick Response Code, Quick Response Code is scanned;When it is determined that scan operation is successful, The picture of Quick Response Code is obtained, including:When calling camera to detect Quick Response Code, Quick Response Code is scanned;It is determined that scanning When operating successfully, the picture of Quick Response Code is generated by Quick Response Code take pictures.

In one embodiment, when detecting Quick Response Code, Quick Response Code is scanned;When it is determined that scan operation is successful, The picture of Quick Response Code is obtained, including:When the current display interface of terminal detects Quick Response Code, Quick Response Code is scanned; When determining scan operation success, the picture that sectional drawing generates Quick Response Code is carried out by the Quick Response Code of the current display interface to terminal.

In one embodiment, the picture of Quick Response Code is stored to the predeterminable area of terminal, including:By the picture of Quick Response Code It is compressed;The picture that compression is obtained is stored to the predeterminable area of terminal.

In one embodiment, method also includes:The picture of Quick Response Code is named based on current operating temporal;Or Person, is named based on the keyword in information associated by Quick Response Code to the picture of Quick Response Code.

Figure 11 is a kind of block diagram of two-dimensional code scanning device according to an exemplary embodiment.For example, Quick Response Code is swept Imaging apparatus 1100 may be provided in a server.Two-dimensional code scanning device 1100 includes processing assembly 1102, and it is further wrapped One or more processors are included, and as the memory resource representated by memory 1103, can be by processing assembly for storing The instruction of 1102 execution, such as application program.The application program stored in memory 1103 can include one or one with On each correspond to the module of one group of instruction.In addition, processing assembly 1102 is configured as execute instruction, to perform above-mentioned side Method.

Two-dimensional code scanning device 1100 can also be configured as performing two-dimensional code scanning dress including a power supply module 1106 Put 1100 power management, a wired or wireless network interface 1105 is configured as two-dimensional code scanning device 1100 being connected to Network, and input and output (I/O) interface 1108.Two-dimensional code scanning device 1100, which can be operated, to be based on being stored in memory 1103 operating system, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or class Seemingly.

Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.

It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a kind of two-dimensional code scanning method, it is characterised in that including:
When detecting Quick Response Code, the Quick Response Code is scanned;
When it is determined that the scan operation is successful, the picture of the Quick Response Code is obtained;
The picture of the Quick Response Code is stored to the predeterminable area of terminal.
2. according to the method described in claim 1, it is characterised in that described when detecting Quick Response Code, the Quick Response Code is carried out Scanning;When it is determined that the scan operation is successful, the picture of the Quick Response Code is obtained, including:
When calling camera to detect Quick Response Code, the Quick Response Code is scanned;
When it is determined that the scan operation is successful, by the Quick Response Code take pictures generating the picture of the Quick Response Code.
3. according to the method described in claim 1, it is characterised in that described when detecting Quick Response Code, the Quick Response Code is carried out Scanning;When it is determined that the scan operation is successful, the picture of the Quick Response Code is obtained, including:
When the current display interface of terminal detects Quick Response Code, the Quick Response Code is scanned;
When it is determined that the scan operation is successful, the Quick Response Code for passing through the current display interface to terminal carries out sectional drawing generation The picture of the Quick Response Code.
4. according to the method described in claim 1, it is characterised in that the picture by the Quick Response Code stores pre- to terminal If region, including:
The picture of the Quick Response Code is compressed;
The picture that compression is obtained is stored to the predeterminable area of terminal.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
The picture of the Quick Response Code is named based on current operating temporal;Or,
The picture of the Quick Response Code is named based on the keyword in information associated by the Quick Response Code.
6. a kind of two-dimensional code scanning device, it is characterised in that including:
Detection module, for detecting Quick Response Code;
Scan module, for when detecting Quick Response Code, being scanned to the Quick Response Code;
Acquisition module, for when it is determined that the scan operation is successful, obtaining the picture of the Quick Response Code;
Memory module, for the picture of the Quick Response Code to be stored to the predeterminable area of terminal.
7. device according to claim 6, it is characterised in that detection module when calling camera to detect Quick Response Code, Scan module is scanned to the Quick Response Code;Acquisition module is when it is determined that the scan operation is successful, by the two dimension Code take pictures generating the picture of the Quick Response Code.
8. device according to claim 6, it is characterised in that detection module detects two in the current display interface of terminal When tieing up code, scan module is scanned to the Quick Response Code;Acquisition module is when it is determined that the scan operation is successful, by end The Quick Response Code of the current display interface at end carries out the picture that sectional drawing generates the Quick Response Code.
9. device according to claim 6, it is characterised in that memory module, including:
Submodule is compressed, for the picture of the Quick Response Code to be compressed;
Sub-module stored, is stored to the predeterminable area of terminal for will compress obtained picture.
10. device according to claim 6, it is characterised in that described device also includes:
Module is named, for being named based on current operating temporal to the picture of the Quick Response Code, or based on the Quick Response Code Keyword in associated information is named to the picture of the Quick Response Code.
11. a kind of two-dimensional code scanning device, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When detecting Quick Response Code, the Quick Response Code is scanned;
When it is determined that the scan operation is successful, the picture of the Quick Response Code is obtained;
The picture of the Quick Response Code is stored to the predeterminable area of terminal.
CN201710237613.0A 2017-04-12 2017-04-12 Two-dimensional code scanning method and device CN107169393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710237613.0A CN107169393A (en) 2017-04-12 2017-04-12 Two-dimensional code scanning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710237613.0A CN107169393A (en) 2017-04-12 2017-04-12 Two-dimensional code scanning method and device

Publications (1)

Publication Number Publication Date
CN107169393A true CN107169393A (en) 2017-09-15

Family

ID=59849271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710237613.0A CN107169393A (en) 2017-04-12 2017-04-12 Two-dimensional code scanning method and device

Country Status (1)

Country Link
CN (1) CN107169393A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019137428A1 (en) * 2018-01-11 2019-07-18 维沃移动通信有限公司 Method for identifying graphical code, and mobile terminal

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593110A (en) * 2013-11-15 2014-02-19 王恩惠 Method for quickly sharing electronic business card
CN104156639A (en) * 2014-08-06 2014-11-19 广东欧珀移动通信有限公司 Method and device for opening application program through two-dimension code and intelligent terminal
CN104281827A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Method and device for recognizing two-dimensional code
CN104408394A (en) * 2014-10-28 2015-03-11 广东欧珀移动通信有限公司 Two-dimensional code information processing method and communication terminal
CN104408503A (en) * 2014-10-30 2015-03-11 厦门市美亚柏科信息股份有限公司 Processing method and system for two-dimensional code
CN104462233A (en) * 2014-11-12 2015-03-25 刘文金 Information acquisition and transmission method and system
CN105224644A (en) * 2015-09-28 2016-01-06 小米科技有限责任公司 Information classification approach and device
CN105320976A (en) * 2015-10-14 2016-02-10 深圳市二八智能家居有限公司 Retrieving method and apparatus for two-dimensional code of smart household device
CN105376048A (en) * 2014-08-27 2016-03-02 深圳Tcl新技术有限公司 Method and system for connecting terminal with display equipment
CN105631378A (en) * 2014-10-29 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Two-dimensional code scanning method, two-dimensional code scanning device and terminal comprising two-dimensional code scanning device
CN105760867A (en) * 2016-02-19 2016-07-13 深圳市润农科技有限公司 Method and device for extracting two-dimension code and/or text in image
CN106156685A (en) * 2016-07-07 2016-11-23 立德高科(昆山)数码科技有限责任公司 The method of multiple Quick Response Codes, device and the terminal that recognition is in the same area
CN106384071A (en) * 2016-09-28 2017-02-08 乐视控股(北京)有限公司 Two-dimensional code scanning recognition processing method and device

Patent Citations (13)

* 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
CN103593110A (en) * 2013-11-15 2014-02-19 王恩惠 Method for quickly sharing electronic business card
CN104156639A (en) * 2014-08-06 2014-11-19 广东欧珀移动通信有限公司 Method and device for opening application program through two-dimension code and intelligent terminal
CN105376048A (en) * 2014-08-27 2016-03-02 深圳Tcl新技术有限公司 Method and system for connecting terminal with display equipment
CN104408394A (en) * 2014-10-28 2015-03-11 广东欧珀移动通信有限公司 Two-dimensional code information processing method and communication terminal
CN105631378A (en) * 2014-10-29 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Two-dimensional code scanning method, two-dimensional code scanning device and terminal comprising two-dimensional code scanning device
CN104408503A (en) * 2014-10-30 2015-03-11 厦门市美亚柏科信息股份有限公司 Processing method and system for two-dimensional code
CN104462233A (en) * 2014-11-12 2015-03-25 刘文金 Information acquisition and transmission method and system
CN105224644A (en) * 2015-09-28 2016-01-06 小米科技有限责任公司 Information classification approach and device
CN105320976A (en) * 2015-10-14 2016-02-10 深圳市二八智能家居有限公司 Retrieving method and apparatus for two-dimensional code of smart household device
CN105760867A (en) * 2016-02-19 2016-07-13 深圳市润农科技有限公司 Method and device for extracting two-dimension code and/or text in image
CN106156685A (en) * 2016-07-07 2016-11-23 立德高科(昆山)数码科技有限责任公司 The method of multiple Quick Response Codes, device and the terminal that recognition is in the same area
CN106384071A (en) * 2016-09-28 2017-02-08 乐视控股(北京)有限公司 Two-dimensional code scanning recognition processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019137428A1 (en) * 2018-01-11 2019-07-18 维沃移动通信有限公司 Method for identifying graphical code, and mobile terminal
CN110032904A (en) * 2018-01-11 2019-07-19 维沃移动通信有限公司 A kind of graphic code recognition methods, mobile terminal

Similar Documents

Publication Publication Date Title
US10063760B2 (en) Photographing control methods and devices
KR101570354B1 (en) Mobile terminal and method for controlling the same
CN105607883B (en) The processing method and processing device of instant message
CN105511686B (en) Call processing method, device and terminal electronic device
CN104780155B (en) Apparatus bound method and device
CN105117086A (en) Fingerprint recognition system, fingerprint recognition realizing method and device and electronic equipment
CN104283876A (en) Operation authorization method and device
CN105120122A (en) Alarm method and device
CN104850769A (en) Method and device for executing operation
CN104794382A (en) Application starting method and device
CN104008348A (en) Application program control method, application program control device and terminal
CN104159218B (en) Internetwork connection establishing method and device
CN105912163B (en) Physical button component, terminal, touch-control response method and device
CN104065836A (en) Method and device for monitoring calls
JP6336091B2 (en) Method and apparatus for triggering execution of operating instructions
CN104834665A (en) Target picture acquiring method and device
CN104185304B (en) A kind of method and device accessing WI-FI network
CN105093980B (en) Control the method and device of smart machine start and stop
CN104298547A (en) Terminal setting method and device
CN105224195A (en) Terminal operation method and device
EP3331226A1 (en) Method and device for reading messages
CN104571709B (en) The processing method of mobile terminal and virtual key
CN104219388A (en) Voice control method and device
JP6214812B2 (en) Transfer processing method and apparatus
KR20090128038A (en) Method for using face data in 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