CN106610835A - Identification code processing method and device, and computer equipment - Google Patents

Identification code processing method and device, and computer equipment Download PDF

Info

Publication number
CN106610835A
CN106610835A CN201611207415.1A CN201611207415A CN106610835A CN 106610835 A CN106610835 A CN 106610835A CN 201611207415 A CN201611207415 A CN 201611207415A CN 106610835 A CN106610835 A CN 106610835A
Authority
CN
China
Prior art keywords
data
interface
application
identification code
data structure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611207415.1A
Other languages
Chinese (zh)
Inventor
乔家栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611207415.1A priority Critical patent/CN106610835A/en
Publication of CN106610835A publication Critical patent/CN106610835A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses an identification code processing method and device, and computer equipment. The identification code processing method comprises the following steps of: when a terminal is in a locking state, receiving an identification code processing instruction, scanning and decoding a target identification code by responding to the identification code processing instruction, so that decoding data including application data and interface characteristic data is obtained, wherein the interface characteristic data includes data related to the fact that an interface to be started is started, determining a target application needing to be started according to the application data, obtaining a data structure required for starting the interface of the target application, and finally, starting the corresponding interface of the target application according to the data structure and the interface characteristic data. By means of the scheme, the identification code identification efficiency of the terminal can be increased; and waste of terminal resources can be reduced.

Description

Identification code processing method, device and computer equipment
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of identification code processing method, device and computer equipment.
Background technology
With the development and the development of mobile communications network of the Internet, while the also disposal ability along with terminal and storage The fast development of ability, the application program of magnanimity has obtained rapid propagation and has used.Bar code, Quick Response Code, sequence code etc. are various Identification code increasingly incorporates the life of people.
Generally all it is first to start a certain answering when carrying out delivery operation, down operation by scanning recognition code in practical application With, subsequently into the barcode scanning interface of the application, corresponding barcode scanning operation is performed on barcode scanning interface, after obtaining barcode scanning information, The content included further according to the identification code is processed accordingly.At present the mode of operation recognition efficiency of this identification code is low, and Easily expend more terminal resource.
The content of the invention
The embodiment of the present invention provides a kind of identification code processing method, device and computer equipment, can improve terminal processes The efficiency of identification code.
The embodiment of the present invention provides a kind of identification code processing method, including:
When terminal is in the lock state, identification code process instruction is received;
Decoding is scanned to target identifying code in response to the identification code process instruction, it is described to obtain decoding data Decoding data includes:Application data and interface feature data, wherein, the interface feature data include and start boundary to be launched The related data in face;
The intended application for needing to start is determined according to the application data;
Obtain the data structure needed for the interface for starting the intended application;
The respective interface of the intended application is started according to the data structure and the interface feature data.
Correspondingly, a kind of identification code processing meanss are embodiments provided, including:
Receiver module, for when terminal is in the lock state, receiving identification code process instruction;
Parsing module, for decoding to be scanned to target identifying code in response to the identification code process instruction, to obtain Decoding data, the decoding data includes:Application data and interface feature data, wherein, the interface feature data include with Start the related data in interface to be launched;
Determining module, for determining the intended application for needing to start according to the application data;
Acquisition module, the data structure needed for for obtaining the interface for starting the intended application;
Starting module, for starting the corresponding of the intended application according to the data structure and the interface feature data Interface.
Correspondingly, embodiments provide a kind of computer equipment, including memorizer, processor and be stored in described On memorizer and the computer program that can run on the processor, realize during computer program described in the computing device Above-mentioned identification code processing method.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, can be attached to obtain others according to these accompanying drawings Figure.
Fig. 1 is a kind of schematic flow sheet of identification code processing method provided in an embodiment of the present invention.
Fig. 2 is the schematic diagram of a scenario of the first identification code processing method provided in an embodiment of the present invention.
Fig. 3 is the schematic diagram of a scenario of second identification code processing method provided in an embodiment of the present invention.
Fig. 4 is the schematic diagram of a scenario of the third identification code processing method provided in an embodiment of the present invention.
Fig. 5 is the schematic diagram of a scenario of the 4th kind of identification code processing method provided in an embodiment of the present invention.
Fig. 6 is the schematic diagram of a scenario of the 5th kind of identification code processing method provided in an embodiment of the present invention.
Fig. 7 is the schematic diagram of a scenario of the 6th kind of identification code processing method provided in an embodiment of the present invention.
Fig. 8 is the schematic diagram of a scenario of the 7th kind of identification code processing method provided in an embodiment of the present invention.
Fig. 9 is the schematic flow sheet of second identification code processing method provided in an embodiment of the present invention.
Figure 10 is a kind of structural representation of application erecting device provided in an embodiment of the present invention.
Figure 11 is the structural representation of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of identification code processing method, device and computer equipment.To carry out respectively below in detail Describe in detail bright.
In a preferred embodiment, there is provided a kind of identification code processing method, as shown in figure 1, flow process can be as follows:
101st, when terminal is in the lock state, identification code process instruction is received.
In the present embodiment, terminal is in the lock state namely terminal display screen is in the lock state, at this point it is possible to receive knowledge Other code process instruction.Wherein, identification code can be Quick Response Code (such as QR codes), bar code.With QR (Quick Response, soon Fast answer code) as a example by, it can store abundant information, and word, network address and other kinds of data can be encrypted.
And the mode that triggering terminal receives identification code process instruction can have various, such as, and can be in terminal screen lock interface One trigger control of middle setting, by clicking on or sliding, the trigger control triggering terminal receives identification code process instruction.Such as Fig. 2 It is shown, the trigger control can be set to a button switch A, button switch A can be arranged on terminal screen lock interface Lower right.In actual applications, button switch A can receive different trigger actions, and triggering terminal receives multiple differences Function command.Such as, the button switch A that slides to the left can receive identification code process instruction with triggering terminal, and upward sliding should Button switch A can receive photographing instruction with triggering terminal.
In some embodiments, it is also possible to trigger control is not provided with, or hiding trigger control, or with the shape of software Trigger control is made an application and is installed in the terminal by formula, and identification code process instruction is triggered simultaneously by the operation such as rocking, tapping Receive the instruction.With reference to Fig. 3, terminal can be rocked in the state of bright screen and screen locking in terminal, to trigger identification code Process instruction.Further, it is also possible to trigger the identification code process instruction by voice-operated mode.
102nd, decoding is scanned to target identifying code according to identification code process instruction, to obtain decoding data, the decoding Data include:Application data and interface feature data, wherein, the interface feature data include related to interface to be launched is started Data.
With reference to Fig. 4, after identification code process instruction is received, scanning behaviour can be performed with triggering terminal calling system camera Make, such as, can show that scanning window B is scanned in terminal display screen.Wherein, camera can be Front camera, also may be used Think rearmounted camera.
In specific implementation process, identification code to be scanned can be placed in scanning window B and be scanned.Below will be with two dimension It is described in detail as a example by code, with reference to Fig. 5, Quick Response Code C can be placed in scanning window B and be scanned, creates Quick Response Code C-scan View interface, and parse the 2 D code information contained in view interface to obtain decoding data.Its concrete decoding process can join Examine following steps:
(1) figure is positioned:First look for detecting figure, be exactly three squares on Quick Response Code.The effect of these three squares It is exactly that not believing can be by mobile phone Turnover testing once no matter in which scanning direction figure, can sweep to.By Quick Response Code On positioning figure and separator determine the image of 2 D code information.Positioning figure determines the coordinate of module in two-dimensional code symbol, Module in Quick Response Code is all fixed, including correction graph, version information, data and error correcting code.Separator, is exactly to visit Mapping shape separates with 2 D code information image.
(2) gray processing 2 D code information pixel:The image that mobile phone was photographed all is colored, so not photographing Quick Response Code also not Row are outer, and it is also colored, and only except black and white, other colors are very shallow.Gray processing refers to the depth by color To recognize Quick Response Code, that is saturate by dark-grey process, processing by light gray for light color, remove other colors.
(3) noise of 2 D code information pixel is removed:The sensor of camera is using light is as reception signal and exports The coarse pixel that journey is produced, these coarse pixels are the interference factors that should not occur in photo.Noise just refers to that these are thick Rough pixel.
(4) binaryzation 2 D code information pixel:Binaryzation is to say for grey scale pixel value on image to be set to 0 or 255, Exactly become only two kinds of colors of black and white.Gray processing becomes only dark-grey and two kinds of colors of light gray, present two-value to the first step Change is to become black by dark-grey, and light gray becomes white.Because image in 2 D code is made up of binary zero or 1 in fact, 0 generation Vindication color, 1 represents black.Image in 2 D code can be become Quick Response Code the bar code of only black and white in binaryzation, then basis Analytic formula what (because pixel is between 0-255, to be all transformed into 0 or 255, estimate must through some calculating, then 0 is exactly 0,255 to be changed into 1) changing into binary information.
(5) Quick Response Code decoding and error correction:The binary information for obtaining is entered into row decoding and error correction.The binary information for obtaining It is that release format information, data and error correcting code are generated through certain coded system, so decoding is to release format information, Data and error correcting code are decoded and contrasted.Error correction is carried out simultaneously with decoding, and data are carried out into error correction.
(6) decoding data is obtained.
With reference to Fig. 6, in practical application, also bar code D can be placed in scanning window B and be scanned.
In some embodiments, after to the identification code parsing, a URL (Uniform Resource can be obtained Locator, URL), corresponding data is returned by the URL and is used as decoding data.Decoding data may include application Data and interface feature data.Wherein, application data can be the corresponding data of application message included in identification code, such as should With title, application icon etc..And interface feature data then can for start interface to be launched when needed for transmission data, than Such as, can be including incoming parameter of the interface feature mark at interface to be launched, Starting mode, needs etc..
103rd, the intended application for needing to start is determined according to application data.
In some embodiments, the application data can be Apply Names, application icon, and terminal can receive lookup and refer to Order, searches the application of Apply Names, application icon matching, as to be launched according to the look-up command from mounted application Intended application.
Wherein, intended application is the application with identification code scan function, be such as integrated with scanning Quick Response Code function APP1, It is integrated with APP2 of scanning bar code function etc..
104th, the data structure needed for the interface for starting intended application is obtained.
In some embodiments, application data can include application identities (such as bag name).Then step " is obtained and starts target Using interface needed for data structure can include:
Data structure according to needed for application identities and mapping relations set obtain the interface for starting intended application, wherein, Mapping relations set includes the mapping relations between application identities and data structure.
In the present embodiment, need to obtain the mapping relations between application identities and data structure in advance, that is, in terminal Before being in the lock state, the method can also include:
The application identities of application have been installed in acquisition;
Acquisition starts the data structure needed for the interface for having installed application;
The mapping relations set up between application identities and data structure, to obtain mapping relations set.
By taking android (ARIXTRA) system as an example, in certain embodiments, can be by adding in android bottom source codes Plus Log daily records, obtain the execution information of the execution flow process for starting application interface after identification code is cracked under normal operating.
As a example by using App1, it is only necessary to add this Log daily record during App1 performs barcode scanning, it is possible to which App1 is swept The execution flow process for starting respective interface after code is printed, and from the result for printing, can obtain App1 normal scan identification codes It is to start respective interface in which way when obtaining scanning result.
Wherein, data structure refers to that the App1 seen in the result for printing sends the mode of scanning result, such as, and scanning knot Really:X, Starting mode:Y, the object for starting:Z.
105th, the respective interface of intended application is started according to the data structure and interface feature data.
In certain embodiments, incoming certain parameter is needed (including Starting mode, to start object when starting application interface Deng) could normally start the interface, it is therefore desirable to by the incoming respective interface to start the intended application of interface feature data; That is, flow process can be as follows for step " starting the respective interface of intended application according to the data structure and interface feature data ":
According to data structure to the incoming interface feature data of intended application;
The target interface and its Starting mode for needing to start is determined according to interface feature data;
Target interface is started according to Starting mode.
In some embodiments, step " according to data structure to the incoming interface feature data of intended application " flow process can be with It is as follows:
According to data structure from the corresponding data of interface feature extracting data, to obtain data sequence;
To intended application incoming data sequence.
Still with above-mentioned data structure " scanning result:X, Starting mode:Y, the object for starting:As a example by Z ", " scanning result ", The name such as " Starting mode " and " startup object " and the sequence of positions in this structure be to maintain it is constant, it is modifiable be after Data X, Y in face, Z.After this data structure is got, this data structure can be imitated from the interface feature data for obtaining It is middle to extract corresponding data, corresponding Data Position is corresponded to, to obtain data sequence, and as a complete parameter The interface of deactivation APP1, payment interface as shown in Figure 7.
In practical application, when it is determined that intended application is APP1, after being successfully decoded, if cannot be from current barcode scanning interface just Target interface is often jumped to, then printed words such as " mistake occur " can be shown in terminal display screen.
In certain embodiments, for some reason (such as decoding failure, corresponding data structure, data cannot be found Construction error etc.) interface of intended application may be caused to start failure, in order to improve the efficiency of identification code process, can be in target Using respective interface start failure when, call the barcode scanning module that the intended application has in itself to be scanned operation, acquisition is swept After code information, the content included further according to the identification code is processed accordingly.That is, the identification code processing method can be with Comprise the following steps:
When the respective interface of intended application starts failure, barcode scanning instruction is received;
Identification code is scanned in response to the barcode scanning identification function of scan instruction invocation target application, obtains barcode scanning letter Breath;
Barcode scanning information is parsed, new decoding data is obtained.
In the present embodiment, determine that interface starts the mode of failure and can have various, such as, and can be by judging in the time period Inside whether successfully start up interface to determine whether to start failure.Wherein, the time period can be by those skilled in the art or life Produce manufacturer to be set.After decoding data is obtained, the respective interface of intended application can be started according to new decoding data.
In certain embodiments, after determination intended application is successfully decoded, whether the application can be provided with detection terminal.If Do not install, then can arrange to jump at interface and download the intended application using store interface (referring to Fig. 8) prompting, or by interface Webpage version application interface is jumped to, and according to interface feature data display corresponding information.
From the foregoing, it will be observed that embodiments providing a kind of identification code processing method, adopt and be in the lock state in terminal When, identification code process instruction is received, decoding is scanned to target identifying code in response to identification code process instruction, to be decoded Data, decoding data includes:Application data and interface feature data, determining further according to application data needs the target for starting to answer With, and the data structure needed for the interface for starting intended application is obtained, open finally according to the data structure and interface feature data The respective interface of moving-target application.The program can be scanned to identification code when terminal is in the lock state and decode and recall Corresponding interface, and perform barcode scanning process after need not unlocking again, the speed of terminal processes identification code is improve, and then lifted The identifying processing efficiency of terminal-pair identification code, reduces the waste of terminal resource.
In a preferred embodiment, another kind of identification code processing method is also provided, will be carried out by taking mobile terminal as an example below Describe in detail, wherein, the operating system of the mobile terminal is Android system.As shown in figure 9, flow process can be as follows:
201st, when mobile terminal is in the lock state, identification code process instruction is received.
In the present embodiment, mobile terminal is in the lock state namely terminal display screen is in the lock state, at this point it is possible to connect Receive identification code process instruction.
And the mode for triggering mobile terminal reception identification code process instruction can have various, such as, and can be in terminal screen locking One trigger control is set in interface, and by clicking on or sliding, the trigger control triggering terminal receives identification code process instruction. In addition it is also possible to be not provided with trigger control, or hiding trigger control, or in the form of software trigger control made into one Individual application is installed in the terminal, by operation and the Voice command triggering identification code process instruction such as rocking, tapping and connect Receive the instruction.
202nd, mobile terminal is scanned decoding to target identifying code in response to identification code process instruction, to obtain solving yardage According to the decoding data includes:Application data and interface feature data, wherein, the interface feature data include to be launched with startup The related data in interface.
After identification code process instruction is received, scan operation can be performed with triggering terminal calling system camera.Wherein, Camera can be Front camera, or rearmounted camera.In specific implementation process, identification code to be scanned can be placed in scanning Be scanned in window, create the view interface of identification code scanning, and parse the information of identification code that contains in view interface with Obtain decoding data.
In some embodiments, after to the identification code parsing, a web page address can be obtained, by the web page address Corresponding data is returned as decoding data.Decoding data may include application data and interface feature data.Wherein, application data can Being the corresponding data of application message included in identification code, such as Apply Names, application icon.And interface feature data Then can for start interface to be launched when needed for transmission data, such as, and can include interface to be launched interface feature mark, Incoming parameter of Starting mode, needs etc..
203rd, mobile terminal determines the intended application for needing to start according to application data.
In some embodiments, the application data can be Apply Names, application icon, and mobile terminal can be received and looked into Instruction is looked for, the application of Apply Names, application icon matching is searched from mounted application according to the look-up command, as waiting to open Dynamic intended application.
Wherein, intended application is the application with identification code scan function, is such as integrated with the wechat of " sweep and sweep " function, props up Fu Bao etc. is applied.
204th, mobile terminal judges whether to be provided with the intended application;If so, execution step 205, if it is not, execution step 206。
205th, acquisition for mobile terminal starts the data structure needed for the interface of intended application, and according to the data structure and boundary Region feature data start the respective interface of intended application.
In some embodiments, the mapping relations between application identities and data structure are obtained in advance, that is, in terminal Before being in the lock state, the method can also include:
The application identities of application have been installed in acquisition;
Acquisition starts the data structure needed for the interface for having installed application;
The mapping relations set up between application identities and data structure, to obtain mapping relations set.
In some embodiments, normal operating can be obtained by adding Log daily records in android bottom source codes Lower identification code starts the execution information of the execution flow process of application interface after being cracked.By taking wechat as an example, it is only necessary to perform in wechat Add this Log daily record during barcode scanning, it is possible to the execution flow process for starting respective interface after wechat barcode scanning is printed, from beating In the result of print, can obtain wechat normal scan identification code obtain scanning result when be to start respective interface in which way 's.
Wherein, data structure refers to that the wechat seen in the result for printing sends the mode of scanning result, such as, and scanning knot Really:X, Starting mode:Y, the object for starting:Z.
Such as, the data structure needed for Log log acquisition wechat startup interfaces, then the application bag for obtaining wechat can be passed through Name com.tencent.mm, the data structure that wechat Bao Mingyu is obtained is set up after mapping relations, is added to the mapping relations collection In conjunction.
In some embodiments, application data can include application identities.Then step " obtains the boundary for starting intended application Data structure needed for face can include:
Data structure according to needed for application identities and mapping relations set obtain the interface for starting intended application, wherein, Mapping relations set includes the mapping relations between application identities and data structure.
Still by taking wechat as an example, by the mapping relations between the wechat Bao Mingyu data structure that mapping relations set is stored and The application identities (wrapping name) of wechat, just can determine that the data structure started needed for wechat interface.
In certain embodiments, incoming certain parameter is needed (including Starting mode, to start object when starting application interface Deng) could normally start the interface, it is therefore desirable to by the incoming respective interface to start the intended application of interface feature data; That is, flow process can be as follows for step " starting the respective interface of intended application according to the data structure and interface feature data ":
According to data structure to the incoming interface feature data of intended application;
The target interface and its Starting mode for needing to start is determined according to interface feature data;
Target interface is started according to Starting mode.
In specific implementation process, can be according to data structure from the corresponding data of interface feature extracting data, to be counted According to sequence, to intended application incoming data sequence.
Still with above-mentioned data structure " scanning result:X, Starting mode:Y, the object for starting:As a example by Z ", " scanning result ", The name such as " Starting mode " and " startup object " and the sequence of positions in this structure be to maintain it is constant, it is modifiable be after Data X, Y in face, Z.After this data structure is got, this data structure can be imitated from the interface feature data for obtaining It is middle to extract corresponding data, corresponding Data Position is corresponded to, to obtain data sequence, and as a complete parameter The interface of deactivation wechat.
Such as, Quick Response Code is caught by scanning window and is decoded, then obtained the decoding data of Quick Response Code, analyzed this A little data (including application data, interface feature data etc.).If adding good friend's feature containing wechat, start wechat addition good friend During interface, the data (such as contact person, in person information) entrained by the Quick Response Code are carried out according to the data structure for having obtained Biography value, obtains target interface;If containing feature is paid, start the payment interface of wechat, and by the number entrained by Quick Response Code Biography value is carried out according to the data structure having according to startup payment interface, target interface is obtained.
206th, intended application is downloaded in mobile terminal prompting.
In some embodiments, if can jump to interface and apply shop to detect non-installation targets application, Prompting user downloads the intended application.
In certain embodiments, interface can also be jumped to webpage version application interface, and it is aobvious according to interface feature data Show corresponding information.
From the foregoing, it will be observed that a kind of identification code processing method is embodiments provided, by being in locking in mobile terminal During state, identification code process instruction is received, decoding is scanned to target identifying code according to identification code process instruction, to be solved Code data, the decoding data includes:Application data and interface feature data, then, being determined according to application data needs what is started Intended application, then mobile terminal judges whether to be provided with the intended application, if installing, obtains the interface institute for starting intended application The data structure for needing, and the respective interface of intended application is started according to the data structure and interface feature data;If it is not installed, Intended application is downloaded in prompting.The program can be scanned to identification code when mobile terminal is in the lock state and decode and recall Corresponding interface, and perform barcode scanning process after need not unlocking again, the speed of terminal processes identification code is improve, and then lifted The identifying processing efficiency of identification code.
In still another embodiment of the process, a kind of identification code processing meanss are also provided, the identification code processing meanss can be with soft The form of part or hardware is integrated in the terminal, and the terminal can specifically include the equipment such as mobile phone, panel computer, notebook computer. As shown in Figure 10, the identification code processing meanss can include receiver module 301, parsing module 302, determining module 303, acquisition mould Block 304 and starting module, wherein:
Receiver module 301, for when terminal is in the lock state, receiving identification code process instruction.
In the present embodiment, identification code can be Quick Response Code, bar code etc..And triggering terminal receives identification code process instruction Mode can have various, such as, a trigger control can be set in terminal screen lock interface, by click on or slide should Trigger control triggering terminal receives identification code process instruction.
In some embodiments it is possible to trigger control is not provided with, or hiding trigger control, or with software Trigger control is made an application and is installed in the terminal by form, and by the operation such as rocking, tapping identification code process instruction is triggered And receive the instruction.Further, it is also possible to trigger the identification code process instruction by voice-operated mode.
Parsing module 302, for decoding to be scanned to target identifying code in response to identification code process instruction, to be solved Code data, decoding data includes:Application data and interface feature data, wherein, the interface feature data include waiting to open with starting The related data in dynamic interface.
In some embodiments, after identification code process instruction is received, can be with triggering terminal calling system camera Scan operation is performed, wherein, camera can be Front camera, or rearmounted camera.
Such as, scanning window can be shown in terminal display screen, identification code to be scanned is placed in scanning window Row scanning, creates the view interface of identification code scanning, and parses the information of identification code contained in view interface to obtain solving yardage According to.
In some embodiments, decoding data may include application data and interface feature data.Wherein, application data can Being the corresponding data of application message included in identification code, such as Apply Names, application icon.And interface feature data Then can for start interface to be launched when needed for transmission data, such as, and can include interface to be launched interface feature mark, Incoming parameter of Starting mode, needs etc..
Determining module 303, for determining the intended application for needing to start according to application data.
In some embodiments, the application data can be Apply Names, application icon, and terminal can receive lookup and refer to Order, searches the application of Apply Names, application icon matching, as to be launched according to the look-up command from mounted application Intended application.
Wherein, intended application is the application with identification code scan function, be such as integrated with scanning Quick Response Code function APP1, It is integrated with APP2 of scanning bar code function etc..
Acquisition module 304, the data structure needed for for obtaining the interface for starting intended application.
In some embodiments, application data can include application identities, and acquisition module 304 can be used for:
Data structure according to needed for application identities and mapping relations set obtain the interface for starting intended application, wherein, Mapping relations set includes the mapping relations between application identities and data structure.
In some embodiments, the application identities for installing application can be in advance obtained, and application has been installed in startup Interface needed for data structure, the mapping relations between application identities and data structure are then set up, to obtain mapping relations Set.In the data structure needed for needing to obtain the interface for starting intended application, according to application identities and mapping relations set Just the data structure needed for the interface for starting intended application can be obtained.
Starting module 305, for starting the respective interface of intended application according to data structure and interface feature data.
In some embodiments, need incoming certain parameter (right including Starting mode, startup when starting application interface As etc.) could normally start the interface, it is therefore desirable to by the incoming respective interface to start the intended application of interface feature data.
In some embodiments, starting module 305 can be used for:
According to data structure to the incoming interface feature data of intended application;
The target interface and its Starting mode for needing to start is determined according to interface feature data;
Target interface is started according to Starting mode.
In specific implementation process, in incoming interface feature data, can be according to data structure from interface feature data Corresponding data are extracted, data sequence is obtained, then to intended application incoming data sequence.
From the foregoing, it will be observed that embodiments providing a kind of identification code processing meanss, adopt and be in the lock state in terminal When, identification code process instruction is received, decoding is scanned to target identifying code in response to identification code process instruction, to be decoded Data, decoding data includes:Application data and interface feature data, determining further according to application data needs the target for starting to answer With, and the data structure needed for the interface for starting intended application is obtained, open finally according to the data structure and interface feature data The respective interface of moving-target application.The program can improve the speed of terminal processes identification code, and then improve terminal-pair identification The identifying processing efficiency of code, reduces the waste of terminal resource.
A kind of computer equipment is also provided in still another embodiment of the process, including memorizer, processor and is stored in On reservoir and the computer program that can run on a processor, during the computing device computer program any of the above-described knowledge is realized Other code processing method.
The computer equipment can be but be not limited to mobile terminal, below the computer equipment be entered by taking mobile terminal as an example Row is described in detail.
Such as, refer to Figure 11, the mobile terminal 400 can include radio frequency (RF, Radio Frequency) circuit 401, Include memorizer 402, input module 403, display module 404, the biography of one or more computer-readable recording mediums Sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) module 407, include one or one The processor 408 of individual above processing core is with parts such as, power supply 409 and photographic head 410.Those skilled in the art can manage Solution, the mobile terminal structure illustrated in Figure 11 does not constitute the restriction to mobile terminal, can include more more or less than illustrating Part, or combine some parts, or different part arrangements.
Radio circuit 401 can be used to receive and send messages, or in communication process signal reception and transmission, especially, by base station Downlink information receive after, transfer to one or more than one processor 408 processed;In addition, up data is activation will be related to To base station.
Memorizer 402 can be used to store software program and module.Processor 408 is stored in memorizer 402 by operation Software program and module, so as to perform various function application and data processing.Memorizer 402 can mainly include storage journey Sequence area and storage data field, wherein, the application program (ratio that storing program area can be needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored and use created number according to mobile terminal According to (such as voice data, phone directory etc.) etc..
Input module 403 can be used for the numeral or character information of receives input, and produce and user's setting and function The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.
Display module 404 can be used to showing by user input information or be supplied to the information and mobile terminal of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any. Such as, display module 404 can show that mobile terminal is obtained after decoding data by scanning recognition code, be started according to decoding data Intended application respective interface.
Mobile terminal may also include at least one sensor 405, such as gravity sensor, motion sensor and other biographies Sensor.
Voicefrequency circuit 406 can pass through the audio interface that speaker, microphone are provided between user and mobile terminal.Audio-frequency electric The voice data for receiving can be converted into the signal of telecommunication by road 406, be transferred to speaker, be converted to acoustical signal by speaker defeated Go out;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone, and after being received by voicefrequency circuit 406 audio frequency is converted to Data, then after voice data output processor 408 is processed, Jing radio circuits 401 being sent to such as another mobile terminal, or Person exports voice data to memorizer 402 so as to further process.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and mobile terminal can be with by wireless fidelity module 407 Help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet Access.
Processor 408 is the control centre of mobile terminal, using each of various interfaces and the whole mobile terminal of connection Individual part, by operation or performs and is stored in software program and/or module in memorizer 402, and calls and be stored in storage Data in device 402, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Can Choosing, processor 408 may include one or more processing cores;Preferably, processor 408 can integrated application processor and modulation Demodulation processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modulation /demodulation is processed Device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 408.
Mobile terminal also includes the power supply 409 (such as battery) powered to all parts.Preferably, power supply can be by electricity Management system is logically contiguous with processor 408, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 409 can also include one or more direct current or alternating current power supply, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Photographic head 410 (CAMERA or WEBCAM) is also called camera computer, computer eye, electronic eye etc., is that a kind of video is defeated Enter equipment, widely applied to the aspects such as video conference, tele-medicine and monitor in real time.User can also be each other by shooting Head carries out image in network, have sound talk and communication.Furthermore it is also possible to use it for current various popular digital shadows Picture, sound processing.Photographic head can be divided into digital camera and the simulation big class of photographic head two.Digital camera can be by video acquisition The analog video signal that equipment is produced is converted into digital signal, and then is stored in computer.Simulation photographic head is captured Video signal have to pass through specific capure card and convert analog signals into figure pattern, and just can be with after being compressed It is transformed on computer and uses.Digital camera can directly catch image, then be passed to by string, parallel port or USB interface In computer.
Wherein, the photographic head 410 can be the front-facing camera of mobile terminal 400.Further, it is also possible to be mobile terminal 400 Post-positioned pick-up head.Mobile terminal can call photographic head 410 to be scanned identification code, and the information for scanning is sent to into place Reason device 408 is processed, and obtains decoding data, then decoding data is transferred to into the related boundary that associated process starts intended application Face.
Although not shown, mobile terminal can also bag bluetooth module etc..
It is concrete in the present embodiment, the processor 408 in mobile terminal can according to following instruction, by one or one with On the corresponding executable file of process of application program be loaded in memorizer 402, and run by processor 408 and be stored in Application program in memorizer 402, so as to realize various functions:
When mobile terminal is in the lock state, identification code process instruction is received, according to identification code process instruction to target Identification code is scanned decoding, and to obtain decoding data, decoding data includes:Application data and interface feature data, further according to Application data determines the intended application for needing to start, and obtains the data structure needed for the interface for starting intended application, last root Start the respective interface of intended application according to the data structure and interface feature data.
From the foregoing, it will be observed that embodiments providing a kind of computer equipment, the computer equipment passes through at which in lock When determining state, identification code process instruction is received, decoding is scanned to target identifying code according to identification code process instruction, to obtain Decoding data, decoding data includes:Application data and interface feature data, the target for needing to start is determined further according to application data Using, and the data structure needed for the interface for starting intended application is obtained, finally according to the data structure and interface feature data Start the respective interface of intended application.The program can improve computer equipment and process the speed of identification code, and then improve knowledge The identifying processing efficiency of other code.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable recording medium, storage Medium can include:Read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of identification code processing method, device and the computer equipment for being provided the embodiment of the present invention above has been carried out in detail Thin to introduce, program used herein specific case is set forth to the principle and embodiment of the present invention, above example Explanation be only intended to help and understand the method for the present invention and its core concept;Simultaneously for those skilled in the art, foundation The thought of the present invention, will change, in sum, in this specification in specific embodiment and range of applications Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of identification code processing method, it is characterised in that include:
When terminal is in the lock state, identification code process instruction is received;
Decoding is scanned to target identifying code in response to the identification code process instruction, decoding data, the solution yardage is obtained According to including:Application data and interface feature data, wherein, the interface feature data include related to interface to be launched is started Data;
The intended application for needing to start is determined according to the application data;
Obtain the data structure needed for the interface for starting the intended application;
The respective interface of the intended application is started according to the data structure and the interface feature data.
2. identification code processing method as claimed in claim 1, it is characterised in that the application data includes application identities, institute Stating the step of obtaining the data structure needed for the interface for starting the intended application includes:
According to the application identities and mapping relations set, the data structure needed for the interface for starting the intended application is obtained; Wherein, the mapping relations set includes the mapping relations between application identities and data structure.
3. identification code processing method as claimed in claim 2, it is characterised in that methods described also includes:
The application identities of application have been installed in acquisition;
Obtain the data structure needed for the interface for having installed application described in starting;
The mapping relations set up between the application identities and data structure, to obtain the mapping relations set.
4. identification code processing method as claimed in claim 1, it is characterised in that described according to the data structure and the boundary The step of region feature data start the respective interface of the intended application includes:
According to the data structure to the incoming interface feature data of the intended application;
The target interface and its Starting mode for needing to start is determined according to the interface feature data;
The target interface is started according to the Starting mode.
5. identification code processing method as claimed in claim 4, it is characterised in that it is described according to the data structure to the mesh The step of mark is using the incoming interface feature data include:
According to the data structure from the corresponding data of the interface feature extracting data, to obtain data sequence;
To the incoming data sequence of the intended application.
6. identification code processing method as claimed in claim 1, it is characterised in that methods described also includes:
When the respective interface of the intended application starts failure, scan instruction is received;
Call the barcode scanning identification function of the intended application to be scanned the identification code in response to the scan instruction, obtain Barcode scanning information;
The barcode scanning information is parsed, new decoding data is obtained.
7. a kind of identification code processing meanss, it is characterised in that described device includes:
Receiver module, for when terminal is in the lock state, receiving identification code process instruction;
Parsing module, for decoding to be scanned to target identifying code in response to the identification code process instruction, to be decoded Data, the decoding data includes:Application data and interface feature data, wherein, the interface feature data include and startup The related data in interface to be launched;
Determining module, for determining the intended application for needing to start according to the application data;
Acquisition module, the data structure needed for for obtaining the interface for starting the intended application;
Starting module, for starting the corresponding boundary of the intended application according to the data structure and the interface feature data Face.
8. identification code processing meanss as claimed in claim 7, it is characterised in that the application data includes application identities, institute Stating acquisition module is used for:
According to the application identities and mapping relations set, the data structure needed for the interface for starting the intended application is obtained; Wherein, the mapping relations set includes the mapping relations between application identities and data structure.
9. identification code processing meanss as claimed in claim 7, it is characterised in that the starting module is used for:
According to the data structure to the incoming interface feature data of the intended application;
The target interface and its Starting mode for needing to start is determined according to the interface feature data;
The target interface is started according to the Starting mode.
10. a kind of computer equipment, it is characterised in that including memorizer, processor and be stored on the memorizer and can be The computer program run on the processor, it is characterised in that realize such as during computer program described in the computing device Identification code processing method described in any one of claim 1-6.
CN201611207415.1A 2016-12-23 2016-12-23 Identification code processing method and device, and computer equipment Pending CN106610835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611207415.1A CN106610835A (en) 2016-12-23 2016-12-23 Identification code processing method and device, and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611207415.1A CN106610835A (en) 2016-12-23 2016-12-23 Identification code processing method and device, and computer equipment

Publications (1)

Publication Number Publication Date
CN106610835A true CN106610835A (en) 2017-05-03

Family

ID=58636648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611207415.1A Pending CN106610835A (en) 2016-12-23 2016-12-23 Identification code processing method and device, and computer equipment

Country Status (1)

Country Link
CN (1) CN106610835A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423794A (en) * 2017-05-31 2017-12-01 北京安云世纪科技有限公司 The barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs
CN107644188A (en) * 2017-09-30 2018-01-30 联想(北京)有限公司 A kind of information identifying method and electronic equipment
CN108373001A (en) * 2018-02-01 2018-08-07 王学斌 A kind of intelligent industrial robot automation warehousing system
CN109325491A (en) * 2018-08-16 2019-02-12 腾讯科技(深圳)有限公司 Identification code recognition methods, device, computer equipment and storage medium
CN109992176A (en) * 2017-12-28 2019-07-09 北京搜狗科技发展有限公司 A kind of scan method and device of message identification code
CN110163023A (en) * 2019-04-02 2019-08-23 苏州摩比信通智能***有限公司 Quick start machine barcode scanning function and the method and mobile terminal for obtaining barcode scanning result
CN112634891A (en) * 2020-12-17 2021-04-09 广州橙行智动汽车科技有限公司 Identification code response method and device, vehicle-mounted terminal and storage medium
WO2022001600A1 (en) * 2020-07-03 2022-01-06 Oppo广东移动通信有限公司 Information analysis method, apparatus, and device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917132A (en) * 2012-10-23 2013-02-06 上海斐讯数据通信技术有限公司 Mobile terminal with image identification unlocking system and image identification unlocking method
CN105512881A (en) * 2015-12-09 2016-04-20 联动优势电子商务有限公司 Method and terminal for completing payment on the basis of two-dimensional code
CN105528698A (en) * 2016-02-01 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Fast code-scanning payment method and device
CN105718193A (en) * 2015-11-30 2016-06-29 苏州摩比力特电子科技有限公司 Scanning mobile terminal with one-click rapid scanning function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917132A (en) * 2012-10-23 2013-02-06 上海斐讯数据通信技术有限公司 Mobile terminal with image identification unlocking system and image identification unlocking method
CN105718193A (en) * 2015-11-30 2016-06-29 苏州摩比力特电子科技有限公司 Scanning mobile terminal with one-click rapid scanning function
CN105512881A (en) * 2015-12-09 2016-04-20 联动优势电子商务有限公司 Method and terminal for completing payment on the basis of two-dimensional code
CN105528698A (en) * 2016-02-01 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Fast code-scanning payment method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423794A (en) * 2017-05-31 2017-12-01 北京安云世纪科技有限公司 The barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs
CN107423794B (en) * 2017-05-31 2021-07-02 北京安云世纪科技有限公司 Code scanning method and device for graphic coding and mobile terminal
CN107644188A (en) * 2017-09-30 2018-01-30 联想(北京)有限公司 A kind of information identifying method and electronic equipment
CN109992176A (en) * 2017-12-28 2019-07-09 北京搜狗科技发展有限公司 A kind of scan method and device of message identification code
CN108373001A (en) * 2018-02-01 2018-08-07 王学斌 A kind of intelligent industrial robot automation warehousing system
CN109325491A (en) * 2018-08-16 2019-02-12 腾讯科技(深圳)有限公司 Identification code recognition methods, device, computer equipment and storage medium
US11494577B2 (en) 2018-08-16 2022-11-08 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and storage medium for identifying identification code
CN110163023A (en) * 2019-04-02 2019-08-23 苏州摩比信通智能***有限公司 Quick start machine barcode scanning function and the method and mobile terminal for obtaining barcode scanning result
WO2022001600A1 (en) * 2020-07-03 2022-01-06 Oppo广东移动通信有限公司 Information analysis method, apparatus, and device, and storage medium
CN112634891A (en) * 2020-12-17 2021-04-09 广州橙行智动汽车科技有限公司 Identification code response method and device, vehicle-mounted terminal and storage medium

Similar Documents

Publication Publication Date Title
CN106610835A (en) Identification code processing method and device, and computer equipment
CN101155324B (en) Instant communication method and system based on or containing mobile phone book
CN104426963B (en) The method and terminal of associated terminal
CN109697359A (en) A kind of message prompt method, device, storage medium and electronic equipment
CN107423794B (en) Code scanning method and device for graphic coding and mobile terminal
CN109003194B (en) Comment sharing method, terminal and storage medium
CN110035004A (en) A kind of user's business card sharing method, good friend's adding method and relevant apparatus
CN107241655A (en) A kind of video broadcasting method, device, storage medium and terminal
WO2020156255A1 (en) Payment method, device, system, mobile terminal, payment machine, and server
CN108777806A (en) A kind of method for identifying ID, device and storage medium
CN110309422A (en) Method for pushing, server and terminal
CN111246451A (en) Function setting method and device of SIM card, storage medium and terminal
CN107580132A (en) Method for sending information, device, storage medium and electronic equipment
CN112835495A (en) Method and device for opening application program and terminal equipment
CN116089358B (en) Data migration method and electronic equipment
CN105809421A (en) Numerical value transfer method and apparatus
CN105657280A (en) Fast focusing method and device and mobile terminal
CN110046488A (en) Unlocking method, mobile terminal and computer readable storage medium
CN109714483A (en) Locking screen interface message treatment method, device, mobile terminal and storage medium
CN109558099A (en) A kind of file printing method, mobile terminal and storage medium
CN109104722A (en) Terminal access method, apparatus and computer readable storage medium
CN117425227A (en) Method and device for establishing session based on WiFi direct connection
CN111897726B (en) Abnormality positioning method, abnormality positioning device, storage medium and mobile terminal
CN112786022B (en) Terminal, first voice server, second voice server and voice recognition method
CN109976682B (en) Service instruction acquisition method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170503