Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment. Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the structural representation of a kind of terminal of providing of the embodiment of the present invention, a kind of terminal that the embodiment of the present invention provides can, for as mobile phone, panel computer, palm PC, touch-screen media player, touch-screen electronic reader etc., now specifically describe as an example of mobile phone example. A kind of terminal of the present embodiment at least comprises web interface acquisition module 101, scan module 102 and data acquisition module 103 as shown in the figure, web interface acquisition module 101 one end are connected with the screen of terminal, one end is connected with scan module 102, scan module 102 is connected with data acquisition module 103, wherein:
Web interface acquisition module 101, for obtaining the current web interface of local terminal. In 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 a part of region of the current web interface of local terminal, for example, the current web interface of terminal A is webpage B, in region C in webpage B, have Quick Response Code, can to obtain current web interface be webpage B to web interface acquisition module 101, and also can obtain current web interface is the region C of 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 present 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, for obtaining the identification request of the Quick Response Code of user to described web interface. In specific implementation, identification acquisition request unit 1011 obtains user and to the identification request of the Quick Response Code in described web interface can be: receive the touch-control request that user releases the button to the Quick Response Code showing in described web interface, for example, when user sees the Quick Response Code in webpage during with mobile phone browsing page, directly click the Quick Response Code identification suspended frame of mobile phone current interface, or click " the Quick Response Code identification is opened " option in " menu " of mobile phone current interface, the identification application of opening Quick Response Code. Further alternative, can also directly click " Quick Response Code identification " physical button of mobile phone, thereby open the identification application of backstage Quick Response Code.
Identification icon display unit 1012, identifies icon for the identification request getting described in basis at described web interface two-dimensional code display. In specific implementation, Quick Response Code identification icon can be Quick Response Code identification frame, also can be user-defined Quick Response Code identification marking, such as Quick Response Code identification colors region unit etc., wherein, Quick Response Code identification frame can be the Quick Response Code identification frame of terminal acquiescence, can be also the Quick Response Code identification frame of user's self-defined picture in web interface, including, but not limited to square frame, it can be also ellipse etc.
Identified region acquiring unit 1013, is used the selected described Quick Response Code identified region of described Quick Response Code identification icon for obtaining user. In specific implementation, the selected unit 1013 of identified region obtains user and uses the selected described Quick Response Code identified region of described Quick Response Code knowledge icon frame to comprise: obtain user described Quick Response Code identification icon is dragged, zooms in or out the described Quick Response Code identified region of locating after operation. For example, user's selected Quick Response Code identified region in webpage can drag the selected Quick Response Code identified region of Quick Response Code identification frame for user, the size of Quick Response Code identification frame can be adjusted as the case may be, and user can identify the edit operation that frame zooms in or out to Quick Response Code. Fig. 3 (a) and 3 (b) are the specific embodiment design sketch of the recognition methods of a kind of Quick Response Code of providing of the embodiment of the present invention, as shown in Fig. 3 (a), in web interface 301,3011 is Quick Response Code identification frame, 3012 is Quick Response Code, user drags 3011 to 3012, and then identified region acquiring unit 1013 gets Quick Response Code identified region.
Further alternative, colour code corresponding to Quick Response Code identification icon, default colour code intuitively point out Quick Response Code whether to complete identification can to user, and default colour code can be the color of User Defined editor setting, for example redness, green, blueness, purple, orange etc. Concrete, when identification icon display unit 1012 according to described in the identification request that gets in described web interface when two-dimensional code display identification icon, described Quick Response Code identification icon shows with the first colour code of presetting; When scan module 102 completed Quick Response Code when scanning in described Quick Response Code identified region, described identification icon display unit 1012 is also for showing described Quick Response Code identification icon at described web interface with the second colour code of presetting.
Scan module 102, for scanning the Quick Response Code of the current web interface of the described local terminal getting. In specific implementation, the Quick Response Code in the Quick Response Code identified region that scan module 102 gets identified region acquiring unit 1013 scans, and the Quick Response Code that scanning is obtained is decoded. Can scan the Quick Response Code in local terminal web interface in terminal, to the Quick Response Code in local terminal web interface, in the time getting Quick Response Code identified region, without starting camera, or scan again after Quick Response Code being taken pictures without the camera by another one terminal, in the embodiment of the present invention, directly the Quick Response Code in local terminal web interface is scanned, on terminal backstage, scanning result is decoded. Wherein, Quick Response Code can be divided into stack/determinant Quick Response Code and matrix type two-dimension code, in stack/determinant Quick Response Code form by stacking the forming of bar code of multirow cutting back, matrix two-dimensional barcode is with the form composition of matrix, on matrix respective element position, represent binary one with " point ", represent binary zero with " sky ", " point " and " sky " rearrange code.
Data acquisition module 103, for obtaining target Quick Response Code data according to described Quick Response Code scanning. In specific implementation, obtain target Quick Response Code data according to the scanning result of scan module 102. Target Quick Response Code data, the information coding that needs access, uses enrolling in the time that Quick Response Code is encoded, can be the specifying information that Quick Response Code is corresponding, such as network address, admission ticket information, coupon information, personal information etc.
Further alternative, the system of the embodiment of the present invention can also comprise data processing module 104, and data processing module 104 one end are connected with data acquisition module 103, and the other end is connected with the screen of terminal, wherein:
Data processing module 104, for showing the operation prompt information corresponding with described target Quick Response Code data or carry out operation corresponding to described target Quick Response Code data at described web interface. In specific implementation, data acquisition module 103 obtains after target Quick Response Code data, directly operation corresponding to performance objective Quick Response Code data, 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, user can confirm to download, open webpage, net purchase etc. by Quick Response Code. As shown in Figure 3 (b), in web interface 301,3013 has been the Quick Response Code identification frame to showing after Quick Response Code scanning, and 3013 color has shoaled with respect to 3011 color in Fig. 3 (a), 3014 operation prompt information for showing.
The embodiment of the present invention provides a kind of recognition system of Quick Response Code, can scan and obtain target Quick Response Code data the Quick Response Code of the web interface of terminal own, the Quick Response Code of for example terminal in can the webpage of end of scan own, thereby realized directly, the Quick Response Code in terminal web interface is identified, convenient to operation.
Set forth the specific implementation of the recognition methods of the Quick Response Code that the embodiment of the present invention provides below.
Fig. 4 is the flow chart of the recognition methods of a kind of Quick Response Code of providing of the embodiment of the present invention. The present invention can realize in as terminals such as mobile phone, panel computer, palm PC, touch-screen media player, touch-screen electronic readers, now specifically describes as an example of mobile phone example, and the recognition methods of Quick Response Code at least comprises as shown in the figure:
Step S401, obtains the current web interface of local terminal. In 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 a part of region of the current web interface of local terminal, for example, the current web interface of terminal A is webpage B, in region C in webpage B, have Quick Response Code, can obtain current web interface is webpage B, and also can obtain current web interface is the region C of webpage B.
Further alternative, obtaining the current web interface of local terminal can comprise: obtain the identification request of user to the Quick Response Code in the current Webpage of described local terminal; According to the described identification request getting two-dimensional code display identification icon in described Webpage; Obtain user and use the selected described Quick Response Code identified region of described Quick Response Code identification icon.
Obtain the identification request of user to the Quick Response Code in the current Webpage of described local terminal. In specific implementation, obtaining user to the identification request of the Quick Response Code in the current Webpage of described local terminal can be: receive the touch-control request that user releases the button to the Quick Response Code showing in described web interface, for example, when user sees the Quick Response Code in webpage during with mobile phone browsing page, directly click the Quick Response Code identification suspended frame of mobile phone current interface, or click " the Quick Response Code identification is opened " option in " menu " of mobile phone current interface, the identification application of opening Quick Response Code. Further alternative, can also directly click " Quick Response Code identification " physical button of mobile phone, thereby open the identification application of backstage Quick Response Code.
According to the described identification request getting two-dimensional code display identification icon in described web interface. In specific implementation, Quick Response Code identification icon can be Quick Response Code identification frame, also can be user-defined Quick Response Code identification marking, such as Quick Response Code identification colors region unit etc., wherein, Quick Response Code identification frame can be the Quick Response Code identification frame of terminal acquiescence, can be also the Quick Response Code identification frame of user's self-defined picture in web interface, including, but not limited to square frame, it can be also ellipse etc.
Obtain user and use the selected described Quick Response Code identified region of described Quick Response Code identification icon. In specific implementation, obtain user and use the selected described Quick Response Code identified region of described Quick Response Code knowledge icon frame to comprise: obtain user described Quick Response Code identification icon is dragged, zooms in or out the described Quick Response Code identified region of locating after operation. For example, user's selected Quick Response Code identified region in webpage can drag the selected Quick Response Code identified region of Quick Response Code identification frame for user, the size of Quick Response Code identification frame can be adjusted as the case may be, and user can identify the edit operation that frame zooms in or out to Quick Response Code. As shown in Fig. 3 (a), in web interface 301,3011 is Quick Response Code identification frame, and 3012 is Quick Response Code, and user drags 3011 to 3012, and then gets Quick Response Code identified region.
Further alternative, colour code corresponding to Quick Response Code identification icon, default colour code intuitively point out Quick Response Code whether to complete identification can to user, and default colour code can be the color of User Defined editor setting, for example redness, green, blueness, purple, orange etc. Concrete, when the identification request getting described in basis is in web interface when two-dimensional code display identification icon, described Quick Response Code identification icon shows with the first colour code of presetting; When completing Quick Response Code when scanning in described Quick Response Code identified region, in web interface, show described Quick Response Code identification icon with the second colour code of presetting.
Step S402, scans the Quick Response Code in the current web interface of the described local terminal getting. In specific implementation, the Quick Response Code in the Quick Response Code identified region getting is scanned, the Quick Response Code that scanning is obtained is decoded. Can scan the Quick Response Code in local terminal web interface in terminal, to the Quick Response Code in local terminal web interface, in the time getting Quick Response Code identified region, without starting camera, or scan again after Quick Response Code being taken pictures without the camera by another one terminal, in the embodiment of the present invention, directly the Quick Response Code in local terminal web interface is scanned, on terminal backstage, scanning result is decoded. Wherein, Quick Response Code can be divided into stack/determinant Quick Response Code and matrix type two-dimension code, in stack/determinant Quick Response Code form by stacking the forming of bar code of multirow cutting back, matrix two-dimensional barcode is with the form composition of matrix, on matrix respective element position, represent binary one with " point ", represent binary zero with " sky ", " point " and " sky " rearrange code.
Step S403, obtains target Quick Response Code data according to described Quick Response Code scanning. In specific implementation, obtain target Quick Response Code data according to the scanning result of Quick Response Code. Target Quick Response Code data, the information coding that needs access, uses enrolling in the time that Quick Response Code is encoded, can be the specifying information that Quick Response Code is corresponding, such as network address, admission ticket information, coupon information, personal information etc.
Further alternative, the recognition methods of a kind of Quick Response Code of the embodiment of the present invention can also comprise step:
In described web interface, show the operation prompt information corresponding with described target Quick Response Code data or carry out operation corresponding to described target Quick Response Code data. In specific implementation, after step S403, directly operation corresponding to performance objective Quick Response Code data, 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, user can confirm to download, open webpage, net purchase etc. by Quick Response Code. As shown in Figure 3 (b), in web interface 301,3013 has been the Quick Response Code identification frame to showing after Quick Response Code scanning, and 3013 color has shoaled with respect to 3011 color in Fig. 3 (a), 3014 operation prompt information for showing.
The embodiment of the present invention provides a kind of recognition methods of Quick Response Code, can scan and obtain target Quick Response Code data the Quick Response Code of the web interface of terminal own, the Quick Response Code of for example terminal in can the webpage of end of scan own, thereby realized directly, the Quick Response Code in terminal web interface is identified, convenient to operation.
The module of the embodiment of the present invention or unit, can pass through universal integrated circuit, for example CPU(CentralProcessingUnit, central processing unit), or realize by ASIC (ApplicationSpecificIntegratedCircuit, special IC).
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method. Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.