Summary of the invention
Based on the problems referred to above, the embodiment of the invention discloses a kind of data processing method and device, to avoid the confirmation operation before scanning input figure identification code, thereby improve user's experience.Technical scheme is as follows:
First aspect, the embodiment of the present invention provides a kind of data processing method, is applied to electronic equipment, and described method comprises:
In scanning the first figure identification code process, described the first figure identification code is decoded;
Obtaining after the decoded result of described the first figure identification code, described decoded result is encoded, to generate second graph identification code, wherein, the algorithm that described coding adopts is corresponding with the algorithm that described decoding adopts;
In second graph identification code described in the demonstration screen display of described electronic equipment.
Optionally, a kind of data processing method that the embodiment of the present invention provides also comprises:
In the time the first kind operation that is directed to described second graph identification code that user sends being detected, show the decoded result of described the first figure identification code.
Optionally, a kind of data processing method that the embodiment of the present invention provides also comprises:
In the time the Equations of The Second Kind operation that is directed to described second graph identification code that user sends being detected, share or preserve described second graph identification code.
Optionally, described in second graph identification code described in the demonstration screen display of described electronic equipment, comprising:
Described second graph identification code is presented in the scan box on the display screen of described electronic equipment.
Optionally, described the first figure identification code is one dimension graphic code, X-Y scheme shape code or three-dimensional plot shape code.
Optionally, described the first figure identification code is artwork master shape code or cromogram shape code.
Optionally, if there is non-figure identification code region in described the first video identification code, in described second graph identification code, the region division corresponding with described non-figure identification code region is white space or default figure.
Second aspect, the embodiment of the present invention provides a kind of data processing equipment, is applied to electronic equipment, and described device comprises:
Decoder module, in scanning the first figure identification code process, decodes to described the first figure identification code;
Coding module, for obtaining after the decoded result of described the first figure identification code, encodes to described decoded result, and to generate second graph identification code, wherein, the algorithm that described coding adopts is corresponding with the algorithm that described decoding adopts;
The first processing module, for second graph identification code described in the demonstration screen display at described electronic equipment.
Optionally, a kind of data processing equipment that the embodiment of the present invention provides, also comprises:
The second processing module, in the time the first kind operation that is directed to described second graph identification code that user sends being detected, shows the decoded result of described the first figure identification code.
Optionally, a kind of data processing equipment that the embodiment of the present invention provides, also comprises:
The 3rd processing module, in the time the Equations of The Second Kind operation that is directed to described second graph identification code that user sends being detected, shares or preserves described second graph identification code.
Optionally, described the first processing module, comprising:
The first processing unit, for being presented at described second graph identification code in the scan box on the display screen of described electronic equipment.
Optionally, described the first figure identification code is one dimension graphic code, X-Y scheme shape code or three-dimensional plot shape code.
Optionally, described the first figure identification code is artwork master shape code or cromogram shape code.
Optionally, if there is non-figure identification code region in described the first video identification code, in described second graph identification code, the region division corresponding with described non-figure identification code region is white space or default figure.
In this programme, obtaining after the decoded result of the first figure identification code, decoded result is carried out to recompile, to generate second graph identification code; And in the demonstration screen display second graph identification code of electronic equipment.Visible, compared with prior art, before showing the decoded result of the first figure identification code, in the demonstration screen display of the electronic equipment second graph identification code identical with the first figure identification code, make user the second graph identification code based on shown on display screen to confirm operation, avoid the confirmation operation before scanning input figure identification code with this, thereby improved user's experience.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only 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.
Confirmation before scanning input figure identification code operates, thereby has improved user's experience, and the embodiment of the present invention provides a kind of data processing method and device.
First a kind of data processing method embodiment of the present invention being provided is below introduced.
Wherein, the data processing method that the embodiment of the present invention provides is applied in electronic equipment.Wherein, in actual applications, this electronic equipment can be: mobile phone, panel computer etc.
It should be noted that, the functional software of realizing the data processing method that the embodiment of the present invention provides can be figure identification code scanning software independently, can certainly be for thering is the application software of figure identification code function, and this is all rational.
As shown in Figure 1, a kind of data processing method, can comprise:
S101, in scanning the first figure identification code process, decodes to this first figure identification code;
Optionally, the first figure identification code can be one dimension graphic code, X-Y scheme shape code or three-dimensional plot shape code.Or the first figure identification code can be black and white pattern code or cromogram shape code.
S102, obtaining after the decoded result of this first figure identification code, encodes to this decoded result, and to generate second graph identification code, wherein, the algorithm that described coding adopts is corresponding with the algorithm that described decoding adopts;
Wherein, because decoding is corresponding with encryption algorithm, therefore, the first figure identification code and second graph identification code have same figure.
If there is non-figure identification code region in the first video identification code, in second graph identification code, the region corresponding with this non-figure identification code region can be set to white space or default figure.
S103, in this second graph identification code of demonstration screen display of electronic equipment.
Generating after second graph identification code, can on the display screen of electronic equipment, demonstrate this second graph identification code.
In order to improve display effect, concrete, described in second graph identification code described in the demonstration screen display of electronic equipment, can comprise: this second graph identification code is presented in the scan box on the display screen of this electronic equipment.
In this programme, obtaining after the decoded result of the first figure identification code, decoded result is carried out to recompile, to generate second graph identification code; And in the demonstration screen display second graph identification code of electronic equipment.Visible, compared with prior art, before showing the decoded result of the first figure identification code, in the demonstration screen display of the electronic equipment second graph identification code identical with the first figure identification code, make user the second graph identification code based on shown on display screen to confirm operation, avoid the confirmation operation before scanning input figure identification code with this, thereby improved user's experience.
Optionally, based on above-mentioned S101-S103, as shown in Figure 2, the data processing method that the embodiment of the present invention provides can also comprise:
S104, in the time the first kind operation that is directed to this second graph identification code that user sends being detected, shows the decoded result of this first figure identification code.
For example, first kind operation can be double click operation, thereby makes user can double-click the decoded result that second graph identification code shows this first figure identification code, is certainly not limited to this.
Optionally, based on above-mentioned S101-S103, as shown in Figure 3, the data processing method that the embodiment of the present invention provides can also comprise:
S105, in the time the Equations of The Second Kind operation that is directed to this second graph identification code that user sends being detected, shares or preserves this second graph identification code.
For example: Equations of The Second Kind operation can be for long by operation, make the user can be by long by operation, share or preserve this second graph identification code; Certainly be not limited to this.
Certainly, in actual applications, when detecting after the specific operation that is directed to this second graph identification code that user sends, also can preserve or share the decoded result of the first figure identification code.
Corresponding to above-mentioned embodiment of the method, the embodiment of the present invention also provides a kind of data processing equipment, is applied to electronic equipment, and as shown in Figure 4, described device can comprise:
Decoder module 410, in scanning the first figure identification code process, decodes to described the first figure identification code;
Coding module 420, for obtaining after the decoded result of described the first figure identification code, encodes to described decoded result, and to generate second graph identification code, wherein, the algorithm that described coding adopts is corresponding with the algorithm that described decoding adopts;
The first processing module 430, for second graph identification code described in the demonstration screen display at described electronic equipment.
In this programme, obtaining after the decoded result of the first figure identification code, decoded result is carried out to recompile, to generate second graph identification code; And in the demonstration screen display second graph identification code of electronic equipment.Visible, compared with prior art, before showing the decoded result of the first figure identification code, in the demonstration screen display of the electronic equipment second graph identification code identical with the first figure identification code, make user the second graph identification code based on shown on display screen to confirm operation, avoid the confirmation operation before scanning input figure identification code with this, thereby improved user's experience.
Further, decoder module 410, coding module 420 and the first processing module 430 based on above-mentioned provided, as shown in Figure 5, this data processing equipment can also comprise:
The second processing module 440, in the time the first kind operation that is directed to described second graph identification code that user sends being detected, shows the decoded result of described the first figure identification code.
Further, decoder module 410, coding module 420 and the first processing module 430 based on above-mentioned provided, as shown in Figure 6, this data processing equipment can also comprise:
The 3rd processing module 450, in the time the Equations of The Second Kind operation that is directed to described second graph identification code that user sends being detected, shares or preserves described second graph identification code.
Concrete, described the first processing module 430, can comprise:
The first processing unit, for being presented at described second graph identification code in the scan box on the display screen of described electronic equipment.
Concrete, described the first figure identification code is one dimension graphic code, X-Y scheme shape code or three-dimensional plot shape code.
Concrete, described the first figure identification code is artwork master shape code or cromogram shape code.
It should be noted that, if there is non-figure identification code region in described the first video identification code, in described second graph identification code, the region division corresponding with described non-figure identification code region is white space or default figure.
For device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in computer read/write memory medium, here the alleged storage medium obtaining, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.