Disclosure of Invention
The embodiment of the invention aims to provide a digital watermark encryption detection method and aims to solve the problem in the third part of the background technology.
The embodiment of the invention is realized in such a way that the digital watermark encryption detection method comprises the following steps:
Acquiring digital media data, wherein the digital media data comprises video, images and audio, and acquiring detection targets, and the detection targets comprise copyright protection, product tracing, content authentication and information management;
Selecting a watermark detection method according to a detection target and digital media data, wherein the detection method comprises blind detection and non-blind detection, obtaining robustness of the digital watermark, and selecting the detection method according to the robustness;
obtaining a detection result, and obtaining a processing mode, wherein the processing mode comprises multi-layer encryption, dynamic watermarking and changing a digital watermarking embedding method, and the corresponding processing mode is obtained according to the detection result to obtain the processing result;
The method comprises the steps of obtaining digital watermark detection efficiency, obtaining processing efficiency, wherein the processing efficiency is processing time length and processing success rate after a problem is detected, obtaining a detection efficiency threshold and a processing efficiency threshold, obtaining a comparison result of the detection efficiency and the processing efficiency, and judging whether a detection method and a processing mode are qualified or not according to the comparison result.
Preferably, the watermark detection method is selected according to the detection target and the digital media data, the detection method includes blind detection and non-blind detection, digital watermark robustness is obtained, and the detection method is selected according to the robustness, specifically including the steps of:
Acquiring a digital watermark embedding mode of digital media data, and acquiring robustness of the digital watermark according to the embedding mode, wherein the robustness is used for reflecting the stability and the resistance of the digital watermark;
Comparing the robustness with a first threshold, judging the robustness, selecting a watermark detection method according to the detection target and the digital media data,
If high robustness is determined, non-blind detection is employed, and if low robustness is determined, blind detection is employed.
Preferably, the obtaining a detection result and obtaining a processing mode, where the processing mode includes multilayer encryption, dynamic watermarking and changing a digital watermark embedding method, and the step of obtaining a corresponding processing mode according to the detection result and obtaining a processing result specifically includes:
obtaining a detection result, wherein the detection result comprises normal detection, detection errors and extraction failures, and a processing mode is obtained;
Obtaining a corresponding processing mode according to the detection result, obtaining a processing result, and comparing the processing result with a second threshold, wherein the second threshold is a digital watermark parameter which is normally detected;
if the processing result is larger than the second threshold, the processing is judged to be successful, and if the processing result is smaller than the second threshold, the processing is judged to be failed, and the processing mode is changed.
Preferably, the method for obtaining the digital watermark detection efficiency and obtaining the processing efficiency includes the steps of obtaining a detection efficiency threshold and a processing efficiency threshold for processing time length and processing success rate after a problem is detected, obtaining a comparison result of the detection efficiency and the processing efficiency, and judging whether a detection method and a processing mode are qualified or not according to the comparison result, wherein the method specifically includes:
Acquiring digital watermark detection efficiency, wherein the digital watermark detection efficiency comprises extraction accuracy, false detection rate, omission factor and detection time, and processing efficiency is acquired;
Acquiring a detection efficiency threshold and a processing efficiency threshold, comparing the detection efficiency with the detection efficiency threshold, and comparing the processing efficiency with the processing efficiency threshold;
and obtaining a comparison result, and judging whether the detection method and the processing mode are qualified or not according to the comparison result.
Preferably, the digital watermark adopts an embedding technology, and the embedding technology comprises spatial domain embedding and frequency domain embedding.
Another object of an embodiment of the present invention is to provide a digital watermark encryption detection system, including:
the early-stage preparation module is used for acquiring digital media data, wherein the digital media data comprises video, images and audio, and acquiring detection targets, and the detection targets comprise copyright protection, product tracing, content authentication and information management;
The robustness module is used for selecting a watermark detection method according to a detection target and the digital media data, wherein the detection method comprises blind detection and non-blind detection, digital watermark robustness is obtained, and the detection method is selected according to the robustness;
the processing module is used for acquiring a detection result and acquiring a processing mode, wherein the processing mode comprises multi-layer encryption, dynamic watermarking and changing of a digital watermarking embedding method, and the corresponding processing mode is acquired according to the detection result to acquire the processing result;
The efficiency module is used for acquiring the digital watermark detection efficiency and the processing efficiency, wherein the processing efficiency is the processing time length and the processing success rate after the problem is detected, acquiring a detection efficiency threshold value and a processing efficiency threshold value, acquiring a comparison result of the detection efficiency and the processing efficiency, and judging whether the detection method and the processing mode are qualified or not according to the comparison result.
Preferably, the robustness module includes:
the robustness unit is used for acquiring a digital watermark embedding mode of the digital media data, and acquiring the robustness of the digital watermark according to the embedding mode, wherein the robustness is used for reflecting the stability and the resistance of the digital watermark;
a detection method unit for comparing the robustness with a first threshold value, judging the robustness, selecting a watermark detection method according to the detection target and the digital media data,
The method determining unit adopts non-blind detection if the high robustness is determined, and adopts blind detection if the low robustness is determined.
Preferably, the processing module includes:
The processing mode unit is used for acquiring detection results, wherein the detection results comprise normal detection, detection errors and extraction failures, and the processing mode is acquired;
the processing mode judging unit is used for acquiring a corresponding processing mode according to the detection result, acquiring a processing result, and comparing the processing result with a second threshold, wherein the second threshold is a digital watermark parameter which is normally detected;
And a processing mode changing unit for determining that the processing is successful if the processing result is greater than the second threshold value, and for determining that the processing is failed if the processing result is less than the second threshold value, and for changing the processing mode.
Preferably, the efficiency module includes:
An efficiency acquisition unit for acquiring digital watermark detection efficiency, wherein the digital watermark detection efficiency comprises extraction accuracy, false detection rate, missing detection rate and detection time, and processing efficiency is acquired;
the efficiency comparison unit is used for obtaining a detection efficiency threshold value and a processing efficiency threshold value, comparing the detection efficiency threshold value with the detection efficiency threshold value, and comparing the processing efficiency threshold value with the processing efficiency threshold value;
And the efficiency judging unit is used for obtaining a comparison result and judging whether the detection method and the processing mode are qualified or not according to the comparison result.
Preferably, the digital watermark adopts an embedding technology, and the embedding technology comprises spatial domain embedding and frequency domain embedding.
According to the digital watermark encryption detection method provided by the embodiment of the invention, digital media data is acquired, the digital media data comprises video, images and audio, a detection target is acquired, the detection target comprises copyright protection, product tracing, content authentication and information management, a digital watermark embedding mode of the digital media data is acquired, the digital watermark robustness is acquired according to the embedding mode, the robustness is compared with a first threshold value, the robustness is judged to be high or low, the watermark detection method is selected according to the detection target and the digital media data, if the robustness is judged to be high, non-blind detection is adopted, if the robustness is judged to be low, blind detection is adopted, a detection result is acquired, a processing mode is acquired according to the detection result, a corresponding processing mode is acquired, the processing result is compared with a second threshold value, if the processing result is larger than the second threshold value, the processing result is judged to be successful, if the processing result is smaller than the second threshold value, the processing failure is judged to be the processing failure, the processing mode is changed, the digital watermark detection efficiency is acquired, the processing efficiency is acquired, the threshold value of the processing efficiency is compared with the first threshold value, the processing efficiency is judged to be high or low, the processing efficiency is judged to be the processing efficiency is compared with the threshold value, the processing efficiency is judged to be the processing the digital watermark is judged to be low, and the existing watermark detection method is not capable of being processed according to whether the detection result is not capable of being processed.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of this disclosure.
As shown in fig. 1, the method for detecting digital watermark encryption provided by the embodiment of the invention includes:
s100, acquiring digital media data, wherein the digital media data comprises video, images and audio, and acquiring detection targets, and the detection targets comprise copyright protection, product tracing, content authentication and information management.
In this step, digital media data is acquired, video including, for example, movies, short videos, and advertisement films, images including photographs, artwork, and design drawings, audio including music, podcasts, and voice recordings, and encryption by digital watermarking can prevent unauthorized copying and transmission;
Acquiring a detection target, knowing the aim of digital watermark detection through the detection target, judging the detection direction through the aim, ensuring that the ownership and the use authority of the digital media are not violated by copyright protection, detecting the copyright watermark embedded in the digital media, verifying the validity of the copyright watermark, monitoring the distribution of the digital content, and preventing unauthorized copying and spreading;
The product tracing is used for tracking the source of digital media or entity products, preventing the occurrence of counterfeit and inferior products, embedding tracing information into digital labels or package designs of the products, verifying the authenticity of the tracing information and ensuring the legal source of the products;
The content authentication is used for verifying whether the digital media content is tampered or not so as to ensure the authenticity and the integrity of the digital media content, embedding a tamper-proof watermark, and detecting whether the verification content is consistent with an original version or not, so that the digital media content is used in the fields requiring high credibility such as news reports, judicial evidence and the like;
The information management is used for carrying out implicit identification on users or content information in the digital media, is used for classification, authority management or tracing, embeds identification information to distinguish user groups, access authorities or use ranges, provides big data analysis support, and classifies the content or user behaviors through watermarks.
S200, selecting a watermark detection method according to a detection target and digital media data, wherein the detection method comprises blind detection and non-blind detection, obtaining digital watermark robustness, and selecting the detection method according to the robustness.
In the step, a watermark detection method is selected according to a detection target and digital media data, the watermark can be extracted or verified by blindly detecting the digital media without the original non-embedded watermark as a reference, and the authenticity and integrity of the watermark can be compared and verified by blindly detecting the digital media without the original non-embedded watermark as a reference;
The method comprises the steps of obtaining robustness of a digital watermark, wherein the robustness is a key for selecting a watermark detection method, the robustness detection comprises compression resistance, noise resistance, tamper resistance and content dependence, the detection method is selected according to the robustness, if the robustness of the watermark is strong, blind detection is preferentially selected, effective information can be extracted without original data, if the robustness of the watermark is weak, non-blind detection is selected, and the detection precision is improved by comparing the original data.
S300, obtaining a detection result and obtaining a processing mode, wherein the processing mode comprises multi-layer encryption, dynamic watermarking and changing a digital watermarking embedding method, and the corresponding processing mode is obtained according to the detection result to obtain the processing result.
In this step, a detection result is obtained, and in the practical application of the digital watermark, the detection result may indicate that the watermark is not extracted, has insufficient robustness, or has damaged integrity. For different detection results, proper processing modes such as multi-layer encryption, dynamic watermarking and digital watermarking embedding method modification are required to be selected so as to improve the stability and anti-interference capability of the watermarking;
The detection result shows that the watermark is tampered or forged maliciously, multi-layer encryption is selected, multi-layer encryption is introduced in watermark embedding and detection, the security and tamper resistance of the watermark are improved, the detection result shows that the watermark is tampered or lost in the propagation process, dynamic watermark is selected, the dynamic watermark changes along with time, environment or use situation, for example, watermark information related to a timestamp is embedded, static watermark is prevented from being copied or tampered through dynamic updating of the watermark, the detection result shows that the watermark is insufficient in robustness and easy to be interfered, a more robust embedding method is selected, for example, the spatial domain embedding is switched to the frequency domain embedding, or a multi-domain embedding technology is combined, and a processing result is obtained.
S400, acquiring digital watermark detection efficiency, acquiring processing efficiency, wherein the processing efficiency is processing time length and processing success rate after detecting problems, acquiring detection efficiency threshold and processing efficiency threshold, acquiring detection efficiency and processing efficiency comparison results, and judging whether a detection method and a processing mode are qualified or not according to the comparison results.
In the step, the digital watermark detection efficiency is obtained, wherein the detection efficiency comprises extraction accuracy, false detection rate, omission factor and detection time, and the processing efficiency is obtained, and is the processing time and the processing success rate after the problem is detected;
Acquiring a detection efficiency threshold and a processing efficiency threshold, wherein the extraction success rate threshold is the lowest proportion (such as more than or equal to 90%) of expected successful watermark extraction, the detection time threshold is the highest limit value (such as less than or equal to 1 second) of expected detection time, the processing duration threshold is the maximum time (such as less than or equal to 5 seconds) required by the treatment of the expected problem, and the processing success rate threshold is the lowest proportion (such as more than or equal to 90%) of expected processing success;
and acquiring a comparison result of the detection efficiency and the processing efficiency, if the extraction success rate is more than or equal to the extraction success rate threshold value and the detection time is less than or equal to the detection time threshold value, the detection method is qualified, and if the processing time is less than or equal to the processing time threshold value and the processing success rate is more than or equal to the processing success rate threshold value, the processing mode is qualified.
As shown in fig. 2, as a preferred embodiment of the present invention, the method for selecting a watermark detection method according to a detection target and digital media data, where the detection method includes blind detection and non-blind detection, and the method for obtaining robustness of a digital watermark includes the steps of:
S201, a digital watermark embedding mode of digital media data is obtained, and robustness of the digital watermark is obtained according to the embedding mode, wherein the robustness is used for reflecting the stability and the resistance of the digital watermark.
In the step, a digital media data digital watermark embedding mode is acquired, and the digital watermark adopts an embedding technology, wherein the embedding technology comprises spatial domain embedding and frequency domain embedding, the spatial domain embedding directly modifies a data value in digital media, and embeds watermark information, so that the method has the characteristics of low robustness and easiness in compression, cutting and noise interference, and the frequency domain embedding embeds the watermark into a frequency domain coefficient through frequency domain transformation, so that the method has the characteristics of high robustness, and particularly has strong resistance to common operations such as compression, filtering and the like;
And obtaining robustness of the digital watermark according to an embedding mode, testing whether the watermark can be extracted correctly under common lossy compression through anti-compression capability, testing whether the watermark is reserved completely after image cutting or video cutting through anti-cutting capability, and testing whether the watermark can be detected and extracted after the digital media is rotated, scaled or deformed through anti-rotation capability.
S202, comparing the robustness with a first threshold, judging the robustness, and selecting a watermark detection method according to a detection target and digital media data.
In this step, the robustness is compared with a first threshold, and in order to select a suitable watermark detection method (blind detection or non-blind detection), the robustness value is compared with the first threshold, and the level of the robustness value is determined, and the detection method is finally determined according to the detection target and the characteristics of the digital media data;
the first threshold is used for distinguishing the high and low robustness, and is generally set according to actual application requirements and industry standards, so that the watermark extraction success rate is considered to be high only when the watermark extraction success rate reaches more than 90% under various interferences, and the robustness is high, namely the extraction success rate is more than or equal to the first threshold (for example, 90%);
And selecting a watermark detection method according to the detection target and the digital media data, wherein if the robustness is high, blind detection is adopted, and if the robustness is low, non-blind detection is adopted.
S203, if high robustness is determined, non-blind detection is used, and if low robustness is determined, blind detection is used.
In the step, if high robustness is determined, the high robustness indicates that the watermark is still stable in complex environments (such as compression, noise, cutting and the like), and in some scenes, the system needs higher detection precision, and the integrity and the accuracy of the watermark can be further verified by comparing the original data with the embedded data through non-blind detection;
if the robustness is determined to be low, the low robustness indicates that the watermark is easy to lose or deform when being interfered. If forced reliance is made on non-blind detection, the raw data may not provide a valid reference, or the alignment complexity increases, ultimately affecting efficiency. Thus, in some fast verification scenarios, blind detection quickly determines whether the watermark is present or partially valid by simplifying the process.
As shown in fig. 3, as a preferred embodiment of the present invention, the method for obtaining a detection result and obtaining a processing manner, where the processing manner includes multi-layer encryption, dynamic watermarking, and changing a digital watermark embedding method, the step of obtaining a corresponding processing manner according to the detection result, and the step of obtaining a processing result specifically includes:
S301, obtaining a detection result, wherein the detection result comprises normal detection, detection errors and extraction failures, and a processing mode is obtained.
In the step, a detection result is obtained, if the detection result is normal, watermark information is successfully extracted, the extraction result accords with the expectation, no additional processing is needed, and the result can be directly used for verification or application;
The processing mode is obtained, if normal detection is carried out without additional operation, the result can be directly output, if errors are detected, the watermark information is detected to be partially lost or to be in error, a redundancy check mechanism (such as error correction codes) can be tried to recover the correct watermark information, if the error rate is high, the watermark embedding mode is redesigned to enhance the robustness, and if the extraction fails, the robustness of the algorithm to the interference of compression, noise and the like is enhanced;
TABLE I comparison of test results and treatment modes
S302, obtaining a corresponding processing mode according to the detection result, obtaining a processing result, and comparing the processing result with a second threshold, wherein the second threshold is a digital watermark parameter which is normally detected.
In the step, a corresponding processing mode is acquired according to a detection result, and the watermark extraction effect is evaluated through the extraction success rate, watermark integrity and anti-interference capability;
extraction success = successfully extracted watermark samples/total test samples;
The second threshold is a preset criterion for measuring the normal detection performance of the watermark system. Typically set based on experimental and application requirements, including the following parameters:
The extraction success rate is more than or equal to 90;
the anti-interference capability is that the extraction accuracy after compression is more than or equal to 85 percent, the extraction accuracy after cutting is more than or equal to 80 percent, the noise interference extraction accuracy is more than or equal to 85 percent, and the watermark integrity is less than or equal to 5 percent;
If the extraction success rate after the treatment is more than or equal to the threshold value, judging that the extraction success rate is normal, otherwise, further optimizing the embedding or detecting method.
S303, if the processing result is larger than the second threshold, the processing is judged to be successful, and if the processing result is smaller than the second threshold, the processing is judged to be failed, and the processing mode is changed.
If the processing result is smaller than the second threshold value, the processing mode is changed, the processing fails, the system cannot reach expected performance, the processing mode is changed, and watermark robustness and extraction success rate are improved;
The robustness of the watermark can be enhanced by optimizing a digital watermark embedding method, the compression resistance, noise resistance and cutting resistance of the watermark can be improved, the robustness of the system can be improved by introducing dynamic watermark and changing the watermark in real time, and the watermark can be prevented from being attacked or copied;
By dynamically adjusting the processing mode, various detection failure or error conditions can be effectively treated, the robustness, the extraction success rate and the anti-interference capability of the system are improved, and the reliability and the safety of the watermark are ensured.
As shown in fig. 4, as a preferred embodiment of the present invention, the method for obtaining the digital watermark detection efficiency and the processing efficiency, where the processing efficiency is a processing duration and a processing success rate after detecting a problem, a detection efficiency threshold and a processing efficiency threshold are obtained, a comparison result of the detection efficiency and the processing efficiency is obtained, and a step for judging whether a detection method and a processing mode are qualified according to the comparison result specifically includes:
s401, acquiring digital watermark detection efficiency, wherein the digital watermark detection efficiency comprises extraction accuracy, false detection rate, omission factor and detection time, and acquiring processing efficiency.
In the step, the digital watermark detection efficiency is obtained, the extraction accuracy represents the proportion of successfully extracting the watermark and matching with the original embedded watermark, the higher the extraction accuracy is, the stronger the capability of the system to extract the watermark under various interferences is, the lower the false detection rate is, the lower the false judgment probability of the system to noise and background content is, the lower the false detection rate is, the ratio of the system fails to detect the actually existing watermark is, the lower the false detection rate is, the higher the extraction capability of the system to the effective watermark is;
The processing efficiency is obtained, the processing efficiency is the processing time length and the processing success rate after the problems are detected, the processing time length is the average time from the detection of the problems to the completion of the processing, the processing time length = total processing time/processing times, the processing success rate is the proportion of successfully recovering the watermark after the problems are processed, and the processing success rate = the number of successfully processed samples/total processing samples.
S402, acquiring a detection efficiency threshold and a processing efficiency threshold, comparing the detection efficiency and the detection efficiency threshold, and comparing the processing efficiency and the processing efficiency threshold.
In the step, a detection efficiency threshold and a processing efficiency threshold are obtained, wherein the detection efficiency threshold is used for measuring the performance of a watermark extraction process, the extraction accuracy threshold represents the minimum requirement that a system can successfully extract a correct watermark, the threshold is more than or equal to 90%, the false detection rate threshold represents the maximum allowable proportion of the system for recognizing background or noise errors as the watermark, the threshold is less than or equal to 5%, the false detection rate threshold represents the maximum allowable proportion of the system in which the watermark actually exists is not detected, the threshold is less than or equal to 10, the detection time threshold represents the maximum allowable time for completing one detection by the system, and the threshold is less than or equal to 1;
The processing efficiency threshold is used for evaluating the processing performance of the system after the problem is detected, the processing duration threshold represents the maximum allowable time for completing the processing of the problem once, the threshold is less than or equal to 5 seconds, the processing success rate threshold represents the lowest proportion of the system for successfully recovering the watermark after the problem is processed, and the threshold is more than or equal to 90 percent;
comparing the detection efficiency with a detection efficiency threshold, and comparing the processing efficiency with a processing efficiency threshold.
S403, obtaining a comparison result, and judging whether the detection method and the processing mode are qualified or not according to the comparison result.
In the step, a comparison result is obtained, and the detection efficiency is compared, wherein the extraction accuracy is that the actual value is more than or equal to a threshold value, such as more than or equal to 90%, the false detection rate is that the actual value is less than or equal to a threshold value, such as less than or equal to 5%, the missing detection rate is that the actual value is less than or equal to a threshold value, such as less than or equal to 10%, the detection time is that the actual value is less than or equal to a threshold value, such as less than or equal to 1 second, and the detection efficiency is qualified if all indexes meet the threshold value;
Comparing the treatment efficiency, wherein the treatment time length is equal to or less than a threshold value, if the actual value is equal to or less than 5 seconds, the treatment success rate is equal to or more than the threshold value, if the actual value is equal to or more than 90%, and if all indexes meet the threshold value, the treatment efficiency is qualified;
If the detection efficiency comparison result is qualified, the current detection method does not need to be adjusted, if the detection efficiency comparison result is unqualified, the detection algorithm or the embedding method needs to be optimized, if the processing efficiency comparison result is qualified, the current processing mode does not need to be adjusted, and if the processing efficiency comparison result is unqualified, the processing strategy needs to be enhanced, such as optimizing an error correction mechanism, introducing a dynamic watermark and the like.
As shown in fig. 5, a digital watermark encryption detection system provided in an embodiment of the present invention includes:
the pre-preparation module 100 is configured to obtain digital media data, where the digital media data includes video, image and audio, and obtain a detection target, and the detection target includes copyright protection, product tracing, content authentication and information management.
In the present system, the pre-preparation module 100 acquires digital media data, video including, for example, movies, short videos, and advertisement films, images including photographs, drawings, and designs, audio including music, podcasts, and voice recordings, and encrypts by digital watermarking, which can prevent unauthorized copying and transmission;
Acquiring a detection target, knowing the aim of digital watermark detection through the detection target, judging the detection direction through the aim, ensuring that the ownership and the use authority of the digital media are not violated by copyright protection, detecting the copyright watermark embedded in the digital media, verifying the validity of the copyright watermark, monitoring the distribution of the digital content, and preventing unauthorized copying and spreading;
The product tracing is used for tracking the source of digital media or entity products, preventing the occurrence of counterfeit and inferior products, embedding tracing information into digital labels or package designs of the products, verifying the authenticity of the tracing information and ensuring the legal source of the products;
The content authentication is used for verifying whether the digital media content is tampered or not so as to ensure the authenticity and the integrity of the digital media content, embedding a tamper-proof watermark, and detecting whether the verification content is consistent with an original version or not, so that the digital media content is used in the fields requiring high credibility such as news reports, judicial evidence and the like;
The information management is used for carrying out implicit identification on users or content information in the digital media, is used for classification, authority management or tracing, embeds identification information to distinguish user groups, access authorities or use ranges, provides big data analysis support, and classifies the content or user behaviors through watermarks.
The robustness module 200 is configured to select a watermark detection method according to a detection target and digital media data, where the detection method includes blind detection and non-blind detection, obtain robustness of the digital watermark, and select the detection method according to the robustness.
In the system, a robustness module 200 selects a watermark detection method according to a detection target and digital media data, blind detection is that the original digital media without embedded watermark is not needed to be used as a reference, and watermark can be extracted or verified, and blind detection is that the original digital media without embedded watermark is needed to be used as a reference, so that the authenticity and the integrity of the watermark can be compared and verified;
The method comprises the steps of obtaining robustness of a digital watermark, wherein the robustness is a key for selecting a watermark detection method, the robustness detection comprises compression resistance, noise resistance, tamper resistance and content dependence, the detection method is selected according to the robustness, if the robustness of the watermark is strong, blind detection is preferentially selected, effective information can be extracted without original data, if the robustness of the watermark is weak, non-blind detection is selected, and the detection precision is improved by comparing the original data.
The processing module 300 is configured to obtain a detection result, and obtain a processing manner, where the processing manner includes multi-layer encryption, dynamic watermarking, and changing a digital watermark embedding method, and obtain a corresponding processing manner according to the detection result, and obtain a processing result.
In the system, the processing module 300 acquires a detection result, and the detection result may indicate that the watermark is not extracted, has insufficient robustness or has damaged integrity in the practical application of the digital watermark. For different detection results, proper processing modes such as multi-layer encryption, dynamic watermarking and digital watermarking embedding method modification are required to be selected so as to improve the stability and anti-interference capability of the watermarking;
The detection result shows that the watermark is tampered or forged maliciously, multi-layer encryption is selected, multi-layer encryption is introduced in watermark embedding and detection, the security and tamper resistance of the watermark are improved, the detection result shows that the watermark is tampered or lost in the propagation process, dynamic watermark is selected, the dynamic watermark changes along with time, environment or use situation, for example, watermark information related to a timestamp is embedded, static watermark is prevented from being copied or tampered through dynamic updating of the watermark, the detection result shows that the watermark is insufficient in robustness and easy to be interfered, a more robust embedding method is selected, for example, the spatial domain embedding is switched to the frequency domain embedding, or a multi-domain embedding technology is combined, and a processing result is obtained.
The efficiency module 400 is configured to obtain digital watermark detection efficiency, obtain processing efficiency, where the processing efficiency is a processing time length and a processing success rate after a problem is detected, obtain a detection efficiency threshold and a processing efficiency threshold, obtain a comparison result of the detection efficiency and the processing efficiency, and determine whether the detection method and the processing mode are qualified according to the comparison result.
In the system, an efficiency module 400 acquires digital watermark detection efficiency, wherein the detection efficiency comprises extraction accuracy, false detection rate, missing detection rate and detection time, and acquires processing efficiency, wherein the processing efficiency is processing time and processing success rate after detecting problems;
Acquiring a detection efficiency threshold and a processing efficiency threshold, wherein the extraction success rate threshold is the lowest proportion (such as more than or equal to 90%) of expected successful watermark extraction, the detection time threshold is the highest limit value (such as less than or equal to 1 second) of expected detection time, the processing duration threshold is the maximum time (such as less than or equal to 5 seconds) required by the treatment of the expected problem, and the processing success rate threshold is the lowest proportion (such as more than or equal to 90%) of expected processing success;
and acquiring a comparison result of the detection efficiency and the processing efficiency, if the extraction success rate is more than or equal to the extraction success rate threshold value and the detection time is less than or equal to the detection time threshold value, the detection method is qualified, and if the processing time is less than or equal to the processing time threshold value and the processing success rate is more than or equal to the processing success rate threshold value, the processing mode is qualified.
As shown in fig. 6, as a preferred embodiment of the present invention, the robustness module 200 includes:
the robustness unit 201 is configured to obtain a digital watermark embedding manner of digital media data, and obtain robustness of the digital watermark according to the embedding manner, where the robustness is used to embody stability and resistance of the digital watermark.
In the module, the robustness unit 201 obtains a digital watermark embedding mode of digital media data, the digital watermark adopts an embedding technology, the embedding technology comprises spatial domain embedding and frequency domain embedding, the spatial domain embedding directly modifies a data value in the digital media, watermark information is embedded, the robustness is low, the watermark information is easy to be interfered by compression, clipping and noise, the frequency domain embedding embeds the watermark into a frequency domain coefficient through frequency domain transformation, and the robustness is high, and particularly the resistance to common operations such as compression, filtering and the like is high;
And obtaining robustness of the digital watermark according to an embedding mode, testing whether the watermark can be extracted correctly under common lossy compression through anti-compression capability, testing whether the watermark is reserved completely after image cutting or video cutting through anti-cutting capability, and testing whether the watermark can be detected and extracted after the digital media is rotated, scaled or deformed through anti-rotation capability.
The detection method unit 202 is configured to compare the robustness with a first threshold, determine the robustness, and select a watermark detection method according to the detection target and the digital media data.
In this module, the detection method unit 202 compares the robustness with the first threshold, and in order to select a suitable watermark detection method (blind detection or non-blind detection), the robustness value needs to be compared with the first threshold, so as to determine the level of the robustness value, and finally determine the detection method according to the detection target and the characteristics of the digital media data;
the first threshold is used for distinguishing the high and low robustness, and is generally set according to actual application requirements and industry standards, so that the watermark extraction success rate is considered to be high only when the watermark extraction success rate reaches more than 90% under various interferences, and the robustness is high, namely the extraction success rate is more than or equal to the first threshold (for example, 90%);
And selecting a watermark detection method according to the detection target and the digital media data, wherein if the robustness is high, blind detection is adopted, and if the robustness is low, non-blind detection is adopted.
The method determining unit 203 is configured to employ non-blind detection if high robustness is determined, and employ blind detection if low robustness is determined.
In this module, if the method determining unit 203 determines that the robustness is high, the high robustness indicates that the watermark is still stable in complex environments (such as compression, noise, clipping, etc.), in some scenarios, the system needs higher detection precision, and the integrity and accuracy of the watermark can be further verified by comparing the original data with the embedded data through blind detection;
if the robustness is determined to be low, the low robustness indicates that the watermark is easy to lose or deform when being interfered. If forced reliance is made on non-blind detection, the raw data may not provide a valid reference, or the alignment complexity increases, ultimately affecting efficiency. Thus, in some fast verification scenarios, blind detection quickly determines whether the watermark is present or partially valid by simplifying the process.
As shown in fig. 7, as a preferred embodiment of the present invention, the processing module 300 includes:
the processing mode unit 301 is configured to obtain a detection result, where the detection result includes normal detection, detection error, and extraction failure, and obtain a processing mode.
In the module, the processing mode unit 301 acquires a detection result, if the detection is normal, the watermark information is successfully extracted, the extraction result accords with the expected one, no additional processing is needed, and the result can be directly used for verification or application;
The processing mode is obtained, if normal detection is carried out without additional operation, the result can be directly output, if errors are detected, the watermark information is detected to be partially lost or to be in error, a redundancy check mechanism (such as error correction codes) can be tried to recover the correct watermark information, if the error rate is high, the watermark embedding mode is redesigned to enhance the robustness, and if the extraction fails, the robustness of the algorithm to the interference of compression, noise and the like is enhanced;
The processing mode determining unit 302 is configured to obtain a corresponding processing mode according to the detection result, obtain a processing result, and compare the processing result with a second threshold, where the second threshold is a digital watermark parameter that is normally detected.
In the present module, the processing mode determining unit 302 obtains a corresponding processing mode according to the detection result, and evaluates the watermark extraction effect through the extraction success rate, watermark integrity and anti-interference capability;
extraction success = successfully extracted watermark samples/total test samples;
The second threshold is a preset criterion for measuring the normal detection performance of the watermark system. Typically set based on experimental and application requirements, including the following parameters:
The extraction success rate is more than or equal to 90;
the anti-interference capability is that the extraction accuracy after compression is more than or equal to 85 percent, the extraction accuracy after cutting is more than or equal to 80 percent, the noise interference extraction accuracy is more than or equal to 85 percent, and the watermark integrity is less than or equal to 5 percent;
If the extraction success rate after the treatment is more than or equal to the threshold value, judging that the extraction success rate is normal, otherwise, further optimizing the embedding or detecting method.
And a processing mode changing unit 303, configured to determine that the processing is successful if the processing result is greater than the second threshold, and to change the processing mode if the processing result is less than the second threshold and the processing is failed.
In the module, if the processing result is greater than the second threshold, the processing mode changing unit 303 is successful in processing, which indicates that the system meets the performance requirement, and outputs the watermark detection result without further adjustment;
The robustness of the watermark can be enhanced by optimizing a digital watermark embedding method, the compression resistance, noise resistance and cutting resistance of the watermark can be improved, the robustness of the system can be improved by introducing dynamic watermark and changing the watermark in real time, and the watermark can be prevented from being attacked or copied;
By dynamically adjusting the processing mode, various detection failure or error conditions can be effectively treated, the robustness, the extraction success rate and the anti-interference capability of the system are improved, and the reliability and the safety of the watermark are ensured.
As shown in fig. 8, as a preferred embodiment of the present invention, the efficiency module 400 includes:
An efficiency obtaining unit 401, configured to obtain digital watermark detection efficiency, where the digital watermark detection efficiency includes an extraction accuracy, a false detection rate, a missing detection rate, and a detection time, and obtain processing efficiency.
In this module, the efficiency obtaining unit 401 obtains the digital watermark detection efficiency, the extraction accuracy represents the ratio of successfully extracting the watermark and matching with the original embedded watermark, the higher the extraction accuracy is, the stronger the capability of the system to extract the watermark under various interferences is; the false detection rate is the proportion of the system which erroneously detects the watermark which does not exist, the false detection rate=the number of false detected samples/the total number of detected samples, the lower the false detection rate is, the lower the false judgment probability of the system to noise and background content is, the false detection rate is the proportion of the system which fails to detect the watermark which actually exists, the lower the false detection rate=the number of false detected samples/the total number of detected samples is, and the stronger the extraction capability of the system to the effective watermark is;
The processing efficiency is obtained, the processing efficiency is the processing time length and the processing success rate after the problems are detected, the processing time length is the average time from the detection of the problems to the completion of the processing, the processing time length = total processing time/processing times, the processing success rate is the proportion of successfully recovering the watermark after the problems are processed, and the processing success rate = the number of successfully processed samples/total processing samples.
And an efficiency comparison unit 402, configured to obtain a detection efficiency threshold and a processing efficiency threshold, compare the detection efficiency and the detection efficiency threshold, and compare the processing efficiency and the processing efficiency threshold.
In the module, an efficiency comparison unit 402 acquires a detection efficiency threshold and a processing efficiency threshold, wherein the detection efficiency threshold is used for measuring the performance of a watermark extraction process, the extraction accuracy threshold represents the minimum requirement that a system can successfully extract a correct watermark, the threshold is more than or equal to 90%, the false detection rate threshold represents the maximum allowable proportion of the system for recognizing background or noise errors as the watermark, the threshold is less than or equal to 5%, the false detection rate threshold represents the maximum allowable proportion of the system in which the system does not detect the watermark actually exists, the threshold is less than or equal to 10, the detection time threshold represents the maximum allowable time for completing one-time detection, and the threshold is less than or equal to 1;
The processing efficiency threshold is used for evaluating the processing performance of the system after the problem is detected, the processing duration threshold represents the maximum allowable time for completing the processing of the problem once, the threshold is less than or equal to 5 seconds, the processing success rate threshold represents the lowest proportion of the system for successfully recovering the watermark after the problem is processed, and the threshold is more than or equal to 90 percent;
comparing the detection efficiency with a detection efficiency threshold, and comparing the processing efficiency with a processing efficiency threshold.
The efficiency determining unit 403 is configured to obtain a comparison result, and determine whether the detection method and the processing mode are qualified according to the comparison result.
In the module, the efficiency judging unit 403 obtains a comparison result, and the detection efficiency is compared, wherein the extraction accuracy is that the actual value is more than or equal to a threshold value, such as more than or equal to 90%, the false detection rate is that the actual value is less than or equal to the threshold value, such as less than or equal to 5%, the missing detection rate is that the actual value is less than or equal to the threshold value, such as less than or equal to 10%, and the detection time is that the actual value is less than or equal to the threshold value, such as less than or equal to 1 second;
Comparing the treatment efficiency, wherein the treatment time length is equal to or less than a threshold value, if the actual value is equal to or less than 5 seconds, the treatment success rate is equal to or more than the threshold value, if the actual value is equal to or more than 90%, and if all indexes meet the threshold value, the treatment efficiency is qualified;
If the detection efficiency comparison result is qualified, the current detection method does not need to be adjusted, if the detection efficiency comparison result is unqualified, the detection algorithm or the embedding method needs to be optimized, if the processing efficiency comparison result is qualified, the current processing mode does not need to be adjusted, and if the processing efficiency comparison result is unqualified, the processing strategy needs to be enhanced, such as optimizing an error correction mechanism, introducing a dynamic watermark and the like.
In one embodiment, a computer device is presented, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
Acquiring digital media data, wherein the digital media data comprises video, images and audio, and acquiring detection targets, and the detection targets comprise copyright protection, product tracing, content authentication and information management;
Selecting a watermark detection method according to a detection target and digital media data, wherein the detection method comprises blind detection and non-blind detection, obtaining robustness of the digital watermark, and selecting the detection method according to the robustness;
obtaining a detection result, and obtaining a processing mode, wherein the processing mode comprises multi-layer encryption, dynamic watermarking and changing a digital watermarking embedding method, and the corresponding processing mode is obtained according to the detection result to obtain the processing result;
The method comprises the steps of obtaining digital watermark detection efficiency, obtaining processing efficiency, wherein the processing efficiency is processing time length and processing success rate after a problem is detected, obtaining a detection efficiency threshold and a processing efficiency threshold, obtaining a comparison result of the detection efficiency and the processing efficiency, and judging whether a detection method and a processing mode are qualified or not according to the comparison result.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which when executed by a processor causes the processor to perform the steps of:
Acquiring digital media data, wherein the digital media data comprises video, images and audio, and acquiring detection targets, and the detection targets comprise copyright protection, product tracing, content authentication and information management;
Selecting a watermark detection method according to a detection target and digital media data, wherein the detection method comprises blind detection and non-blind detection, obtaining robustness of the digital watermark, and selecting the detection method according to the robustness;
obtaining a detection result, and obtaining a processing mode, wherein the processing mode comprises multi-layer encryption, dynamic watermarking and changing a digital watermarking embedding method, and the corresponding processing mode is obtained according to the detection result to obtain the processing result;
The method comprises the steps of obtaining digital watermark detection efficiency, obtaining processing efficiency, wherein the processing efficiency is processing time length and processing success rate after a problem is detected, obtaining a detection efficiency threshold and a processing efficiency threshold, obtaining a comparison result of the detection efficiency and the processing efficiency, and judging whether a detection method and a processing mode are qualified or not according to the comparison result.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.