CN107423794A - The barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs - Google Patents

The barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs Download PDF

Info

Publication number
CN107423794A
CN107423794A CN201710401329.2A CN201710401329A CN107423794A CN 107423794 A CN107423794 A CN 107423794A CN 201710401329 A CN201710401329 A CN 201710401329A CN 107423794 A CN107423794 A CN 107423794A
Authority
CN
China
Prior art keywords
graphs
encoding
barcode scanning
application
intended application
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.)
Granted
Application number
CN201710401329.2A
Other languages
Chinese (zh)
Other versions
CN107423794B (en
Inventor
汤涌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710401329.2A priority Critical patent/CN107423794B/en
Publication of CN107423794A publication Critical patent/CN107423794A/en
Application granted granted Critical
Publication of CN107423794B publication Critical patent/CN107423794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06018Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding
    • G06K19/06028Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The embodiments of the invention provide the barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs, this method includes:Load the first barcode scanning interface and gather the first view data;The encoding of graphs in described first image data is scanned in the first barcode scanning interface;Determine the intended application of the encoding of graphs ownership;Call the encoding of graphs in the intended application scanning described first image data.The embodiment of the present invention provides the unified entrance of barcode scanning for different application, avoid user from searching manually and start application progress barcode scanning corresponding to encoding of graphs, in the case where application is more, when especially encoding of graphs does not indicate corresponding apply, it can quickly determine that intended application carries out barcode scanning, reduce and start the frequency that barcode scanning is attempted in application, improve the simplicity of barcode scanning operation.

Description

The barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs
Technical field
The present invention relates to the technical field of communication, is compiled more particularly to a kind of scan method of encoding of graphs, a kind of figure The scanning means and a kind of mobile terminal of code.
Background technology
With the development of mobile communication technology, the mobile terminal such as mobile phone, tablet personal computer is increasingly popularized, and is existed to people Life, study, work brings great convenience.
In order to meet to learn, working, demand, the user such as entertain and generally install various applications in the terminal, for example, clear Look at device, communication applications, news application, Video Applications, the application of shared bicycle, etc..
Some information, such as user profile, bicycle information, generation encoding of graphs are provided and swept accordingly by these applications Code function, user's barcode scanning is facilitated using related function, such as to add good friend afterwards, hire a car, etc..
In the process, user searches applied corresponding to the encoding of graphs manually, open after encoding of graphs is viewed The application simultaneously starts barcode scanning function, scans the encoding of graphs, and in the case where application is more, especially encoding of graphs is not indicated pair During the application answered, it is difficult to it is determined that using causing to start repeatedly using attempting, barcode scanning is cumbersome.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State a kind of scan method of encoding of graphs of problem and corresponding a kind of scanning means of encoding of graphs, a kind of mobile terminal.
In a first aspect, the embodiments of the invention provide a kind of scan method of encoding of graphs, including:
Load the first barcode scanning interface and gather the first view data;
The encoding of graphs in described first image data is scanned in the first barcode scanning interface;
Determine the intended application of the encoding of graphs ownership;
Call the encoding of graphs in the intended application scanning described first image data.
In a possible design, the encoding of graphs includes Quick Response Code or bar code.
In a possible design, described the step of determining the intended application that the encoding of graphs belongs to, includes:
If the encoding of graphs is Quick Response Code, the Quick Response Code is converted into character string;
Condition code is read from the character string;
Search and applied corresponding to described document information, the intended application as Quick Response Code ownership.
In a possible design, described the step of determining the intended application that the encoding of graphs belongs to, includes:
If the encoding of graphs is bar code, the intended application using specified application as bar code ownership.
In a possible design, described the step of determining the intended application that the encoding of graphs belongs to, includes:
If the application suitable for scanning the encoding of graphs includes master instance object and believed from instance objects, generation prompting Breath;
Selection operation of the detection for the prompt message;
Determine the master instance object corresponding to the selection operation or it is described from instance objects be the encoding of graphs return The intended application of category.
It is described to call encoding of graphs in the application scanning described first image data in a possible design Step includes:
The scan interface for calling the intended application to provide, to scan the encoding of graphs in described first image data.
It is described to call encoding of graphs in the application scanning described first image data in a possible design Step includes:
Link up with the second barcode scanning interface of the intended application and gather the second view data;
Described first image data are replaced into second view data, described in being scanned in the second barcode scanning interface Encoding of graphs in first view data.
In a possible design, the second barcode scanning interface of the hook intended application simultaneously gathers the second picture number According to the step of include:
The intended application is loaded onto in the virtual machine specified;
Function corresponding to the second barcode scanning interface is linked up with the virtual machine.
In a possible design, there is the first barcode scanning frame in the first barcode scanning interface, the encoding of graphs is located at In the barcode scanning frame, there is the second barcode scanning frame in the second barcode scanning interface;
It is described that described first image data are replaced into second view data, to be scanned in the second barcode scanning interface The step of encoding of graphs in described first image data, includes:
Record the barcode scanning region that the first barcode scanning frame is positioned at described first image data;
Described first image data are adjusted, by the second barcode scanning frame described in the barcode scanning regional alignment;
The first view data after adjustment is replaced into second view data, to be scanned in the second barcode scanning frame The encoding of graphs in the first view data after adjustment.
In a possible design, after the step of intended application of the determination encoding of graphs ownership, institute Stating method also includes:
If detecting the application is not installed, loads the download page of the application.
Second aspect, the embodiments of the invention provide a kind of scanning means of encoding of graphs, including:
Barcode scanning interface load-on module, suitable for the first barcode scanning interface of loading and gather the first view data;
First encoding of graphs scan module, suitable for being scanned in the first barcode scanning interface in described first image data Encoding of graphs;
Intended application determining module, for determining the intended application of the encoding of graphs ownership;
Second graph coded scanning module, suitable for calling the figure in the intended application scanning described first image data Coding.
In a possible design, the encoding of graphs includes Quick Response Code or bar code.
In a possible design, the intended application determining module includes:
Character string transform subblock, if being Quick Response Code suitable for the encoding of graphs, the Quick Response Code is converted into character String;
Condition code reading submodule, suitable for reading condition code from the character string;
Using submodule is searched, applied suitable for searching corresponding to described document information, the target as Quick Response Code ownership Using.
In a possible design, the intended application determining module includes:
Using specified submodule, if being bar code suitable for the encoding of graphs, using specified application as the bar shaped The intended application of code ownership.
In a possible design, the intended application determining module includes:
Prompt message generates submodule, if suitable for the application suitable for scanning the encoding of graphs include master instance object and from Instance objects, then generate prompt message;
Selection operation detection sub-module, it is adapted to detect for the selection operation for the prompt message;
Using selection submodule, the master instance object corresponding to the selection operation or described from example pair is adapted to determine that As the intended application belonged to for the encoding of graphs.
In a possible design, the second graph coded scanning module includes:
Scan interface calls submodule, suitable for the scan interface for calling the intended application to provide, to scan described first Encoding of graphs in view data.
In a possible design, the second graph coded scanning module includes:
Submodule is linked up with barcode scanning interface, suitable for linking up with the second barcode scanning interface of the intended application and gathering the second picture number According to;
View data replaces submodule, suitable for described first image data are replaced into second view data, with institute State the encoding of graphs scanned in the second barcode scanning interface in described first image data.
In a possible design, the barcode scanning interface hook submodule includes:
Intended application loading unit, suitable for the intended application is loaded onto in the virtual machine specified;
Function latch hook unit, suitable for linking up with function corresponding to the second barcode scanning interface in the virtual machine.
In a possible design, there is the first barcode scanning frame in the first barcode scanning interface, the encoding of graphs is located at In the barcode scanning frame, there is the second barcode scanning frame in the second barcode scanning interface;
Described image data, which replace submodule, to be included:
Barcode scanning regional record unit, the barcode scanning area of described first image data is positioned at suitable for recording the first barcode scanning frame Domain;
View data adjustment unit, suitable for adjusting described first image data, by described in the barcode scanning regional alignment the Two barcode scanning frames;
View data adjusts replacement unit, suitable for the first view data after adjustment is replaced into second picture number According to scan the encoding of graphs in the first view data after adjustment in the second barcode scanning frame.
In a possible design, in addition to:
Page load-on module is downloaded, if not installing the application suitable for detecting, loads the download page of the application.
The third aspect, the embodiments of the invention provide a kind of mobile terminal, it is characterised in that including processor and storage Device;
The memory is used for the program for storing the scan method for supporting to perform described encoding of graphs;
The processor is configurable for performing the program stored in the memory.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable storage medium, for saving as above-mentioned mobile terminal Computer software instructions used, it, which is included, is used to perform program of the above-mentioned aspect designed by mobile terminal.
The embodiment of the present invention loads the first barcode scanning interface and simultaneously gathers the first view data, and the is scanned in the first barcode scanning interface Encoding of graphs in one view data, the intended application of encoding of graphs ownership is determined, then can call intended application scanning the Encoding of graphs in one view data, the unified entrance of barcode scanning is provided for different application, avoid user from searching manually and start figure Shape encodes corresponding application and carries out barcode scanning, in the case where application is more, when especially encoding of graphs does not indicate corresponding application, It can quickly determine that intended application carries out barcode scanning, reduce and start the frequency that barcode scanning is attempted in application, improve the simplicity of barcode scanning operation Property.
The aspects of the invention or other aspects can more straightforwards in the following description.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of step flow chart of the scan method of encoding of graphs according to an embodiment of the invention;
Fig. 2 shows a kind of exemplary plot at first barcode scanning interface according to an embodiment of the invention;
Fig. 3 shows a kind of exemplary plot of first view data according to an embodiment of the invention;
Fig. 4 is shown according to an embodiment of the invention a kind of scans the first view data in the first barcode scanning interface Exemplary plot;
Fig. 5 shows a kind of exemplary plot of the Quick Response Code of first view data according to an embodiment of the invention;
Fig. 6 shows a kind of exemplary plot at second barcode scanning interface according to an embodiment of the invention;
Fig. 7 is shown according to an embodiment of the invention a kind of scans the first view data in the second barcode scanning interface Exemplary plot;
Fig. 8 shows the processing example figure after a kind of intended application barcode scanning Quick Response Code according to an embodiment of the invention;
Fig. 9 shows a kind of exemplary plot in barcode scanning region according to an embodiment of the invention;
Figure 10 shows a kind of structured flowchart of the scanning means of encoding of graphs according to an embodiment of the invention;And
Figure 11 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Reference picture 1, show a kind of step flow of the scan method of encoding of graphs according to an embodiment of the invention Figure, specifically may include steps of:
Step 101, load the first barcode scanning interface and gather the first view data.
In the specific implementation, the embodiment of the present invention can be applied in the terminal, for example, mobile phone, tablet personal computer, individual Digital assistants, wearable device (such as glasses, wrist-watch) etc..
The operating system of these mobile terminals can include Android (Android), IOS, Windows Phone, Windows Etc..
In an operating system, it will usually preset different types of system application, with for users to use, in order to meet study, Other demands such as work, amusement, user would generally install various types of third-party applications in an operating system, for example, browsing Device, communication applications, news application, Video Applications, etc..
In embodiments of the present invention, one scan application can be generated, (including is with the other application applied independently of barcode scanning System application and/or third-party application) incidence relation is established, provide the unified entrance of barcode scanning for it.
User starts the scanning application, opens the first barcode scanning interface for belonging to barcode scanning application, that is, carries out the boundary of barcode scanning processing Face, barcode scanning processing is carried out to the encoding of graphs of associated application.
For example, as shown in Fig. 2 application for barcode scanning association, can show its application drawing in barcode scanning interface 200 Mark 202, prompt user which application can carry out barcode scanning to.
In one embodiment, camera is configured in the terminal, and barcode scanning application can call the camera to gather View data.
In another embodiment, the local view data of mobile terminal can be imported in the first barcode scanning interface.
For example, as shown in Fig. 2 " photograph album " control 201 can be clicked in barcode scanning interface 200, from mobile terminal local A frame image data is selected to be imported in photograph album.
As shown in figure 3, user have selected a frame image data, the Imagery Data Recording instant messaging account of other users Number information.
As shown in figure 4, user select view data after, can in barcode scanning interface 200 embedded images data, with treat into Row barcode scanning.
Step 102, the encoding of graphs in described first image data is scanned in the first barcode scanning interface.
Encoding of graphs, it can refer to and different pieces of information figure is distributed with certain specific geometric figure according to certain rules.
In the specific implementation, encoding of graphs can include Quick Response Code or bar code.
Wherein, bar code i.e. include EAN codes, 39 yards, intersection 25 yards, UPC code, 128 yards, 93 yards, ISBN codes, Codabar (storehouses Moral bar code), etc..
Quick Response Code can include stack Quick Response Code, row row's formula Quick Response Code, matrix two-dimensional code.
For example, stack/row row's formula Quick Response Code includes Code 16K, Code 49, PDF417, etc.;Matrix two-dimensional code Including Aztec, Maxi Code, QR Code, Data Matrix, etc..
Therefore, the first application can identify figure according to the rule from the first view data in the first barcode scanning interface Shape encodes.
Furthermore, the first barcode scanning frame is provided with the first barcode scanning interface, the first barcode scanning frame is aligned by user schemes As the encoding of graphs in data, then the part image data that barcode scanning application can be directed in the first barcode scanning frame carries out encoding of graphs Parsing.
For example, as shown in figure 4, there is the first barcode scanning frame 203 in the first barcode scanning interface 200, then barcode scanning application can be with pin Encoding of graphs is parsed to the part image data in the first barcode scanning frame 203, obtains Quick Response Code as shown in Figure 5.
Step 103, the intended application of the encoding of graphs ownership is determined.
In the specific implementation, can search the target that encoding of graphs belongs in the other application of barcode scanning association and answer With the i.e. application suitable for carrying out barcode scanning processing to the encoding of graphs.
In one embodiment of the invention, step 103 can include following sub-step:
Sub-step S11, if the encoding of graphs is Quick Response Code, the Quick Response Code is converted into character string.
Sub-step S12, condition code is read from the character string.
Sub-step S13, search and applied corresponding to described document information, the intended application as Quick Response Code ownership.
In embodiments of the present invention, Quick Response Code can be converted into character string, such as URL according to the coding rule of Quick Response Code (Uniform Resource Locator, URL).
Each distinctive condition code of application is read from the specified location in the character string, such as URL domain name, then can be identified Corresponding application, the intended application as Quick Response Code ownership.
It should be noted that may be different for the business rule of different application, it generates the character string of Quick Response Code Form it is also different, it is such as also different using ciphertext generation Quick Response Code, the position of corresponding condition code, form etc., The embodiment of the present invention is not any limitation as to this.
For example, as shown in figure 4, the Quick Response Code that barcode scanning is parsed in the first barcode scanning frame 203 using reading, is converted into word Symbol string, obtains following URL:
http://qm.***.com/cgi-bin/qm/qrK=MpZWCoigdyycITW7U54GIt3UCw1tTJQE
Wherein, " * * * " are domain name, as condition code.
Barcode scanning application identifies domain name " after * * * ", it may be determined that " * * * " are belonging to some instant messaging application to the domain name The website domain name of manufacturer, it is determined that it is intended application that the instant messaging, which is applied,.
In another embodiment of the present invention, step 103 can include following sub-step:
Sub-step S21, if the encoding of graphs is bar code, the mesh using specified application as bar code ownership Mark application.
Bar code can mark the producing country of article, manufacturing firm, trade name, date of manufacture, book classification number, mail The information such as start-stop place, classification, date, typically it is not some application specific.
Therefore, for bar code, it is possible to specify one or more provides the application of bar code analytic ability, such as instant messaging Using, shopping application, logistical applications etc., as intended application.
In another embodiment of the present invention, step 103 can include following sub-step:
Sub-step S31, if the application suitable for scanning the encoding of graphs includes master instance object and from instance objects, give birth to Into prompt message.
Sub-step S32, selection operation of the detection for the prompt message.
Sub-step S33, determine the master instance object corresponding to the selection operation or it is described from instance objects be described The intended application of encoding of graphs ownership.
In actual applications, some applications are limited in the quantity of mobile terminal installation, or, some application limitation accounts are stepped on The quantity of record, generally, it is limited to that an application is installed, logs in an account.
In the case of the multiple applications of demand or multiple accounts, new instance objects can be generated to the application, relatively For, former instance objects are referred to as master instance object, and new instance objects are referred to as from instance objects, also referred to as attended to anything else.
Specifically, from instance objects independently of the master instance object, i.e. process and master instance object from instance objects Process it is separate, master instance object and there is independent running environment from instance objects, wherein, the running environment can wrap Include movable Activity, service Service, content provider Content Provider and radio receiver Broadcast Receiver etc..
Further, the master instance object includes the information such as master instance mark, the first package name, should be from instance objects Including from information such as instance identification, the second package names.
Wherein, master instance mark is with from instance identification and differing, so as to ensure that same application has different examples The realization of object.
First packet is the packet that main instance objects are communicated, and second packet is to be carried out from instance objects The packet of communication, the first package name and the second package name also differ, also, first package name with And second package name can customize, such as wrap entitled com.tencent.mm, entitled com.tencent.mm1 is wrapped in increase, During writing application, bag name can not be fixed, such as Intent.
Further, different storage locations of the master instance object from may be at identical file system from instance objects, and And it can be exchanged visits between different instance objects.It is 1 from instance identification for example, if master instance is identified as 0, master instance pair As caused data storage is in/data/data/XXXX/ ,/sdcard/Android/data/XXX/;Produced from instance objects Raw data storage is in/data/data/XXX/.1/ ,/sdcard/Android/data/XXX/.1/.
In actual applications, the first login account can be used to log in master instance object, and, use the second login account Log in from instance objects, wherein, the first login account can be with identical with the second login account, can also be different.If from example pair Multiple as having, then the plurality of the second login account from instance objects can also be different.
In embodiments of the present invention, if the application suitable for scanning patter coding has master instance object and from instance objects, Then prompt message can be generated to master instance object and from instance objects, prompt user to be selected.
Treat that user is operated by the operation triggering selection such as click, then can be using master instance object or from instance objects as figure Encode the intended application of ownership.
Step 104, the encoding of graphs in the intended application scanning described first image data is called.
If it is determined that the intended application of encoding of graphs ownership, then can be with the locally-installed application of barcode scanning mobile terminal.
If detecting installation targets application, the intended application can be called, in the view data of automatically scanning first Encoding of graphs.
If detecting non-installation targets application, the download page of loaded targets application.
Furthermore, installing pipe ought to be used in the terminal, and the management application can be connected using distribution platform, will The information (such as title) of intended application, which is sent to the management application, the management application, to obtain the mesh from application distribution platform Mark the download page of application, there is provided download to user.
In one embodiment of the invention, step 104 can include following sub-step:
Sub-step S41, the scan interface for calling the intended application to provide, to scan the figure in described first image data Shape encodes.
Intended application provides scan interface, and the scan interface belongs to API (Application Programming Interface, application programming interface) interface, the barcode scanning work(of the intended application can be directly invoked by the scan interface Energy.
For example, some, which pays application, provides scan interface, other application (such as purchases by group application, shopping application, shared bicycle Using etc.) the scan interface barcode scanning encoding of graphs can be directly invoked, quickly jump to the payment interface or receipts of payment application Money interface.
In embodiments of the present invention, the scan interface of intended application offer can be provided, scan the first view data In the encoding of graphs that includes.
In one embodiment of the invention, step 104 can include following sub-step:
Sub-step S51, link up with the second barcode scanning interface of the intended application and gather the second view data.
Link up with (Hook), also known as hook, certain message of specified window is monitored using sub- journey can be set above, and And the window monitored can be that other processes are created, after message reaches, handled before target window processing function It.
In one embodiment of the invention, intended application can be loaded onto in the virtual machine specified, in virtual machine Link up with function corresponding to the second barcode scanning interface.
In embodiments of the present invention, operating system can be modified, the virtual machine of custom fitting application extension component, Communication applications are loaded onto in the virtual machine and run so that application extension component can to the communication applications carry out dynamic expansion and Repair, for example, cloud reparation, cloud advertisement, module decoupling, black science and technology, etc..
Application extension component includes running environment, active threads, installation kit and the part of component file four.
Wherein, running environment is responsible for providing core competence, and active threads are responsible for building running environment, and installation kit is responsible for offer The administrative mechanism such as core interface and authentication, and final functional characteristic is provided by component file.
Running environment be exclusively for application extension component provide transformation java class and method ability (such as:Hook Hook) Customize Android running environment (such as ART).
Active threads are used for the mechanism for providing a set of judgement and startup application extension component, so as to reduce application extension component To the performance impact of application.
Can by passage path quickly judge using whether need application extension component support in a manner of come decide whether correspondingly With charging assembly file to carry out ability extension.
Installation kit is started using provider's signature, the interface required for its internal component file for carrying basis.It is this to connect Mouth is the set of an API (Application Programming Interface, application programming interface), for dropping Low application extension component is also reduced when charging assembly file to application performance shadow to the EMS memory occupation amount of application Ring.
Interface is a Jar bag, for being used during developer's developer component file.There is provided in Jar bags conventional basic API so that component file can dynamically change java class and method and some methods of Hook.
Component file can be internally integrated by installation kit, be easy to Version Control and reduced component file size.Can based on interface To develop more general basic storehouses and expanding library.Wherein expanding library is not concrete function, but to realize some specific work( Some necessary abilities can be provided, can be shared with various modules.
Component file is the main body for realizing business function, and each component file includes multiple class abstract objects and method is taken out As object.Wherein, a class abstract object can include multiple method abstract objects.Class abstract object is to Hook to be carried out Class it is abstract, and method abstract object is to the abstract of Hook to be carried out method, is mapping relations between them.Some tool The function of body is realized in a shared manner after getting information by method abstract object by multiple class abstract objects.
Sub-step S52, described first image data are replaced into second view data, with the second barcode scanning interface Encoding of graphs in middle scanning described first image data.
The second view data gathered during the second barcode scanning interface is linked up with to be supplied to intended application to carry out barcode scanning use, if will Second view data replaces with the first view data, then intended application can be allowed to sweep the encoding of graphs being adapted to containing it Code.
Furthermore, the second barcode scanning frame is provided with the second barcode scanning interface, then intended application can be swept for second Part image data in code frame carries out the parsing of encoding of graphs.
For example, as shown in fig. 6, there is the second barcode scanning frame 601 in the second barcode scanning interface 600, then intended application can be with pin Encoding of graphs is parsed to the part image data in the second barcode scanning frame 601, is handled accordingly after parsing.
As shown in Figure 7, it is assumed that the intended application is instant messaging application, is embedded in the second barcode scanning interface 600 such as Fig. 3 institutes The first view data shown, then instant messaging application can scan and obtain to the part image data in the second barcode scanning frame 601 Quick Response Code as shown in Figure 5, good friend as shown in Figure 8 is jumped to after parsing and adds interface, can in the good friend adds interface To check the essential information of the user account (i.e. " 12345678 "), such as head portrait, space, good friend can also be initiated and add behaviour Make.
In an example of the embodiment of the present invention, there is the first barcode scanning frame in the first barcode scanning interface, encoding of graphs is located at In barcode scanning frame, there is the second barcode scanning frame in the second barcode scanning interface;Then in this example, sub-step S52 can further be included such as Lower sub-step:
Sub-step S521, record the barcode scanning region that the first barcode scanning frame is positioned at described first image data.
Sub-step S522, described first image data are adjusted, by the second barcode scanning frame described in the barcode scanning regional alignment.
Sub-step S523, the first view data after adjustment is replaced into second view data, with described second The encoding of graphs in the first view data in barcode scanning frame after scanning adjustment.
Because the position of the second barcode scanning frame of different application may be different, in this example, can be answered according to difference The position of second barcode scanning frame, is adjusted to the first view data, to be embedded in the first image in the second barcode scanning interface When, the encoding of graphs in the first view data is fallen into the second barcode scanning frame so that application can carry out barcode scanning.
Furthermore, in the success of barcode scanning application barcode scanning, the first barcode scanning frame of record is projected in sweeping for the first view data Code region, it is if the position in the barcode scanning region is not alignd with the position of the second barcode scanning frame, i.e., both underlapped, then can be to the One view data such as moves, stretched at the adjustment so that both are overlapping, and now, the first view data after adjustment is embedded in During the second barcode scanning interface, the encoding of graphs of the first view data is fallen into second scan box at the second barcode scanning interface.
It should be noted that the collection of the hook at the second barcode scanning interface, the second view data, the replacement of the second view data (i.e. sub-step S51, sub-step S52), is typically handled on the backstage of operating system, and user is sightless.
The operations such as hook of the embodiment of the present invention are carried out on operating system backstage, and user is invisible, reduces to front-end operations Caused by influence, ensure that Consumer's Experience.
For example, as shown in figure 4, in the first barcode scanning of barcode scanning application scanning interface 200 first barcode scanning frame 203 Quick Response Code, can So that the first barcode scanning frame 203 is recorded as into barcode scanning region 900 as shown in Figure 9 in the position of the first view data, the Quick Response Code exists In barcode scanning region 900, the second barcode scanning frame 600 for barcode scanning region 900 being aligned in the second barcode scanning interface 600 as shown in Figure 6 makes Quick Response Code is obtained to fall into the second barcode scanning frame 600.
Wherein, the second barcode scanning interface 600 is in the backstage of operating system, and user is invisible, intended application as shown in Figure 8 Good friend after barcode scanning adds interface, is that user is visible.
The embodiment of the present invention loads the first barcode scanning interface and simultaneously gathers the first view data, and the is scanned in the first barcode scanning interface Encoding of graphs in one view data, the intended application of encoding of graphs ownership is determined, then can call intended application scanning the Encoding of graphs in one view data, the unified entrance of barcode scanning is provided for different application, avoid user from searching manually and start figure Shape encodes corresponding application and carries out barcode scanning, in the case where application is more, when especially encoding of graphs does not indicate corresponding application, It can quickly determine that intended application carries out barcode scanning, reduce and start the frequency that barcode scanning is attempted in application, improve the simplicity of barcode scanning operation Property.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know, specification Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Reference picture 10, show a kind of structural frames of the scanning means of encoding of graphs according to an embodiment of the invention Figure, can specifically include following module:
Barcode scanning interface load-on module 1001, suitable for the first barcode scanning interface of loading and gather the first view data;
First encoding of graphs scan module 1002, suitable for scanning described first image data in the first barcode scanning interface In encoding of graphs;
Intended application determining module 1003, for determining the intended application of the encoding of graphs ownership;
Second graph coded scanning module 1004, suitable for calling in the intended application scanning described first image data Encoding of graphs.
In one embodiment of the invention, the encoding of graphs includes Quick Response Code or bar code.
In one embodiment of the invention, the intended application determining module 1003 includes:
Character string transform subblock, if being Quick Response Code suitable for the encoding of graphs, the Quick Response Code is converted into character String;
Condition code reading submodule, suitable for reading condition code from the character string;
Using submodule is searched, applied suitable for searching corresponding to described document information, the target as Quick Response Code ownership Using.
In one embodiment of the invention, the intended application determining module 1003 includes:
Using specified submodule, if being bar code suitable for the encoding of graphs, using specified application as the bar shaped The intended application of code ownership.
In one embodiment of the invention, the intended application determining module 1003 includes:
Prompt message generates submodule, if suitable for the application suitable for scanning the encoding of graphs include master instance object and from Instance objects, then generate prompt message;
Selection operation detection sub-module, it is adapted to detect for the selection operation for the prompt message;
Using selection submodule, the master instance object corresponding to the selection operation or described from example pair is adapted to determine that As the intended application belonged to for the encoding of graphs.
In one embodiment of the invention, the second graph coded scanning module 1004 includes:
Scan interface calls submodule, suitable for the scan interface for calling the intended application to provide, to scan described first Encoding of graphs in view data.
In one embodiment of the invention, the second graph coded scanning module 1004 includes:
Submodule is linked up with barcode scanning interface, suitable for linking up with the second barcode scanning interface of the intended application and gathering the second picture number According to;
View data replaces submodule, suitable for described first image data are replaced into second view data, with institute State the encoding of graphs scanned in the second barcode scanning interface in described first image data.
In one embodiment of the invention, the barcode scanning interface hook submodule includes:
Intended application loading unit, suitable for the intended application is loaded onto in the virtual machine specified;
Function latch hook unit, suitable for linking up with function corresponding to the second barcode scanning interface in the virtual machine.
In one embodiment of the invention, there is the first barcode scanning frame, the encoding of graphs in the first barcode scanning interface In the barcode scanning frame, there is the second barcode scanning frame in the second barcode scanning interface;
Described image data, which replace submodule, to be included:
Barcode scanning regional record unit, the barcode scanning area of described first image data is positioned at suitable for recording the first barcode scanning frame Domain;
View data adjustment unit, suitable for adjusting described first image data, by described in the barcode scanning regional alignment the Two barcode scanning frames;
View data adjusts replacement unit, suitable for the first view data after adjustment is replaced into second picture number According to scan the encoding of graphs in the first view data after adjustment in the second barcode scanning frame.
In one embodiment of the invention, in addition to:
Page load-on module is downloaded, if not installing the application suitable for detecting, loads the download page of the application.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
The embodiment of the present invention additionally provides mobile terminal, as shown in figure 11, for convenience of description, illustrate only and the present invention The related part of embodiment, particular technique details do not disclose, refer to present invention method part.The terminal can be Including mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, so that terminal is mobile phone as an example:
Figure 11 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention.Reference chart 11, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1110, memory 1120, input block 1130, display unit 1140th, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (wireless fidelity, WiFi) module 1170, processor The part such as 1180 and power supply 1190.It will be understood by those skilled in the art that the handset structure shown in Figure 11 is not formed pair The restriction of mobile phone, it can include than illustrating more or less parts, either combine some parts or different part cloth Put.
Each component parts of mobile phone is specifically introduced with reference to Figure 11:
RF circuits 1110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, handled to processor 1180;In addition, it is sent to base station by up data are designed.Generally, RF circuits 1110 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1110 can also be led to by radio communication and network and other equipment Letter.Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 1120 can be used for storage software program and module, and processor 1180 is stored in memory by operation 1120 software program and module, so as to perform the various function application of mobile phone and data processing.Memory 1120 can be led To include storing program area and storage data field, wherein, storing program area can storage program area, needed at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data field can store uses institute according to mobile phone Data (such as voice data, phone directory etc.) of establishment etc..Stored in addition, memory 1120 can include high random access Device, nonvolatile memory can also be included, a for example, at least disk memory, flush memory device or other volatibility are consolidated State memory device.
Input block 1130 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with And the key signals input that function control is relevant.Specifically, input block 1130 may include contact panel 1131 and other inputs Equipment 1132.Contact panel 1131, also referred to as touch-screen, collect touch operation (such as user of the user on or near it Use the behaviour of any suitable object such as finger, stylus or annex on contact panel 1131 or near contact panel 1131 Make), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1131 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 1180, and the order sent of reception processing device 1180 and can be performed.In addition, The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 1131.Except touch surface Plate 1131, input block 1130 can also include other input equipments 1132.Specifically, other input equipments 1132 can include But it is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. It is one or more.
Display unit 1140 can be used for display by user input information or be supplied to user information and mobile phone it is each Kind menu.Display unit 1140 may include display panel 1141, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1141.Further, contact panel 1131 can cover display panel 1141, when contact panel 1131 detects To after the touch operation on or near it, processor 1180 is sent to determine the type of touch event, is followed by subsequent processing device 1180 provide corresponding visual output according to the type of touch event on display panel 1141.Although in fig. 11, touch surface Plate 1131 and display panel 1141 are the parts independent as two to realize the input of mobile phone and input function, but some In embodiment, contact panel 1131 and display panel 1141 can be integrated and realize input and the output function of mobile phone.
Mobile phone may also include at least one sensor 1150, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1141, proximity transducer can close display panel when mobile phone is moved in one's ear 1141 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) and add The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the COBBAIF between user and mobile phone.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 1161, is changed by loudspeaker 1161 by circuit 1160 Exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, by voicefrequency circuit 1160 Voice data is converted to after reception, then after voice data output processor 1180 is handled, through RF circuits 1110 to be sent to ratio Such as another mobile phone, or voice data is exported to memory 1120 further to handle.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 1170 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 11 is shown WiFi module 1170, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 1180 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, By running or performing the software program and/or module that are stored in memory 1120, and call and be stored in memory 1120 Interior data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 1180 may include one or more processing units;Preferably, processor 1180 can integrate application processor and modulation /demodulation processing Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1180.
Mobile phone also includes the power supply 1190 (such as battery) to all parts power supply, it is preferred that power supply can pass through power supply Management system and processor 1180 are logically contiguous, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 1180 included by the terminal also has following functions:
Load the first barcode scanning interface and gather the first view data;
The encoding of graphs in described first image data is scanned in the first barcode scanning interface;
Determine the intended application of the encoding of graphs ownership;
Call the encoding of graphs in the intended application scanning described first image data.
Alternatively, the encoding of graphs includes Quick Response Code or bar code.
Alternatively, the processor 1180 included by the terminal also has following functions:
If the encoding of graphs is Quick Response Code, the Quick Response Code is converted into character string;
Condition code is read from the character string;
Search and applied corresponding to described document information, the intended application as Quick Response Code ownership.
Alternatively, the processor 1180 included by the terminal also has following functions:
If the encoding of graphs is bar code, the intended application using specified application as bar code ownership.
Alternatively, the processor 1180 included by the terminal also has following functions:
If the application suitable for scanning the encoding of graphs includes master instance object and believed from instance objects, generation prompting Breath;
Selection operation of the detection for the prompt message;
Determine the master instance object corresponding to the selection operation or it is described from instance objects be the encoding of graphs return The intended application of category.
Alternatively, the processor 1180 included by the terminal also has following functions:
The scan interface for calling the intended application to provide, to scan the encoding of graphs in described first image data.
Alternatively, the processor 1180 included by the terminal also has following functions:
Link up with the second barcode scanning interface of the intended application and gather the second view data;
Described first image data are replaced into second view data, described in being scanned in the second barcode scanning interface Encoding of graphs in first view data.
Alternatively, the processor 1180 included by the terminal also has following functions:
The intended application is loaded onto in the virtual machine specified;
Function corresponding to the second barcode scanning interface is linked up with the virtual machine.
Alternatively, there is the first barcode scanning frame in the first barcode scanning interface, the encoding of graphs is located in the barcode scanning frame, There is the second barcode scanning frame in the second barcode scanning interface;Processor 1180 included by the terminal also has following functions:
It is described that described first image data are replaced into second view data, to be scanned in the second barcode scanning interface The step of encoding of graphs in described first image data, includes:
Record the barcode scanning region that the first barcode scanning frame is positioned at described first image data;
Described first image data are adjusted, by the second barcode scanning frame described in the barcode scanning regional alignment;
The first view data after adjustment is replaced into second view data, to be scanned in the second barcode scanning frame The encoding of graphs in the first view data after adjustment.
Alternatively, the processor 1180 included by the terminal also has following functions:
If detecting the application is not installed, loads the download page of the application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
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 To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Can be with one of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method is The hardware of correlation is instructed to complete by program, described program can be stored in a kind of computer-readable recording medium, on It can be read-only storage to state the storage medium mentioned, disk or CD etc..
A kind of mobile terminal provided by the present invention is described in detail above, for the general technology people of this area Member, according to the thought of the embodiment of the present invention, there will be changes in specific embodiments and applications, in summary, This specification content should not be construed as limiting the invention.
The embodiment of the invention discloses A1, a kind of scan method of encoding of graphs, including:
Load the first barcode scanning interface and gather the first view data;
The encoding of graphs in described first image data is scanned in the first barcode scanning interface;
Determine the intended application of the encoding of graphs ownership;
Call the encoding of graphs in the intended application scanning described first image data.
A2, the method as described in A1, the encoding of graphs include Quick Response Code or bar code.
A3, the method as described in A2, described the step of determining the intended application that the encoding of graphs belongs to, include:
If the encoding of graphs is Quick Response Code, the Quick Response Code is converted into character string;
Condition code is read from the character string;
Search and applied corresponding to described document information, the intended application as Quick Response Code ownership.
A4, the method as described in A2, described the step of determining the intended application that the encoding of graphs belongs to, include:
If the encoding of graphs is bar code, the intended application using specified application as bar code ownership.
A5, the method as described in A1 or A2 or A3 or A4, the step of the intended application for determining the encoding of graphs ownership Suddenly include:
If the application suitable for scanning the encoding of graphs includes master instance object and believed from instance objects, generation prompting Breath;
Selection operation of the detection for the prompt message;
Determine the master instance object corresponding to the selection operation or it is described from instance objects be the encoding of graphs return The intended application of category.
A6, the method as described in A1 or A2 or A3 or A4, it is described to call in the application scanning described first image data Encoding of graphs the step of include:
The scan interface for calling the intended application to provide, to scan the encoding of graphs in described first image data.
A7, the method as described in A1 or A2 or A3 or A4, it is described to call in the application scanning described first image data Encoding of graphs the step of include:
Link up with the second barcode scanning interface of the intended application and gather the second view data;
Described first image data are replaced into second view data, described in being scanned in the second barcode scanning interface Encoding of graphs in first view data.
A8, the method as described in A7, the second barcode scanning interface of the hook intended application simultaneously gather the second picture number According to the step of include:
The intended application is loaded onto in the virtual machine specified;
Function corresponding to the second barcode scanning interface is linked up with the virtual machine.
A9, the method as described in A7, there is the first barcode scanning frame in the first barcode scanning interface, the encoding of graphs is located at institute State in barcode scanning frame, there is the second barcode scanning frame in the second barcode scanning interface;
It is described that described first image data are replaced into second view data, to be scanned in the second barcode scanning interface The step of encoding of graphs in described first image data, includes:
Record the barcode scanning region that the first barcode scanning frame is positioned at described first image data;
Described first image data are adjusted, by the second barcode scanning frame described in the barcode scanning regional alignment;
The first view data after adjustment is replaced into second view data, to be scanned in the second barcode scanning frame The encoding of graphs in the first view data after adjustment.
A10, the method as described in A1 or A2 or A3 or A4 or A8 or A9, in the mesh for determining the encoding of graphs ownership After the step of mark application, methods described also includes:
If detecting the application is not installed, loads the download page of the application.
The embodiment of the invention also discloses B11, a kind of scanning means of encoding of graphs, including:
Barcode scanning interface load-on module, suitable for the first barcode scanning interface of loading and gather the first view data;
First encoding of graphs scan module, suitable for being scanned in the first barcode scanning interface in described first image data Encoding of graphs;
Intended application determining module, for determining the intended application of the encoding of graphs ownership;
Second graph coded scanning module, suitable for calling the figure in the intended application scanning described first image data Coding.
B12, the device as described in B11, the encoding of graphs include Quick Response Code or bar code.
B13, the device as described in B12, the intended application determining module include:
Character string transform subblock, if being Quick Response Code suitable for the encoding of graphs, the Quick Response Code is converted into character String;
Condition code reading submodule, suitable for reading condition code from the character string;
Using submodule is searched, applied suitable for searching corresponding to described document information, the target as Quick Response Code ownership Using.
B14, the device as described in B12, the intended application determining module include:
Using specified submodule, if being bar code suitable for the encoding of graphs, using specified application as the bar shaped The intended application of code ownership.
B15, the device as described in B11 or B12 or B13 or B14, the intended application determining module include:
Prompt message generates submodule, if suitable for the application suitable for scanning the encoding of graphs include master instance object and from Instance objects, then generate prompt message;
Selection operation detection sub-module, it is adapted to detect for the selection operation for the prompt message;
Using selection submodule, the master instance object corresponding to the selection operation or described from example pair is adapted to determine that As the intended application belonged to for the encoding of graphs.
B16, the device as described in B11 or B12 or B13 or B14, the second graph coded scanning module include:
Scan interface calls submodule, suitable for the scan interface for calling the intended application to provide, to scan described first Encoding of graphs in view data.
B17, the device as described in B11 or B12 or B13 or B14, the second graph coded scanning module include:
Submodule is linked up with barcode scanning interface, suitable for linking up with the second barcode scanning interface of the intended application and gathering the second picture number According to;
View data replaces submodule, suitable for described first image data are replaced into second view data, with institute State the encoding of graphs scanned in the second barcode scanning interface in described first image data.
B18, the device as described in B17, the barcode scanning interface hook submodule include:
Intended application loading unit, suitable for the intended application is loaded onto in the virtual machine specified;
Function latch hook unit, suitable for linking up with function corresponding to the second barcode scanning interface in the virtual machine.
B19, the device as described in B17, there is the first barcode scanning frame in the first barcode scanning interface, the encoding of graphs is located at In the barcode scanning frame, there is the second barcode scanning frame in the second barcode scanning interface;
Described image data, which replace submodule, to be included:
Barcode scanning regional record unit, the barcode scanning area of described first image data is positioned at suitable for recording the first barcode scanning frame Domain;
View data adjustment unit, suitable for adjusting described first image data, by described in the barcode scanning regional alignment the Two barcode scanning frames;
View data adjusts replacement unit, suitable for the first view data after adjustment is replaced into second picture number According to scan the encoding of graphs in the first view data after adjustment in the second barcode scanning frame.
B20, the device as described in B11 or B12 or B13 or B14 or B18 or B19, in addition to:
Page load-on module is downloaded, if not installing the application suitable for detecting, loads the download page of the application.
The embodiment of the invention also discloses C21, a kind of mobile terminal, including processor and memory;
The memory, which is used to store, supports to perform A1 to the program of the scan method of the encoding of graphs described in A10;
The processor is configurable for performing the program stored in the memory.

Claims (10)

1. a kind of scan method of encoding of graphs, including:
Load the first barcode scanning interface and gather the first view data;
The encoding of graphs in described first image data is scanned in the first barcode scanning interface;
Determine the intended application of the encoding of graphs ownership;
Call the encoding of graphs in the intended application scanning described first image data.
2. the method as described in claim 1, it is characterised in that the encoding of graphs includes Quick Response Code or bar code.
3. method as claimed in claim 2, it is characterised in that the step of the intended application for determining the encoding of graphs ownership Suddenly include:
If the encoding of graphs is Quick Response Code, the Quick Response Code is converted into character string;
Condition code is read from the character string;
Search and applied corresponding to described document information, the intended application as Quick Response Code ownership.
4. method as claimed in claim 2, it is characterised in that the step of the intended application for determining the encoding of graphs ownership Suddenly include:
If the encoding of graphs is bar code, the intended application using specified application as bar code ownership.
5. method as claimed in claim 1 or 2 or 3 or 4, it is characterised in that the mesh for determining the encoding of graphs ownership The step of mark application, includes:
If the application suitable for scanning the encoding of graphs includes master instance object and from instance objects, prompt message is generated;
Selection operation of the detection for the prompt message;
Determine the master instance object corresponding to the selection operation or it is described from instance objects be the encoding of graphs ownership Intended application.
6. method as claimed in claim 1 or 2 or 3 or 4, it is characterised in that described to call first described in the application scanning The step of encoding of graphs in view data, includes:
The scan interface for calling the intended application to provide, to scan the encoding of graphs in described first image data.
7. method as claimed in claim 1 or 2 or 3 or 4, it is characterised in that described to call first described in the application scanning The step of encoding of graphs in view data, includes:
Link up with the second barcode scanning interface of the intended application and gather the second view data;
Described first image data are replaced into second view data, to scan described first in the second barcode scanning interface Encoding of graphs in view data.
8. method as claimed in claim 7, it is characterised in that simultaneously adopt at the second barcode scanning interface of the hook intended application The step of collecting the second view data includes:
The intended application is loaded onto in the virtual machine specified;
Function corresponding to the second barcode scanning interface is linked up with the virtual machine.
9. a kind of scanning means of encoding of graphs, including:
Barcode scanning interface load-on module, suitable for the first barcode scanning interface of loading and gather the first view data;
First encoding of graphs scan module, suitable for scanning the figure in described first image data in the first barcode scanning interface Coding;
Intended application determining module, for determining the intended application of the encoding of graphs ownership;
Second graph coded scanning module, suitable for calling the figure in the intended application scanning described first image data to compile Code.
10. a kind of mobile terminal, including processor and memory;
The memory, which is used to store, supports perform claim requirement 1 to the scan method of the encoding of graphs described in claim 8 Program;
The processor is configurable for performing the program stored in the memory.
CN201710401329.2A 2017-05-31 2017-05-31 Code scanning method and device for graphic coding and mobile terminal Active CN107423794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710401329.2A CN107423794B (en) 2017-05-31 2017-05-31 Code scanning method and device for graphic coding and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710401329.2A CN107423794B (en) 2017-05-31 2017-05-31 Code scanning method and device for graphic coding and mobile terminal

Publications (2)

Publication Number Publication Date
CN107423794A true CN107423794A (en) 2017-12-01
CN107423794B CN107423794B (en) 2021-07-02

Family

ID=60429566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710401329.2A Active CN107423794B (en) 2017-05-31 2017-05-31 Code scanning method and device for graphic coding and mobile terminal

Country Status (1)

Country Link
CN (1) CN107423794B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182039A (en) * 2017-12-21 2018-06-19 厦门攸信信息技术有限公司 Phonetic transmission method and system
CN109117906A (en) * 2018-09-28 2019-01-01 大连亿辉科技有限公司 Book service system
CN109583259A (en) * 2019-01-30 2019-04-05 维沃移动通信有限公司 Information identifying method and terminal device
CN109948394A (en) * 2019-03-28 2019-06-28 尤尼泰克(嘉兴)信息技术有限公司 A kind of acquisition methods of two-dimensional code data carrier
CN110097354A (en) * 2019-04-11 2019-08-06 厦门快商通信息咨询有限公司 A kind of Auto-matching method of payment, device, terminal and storage medium based on barcode scanning payment
CN111459479A (en) * 2020-03-11 2020-07-28 福建联迪商用设备有限公司 Code scanning interface customization method, code scanning end, code scanning intermediate library and system
CN113486996A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Two-dimensional code image processing method and device, storage medium and electronic device
CN113761406A (en) * 2021-09-03 2021-12-07 深圳市丰巢网络技术有限公司 Intelligent cabinet two-dimensional code short-chain generation method, device, medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488528A (en) * 2013-09-05 2014-01-01 优视科技有限公司 QR code processing method and device based on mobile terminals
CN104618574A (en) * 2014-12-29 2015-05-13 北京奇虎科技有限公司 Method and device for achieving APP unified management of intelligent hardware equipment and client
CN105117256A (en) * 2015-08-31 2015-12-02 联想(北京)有限公司 Information processing method and electronic device
CN105138942A (en) * 2015-08-26 2015-12-09 小米科技有限责任公司 Two-dimensional code display method and device
CN105654006A (en) * 2014-11-13 2016-06-08 阿里巴巴集团控股有限公司 Two-dimensional code scanning interaction method and apparatus
CN106327185A (en) * 2016-08-26 2017-01-11 维沃移动通信有限公司 Starting method for payment application and mobile terminal
CN106372894A (en) * 2016-08-26 2017-02-01 维沃移动通信有限公司 Payment method and mobile terminal
CN106372893A (en) * 2016-08-26 2017-02-01 维沃移动通信有限公司 Code scanning interface switching method and apparatus
CN106484479A (en) * 2016-10-10 2017-03-08 广东欧珀移动通信有限公司 A kind of management method, device and intelligent terminal for opening application more
CN106599758A (en) * 2016-11-29 2017-04-26 努比亚技术有限公司 Image quality processing method and terminal
CN106610835A (en) * 2016-12-23 2017-05-03 广东欧珀移动通信有限公司 Identification code processing method and device, and computer equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488528A (en) * 2013-09-05 2014-01-01 优视科技有限公司 QR code processing method and device based on mobile terminals
CN105654006A (en) * 2014-11-13 2016-06-08 阿里巴巴集团控股有限公司 Two-dimensional code scanning interaction method and apparatus
CN104618574A (en) * 2014-12-29 2015-05-13 北京奇虎科技有限公司 Method and device for achieving APP unified management of intelligent hardware equipment and client
CN105138942A (en) * 2015-08-26 2015-12-09 小米科技有限责任公司 Two-dimensional code display method and device
CN105117256A (en) * 2015-08-31 2015-12-02 联想(北京)有限公司 Information processing method and electronic device
CN106327185A (en) * 2016-08-26 2017-01-11 维沃移动通信有限公司 Starting method for payment application and mobile terminal
CN106372894A (en) * 2016-08-26 2017-02-01 维沃移动通信有限公司 Payment method and mobile terminal
CN106372893A (en) * 2016-08-26 2017-02-01 维沃移动通信有限公司 Code scanning interface switching method and apparatus
CN106484479A (en) * 2016-10-10 2017-03-08 广东欧珀移动通信有限公司 A kind of management method, device and intelligent terminal for opening application more
CN106599758A (en) * 2016-11-29 2017-04-26 努比亚技术有限公司 Image quality processing method and terminal
CN106610835A (en) * 2016-12-23 2017-05-03 广东欧珀移动通信有限公司 Identification code processing method and device, and computer equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182039A (en) * 2017-12-21 2018-06-19 厦门攸信信息技术有限公司 Phonetic transmission method and system
CN108182039B (en) * 2017-12-21 2021-05-25 厦门攸信信息技术有限公司 Voice transmission method and system
CN109117906A (en) * 2018-09-28 2019-01-01 大连亿辉科技有限公司 Book service system
CN109583259A (en) * 2019-01-30 2019-04-05 维沃移动通信有限公司 Information identifying method and terminal device
CN109948394A (en) * 2019-03-28 2019-06-28 尤尼泰克(嘉兴)信息技术有限公司 A kind of acquisition methods of two-dimensional code data carrier
CN110097354A (en) * 2019-04-11 2019-08-06 厦门快商通信息咨询有限公司 A kind of Auto-matching method of payment, device, terminal and storage medium based on barcode scanning payment
CN111459479A (en) * 2020-03-11 2020-07-28 福建联迪商用设备有限公司 Code scanning interface customization method, code scanning end, code scanning intermediate library and system
CN113486996A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Two-dimensional code image processing method and device, storage medium and electronic device
CN113761406A (en) * 2021-09-03 2021-12-07 深圳市丰巢网络技术有限公司 Intelligent cabinet two-dimensional code short-chain generation method, device, medium and electronic equipment
CN113761406B (en) * 2021-09-03 2024-06-04 丰巢网络技术有限公司 Intelligent cabinet two-dimension code short-chain generation method and device, medium and electronic equipment

Also Published As

Publication number Publication date
CN107423794B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN107423794A (en) The barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs
CN104573597B (en) A kind of two-dimensional code identification method and device
CN104135501B (en) Page sharing method, Apparatus and system
CN104426963B (en) The method and terminal of associated terminal
CN106937043A (en) The method and apparatus of mobile terminal and its image procossing
CN103501485B (en) Push the method, apparatus and terminal device of application
CN107818465A (en) Method, equipment, mobile terminal and the computer-readable storage medium of payment
CN106296255A (en) Page info methods of exhibiting and device
CN106095456A (en) User is guided to download the method for application program, device and mobile terminal
CN104426919A (en) Page sharing method, device and system
CN103678502B (en) Information collection method and device
CN106126174A (en) The control method of a kind of scene audio and electronic equipment
CN107315488A (en) A kind of searching method of expression information, device and mobile terminal
CN104699501B (en) A kind of method and device for running application program
CN107368335A (en) A kind of method and apparatus and mobile terminal of Quick Response Code identification
CN106203228A (en) Two-dimensional code information transmission method, device and equipment
CN106201547A (en) Method, device and the mobile terminal that a kind of message based on mobile terminal shows
CN106658623A (en) Hotspot network switching method and terminal equipment
CN104751092B (en) Method and device for processing graphic code
CN106250122A (en) A kind of information cuing method and device
CN107463807A (en) Right management method, diagnostic device and server
CN106201748A (en) Method, device and the mobile terminal of a kind of Message Processing based on mobile terminal
CN104426747B (en) Instant communicating method, terminal and system
CN106713636B (en) Loading method, device and the mobile terminal of image data
CN106126726A (en) The exhibiting method of a kind of file scene and relevant device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant