Embodiment
Below be described in detail at the method for tracing multimedia messages of the present invention and each embodiment of device.
At first each embodiment at the method for tracing multimedia messages is described.
Embodiment one
Referring to Fig. 1, be the schematic flow sheet of the method embodiment one of tracing multimedia messages of the present invention, comprise step:
Step S101: multimedia message is encoded to seed, determines each element watermark information of seed multimedia message, the number of elements of seed multimedia message;
Step S102: read matching way and multimedia message ticket log information;
Step S103: multimedia message ticket log information is decoded and standard code, determine each element watermark information of user's multimedia message, the number of elements of user's multimedia message;
Step S104: when matching way is judgment model, traversal is selected user's multimedia message from multimedia message ticket log information, with each element watermark information of described user's multimedia message, number of elements respectively with each element information of described seed multimedia message, number of elements relatively, determine the match pattern of each user's multimedia message
Wherein, each element watermark information of seed multimedia message comprises each element content of seed multimedia message, the order of elements of seed multimedia message, and each element watermark information of user's multimedia message comprises each element content of user's multimedia message, the order of elements of user's multimedia message.
At first the MMS content that increases newly is carried out recompile, form the seed multimedia message information of watermark.Submit new multimedia message information to by system, system will be to the content of the seed multimedia message form recompile according to the smil file, MMS element is wherein renamed, naming rule is: unique seed id_5 position random number. the suffix name of former MMS element, formation has each element watermark information of the seed multimedia message of unique ID.Simultaneously renewal is appended each element watermark information of new seed multimedia message in seed multimedia message configuration file.Contain seed id information and sequential fingerprint configuration information in the configuration file, i.e. the standardization of MMS content is used during for coupling.Coding to the multimedia message seed is not limited thereto coded system, specifically can set as required, does not repeat them here.
Before the collection, set profile information, such as: match pattern, processing threads number, multimedia message seed Profile Path, number segment file path, special number file path, output result list etc.
Read the information of seed multimedia message configuration file, also read simultaneously multimedia message ticket log information, multimedia message ticket log information is decoded, and according to the coded system to the seed MMS coding user's multimedia message in the multimedia message ticket log information is encoded, obtain each element watermark information of user's multimedia message, the number of elements of user's multimedia message then.Wherein, there are many user's multimedia messages in the multimedia message ticket log information, need to determine respectively watermark information and the number of elements of these user's multimedia messages.In specific embodiment, can also obtain information such as caller, called, transmitting time.
Read matching way, when matching way is judgment model (namely needs to judge user's multimedia message and belong to which kind of pattern), traversal is selected user's multimedia message from multimedia message ticket log information, with each element watermark information of user's multimedia message, number of elements respectively with each element information of seed multimedia message, number of elements relatively, determine match pattern and user's multimedia message quantity of this user's multimedia message.After all user's multimedia messages in having traveled through multimedia message ticket log information, just can draw the match pattern of all user's multimedia message information, add up user's multimedia message quantity of various match patterns.Wherein, matching way is a kind of selection requirement to user's multimedia message, and this matching way is to set in advance.Each element watermark information of seed multimedia message comprises each element content of seed multimedia message, the order of elements of seed multimedia message, and each element watermark information of user's multimedia message comprises each element content of user's multimedia message, the order of elements of user's multimedia message.The judgment model method is as follows:
Each element content of user's multimedia message is consistent with each element content of seed multimedia message, order of elements unanimity, user's MMS element quantity and the seed MMS element quantity unanimity of the order of elements of user's multimedia message and seed multimedia message, when satisfying simultaneously, then this user's multimedia message is full match pattern;
The order of elements of each element content of user's multimedia message and user multimedia message consistent with each element content of seed multimedia message and the order of elements of seed multimedia message are inconsistent, and then this user's multimedia message is the variation match pattern;
Each element content of user's multimedia message is the part element content of seed multimedia message, and then this user's multimedia message is incomplete match pattern, and wherein, user's MMS element order can be identical with seed MMS element order, also can be different;
The all elements content of seed multimedia message can find in user's multimedia message, but user's multimedia message also comprises some other element contents, and this user's multimedia message is parasitic match pattern.
Certainly, match pattern is not limited to above-mentioned given example, can formulate some match patterns as required, also can increase or delete some patterns as required.Simultaneously also can be according to different mode, the user's multimedia message quantity under the statistics different mode.Concrete grammar does not repeat them here.
In a specific embodiment, specific algorithm is as follows:
Set up array, the array figure place is the higher value in the number of elements of the number of elements of seed multimedia message and user's multimedia message, traversal is selected element content of user's multimedia message and each element content comparison of seed multimedia message, when having the identical element content of element content with the seed multimedia message in user's multimedia message, then the numbering of identical element content in user's multimedia message write the array assigned address, the array assigned address refers to the position of the corresponding array of the numbering of identical element content in the seed multimedia message.
Number of elements such as the seed multimedia message has 3, and the number of elements of user's multimedia message has 4.Select bigger one as the array figure place, then the array figure place has four, can be initialized as 0000.If the 2nd element of user's MMS content is identical with the 1st element of seed MMS content, the 3rd element of user's MMS content is identical with the 2nd element of seed MMS content, then the numbering 2 in user's multimedia message is write in the array the 1st, numbering 3 in user's multimedia message is write in the array the 2nd, and then the comparative result array is 2300.
Certainly, data method is not limited thereto kind of a method, also can be the numbering of identical element content in the seed multimedia message write the array assigned address, and the array assigned address is the position of the identical numbering correspondence of element content in user's multimedia message.Perhaps traversal selects element content of seed multimedia message and each element content of user's multimedia message relatively to wait.Specifically set as required, do not repeat them here.
Behind each element content in having traveled through this user's multimedia message, then carry out the comparison of next bar user multimedia message and seed multimedia message.After all the user's multimedia messages in the multimedia message ticket log information and seed multimedia message compare, the matching result information that in the comparative result array is null character is entirely rejected, obtain the initial matching result.
Numbering when the number of elements of the figure place of array and seed multimedia message in the identical and array and the numbering of each element of seed multimedia message is identical and order is identical then is full match pattern;
Numbering when the number of elements of the figure place of array and seed multimedia message in the identical and array is identical with the numbering of each element of seed multimedia message but order is different, then is the variation match pattern;
When the figure place of array is identical with the numbering of each element of seed multimedia message less than number of elements and the numbering in the array of seed multimedia message, be incomplete match pattern then;
When the figure place of array greater than the numbering that number of elements and the numbering in the array of seed multimedia message comprises each element of seed multimedia message, then be parasitic match pattern.
Wherein, each element watermark information of seed multimedia message also comprises each element numbering of seed multimedia message, and each element watermark information of user's multimedia message also comprises each element numbering of user's multimedia message.
Can determine the information such as number of elements, match condition comparative result of seed id, caller, called, transmitting time, seed number of elements, MMS content by the present invention, can also follow the tracks of counting user's multimedia message quantity under the different mode.Thereby avoided because element position part element, many part elements occur changing, lack, replaces the defective that can't search user's multimedia message that part element etc. causes, can distinguish these several matching ways is matched form such as full coupling, variation, incompleteness, parasitism, satisfies different application requirements.Simultaneously, the match pattern algorithm is light and handy practical as a result, efficient is high in output.
Embodiment two
Embodiment two is situations that multiple matching way is arranged, such as full match pattern, special number pattern and full match pattern, special stage mode and full match pattern, special number pattern and judgment model, special stage mode and judgment model.Present embodiment comprises step:
Multimedia message is encoded to seed, determines each element watermark information of seed multimedia message, the number of elements of seed multimedia message;
Read matching way and multimedia message ticket log information;
Multimedia message ticket log information is decoded and standard code, determine each element watermark information of user's multimedia message, the number of elements of user's multimedia message;
When matching way is judgment model, traversal is selected user's multimedia message from multimedia message ticket log information, with each element watermark information of user's multimedia message, number of elements respectively with each element information of seed multimedia message, number of elements relatively, determine the match pattern of each user's multimedia message;
When matching way is full match pattern, judge whether exist in the described multimedia message ticket log information and described seed MMS element quantity, multimedia message that described each element watermark information of seed multimedia message is identical, if exist, then export full match pattern;
When matching way is special number pattern and full match pattern, read special number, with the number storage in the described multimedia message ticket log information in the number array, search in the described number array and whether have described special number, if, judge whether exist in user's multimedia message of described special number correspondence and described seed MMS element quantity, user's multimedia message that described each element watermark information of seed multimedia message is identical, if exist, then export described special number, full match pattern;
When matching way is special stage mode and full match pattern, read the special section, in number section number of the being stored in hop count group in the described multimedia message ticket log information, search and whether have described special section in the described hop count group, if, judge whether exist in user's multimedia message of described special section correspondence and described seed MMS element quantity, multimedia message that described each element watermark information of seed multimedia message is identical, if exist, then export described special section, full match pattern;
When matching way is special number pattern and judgment model, read special number, with the number storage in the described multimedia message ticket log information in the number array, search in the described number array and whether have described special number, if, traversal is selected user's multimedia message from user's multimedia message of described special number correspondence, with each element watermark information of described user's multimedia message, number of elements respectively with each element information of described seed multimedia message, number of elements relatively, determine match pattern and the special number of each user's multimedia message;
When matching way is special stage mode and judgment model, read the special section, in number section number of the being stored in hop count group in the described multimedia message ticket log information, search and whether have described special section in the described hop count group, if, traversal is selected user's multimedia message from user's multimedia message of described special section correspondence, with each element watermark information of described user's multimedia message, number of elements respectively with each element information of described seed multimedia message, number of elements relatively, determine match pattern and the special number of each user's multimedia message.
Wherein, each element watermark information of seed multimedia message comprises each element content of seed multimedia message, the order of elements of seed multimedia message, and each element watermark information of user's multimedia message comprises each element content of user's multimedia message, the order of elements of user's multimedia message.
At first the MMS content that increases newly is carried out recompile, form the seed multimedia message information of watermark.Submit new multimedia message information to by system, system will be to the content of the seed multimedia message form recompile according to the smil file, MMS element is wherein renamed, naming rule is: unique seed id_5 position random number. the suffix name of former MMS element, formation has each element watermark information of the seed multimedia message of unique ID.Simultaneously renewal is appended each element watermark information of new seed multimedia message in seed multimedia message configuration file.Contain seed id information and sequential fingerprint configuration information in the configuration file, i.e. the standardization of MMS content is used during for coupling.Coding to the multimedia message seed is not limited thereto coded system, specifically can set as required, does not repeat them here.
Before the collection, the profile information that has set: match pattern, processing threads number, multimedia message seed Profile Path, number segment file path, special number file path, output result list etc.
Read information, multimedia message ticket log information, the matching way of seed multimedia message configuration file, multimedia message ticket log information is decoded, and according to the coded system to the seed MMS coding user's multimedia message in the multimedia message ticket log information is encoded, obtain each element watermark information of user's multimedia message, the number of elements of user's multimedia message then.Wherein, there are many user's multimedia messages in the multimedia message ticket log information, need to determine respectively watermark information and the number of elements of these user's multimedia messages.In specific embodiment, can also obtain information such as caller, called, transmitting time.
Read matching way, when matching way is special number pattern and judgment model, read special number, with the number storage in the multimedia message ticket log information in the number array, search and whether have described special number in the number array, if, traversal is selected user's multimedia message in from user's multimedia message of special number correspondence, with each element watermark information of user's multimedia message, number of elements respectively with each element information of seed multimedia message, number of elements relatively, determine match pattern and user's multimedia message quantity of this user's multimedia message.After all user's multimedia messages in having traveled through multimedia message ticket log information, just can draw the match pattern of all user's multimedia message information, add up user's multimedia message quantity of various match patterns under this special number.Wherein, matching way is a kind of selection requirement to user's multimedia message, and this matching way is to set in advance.Each element watermark information of seed multimedia message comprises each element content of seed multimedia message, the order of elements of seed multimedia message, and each element watermark information of user's multimedia message comprises each element content of user's multimedia message, the order of elements of user's multimedia message.The judgment model method is as follows:
Each element content of user's multimedia message is consistent with each element content of seed multimedia message, order of elements unanimity, user's MMS element quantity and the seed MMS element quantity unanimity of the order of elements of user's multimedia message and seed multimedia message, when satisfying simultaneously, then this user's multimedia message is full match pattern;
The order of elements of each element content of user's multimedia message and user multimedia message consistent with each element content of seed multimedia message and the order of elements of seed multimedia message are inconsistent, and then this user's multimedia message is the variation match pattern;
Each element content of user's multimedia message is the part element content of seed multimedia message, and then this user's multimedia message is incomplete match pattern, and wherein, user's MMS element order can be identical with seed MMS element order, also can be different;
The all elements content of seed multimedia message can find in user's multimedia message, but user's multimedia message also comprises some other element contents, and this user's multimedia message is parasitic match pattern.
Certainly, match pattern is not limited to above-mentioned given example, can formulate some match patterns as required, also can increase or delete some patterns as required.Simultaneously also can be according to different mode, the user's multimedia message quantity under the statistics different mode.Concrete grammar does not repeat them here.
In a specific embodiment, specific algorithm is as follows:
Set up array, the array figure place is the higher value in the number of elements of the number of elements of seed multimedia message and user's multimedia message, traversal is selected element content of user's multimedia message and each element content comparison of seed multimedia message, when having the identical element content of element content with the seed multimedia message in user's multimedia message, then the numbering of identical element content in user's multimedia message write the array assigned address, the array assigned address refers to the position of the corresponding array of the numbering of identical element content in the seed multimedia message.
Number of elements such as the seed multimedia message has 3, and the number of elements of user's multimedia message has 4.Select bigger one as the array figure place, then the array figure place has four, can be initialized as 0000.If the 2nd element of user's MMS content is identical with the 1st element of seed MMS content, the 3rd element of user's MMS content is identical with the 2nd element of seed MMS content, then the numbering 2 in user's multimedia message is write in the array the 1st, numbering 3 in user's multimedia message is write in the array the 2nd, and then the comparative result array is 2300.
Certainly, data method is not limited thereto kind of a method, also can be the numbering of identical element content in the seed multimedia message write the array assigned address, and the array assigned address is the position of the identical numbering correspondence of element content in user's multimedia message.Perhaps traversal selects element content of seed multimedia message and each element content of user's multimedia message relatively to wait.Specifically set as required, do not repeat them here.
Behind each element content in having traveled through this user's multimedia message, then carry out the comparison of next bar user multimedia message and seed multimedia message.After all the user's multimedia messages in the multimedia message ticket log information and seed multimedia message compare, the matching result information that in the comparative result array is null character is entirely rejected, obtain the initial matching result.
Numbering when the number of elements of the figure place of array and seed multimedia message in the identical and array and the numbering of each element of seed multimedia message is identical and order is identical then is full match pattern;
Numbering when the number of elements of the figure place of array and seed multimedia message in the identical and array is identical with the numbering of each element of seed multimedia message but order is different, then is the variation match pattern;
When the figure place of array is identical with the numbering of each element of seed multimedia message less than number of elements and the numbering in the array of seed multimedia message, be incomplete match pattern then;
When the figure place of array greater than the numbering that number of elements and the numbering in the array of seed multimedia message comprises each element of seed multimedia message, then be parasitic match pattern.
Wherein, each element watermark information of seed multimedia message also comprises each element numbering of seed multimedia message, and each element watermark information of user's multimedia message also comprises each element numbering of user's multimedia message.
When matching way when matching way is special stage mode and judgment model, number segment information refers to preceding 7 bit digital of phone number, just know Subscriber Number home zone and brand by number segment information, know that by 1351079 this phone number is the ShenZhen,GuangDong user such as 1351079xxxx, the M-ZONE brand.Concrete grammar and special number pattern and judgment model are similar, do not repeat them here.Special number pattern or special stage mode can separate judgement with match pattern, such as judging whether to be the special number pattern earlier, if then obtain steps such as special number, and then judge whether to be full match pattern or judgment model.Specifically be first judgement, still judge simultaneously, can set as required, do not repeat them here.
Can determine the information such as number of elements, match condition comparative result of seed id, caller, called, transmitting time, seed number of elements, MMS content by the present invention.Thereby avoided because element position part element, many part elements occur changing, lack, replaces the defective that can't search user's multimedia message that part element etc. causes, can distinguish these several matching ways is matched form such as full coupling, variation, incompleteness, parasitism, satisfies different application requirements.Simultaneously, the match pattern algorithm is light and handy practical as a result, efficient is high in output.Can also basis section or the required information of number inquiry.
According to the method for above-mentioned tracing multimedia messages, the invention provides a kind of tracing multimedia messages device.
Embodiment one
Referring to Fig. 2, be the structural representation of tracing multimedia messages device embodiment one of the present invention, comprising:
Coding module 201 is used for to seed multimedia message and encodes, and determines each element watermark information of seed multimedia message, the number of elements of seed multimedia message;
Acquisition module 202 reads matching way and multimedia message ticket log information;
Standardized module 203 is used for described multimedia message ticket log information is decoded and standard code, determines each element watermark information of user's multimedia message, the number of elements of described user's multimedia message;
Matching module 204, be used for when matching way is judgment model, traversal is selected user's multimedia message from multimedia message ticket log information, with each element watermark information of described user's multimedia message, number of elements respectively with each element information of described seed multimedia message, number of elements relatively, determine the match pattern of each user's multimedia message
Wherein, each element watermark information of described seed multimedia message comprises each element content of seed multimedia message, the order of elements of seed multimedia message, and each element watermark information of described user's multimedia message comprises each element content of user's multimedia message, the order of elements of user's multimedia message.
At first 201 pairs of MMS contents that increase newly of coding module carry out recompile, form the seed multimedia message information of watermark.Submit new multimedia message information to by system, system will be to the content of the seed multimedia message form recompile according to the smil file, MMS element is wherein renamed, naming rule is: unique seed id_5 position random number. the suffix name of former MMS element, formation has each element watermark information of the seed multimedia message of unique ID.Simultaneously renewal is appended each element watermark information of new seed multimedia message in seed multimedia message configuration file.Contain seed id information and sequential fingerprint configuration information in the configuration file, i.e. the standardization of MMS content is used during for coupling.Coding to the multimedia message seed is not limited thereto coded system, specifically can set as required, does not repeat them here.
Before the collection, set profile information, such as: match pattern, processing threads number, multimedia message seed Profile Path, number segment file path, special number file path, output result list etc.
Acquisition module 202 reads information, multimedia message ticket log information, the matching way of seed multimedia message configuration file.203 pairs of multimedia message tickets of standardized module log information is decoded, and according to the coded system to the seed MMS coding user's multimedia message in the multimedia message ticket log information is encoded, obtain each element watermark information of user's multimedia message, the number of elements of user's multimedia message then.Wherein, there are many user's multimedia messages in the multimedia message ticket log information, need to determine respectively watermark information and the number of elements of these user's multimedia messages.In specific embodiment, can also obtain information such as caller, called, transmitting time.
Matching module 204 is used for judging the match pattern of user's multimedia message.When matching way is judgment model (namely needs to judge user's multimedia message and belong to which kind of pattern), traversal is selected user's multimedia message from multimedia message ticket log information, with each element watermark information of user's multimedia message, number of elements respectively with each element information of seed multimedia message, number of elements relatively, determine match pattern and user's multimedia message quantity of this user's multimedia message.After all user's multimedia messages in having traveled through multimedia message ticket log information, just can draw the match pattern of all user's multimedia message information, add up user's multimedia message quantity of various match patterns.Wherein, matching way is a kind of selection requirement to user's multimedia message, and this matching way is to set in advance.Each element watermark information of seed multimedia message comprises each element content of seed multimedia message, the order of elements of seed multimedia message, and each element watermark information of user's multimedia message comprises each element content of user's multimedia message, the order of elements of user's multimedia message.The judgment model method is as follows:
Each element content of user's multimedia message is consistent with each element content of seed multimedia message, order of elements unanimity, user's MMS element quantity and the seed MMS element quantity unanimity of the order of elements of user's multimedia message and seed multimedia message, when satisfying simultaneously, then this user's multimedia message is full match pattern;
The order of elements of each element content of user's multimedia message and user multimedia message consistent with each element content of seed multimedia message and the order of elements of seed multimedia message are inconsistent, and then this user's multimedia message is the variation match pattern;
Each element content of user's multimedia message is the part element content of seed multimedia message, and then this user's multimedia message is incomplete match pattern, and wherein, user's MMS element order can be identical with seed MMS element order, also can be different;
The all elements content of seed multimedia message can find in user's multimedia message, but user's multimedia message also comprises some other element contents, and this user's multimedia message is parasitic match pattern.
Certainly, match pattern is not limited to above-mentioned given example, can formulate some match patterns as required, also can increase or delete some patterns as required.Simultaneously also can be according to different mode, the user's multimedia message quantity under the statistics different mode.Concrete grammar does not repeat them here.
Concrete enforcement is similar with the method embodiment one of tracing multimedia messages of the present invention, does not repeat them here.
Can determine the information such as number of elements, match condition comparative result of seed id, caller, called, transmitting time, seed number of elements, MMS content by the present invention, can also follow the tracks of counting user's multimedia message quantity under the different mode.Thereby avoided because element position part element, many part elements occur changing, lack, replaces the defective that can't search user's multimedia message that part element etc. causes, can distinguish these several matching ways is matched form such as full coupling, variation, incompleteness, parasitism, satisfies different application requirements.Simultaneously, the match pattern algorithm is light and handy practical as a result, efficient is high in output.
Embodiment two
Embodiment two is situations that multiple matching way is arranged, such as full match pattern, special number pattern and full match pattern, special stage mode and full match pattern, special number pattern and non-full match pattern, special stage mode and non-full match pattern.Present embodiment comprises:
Coding module is used for to seed multimedia message and encodes, and determines each element watermark information of seed multimedia message, the number of elements of seed multimedia message;
Acquisition module is used for reading matching way and multimedia message ticket log information;
Standardized module is used for multimedia message ticket log information is decoded and standard code, determines each element watermark information of user's multimedia message, the number of elements of user's multimedia message;
Matching module, be used for when matching way is judgment model, traversal is selected user's multimedia message from multimedia message ticket log information, with each element watermark information of user's multimedia message, number of elements respectively with each element information, the number of elements comparison of seed multimedia message, determine the match pattern of each user's multimedia message
When matching way is full match pattern, judge whether exist in the described multimedia message ticket log information and described seed MMS element quantity, multimedia message that described each element watermark information of seed multimedia message is identical, if exist, then export full match pattern;
When matching way is special number pattern and full match pattern, read special number, with the number storage in the described multimedia message ticket log information in the number array, search in the described number array and whether have described special number, if, judge whether exist in user's multimedia message of described special number correspondence and described seed MMS element quantity, user's multimedia message that described each element watermark information of seed multimedia message is identical, if exist, then export described special number, full match pattern;
When matching way is special stage mode and full match pattern, read the special section, in number section number of the being stored in hop count group in the described multimedia message ticket log information, search and whether have described special section in the described hop count group, if, judge whether exist in user's multimedia message of described special section correspondence and described seed MMS element quantity, multimedia message that described each element watermark information of seed multimedia message is identical, if exist, then export described special section, full match pattern;
When matching way is special number pattern and judgment model, read special number, with the number storage in the described multimedia message ticket log information in the number array, search in the described number array and whether have described special number, if, traversal is selected user's multimedia message from user's multimedia message of described special number correspondence, with each element watermark information of described user's multimedia message, number of elements respectively with each element information of described seed multimedia message, number of elements relatively, determine match pattern and the special number of each user's multimedia message;
When matching way is special stage mode and judgment model, read the special section, in number section number of the being stored in hop count group in the described multimedia message ticket log information, search and whether have described special section in the described hop count group, if, traversal is selected user's multimedia message from user's multimedia message of described special section correspondence, with each element watermark information of described user's multimedia message, number of elements respectively with each element information of described seed multimedia message, number of elements relatively, determine match pattern and the special number of each user's multimedia message.
Wherein, each element watermark information of seed multimedia message comprises each element content of seed multimedia message, the order of elements of seed multimedia message, and each element watermark information of user's multimedia message comprises each element content of user's multimedia message, the order of elements of user's multimedia message.
At first coding module carries out recompile to the MMS content that increases newly, forms the seed multimedia message information of watermark.Submit new multimedia message information to by system, system will be to the content of the seed multimedia message form recompile according to the smil file, MMS element is wherein renamed, naming rule is: unique seed id_5 position random number. the suffix name of former MMS element, formation has each element watermark information of the seed multimedia message of unique ID.Simultaneously renewal is appended each element watermark information of new seed multimedia message in seed multimedia message configuration file.Contain seed id information and sequential fingerprint configuration information in the configuration file, i.e. the standardization of MMS content is used during for coupling.Coding to the multimedia message seed is not limited thereto coded system, specifically can set as required, does not repeat them here.
Before the collection, the profile information that has set: match pattern, processing threads number, multimedia message seed Profile Path, number segment file path, special number file path, output result list etc.
Acquisition module reads information, multimedia message ticket log information, the matching way of seed multimedia message configuration file, standardized module is decoded to multimedia message ticket log information, and according to the coded system to the seed MMS coding user's multimedia message in the multimedia message ticket log information is encoded, obtain each element watermark information of user's multimedia message, the number of elements of user's multimedia message then.Wherein, there are many user's multimedia messages in the multimedia message ticket log information, need to determine respectively watermark information and the number of elements of these user's multimedia messages.In specific embodiment, can also obtain information such as caller, called, transmitting time.
Matching module is used for judging match pattern, when matching way is special number pattern and judgment model, read special number, with the number storage in the multimedia message ticket log information in the number array, search and whether have described special number in the number array, if, traversal is selected user's multimedia message in from user's multimedia message of special number correspondence, with each element watermark information of user's multimedia message, number of elements respectively with each element information of seed multimedia message, number of elements relatively, determine match pattern and user's multimedia message quantity of this user's multimedia message.After all user's multimedia messages in having traveled through multimedia message ticket log information, just can draw the match pattern of all user's multimedia message information, add up user's multimedia message quantity of various match patterns under this special number.Wherein, matching way is a kind of selection requirement to user's multimedia message, and this matching way is to set in advance.Each element watermark information of seed multimedia message comprises each element content of seed multimedia message, the order of elements of seed multimedia message, and each element watermark information of user's multimedia message comprises each element content of user's multimedia message, the order of elements of user's multimedia message.The judgment model method is as follows:
Each element content of user's multimedia message is consistent with each element content of seed multimedia message, order of elements unanimity, user's MMS element quantity and the seed MMS element quantity unanimity of the order of elements of user's multimedia message and seed multimedia message, when satisfying simultaneously, then this user's multimedia message is full match pattern;
The order of elements of each element content of user's multimedia message and user multimedia message consistent with each element content of seed multimedia message and the order of elements of seed multimedia message are inconsistent, and then this user's multimedia message is the variation match pattern;
Each element content of user's multimedia message is the part element content of seed multimedia message, and then this user's multimedia message is incomplete match pattern, and wherein, user's MMS element order can be identical with seed MMS element order, also can be different;
The all elements content of seed multimedia message can find in user's multimedia message, but user's multimedia message also comprises some other element contents, and this user's multimedia message is parasitic match pattern.
Certainly, match pattern is not limited to above-mentioned given example, can formulate some match patterns as required, also can increase or delete some patterns as required.Simultaneously also can be according to different mode, the user's multimedia message quantity under the statistics different mode.Concrete grammar does not repeat them here.The method embodiment two of specific algorithm and tracing multimedia messages is similar, does not repeat them here.
When matching way when matching way is special stage mode and judgment model, number segment information refers to preceding 7 bit digital of phone number, just know Subscriber Number home zone and brand by number segment information, know that by 1351079 this phone number is the ShenZhen,GuangDong user such as 1351079xxxx, the M-ZONE brand.Concrete grammar and special number pattern and judgment model are similar, do not repeat them here.Special number pattern or special stage mode can separate judgement with match pattern, such as judging whether to be the special number pattern earlier, if then obtain steps such as special number, and then judge whether to be full match pattern or judgment model.Specifically be first judgement, still judge simultaneously, can set as required, do not repeat them here.
Can determine the information such as number of elements, match condition comparative result of seed id, caller, called, transmitting time, seed number of elements, MMS content by the present invention.Thereby avoided because element position part element, many part elements occur changing, lack, replaces the defective that can't search user's multimedia message that part element etc. causes, can distinguish these several matching ways is matched form such as full coupling, variation, incompleteness, parasitism, satisfies different application requirements.Simultaneously, the match pattern algorithm is light and handy practical as a result, efficient is high in output.Can also basis section or the required information of number inquiry.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.