Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 is the structural representation of a kind of terminal of providing of the embodiment of the invention, a kind of terminal that the embodiment of the invention provides can now be that example specifically describes with the mobile phone for as mobile phone, panel computer, palm PC, touch-screen media player, touch-screen electronic reader etc.A kind of terminal of present embodiment comprises that at least web interface acquisition module 101, scan module 102 and data obtain module 103 as shown in the figure, web interface acquisition module 101 1 ends are connected with the screen of terminal, one end is connected with scan module 102, scan module 102 obtains module 103 with data and is connected, wherein:
Web interface acquisition module 101 is used to obtain the current web interface of local terminal.In the specific implementation, terminal is obtained the current web interface of local terminal can obtain the current whole web interface of local terminal, also can obtain the part zone of the current web interface of local terminal, for example, the current web interface of terminal A is webpage B, have two-dimension code in the zone C among the webpage B, then can to obtain current web interface be webpage B to web interface acquisition module 101, also can obtain the zone C that current web interface is webpage B.
Further alternative, Fig. 2 is the structural representation of the web interface acquisition module of a kind of terminal of providing of the embodiment of the invention, as shown in Figure 2, web interface acquisition module 101 can comprise: identification acquisition request unit 1011, identification icon display unit 1012 and identified region acquiring unit 1013, wherein:
Identification acquisition request unit 1011 is used for obtaining the identification request of user to the two-dimension code of described web interface.In the specific implementation, identification acquisition request unit 1011 obtain the user to the identification request of the two-dimension code in the described web interface can for: receive the touch-control request that the user releases the button to the two-dimension code that shows in the described web interface, for example, when the user sees two-dimension code in the webpage during with the mobile phone browsing page, directly click the two-dimension code identification suspension frame of mobile phone current interface, or " the two-dimension code identification is opened " option in " menu " of click mobile phone current interface, open the identification of two-dimension code and use.Further alternative, can also directly click " two-dimension code identification " physical button of mobile phone, thereby the identification of opening the backstage two-dimension code is used.
Identification icon display unit 1012 is used for according to the described identification request that gets access at described web interface two-dimensional code display identification icon.In the specific implementation, two-dimension code identification icon can be discerned frame for two-dimension code, also can be user-defined two-dimension code identification marking, two-dimension code identification colors region unit etc. for example, wherein, two-dimension code identification frame can be the two-dimension code identification frame of terminal acquiescence, also can be the two-dimension code identification frame of user's self-defined picture in web interface, including, but not limited to square frame, also can be ellipse etc.
Identified region acquiring unit 1013 is used to obtain the user and uses the selected described two-dimension code identified region of described two-dimension code identification icon.In the specific implementation, the selected unit 1013 of identified region obtains the user and uses described two-dimension code to know the selected described two-dimension code identified region of icon frame can to comprise: obtain the described two-dimension code identified region that the user drags, locatees after amplification or the reduction operation described two-dimension code identification icon.For example, user's selected two-dimension code identified region in webpage can drag the selected two-dimension code identified region of two-dimension code identification frame for the user, the size of two-dimension code identification frame can be adjusted as the case may be, and the user can discern the editing operation that frame zooms in or out to two-dimension code.Fig. 3 is the specific embodiment design sketch of the recognition methods of a kind of two-dimension code of providing of the embodiment of the invention, shown in Fig. 3 (a), in the web interface 301,3011 are two-dimension code identification frame, 3012 is two-dimension code, the user drags 3011 to 3012, and then identified region acquiring unit 1013 gets access to the two-dimension code identified region.
Further alternative, the corresponding default colour code of two-dimension code identification icon, default colour code intuitively point out two-dimension code whether to finish identification can for the user, and default colour code can be the color that the User Defined editor is provided with, for example redness, green, blueness, purple, orange etc.Concrete, when identification icon display unit 1012 according to the described identification request that gets access in described web interface during two-dimensional code display identification icon, described two-dimension code identification icon shows with the first default colour code; Finish when the two-dimension code in the described two-dimension code identified region scanned when scan module 102, described identification icon display unit 1012 also is used for showing described two-dimension code identification icon at described web interface with the second default colour code.
Scan module 102 is used for the two-dimension code of the current web interface of the described local terminal that gets access to is scanned.In the specific implementation, the two-dimension code in the two-dimension code identified region that 102 pairs of identified region acquiring units 1013 of scan module get access to scans, and the two-dimension code that scanning obtains is decoded.Can the two-dimension code in the local terminal web interface be scanned in terminal, to the two-dimension code in the local terminal web interface, when getting access to the two-dimension code identified region, need not to start camera, or scanning again after need not two-dimension code to be taken pictures by the camera of another one terminal, in the embodiment of the invention, directly the two-dimension code in the local terminal web interface is scanned, scanning result is decoded on the terminal backstage.Wherein, two-dimension code can be divided into stack/determinant two-dimension code and matrix type two-dimension sign indicating number, pile up by the bar code of multirow cutting back on stack/determinant two-dimension code form and form, matrix two-dimensional barcode is formed with the form of matrix, on matrix respective element position, represent binary one with " point ", with " sky " expression binary zero, " point " and " sky " rearrange code.
Data obtain module 103, are used for obtaining target two-dimension code data according to described two-dimension code scanning.In the specific implementation, obtain target two-dimension code data according to the scanning result of scan module 102.Target two-dimension code data, the information that needs to visit, use of promptly enrolling when two-dimension code is encoded is encoded, and can be the specifying information of two-dimension code correspondence, for example network address, admission ticket information, coupon information, personal information etc.
Further alternative, the system of the embodiment of the invention can also comprise data processing module 104, and data processing module 104 1 ends obtain module 103 with data and are connected, and the other end is connected with the screen of terminal, wherein:
Data processing module 104 is used for showing the operation prompt information corresponding with described target two-dimension code data or carrying out the corresponding operation of described target two-dimension code data at described web interface.In the specific implementation, after data acquisition module 103 obtains target two-dimension code data, directly carry out the operation of target two-dimension code data correspondence, for example directly open picture, down load application etc., further alternative, can also in web interface, show corresponding operation prompt information, operation prompt information, for example, whether download pictures, whether open web page interlinkage, whether confirm net purchase product etc., according to this operation prompt information, the user can confirm to download, open webpage, net purchase etc. by two-dimension code.Shown in Fig. 3 (b), in the web interface 301,3013 for finishing the two-dimension code identification frame that two-dimension code scanning back is shown, 3013 color has shoaled with respect to 3011 color among Fig. 3 (a), 3014 operation prompt information for showing.
The embodiment of the invention provides a kind of recognition system of two-dimension code, can scan the two-dimension code of the web interface of terminal own and obtain target two-dimension code data, the two-dimension code of terminal in can the webpage of end of scan own for example, thereby realized directly the two-dimension code in the terminal web interface being discerned, convenient to operation.
Set forth the specific implementation of the recognition methods of the two-dimension code that the embodiment of the invention provides below.
Fig. 4 is the process flow diagram of the recognition methods of a kind of two-dimension code of providing of the embodiment of the invention.The present invention can be implemented in as in the terminals such as mobile phone, panel computer, palm PC, touch-screen media player, touch-screen electronic reader, and existing is that example specifically describes with the mobile phone, and the recognition methods of two-dimension code comprises at least as shown in the figure:
Step S401 obtains the current web interface of local terminal.In the specific implementation, terminal is obtained the current web interface of local terminal can obtain the current whole web interface of local terminal, also can obtain the part zone of the current web interface of local terminal, for example, the current web interface of terminal A is webpage B, have two-dimension code in the zone C among the webpage B, then can obtain current web interface is webpage B, also can obtain the zone C that current web interface is webpage B.
Further alternative, obtaining the current web interface of local terminal can comprise: obtain the identification request of user to the two-dimension code in the current Webpage of described local terminal; According to the described identification request that gets access to two-dimensional code display identification icon in described Webpage; Obtain the user and use the selected described two-dimension code identified region of described two-dimension code identification icon.
Obtain the identification request of user to the two-dimension code in the current Webpage of described local terminal.In the specific implementation, obtain the user to the identification request of the two-dimension code in the current Webpage of described local terminal can for: receive the touch-control request that the user releases the button to the two-dimension code that shows in the described web interface, for example, when the user sees two-dimension code in the webpage during with the mobile phone browsing page, directly click the two-dimension code identification suspension frame of mobile phone current interface, or " the two-dimension code identification is opened " option in " menu " of click mobile phone current interface, open the identification of two-dimension code and use.Further alternative, can also directly click " two-dimension code identification " physical button of mobile phone, thereby the identification of opening the backstage two-dimension code is used.
According to the described identification request that gets access to two-dimensional code display identification icon in described web interface.In the specific implementation, two-dimension code identification icon can be discerned frame for two-dimension code, also can be user-defined two-dimension code identification marking, two-dimension code identification colors region unit etc. for example, wherein, two-dimension code identification frame can be the two-dimension code identification frame of terminal acquiescence, also can be the two-dimension code identification frame of user's self-defined picture in web interface, including, but not limited to square frame, also can be ellipse etc.
Obtain the user and use the selected described two-dimension code identified region of described two-dimension code identification icon.In the specific implementation, obtain the user and use described two-dimension code to know the selected described two-dimension code identified region of icon frame can to comprise: obtain the described two-dimension code identified region that the user drags, locatees after amplification or the reduction operation described two-dimension code identification icon.For example, user's selected two-dimension code identified region in webpage can drag the selected two-dimension code identified region of two-dimension code identification frame for the user, the size of two-dimension code identification frame can be adjusted as the case may be, and the user can discern the editing operation that frame zooms in or out to two-dimension code.Shown in Fig. 3 (a), in the web interface 301,3011 are two-dimension code identification frame, and 3012 is two-dimension code, and the user drags 3011 to 3012, and then gets access to the two-dimension code identified region.
Further alternative, the corresponding default colour code of two-dimension code identification icon, default colour code intuitively point out two-dimension code whether to finish identification can for the user, and default colour code can be the color that the User Defined editor is provided with, for example redness, green, blueness, purple, orange etc.Concrete, when two-dimensional code display was discerned icon in web interface according to the described identification request that gets access to, described two-dimension code identification icon showed with the first default colour code; When finishing when the two-dimension code in the described two-dimension code identified region scanned, in web interface, show described two-dimension code identification icon with the second default colour code.
Step S402 scans the two-dimension code in the current web interface of the described local terminal that gets access to.In the specific implementation, the two-dimension code in the two-dimension code identified region that gets access to is scanned, the two-dimension code that scanning obtains is decoded.Can the two-dimension code in the local terminal web interface be scanned in terminal, to the two-dimension code in the local terminal web interface, when getting access to the two-dimension code identified region, need not to start camera, or scanning again after need not two-dimension code to be taken pictures by the camera of another one terminal, in the embodiment of the invention, directly the two-dimension code in the local terminal web interface is scanned, scanning result is decoded on the terminal backstage.Wherein, two-dimension code can be divided into stack/determinant two-dimension code and matrix type two-dimension sign indicating number, pile up by the bar code of multirow cutting back on stack/determinant two-dimension code form and form, matrix two-dimensional barcode is formed with the form of matrix, on matrix respective element position, represent binary one with " point ", with " sky " expression binary zero, " point " and " sky " rearrange code.
Step S403 obtains target two-dimension code data according to described two-dimension code scanning.In the specific implementation, obtain target two-dimension code data according to the scanning result of two-dimension code.Target two-dimension code data, the information that needs to visit, use of promptly enrolling when two-dimension code is encoded is encoded, and can be the specifying information of two-dimension code correspondence, for example network address, admission ticket information, coupon information, personal information etc.
Further alternative, the recognition methods of a kind of two-dimension code of the embodiment of the invention can also comprise step:
In described web interface, show the operation prompt information corresponding or carry out the corresponding operation of described target two-dimension code data with described target two-dimension code data.In the specific implementation, after step S403, directly carry out the operation of target two-dimension code data correspondence, for example directly open picture, down load application etc., further alternative, can also in web interface, show corresponding operation prompt information, operation prompt information, for example, whether download pictures, whether open web page interlinkage, whether confirm net purchase product etc., according to this operation prompt information, the user can confirm to download, open webpage, net purchase etc. by two-dimension code.Shown in Fig. 3 (b), in the web interface 301,3013 for finishing the two-dimension code identification frame that two-dimension code scanning back is shown, 3013 color has shoaled with respect to 3011 color among Fig. 3 (a), 3014 operation prompt information for showing.
The embodiment of the invention provides a kind of recognition methods of two-dimension code, can scan the two-dimension code of the web interface of terminal own and obtain target two-dimension code data, the two-dimension code of terminal in can the webpage of end of scan own for example, thereby realized directly the two-dimension code in the terminal web interface being discerned, convenient to operation.
The module of the embodiment of the invention or unit, can pass through universal integrated circuit, CPU(Central Processing Unit for example, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, special IC) and realize.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed is preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.