Summary of the invention
The invention provides the method and system of a kind of 2 D code information expansion to solve the problem.
The invention provides a kind of method that 2 D code information expands, comprise the following steps.Scanner scanning Quick Response Code obtains server path and signing messages, and described signing messages is sent to described server.Described server is according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, according to described signing messages, determine target interactive information table and calculate the spherical factor according to described target interactive information table, and when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, more described positive divisor and the spherical factor.Described server obtains corresponding data message according to comparative result and described signing messages in information classification table, and is pushed to demoder.
The invention provides the system that a kind of 2 D code information expands, comprise server and client, described server connects described client, and described client comprises scanner, mediator and demoder, described scanner connects described mediator, and described mediator connects described demoder.Described scanner, obtains server path and signing messages for scanning Quick Response Code, and described signing messages is sent to described server.Described server, for according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, according to described signing messages, determine target interactive information table and calculate the spherical factor according to described target interactive information table, and when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, more described positive divisor and the spherical factor, also for obtaining corresponding data information according to comparative result and described signing messages in information classification table, and be pushed to demoder.Described demoder, for receiving the data stream of described server push, and is converted to corresponding format.Described mediator, for playing the data stream of the corresponding format of described demoder conversion.
Compared to prior art, according to the method and system that 2 D code information provided by the invention expands, scanner scanning Quick Response Code obtains server path and signing messages, and signing messages is sent to server.Server is according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, the spherical factor is calculated according to described target interactive information table according to described signing messages determination target interactive information table, and when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, compare positive divisor and the spherical factor.Server obtains corresponding data message according to comparative result and described signing messages in information classification table, and is pushed to demoder.Both extend the information capacity of Quick Response Code, improve the use value of Quick Response Code; Also be conducive to the user attracting to have potential consumption demand simultaneously.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the process flow diagram of the method that preferred embodiment according to the present invention provides 2 D code information to expand.As shown in Figure 1, the method that preferred embodiment of the present invention provides 2 D code information to expand comprises step 101 ~ 103.
Step 101: scanner scanning Quick Response Code obtains server path and signing messages, and described signing messages is sent to described server.
Specifically, containing two-dimension code image in commodity external packing to be scanned, and the information that Quick Response Code comprises is server path and signing messages.After scanner scans described two-dimension code image, by the server path obtained, described signing messages is sent to server.In this, described signing messages is the information of described Quick Response Code corresponding goods, comprises trade name.Wherein, described server path and signing messages are enciphered message, only have described scanner can be decrypted described enciphered message.
Step 102: described server is according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, according to described signing messages, determine target interactive information table and calculate the spherical factor according to described target interactive information table, and when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, more described positive divisor and the spherical factor.
Specifically, when user's first login server, personal information need be registered in the user's registration information table of described server.In the present embodiment, described user's registration information table content comprises numbering, name, age, feature, convenience goods and income, in other embodiment, can arrange described user's registration information table content as required, but is not construed as limiting this present invention.
Described server stores Factor Weight table, described Factor Weight table comprises trade name, factor classification, the factor and weight, and wherein each factor respective weights is preset by server.Server, according to described signing messages, determines target elements weight table, described target elements weight table, comprises the trade name of described signing messages corresponding goods, factor classification, the factor and weight.The mode that described server calculates positive divisor is, according to the corresponding relation of the factor and weight in user's registration information in user's registration information table and Factor Weight table, determine described positive divisor.Be specially, each Factor Weight sum is divided by the total number of the factor, and gained ratio is positive divisor.
Also store interactive information table in server, described interactive information table stores each commodity scanning result in preset period of time, comprises trade name, scanning people and sweep time.Server, according to described signing messages, determines target interactive information table, described target interactive information table, comprise with described signing messages corresponding goods with a series of all commodity trade name, scan people and sweep time.The described spherical factor is, the scanning times of Quick Response Code corresponding goods described in interactive information table and the ratio of described commodity corresponding series all commodity scanning times summation in preset period of time.
The corresponding preset value of described server stores positive divisor and spherical factor pair answer preset value, when described positive divisor is not less than self corresponding preset value, and when the spherical factor is not less than self corresponding preset value, and the more described positive divisor of server and the spherical factor.In the present embodiment, the mode of described comparison is, obtains the absolute value of the difference of positive divisor and the spherical factor.In other embodiment, to the manner of comparison of described positive divisor and the spherical factor, can to compare according to both differences or ratio etc., but this present invention is not construed as limiting.
Step 103: described server obtains corresponding data message according to comparative result and described signing messages in information classification table, and is pushed to demoder.
Specifically, server also stores information classification table, and described information classification table comprises trade name, matching degree, buyer's guide and sales promotion information.The process that described server obtains corresponding data message according to comparative result and described signing messages in information classification table is: described server, according to described signing messages, determines target information sorted table.Described target information sorted table, comprises the trade name of described signing messages corresponding goods, matching degree, buyer's guide and sales promotion information.Described server, according to described comparative result, by described target information sorted table, is determined Corresponding matching degree, thus is obtained corresponding data message, and be pushed to demoder.In this, described server comprises buyer's guide and sales promotion information to the data message that described demoder pushes.After data message described in described Decoder accepts, be converted to corresponding format and play at mediator, wherein, mediator comprises mobile phone.Described corresponding format comprises picture, video and text formatting.
For example, the user's registration information tableau format of server stores is such as shown in table 1.
Numbering |
Name |
Age |
Feature |
Convenience goods |
Income |
001 |
Zhang San |
25 |
Bits |
Rejoice |
2000~3000 |
Table 1
The Factor Weight sheet format of described server stores is such as shown in table 2.
Table 2
According to table 2, positive divisor is calculated as, (characterization factor weight+convenience goods Factor Weight+income Factor Weight) the total number of/factor.Such as, after the personal information of Zhang San in server registers in table 1, Head&Shoulders (anti-dandruff) commodity are scanned by scanner, the weight that server is answered according to each factor pair of Head&Shoulders in table 1 and table 2 (anti-dandruff) commodity, calculate for Zhang San, the positive divisor of Head&Shoulders (anti-dandruff) commodity is (0.8+0.3+0.4)/(1+1+1)=0.5.
If preset period of time is 2012-10-01 to 2012-10-31 in the interactive information table of described server stores, described interactive information sheet format is such as shown in table 3.
Table 3
According to table 3, the scanning times of Head&Shoulders (anti-dandruff) commodity in preset period of time of Zhang San's scanning is 2, and this serial all commodity scanning total degree is 2+3+1, then the spherical factor is: 2/(2+3+1)=0.33.
The information classification sheet format of described server stores is such as shown in table 4.
Table 4
In the present embodiment, if the positive divisor preset value of server stores and spherical factor preset value are 0.3.In this, positive divisor 0.5 and the spherical factor 0.33 are all greater than 0.3, the then more described positive divisor of server and the spherical factor, and the absolute value of the difference of both acquisitions | 0.5 – 0.33|=0.17, matching degree in corresponding table 4 is 0.1 ~ 0.3, then server pushes buyer's guide corresponding to this matching degree and sales promotion information to demoder.According to table 4, server pushes to demoder video, picture and the Word message that buyer's guide is Head&Shoulders (anti-dandruff) commodity, and sales promotion information is the information of discount of Head&Shoulders (anti-dandruff) commodity: can make a call to 9 foldings.Described buyer's guide and sales promotion information are converted to picture, video and the text formatting that Zhang San's mobile phone is supported by demoder, play at mobile phone.
Figure 2 shows that the schematic diagram of the system that preferred embodiment according to the present invention provides 2 D code information to expand.As shown in Figure 2, the system that preferred embodiment of the present invention provides 2 D code information to expand comprises server 20 and client 30, described server 20 connects described client 30, described client 30 comprises scanner 301, mediator 302 and demoder 303, described scanner 301 connects described mediator 302, and described mediator 302 connects described demoder 303.Described scanner 301, obtains server 20 path and signing messages for scanning Quick Response Code, and described signing messages is sent to described server 20.Described server 20, for according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, according to described signing messages, determine target interactive information table and calculate the spherical factor according to described target interactive information table, and when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, more described positive divisor and the spherical factor, also for obtaining corresponding data information according to comparative result and described signing messages in information classification table, and be pushed to demoder 303.Described demoder 303, for receiving the data stream that described server 20 pushes, and is converted to corresponding format.Described mediator 302, for playing the data stream of the corresponding format of described demoder 303 conversion.About the operating process of said system with described in said method, therefore repeat no more in this.
In sum, the method and system that the 2 D code information that preferred embodiment according to the present invention provides expands, scanner scanning Quick Response Code obtains server path and signing messages, and signing messages is sent to server.Server is according to described signing messages, determine target elements weight table and calculate positive divisor according to user's registration information table, the spherical factor is calculated according to described target interactive information table according to described signing messages determination target interactive information table, and when described positive divisor and the spherical factor are all not less than each self-corresponding preset value, compare positive divisor and the spherical factor.Server obtains corresponding data message according to comparative result and described signing messages in information classification table, and is pushed to demoder.Both extend the information capacity of Quick Response Code, improve the use value of Quick Response Code; Also be conducive to the user attracting to have potential consumption demand simultaneously.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.