Summary of the invention
For the weak point existed in the problems referred to above, the invention provides a kind of without the need to changing the generating mode of existing Quick Response Code and recognition method, Quick Response Code and multimedia messages can be carried out associating and bind, to generate target Quick Response Code, after identifying this target Quick Response Code, that can play multimedia messages corresponding thereto passes through the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages.
For achieving the above object, the invention provides a kind of by scanning arbitrary Quick Response Code to bind mutually and the method for checking multimedia messages, comprising the following steps:
Multimedia messages definition end is scanned current two-dimension by APP, after the type of current two-dimension is distinguished, according to the information in APP interface, bind with after forming target Quick Response Code in the interpolation and being associated with current two-dimension completing multimedia messages, be uploaded in Cloud Server;
Multimedia messages checks that end is scanned target Quick Response Code by APP, after resolving it, to receive and to play the multimedia messages associating with it and bind.
Above-mentioned passes through the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, and wherein, the concrete steps of said method are as follows:
S1, multimedia messages definition end by APP, current two-dimension is scanned, and scanning process in distinguish whether current two-dimension is the Quick Response Code that can directly define bound that can directly be associated with multimedia messages;
If S2 APP judges that current two-dimension is as the Quick Response Code that can directly define, then current two-dimension and selected multimedia messages are formed to associate and bind, after forming target Quick Response Code, and be uploaded in Cloud Server;
If S3 APP judges that current two-dimension is as the Quick Response Code that can not directly define, then current two-dimension is uploaded in Cloud Server, obtain by Cloud Server be its give sequence number and be back to after in APP, bind current two-dimension and selected multimedia messages are formed to associate, after forming target Quick Response Code, and be uploaded in Cloud Server;
S4, multimedia messages check that end scans by APP the Quick Response Code be implanted on article, and the current two-dimension sequence number obtained after parsing and/or index information are sent to Cloud Server;
S5, after Cloud Server to check the Quick Response Code sequence number verification succeeds that end APP sends to multimedia messages, check that end APP feedback to be associated with Quick Response Code sequence number the multimedia messages bound to multimedia messages.
Above-mentioned passes through the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, wherein, in step sl, multimedia messages definition end is scanned current two-dimension by APP, the image of current two-dimension can be shown in scanning area in APP interface, if APP is checked through in current two-dimension at least one the auxiliary positioning point also including and can be recognized by APP, then judge that current two-dimension is as the Quick Response Code that can directly define bound that can directly be associated with multimedia messages;
If APP is checked through in current two-dimension at least one the auxiliary positioning point not comprising and can be recognized by APP, then judge that current two-dimension is as the Quick Response Code not directly defined bound that cannot directly be associated with multimedia messages, needs to change it.
Above-mentioned passes through the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, wherein, in step s 2, comprises following sub-step:
S21, after judging the Quick Response Code that can directly define that current two-dimension is bound as can directly be associated with multimedia messages, current two-dimension to be resolved, to get relative Quick Response Code sequence number;
S22, APP eject and select dialog box in interface, so that multimedia messages definition end subscriber adds the multimedia messages of required form;
S23, Quick Response Code sequence number and multimedia messages carried out associating and binds, to form the content information file including Quick Response Code sequence number and multimedia messages;
S24, boil down to packet file is carried out to content information file, using Quick Response Code sequence number after the filename be associated with packet file, be uploaded in the corresponding data chained list of first object database in Cloud Server.
Above-mentioned passes through the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, and wherein, in step s 24 which, in first object database, the structure of data link table comprises Table Header information, Quick Response Code sequence number and multimedia messages.
Above-mentioned passes through the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, wherein, in step s3, comprises following sub-step:
S31, after judging the Quick Response Code not directly defined that current two-dimension is bound as cannot directly be associated with multimedia messages, multimedia messages definition end APP utilizes Image Coding Algorithms that the Quick Response Code not directly defined is resolved to the character string information corresponding with it, and character string information is bound, to form packet file with can be undertaken associating by the index information in the two-dimensional code data storehouse not directly defined in Cloud Server;
S32, packet file are uploaded to after in cloud database, are imported in the data link table of its inside by the index information in packet file by the two-dimensional code data storehouse not directly defined, and after giving corresponding Quick Response Code sequence number at random for it, are back in APP;
S33, APP eject and select dialog box in interface, so that multimedia messages definition end subscriber adds the multimedia messages of required form;
S34, Quick Response Code sequence number and multimedia messages carried out associating and binds, to form the content information file including Quick Response Code sequence number and multimedia messages;
S35, boil down to packet file is carried out to content information file, in compression process, generation can the index file that reads by the second target database in Cloud Server, and using Quick Response Code sequence number after the filename be associated with packet file, be uploaded in the corresponding data chained list of the second target database in Cloud Server.
Above-mentioned by the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, wherein, in step S31, in packet file, be included as index information and character string information.
Above-mentioned passes through the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, and wherein, in step s 35, in the second target database, the structure of data link table comprises Table Header information, Quick Response Code sequence number, character string information and multimedia messages.
Above-mentioned passes through the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, wherein, in step s 5, Cloud Server receive multimedia messages check end APP send Quick Response Code sequence number and/or index information after, it is distinguished, comprises step sub-step:
S51, Cloud Server receive multimedia messages check end APP send Quick Response Code sequence number after, it is distinguished;
If multimedia messages is checked in the information that end APP sends only include Quick Response Code sequence number, then assert that the target Quick Response Code corresponding with this information is the Quick Response Code that can directly define, and distinguish whether the Quick Response Code sequence number in this information is included in the corresponding data chained list of first object database, if the Quick Response Code sequence number in a certain data link table comprised in first object database is identical with current two-dimension sequence number, then the multimedia messages stored in data link table is called in the spatial cache of Cloud Server, and be finally sent in the APP checking end and show;
S52, Cloud Server receive multimedia messages check end APP send Quick Response Code sequence number and/or index information after, it is distinguished;
If multimedia messages checks that the information that end APP sends comprises index information, then assert that the target Quick Response Code corresponding with this information is the Quick Response Code not directly defined, and distinguish whether the Quick Response Code sequence number in this information is included in the corresponding data chained list of the second target database, if the Quick Response Code sequence number in a certain data link table comprised in the second target database is identical with current two-dimension sequence number, then the multimedia messages stored in data link table is called in the spatial cache of Cloud Server, and be finally sent in the APP checking end and show.
Above-mentioned by the arbitrary Quick Response Code of scanning to bind mutually and the method for checking multimedia messages, wherein, Quick Response Code can be implanted on any commodity of circulating on the market.
Compared with prior art, the present invention has the following advantages:
The present invention can not change the generating mode of existing Quick Response Code and recognition method, after based on Quick Response Code identification APP arbitrary Quick Response Code being associated with the self-defining multimedia messages of user and binding, to generate target Quick Response Code, after this target Quick Response Code is identified, multimedia messages corresponding thereto can be play, compared with the Quick Response Code of existing form, the present invention has more standby dirigibility with interesting;
In addition, because user can select with polytype multimedia messages, therefore, there is feature applied widely.
Embodiment
As shown in Figure 1, the invention provides a kind of by scanning arbitrary Quick Response Code to bind mutually and the method for checking multimedia messages, comprising the following steps:
Multimedia messages definition end is scanned current two-dimension by APP, after the type of current two-dimension is distinguished, according to the information in APP interface, bind with after forming target Quick Response Code in the interpolation and being associated with current two-dimension completing multimedia messages, be uploaded in Cloud Server;
Multimedia messages checks that end is scanned target Quick Response Code by APP, after resolving it, to receive and to play the multimedia messages associating with it and bind.
As shown in Figure 2, Quick Response Code can be implanted on any commodity of circulating on the market, such as: red packet, envelope etc.The concrete steps of said method are as follows:
S1, multimedia messages definition end by APP, current two-dimension is scanned, and scanning process in distinguish whether current two-dimension is the Quick Response Code that can directly define bound that can directly be associated with multimedia messages.
In step sl, multimedia messages definition end is scanned current two-dimension by APP, the image of current two-dimension can be shown in scanning area in APP interface, if APP to be checked through in current two-dimension except due position sensing figure, also include at least one auxiliary positioning point that can be recognized by APP.
Wherein, other colors except black can be shown as in the scanning area of auxiliary positioning point in APP interface.When scanning area is when being detected auxiliary positioning point, in scanning area, there will be an and figure for auxiliary positioning point distinguish identical with the shape of auxiliary positioning point.After this figure and auxiliary positioning point overlap, then judge that current two-dimension is as the Quick Response Code that can directly define bound that can directly be associated with multimedia messages.Wherein, manual move mode or the automatic move mode of figure and auxiliary positioning point can be adopted between this figure and auxiliary positioning point to coincide.
If APP to be checked through in current two-dimension except due position sensing figure, do not comprise at least one auxiliary positioning point that can be recognized by APP, then judge that current two-dimension is as the Quick Response Code that can directly define bound that cannot directly be associated with multimedia messages, need that conversion is carried out to it just passable.
After current two-dimension is scanned, can password be inputted by APP, thus make current two-dimension image be ciphering two-dimension code image with cryptographic function.And multimedia messages checks that end is when determining that through overscanning current two-dimension image belongs to special image in 2 D code, only have the identical password of input just can carry out follow-up operation.
If S2 APP judges that current two-dimension is as the Quick Response Code that can directly define, then current two-dimension and selected multimedia messages are formed to associate and bind, after forming target Quick Response Code, and be uploaded in Cloud Server.
In step s 2, following sub-step is comprised:
S21, after judging the Quick Response Code that can directly define that current two-dimension is bound as can directly be associated with multimedia messages, current two-dimension to be resolved, to get relative Quick Response Code sequence number.
Wherein, this Quick Response Code sequence number is that the current Quick Response Code that can directly define stores sequence number in a database afterwards in generation.
S22, APP eject and select dialog box in interface, so that multimedia messages definition end subscriber adds the multimedia messages of required form;
In this sub-step, its mode of operation can be divided into two kinds:
The first: first, the file layout of the self-defined information uploaded required for selected user in the drop-down dialog box ejected in APP interface, its file layout is conventional multimedia file format, such as: video, audio frequency, text or image etc.;
Finally, the selected self-defined information needing to upload in dialog box is selected in the self-defined information path of ejecting in APP interface.
The second: be from the different of the first, by directly inputting the path of self-defined information or being selected by the path of dialog box to self-defined information, to find the file of required self-defined information, thus eliminate the step that the file layout of self-defined information is selected.
In addition, if the information not meeting user and require is held in the multimedia messages stored in multimedia messages definition, so, APP can activate the multimedia messages Core Generators such as camera, sound pick-up outfit or words input instrument in current APP operating terminal, thus generates the multimedia messages meeting user and require.But, according to kind of the mode of operation of two in sub-step S22, the multimedia messages generated can be selected.
S23, Quick Response Code sequence number and multimedia messages carried out associating and binds, to form the content information file including Quick Response Code sequence number and multimedia messages;
Quick Response Code sequence number and multimedia messages are bound, to form the content information file including Quick Response Code sequence number and multimedia messages.
In this sub-step, the document form of the content information file formed is as following table:
| Quick Response Code sequence number | Multimedia messages |
。
S24, boil down to packet file is carried out to content information file, using Quick Response Code sequence number after the filename be associated with packet file, be uploaded in the corresponding data chained list of first object database in Cloud Server.
S24 comprises following sub-step:
S241, APP by network by packet files passe in Cloud Server;
Wherein, the packet file that Cloud Server is receiving multimedia messages definition end APP transmission is resolved, if do not comprise index file in this database file, is then imported in first object database by this database file.
S242, in first object database, packet-filename is inquired about, if the Table Header information in a certain data link table included in first object database is identical with packet-filename, then current data APMB package is resolved, thus by the unique storage location of the multimedia information storage in packet file in the data link table pointed by data pointer after Table Header information.Wherein, in data link table, Table Header information is identical with packet-filename and Quick Response Code sequence number, therefore, all can inquire the Table Header information identical with the two by packet-filename or Quick Response Code sequence number.
If the Table Header information in each data link table comprised in stored data base is identical with packet-filename neither one, then stored data base creates the data link table with this packet-filename identical table header, and after by packet document analysis, by the unique storage location of the multimedia information storage in packet file in the data link table pointed by data pointer after Table Header information.
In this sub-step, the document form of data link table is as following table:
| Table Header information | Unique storage location |
。
In step 243, if store multimedia messages in the unique storage location in data link table after Table Header information, then data link table can remove the multimedia messages stored in this memory location automatically, and present multimedia information is stored in this unique storage location.Meanwhile, in data link table, automatically a history information can be generated after unique storage location.Historical record is used for carrying out record to packet file-related information stored each in unique storage location, and this log file mainly comprises storage time of packet file, the capacity of packet file, time of consulting this packet file and to the record such as number of times storing packet file in this unique storage location.In order to strengthen security performance, therefore, this historical record can only consult by Cloud Server, and multimedia messages definition end and multimedia messages check that end cannot consult it.
In this sub-step, the document form of data link table is as following table:
| Table Header information | Unique storage location | Historical record |
。
S244, Cloud Server store successful feedback information to the APP return data APMB package of multimedia messages definition end.
If S3 APP judges that current two-dimension is as the Quick Response Code that can not directly define, then current two-dimension is uploaded in Cloud Server, obtain by Cloud Server be its give sequence number and be back to after in APP, bind current two-dimension and selected multimedia messages are formed to associate, after forming target Quick Response Code, and be uploaded in Cloud Server.
In step s3, following sub-step is comprised:
S31, after judging the Quick Response Code not directly defined that current two-dimension is bound as cannot directly be associated with multimedia messages, multimedia messages definition end APP utilizes Image Coding Algorithms that the Quick Response Code not directly defined is resolved to the character string information corresponding with it, and character string information is bound, to form packet file with can be undertaken associating by the index information in the two-dimensional code data storehouse not directly defined in Cloud Server.
Wherein, index information and character string information is included as in this packet file.
In this step, the existing Image Coding Algorithms of the Image Coding Algorithms used.
S32, packet file are uploaded to after in cloud database, by current index information character string information is stored in the data link table position in the two-dimensional code data storehouse not directly defined pointed by current pointer, and using the gauge outfit sequence number in data link table as the Quick Response Code sequence number corresponding with this character string information, then this Quick Response Code sequence number is back in the APP of multimedia messages definition end.
In this sub-step, the document form of data link table is as following table:
| Table Header information | Character string information |
。
S33, APP eject and select dialog box in interface, so that multimedia messages definition end subscriber adds the multimedia messages of required form.
In this sub-step, its mode of operation can be divided into two kinds:
The first: first, the file layout of the self-defined information uploaded required for selected user in the drop-down dialog box ejected in APP interface, its file layout is conventional multimedia file format, such as: video, audio frequency, text or image etc.;
Finally, the selected self-defined information needing to upload in dialog box is selected in the self-defined information path of ejecting in APP interface.
The second: be from the different of the first, by directly inputting the path of self-defined information or being selected by the path of dialog box to self-defined information, to find the file of required self-defined information, thus eliminate the step that the file layout of self-defined information is selected.
In addition, if the information not meeting user and require is held in the multimedia messages stored in multimedia messages definition, so, APP can activate the multimedia messages Core Generators such as camera, sound pick-up outfit or words input instrument in current APP operating terminal, thus generates the multimedia messages meeting user and require.But, according to kind of the mode of operation of two in sub-step S33, the multimedia messages generated can be selected.
S34, Quick Response Code sequence number and multimedia messages carried out associating and binds, to form the content information file including Quick Response Code sequence number and multimedia messages.
Quick Response Code sequence number and multimedia messages are bound, to form the content information file including Quick Response Code sequence number and multimedia messages.
In this sub-step, the document form of the content information file formed is as following table:
| Quick Response Code sequence number | Multimedia messages |
。
S35, boil down to packet file is carried out to content information file, in compression process, generation can the index file that reads by the second target database in Cloud Server, and using Quick Response Code sequence number after the filename be associated with packet file, be uploaded in the corresponding data chained list of the second target database in Cloud Server.
S35 comprises following sub-step:
S351, APP by network by packet files passe in Cloud Server;
Wherein, the packet file that Cloud Server is receiving multimedia messages definition end APP transmission is resolved, if include index file in this database file, is then imported in the second target database by this database file.
S352, in the second target database, packet-filename is inquired about, if the Table Header information in a certain data link table included in the second target database is identical with packet-filename, then current data APMB package is resolved, thus by the unique storage location of the multimedia information storage in packet file in the data link table pointed by data pointer after Table Header information.Wherein, in data link table, Table Header information is identical with packet-filename and Quick Response Code sequence number, therefore, all can inquire the Table Header information identical with the two by packet-filename or Quick Response Code sequence number.
If the Table Header information in each data link table comprised in stored data base is identical with packet-filename neither one, then stored data base creates the data link table with this packet-filename identical table header, and after by packet document analysis, by the unique storage location of the multimedia information storage in packet file in the data link table pointed by data pointer after Table Header information.
In this sub-step, the document form of data link table is as following table:
| Table Header information | Quick Response Code sequence number | Character string information | Multimedia messages |
In step 353, if store multimedia messages in the unique storage location in data link table after Table Header information, then data link table can remove the multimedia messages stored in this memory location automatically, and present multimedia information is stored in this unique storage location.Meanwhile, in data link table, automatically a history information can be generated after unique storage location.Historical record is used for carrying out record to packet file-related information stored each in unique storage location, and this log file mainly comprises storage time of packet file, the capacity of packet file, time of consulting this packet file and to the record such as number of times storing packet file in this unique storage location.In order to strengthen security performance, therefore, this historical record can only consult by Cloud Server, and multimedia messages definition end and multimedia messages check that end cannot consult it.
In this sub-step, the document form of data link table is as following table:
| Table Header information | Quick Response Code sequence number | Character string information | Multimedia messages | Historical record |
。
S354, Cloud Server store successful feedback information to the APP return data APMB package of multimedia messages definition end.
S4, multimedia messages check that end scans by APP the Quick Response Code be implanted on article, and the current two-dimension sequence number obtained after parsing and/or index information are sent to Cloud Server.
In this step, APP scans image in 2 D code and the mode of decoding is all adopt to carry out to existing image in 2 D code the method that scans Yu decode.If APP to be checked through in current two-dimension except due position sensing figure, also include at least one auxiliary positioning point that can be recognized by APP, then determine that it is the Quick Response Code that can directly define, to obtain this Quick Response Code sequence number, and this Quick Response Code sequence number is sent to the first object database in Cloud Server by network.
If APP to be checked through in current two-dimension except due position sensing figure, do not comprise at least one auxiliary positioning point that can be recognized by APP, then determine that it is the Quick Response Code not directly defined, to obtain this Quick Response Code sequence number, and to be sent to the second target database in Cloud Server by network with the index information that can be undertaken by the second target database in Cloud Server distinguishing.
In addition, when scanning current two-dimension image, if current image in 2 D code is the ciphering two-dimension code image possessing encryption function, APP then ejects interface for password input.Only after the password that input is correct, multimedia messages checks that end just can carry out follow-up operation.If current image in 2 D code is the ciphering two-dimension code image not possessing encryption function, then in the APP first object database that code figure sequence number and/or index information will be sent to Cloud Server by network or the second target database.
S5, after Cloud Server to check the Quick Response Code sequence number verification succeeds that end APP sends to multimedia messages, check that end APP feedback to be associated with Quick Response Code sequence number the multimedia messages bound to multimedia messages.
In step s 5, Cloud Server receive multimedia messages check end APP send Quick Response Code sequence number and/or index information after, it is distinguished, comprises step sub-step:
S51, Cloud Server receive multimedia messages check end APP send Quick Response Code sequence number after, it is distinguished;
If multimedia messages is checked in the information that end APP sends only include Quick Response Code sequence number, then assert that the target Quick Response Code corresponding with this information is the Quick Response Code that can directly define, and distinguish whether the Quick Response Code sequence number in this information is included in the corresponding data chained list of first object database, if the Quick Response Code sequence number in a certain data link table comprised in first object database is identical with current two-dimension sequence number, then the multimedia messages stored in data link table is called in the spatial cache of Cloud Server, and be finally sent to multimedia messages check end APP APP in show,
S52, Cloud Server receive multimedia messages check end APP send Quick Response Code sequence number and/or index information after, it is distinguished;
If multimedia messages checks that the information that end APP sends comprises index information, then assert that the target Quick Response Code corresponding with this information is the Quick Response Code not directly defined, and distinguish whether the Quick Response Code sequence number in this information is included in the corresponding data chained list of the second target database, if the Quick Response Code sequence number in a certain data link table comprised in the second target database is identical with current two-dimension sequence number, then the multimedia messages stored in data link table is called in the spatial cache of Cloud Server, and be finally sent to multimedia messages check end APP APP in show.
In addition, multimedia messages checks that end APP can also check this multimedia messages of mode online according to information is selected, when being selected in after line checks mode, checks that end APP directly checks the self-defined information of decompress(ion) in the buffer memory of Cloud Server by network.
In addition, when multimedia messages check end APP check complete associate with this Quick Response Code the multimedia messages bound after, also can by the APP on operating terminal according to step S1 to S4, X-Y scheme and multimedia messages are re-started to associate and binds, to form new packet file, and be uploaded in Cloud Server, and now original multimedia messages checks that end has been converted to multimedia messages definition end, to complete the conversion of role.
In addition, no matter be that multimedia messages checks that end APP or multimedia messages check that end APP is after scanning Quick Response Code, if also binding has other relevant informations (such as address correlation) in this Quick Response Code, also can pass through existing Quick Response Code scan function, this relevant information is identified.
Only as described above, be only preferred embodiment of the present invention, such as professional who are familiar with this art.After understanding technological means of the present invention, natural energy, according to actual needs, is changed under the teachings of the present invention.Therefore all equal changes of doing according to the present patent application the scope of the claims and modification, once should still remain within the scope of the patent.