CN109756738B - Digital watermark adding and extracting method and device, electronic equipment and storage medium - Google Patents
Digital watermark adding and extracting method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109756738B CN109756738B CN201711062987.XA CN201711062987A CN109756738B CN 109756738 B CN109756738 B CN 109756738B CN 201711062987 A CN201711062987 A CN 201711062987A CN 109756738 B CN109756738 B CN 109756738B
- Authority
- CN
- China
- Prior art keywords
- preset
- digital watermark
- decoding
- frame
- bit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 118
- 108091026890 Coding region Proteins 0.000 claims abstract description 10
- 238000000605 extraction Methods 0.000 claims description 92
- 238000001914 filtration Methods 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 30
- 238000013139 quantization Methods 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 16
- 238000005516 engineering process Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000003491 array Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the invention provides a digital watermark adding method, a digital watermark extracting method, a digital watermark adding device, an electronic device and a storage medium, wherein the digital watermark adding method comprises the following steps: acquiring target copyright information, and determining a binary sequence corresponding to the target copyright information as a first binary sequence; determining an encoding object to be added with a watermark; and then, according to the determined coding sequence of the coded object and the storage sequence of each bit in the first binary sequence, setting the value of the preset bit of the preset non-key syntax element of the determined coded object as the value of the bit in the first binary sequence in one-to-one correspondence, and coding the coded object with the preset bit value of the preset non-key syntax element, thereby realizing the digital watermark adding. By applying the technical scheme provided by the embodiment of the invention, the success rate of adding the digital watermark is improved.
Description
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method and an apparatus for adding and extracting a digital watermark, an electronic device, and a storage medium.
Background
As a digital multimedia copyright protection method, the digital watermarking technology has been rapidly developed in recent years. The digital watermarking technology is mainly used for directly embedding some identification information (namely digital watermarking) into a digital carrier (comprising multimedia, documents, software and the like) or indirectly representing the identification information in the digital carrier (modifying the structure of a specific area in the digital carrier), so that the use value of the original digital carrier is not influenced, the identification information is not easy to detect and modify again, but can be identified and recognized by a producer. The information hidden in the digital carrier can achieve the purposes of confirming content creators and purchasers, transmitting secret information, judging whether the digital carrier is tampered or not, and the like.
With the continuous development of multimedia digital video application and the continuous improvement of the demand of people on video cloud computing, the data volume of an original video information source is too large, so that the bandwidth and storage resources of the existing transmission network cannot bear. Therefore, in order to compress the original video source to reduce the data amount of the original video source, video compression technology has been developed and has become one of the hot spots of academic research and industrial application at home and abroad.
The video compression technology is mainly realized by a video encoder, and in order to protect the copyright of the video encoder, a digital watermarking technology can be integrated in the video encoder, that is, the video encoder adds copyright information of the video encoder into a video stream generated by the video encoder in the encoding process as watermark information. Therefore, when copyright protection is carried out, the digital watermark can be extracted from one path of video stream, and whether the extracted digital watermark is consistent with the copyright of the video encoder or not is detected, so that the purpose of protecting the copyright of the video encoder is achieved.
Because the main purpose of the video coding method is to remove the correlation among the video data in time domain, space domain, transform domain and statistical domain, the digital watermark adding method oriented to the copyright protection of the video coder is usually started from these fields, and corresponding modification is made in the coding code stream. For example, the spatial domain digital watermark adding method conceals the copyright information of the video encoder by modifying the pixel values, and the transform domain digital watermark adding method conceals the copyright information of the video encoder by modifying the high-frequency components in the transform result of the pixel prediction residual. But the copyright information in the method is easily damaged by quantization and entropy coding links in the video coding process, so that the probability of failure of adding the digital watermark is high.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, an electronic device and a storage medium for adding and extracting a digital watermark so as to improve the success rate of adding the digital watermark. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a digital watermark adding method, where the method includes:
acquiring target copyright information, and determining a binary sequence corresponding to the target copyright information as a first binary sequence;
determining an encoding object to be added with a watermark;
and setting the value of the preset bit of the preset non-key syntax element of the determined coding object as the value of the bit in the first binary sequence in one-to-one correspondence according to the coding sequence of the determined coding object and the storage sequence of each bit in the first binary sequence, and coding the coding object with the value of the preset bit of the preset non-key syntax element to realize the addition of the digital watermark.
Optionally, the step of determining the encoding object to be watermarked includes:
determining one of the following information as an encoding object to be watermarked:
the method comprises the following steps of I frame, non-I frame, any type of coded frame, coded frame with frame number being preset frame number, I stripe, non-I stripe, any type of stripe and stripe with stripe number being preset stripe number.
Optionally, the encoded object further includes one of the following information:
the method comprises the steps of encoding a preset position, encoding a target position and encoding a preset prediction type, wherein the target position is as follows: a position determined by a frame number of the encoded frame.
Optionally, the step of setting the value of the preset bit of the predetermined non-key syntax element of the determined encoding object to the value of the bit in the first binary sequence corresponding to one includes:
determining digital watermark adding groups to which preset non-key syntax elements of the coded object belong, wherein one digital watermark adding group corresponds to a complete first binary sequence, and the preset bit positions of the preset non-key syntax elements of the coded object belonging to the same digital watermark adding group are in one-to-one correspondence with the bit positions of the first binary sequence;
and determining the value of the preset bit of the preset non-key syntax element of the coding object according to the corresponding relation.
Optionally, the step of determining a digital watermark addition group to which the preset non-key syntax element of the encoded object belongs includes:
determining a digital watermark adding group to which a preset non-key syntax element of an encoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark adding group; or
And determining a digital watermark adding group to which the preset non-key syntax element of the encoding object belongs according to the encoding sequence.
Optionally, the preset bit is a last bit of the preset non-key syntax element.
Optionally, the non-key syntax element includes one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
Optionally, the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process were: a filtering strength or a filtering threshold.
In a second aspect, an embodiment of the present invention provides a digital watermark extraction method, where the method includes:
determining a decoding object of the digital watermark to be extracted in the video to be decoded;
decoding the determined decoding object, and extracting the value of the preset bit of the preset non-key syntax element of the determined decoding object from the decoding result;
and obtaining a binary sequence formed by the extracted values according to a decoding sequence as the extracted digital watermark.
Optionally, the step of determining a decoding object of the watermark to be extracted in the video to be decoded includes:
determining one of the following information of the video to be decoded as a decoding object of the watermark to be extracted:
the method comprises the following steps of I frame, non-I frame, any type of decoding frame, decoding frame with frame number being preset frame number, I stripe, non-I stripe, any type of stripe and stripe with stripe number being preset stripe number.
Optionally, the decoding object further includes one of the following information in the video to be decoded:
the decoding unit of the preset position, the decoding unit of the target position and the decoding unit of the preset prediction type, wherein the target position is as follows: a position determined by a frame number of the decoded frame.
Optionally, the non-key syntax element includes one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
Optionally, the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process were: a filtering strength or a filtering threshold.
Optionally, after obtaining a binary sequence formed by the extracted values according to the decoding order as the extracted digital watermark, the method further includes:
determining a second binary sequence corresponding to the preset first copyright information;
judging whether each bit in the binary sequence of the extracted digital watermark corresponds to each bit in the second binary sequence one by one according to the decoding sequence and the storage sequence of each bit in the second binary sequence;
if the watermark is in one-to-one correspondence, the watermark added with the first copyright information in the video to be decoded is judged;
and if the watermark information does not correspond to the watermark information, judging that the watermark of the first copyright information is not added in the video to be decoded.
Optionally, extracting a value of a preset bit of the determined decoding object preset non-key syntax element from the decoding result, including:
and determining a digital watermark extraction group to which a preset non-key syntax element of the decoding object belongs, and extracting preset bits of the preset non-key syntax element of the decoding object belonging to the same digital watermark extraction group.
Optionally, the step of determining the digital watermark extraction group to which the preset non-key syntax element of the decoded object belongs includes:
determining a digital watermark extraction group to which a preset non-key syntax element of a decoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark extraction group; or
And determining a digital watermark extraction group to which a preset non-key syntax element of the decoding object belongs according to the decoding sequence.
Optionally, the preset bit is a last bit of the preset non-key syntax element.
In a third aspect, an embodiment of the present invention provides a digital watermark adding apparatus, where the apparatus includes:
the first acquisition module is used for acquiring the target copyright information and determining a binary sequence corresponding to the target copyright information as a first binary sequence;
the first determining module is used for determining an encoding object to be added with a watermark;
and the setting module is used for setting the value of the preset bit of the preset non-key syntax element of the determined coding object as the value of the bit in the first binary sequence in one-to-one correspondence according to the coding sequence of the determined coding object and the storage sequence of each bit in the first binary sequence, and coding the coding object with the preset bit of the preset non-key syntax element to realize the digital watermark adding.
Optionally, the first determining module is specifically configured to:
determining one of the following information as an encoding object to be watermarked:
the method comprises the following steps of I frame, non-I frame, any type of coded frame, coded frame with frame number being preset frame number, I stripe, non-I stripe, any type of stripe and stripe with stripe number being preset stripe number.
Optionally, the encoded object further includes one of the following information:
the method comprises the steps of encoding a preset position, encoding a target position and encoding a preset prediction type, wherein the target position is as follows: a position determined by a frame number of the encoded frame.
Optionally, the setting module includes: a first group of determination submodules and a value determination submodule; wherein,
the first group determination submodule is used for determining digital watermark adding groups to which preset non-key syntax elements of the coded object belong, wherein one digital watermark adding group corresponds to a complete first binary sequence, and a one-to-one correspondence relationship is formed between preset non-key syntax element preset bits of the coded object belonging to the same digital watermark adding group and each bit of the first binary sequence;
and the value determination submodule is used for determining the value of the preset bit of the preset non-key syntax element of the coding object according to the corresponding relation.
Optionally, the first group of determination sub-modules is specifically configured to:
determining a digital watermark adding group to which a preset non-key syntax element of an encoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark adding group; or
And determining a digital watermark adding group to which the preset non-key syntax element of the encoding object belongs according to the encoding sequence.
Optionally, the preset bit is a last bit of the preset non-key syntax element.
Optionally, the non-key syntax element includes one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
Optionally, the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process were: a filtering strength or a filtering threshold.
In a fourth aspect, an embodiment of the present invention provides a digital watermark extraction apparatus, where the apparatus includes:
the second determining module is used for determining a decoding object of the digital watermark to be extracted in the video to be decoded;
the extraction module is used for decoding the determined decoding object and extracting the value of the preset bit of the preset non-key syntax element of the determined decoding object from the decoding result;
and the second obtaining module is used for obtaining a binary sequence formed by the extracted values according to the decoding sequence as the extracted digital watermark.
Optionally, the second determining module is specifically configured to:
determining one of the following information of the video to be decoded as a decoding object of the watermark to be extracted:
the method comprises the following steps of I frame, non-I frame, any type of decoding frame, decoding frame with frame number being preset frame number, I stripe, non-I stripe, any type of stripe and stripe with stripe number being preset stripe number.
Optionally, the decoding object further includes one of the following information of the video to be decoded:
the decoding unit of the preset position, the decoding unit of the target position and the decoding unit of the preset prediction type, wherein the target position is as follows: a position determined by a frame number of the decoded frame.
Optionally, the non-key syntax element includes one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
Optionally, the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process were: a filtering strength or a filtering threshold.
Optionally, the apparatus further comprises:
a third determining module, configured to determine a second binary sequence corresponding to the preset first copyright information after obtaining a binary sequence formed by the extracted values according to the decoding order as the extracted digital watermark;
the judging module is used for judging whether each bit in the binary sequence of the extracted digital watermark corresponds to each bit in the second binary sequence one by one according to the decoding sequence and the storage sequence of each bit in the second binary sequence;
the first judging module is used for judging the watermark added with the first copyright information in the video to be decoded when the judgment result of the judging module is yes;
and the second judging module is used for judging that the watermark of the first copyright information is not added in the video to be decoded when the judgment result of the judging module is negative.
Optionally, the extracting module includes: a second set of determination and extraction sub-modules:
the second group of determining sub-modules are used for determining a digital watermark extraction group to which a preset non-key syntax element of a decoding object belongs;
and the extraction submodule is used for extracting preset non-key syntax element preset bits of the decoding objects belonging to the same digital watermark extraction group.
Optionally, the second group of determination sub-modules is specifically configured to:
determining a digital watermark extraction group to which a preset non-key syntax element of a decoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark extraction group; or
And determining a digital watermark extraction group to which a preset non-key syntax element of the decoding object belongs according to the decoding sequence.
Optionally, the preset bit is a last bit of the preset non-key syntax element.
In a fifth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: a first processor and a first memory, wherein,
a first memory for storing a computer program;
the first processor is used for realizing the steps of the digital watermarking method when executing the program stored in the memory.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, implements the steps of the digital watermarking method described above.
In a seventh aspect, an embodiment of the present invention provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the above digital watermarking method.
In an eighth aspect, an embodiment of the present invention provides a computer program which, when run on a computer, causes the computer to execute the above digital watermarking method.
In a ninth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: a second processor and a second memory, wherein,
a second memory for storing a computer program;
and the second processor is used for realizing the steps of the digital watermark extraction method when executing the program stored in the memory.
In a tenth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the digital watermark extraction method are implemented.
In an eleventh aspect, an embodiment of the present invention provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the above digital watermark extraction method.
In a twelfth aspect, an embodiment of the present invention provides a computer program, which when run on a computer, causes the computer to execute the above digital watermark extraction method.
The digital watermark adding method provided by the embodiment of the invention comprises the steps of firstly, obtaining target copyright information, and determining a binary sequence corresponding to the target copyright information as a first binary sequence; then, determining an encoding object to be added with the watermark; and then, according to the determined coding sequence of the coded object and the storage sequence of each bit in the first binary sequence, setting the value of the preset bit of the preset non-key syntax element of the determined coded object as the value of the bit in the first binary sequence in one-to-one correspondence, and coding the coded object with the preset bit value of the preset non-key syntax element, thereby realizing the digital watermark adding. By applying the digital watermark adding method, the value of the preset bit of the preset non-key syntax element of the determined coding object is set as the value of the bit in the first binary sequence corresponding to one, and the influence of the non-key syntax element on video coding is small, so that the target copyright information is prevented from being damaged by quantization and entropy coding links in the video coding process, and the success rate of adding the digital watermark is improved.
The digital watermark extraction method provided by the embodiment of the invention comprises the following steps of firstly, determining a decoding object of a digital watermark to be extracted in a video to be decoded; then, decoding the determined decoding object, and extracting the value of the preset bit of the preset non-key syntax element of the determined decoding object from the decoding result; further, a binary sequence composed of the extracted values in decoding order is obtained as the extracted digital watermark. By the digital watermark extraction method, the digital watermark is extracted from the video to be decoded.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a digital watermarking method according to an embodiment of the present invention;
FIG. 2 is an example of the structure of the stages of video encoding;
fig. 3 is a schematic flowchart of a digital watermark extraction method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another digital watermark extraction method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a digital watermarking apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a digital watermark extraction apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a digital watermark extraction apparatus according to an embodiment of the present invention
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to improve the success rate of adding the digital watermark, the embodiment of the invention provides a method and a device for adding and extracting the digital watermark, electronic equipment and a storage medium.
First, a digital watermarking method provided by an embodiment of the present invention is described below.
It should be noted that the execution main body of the digital watermark adding method provided in the embodiment of the present invention may be a digital watermark adding device, specifically, the digital watermark adding device may be located in a video encoder, and certainly, may also be located in other reasonable electronic devices, and is not limited herein.
Referring to fig. 1, a digital watermarking method according to an embodiment of the present invention includes the following steps:
s101, acquiring target copyright information, and determining a binary sequence corresponding to the target copyright information as a first binary sequence;
the target copyright information may be a name, a number, an image, etc. that may indicate the identity of the video compressor. After the target copyright information is obtained, a binary sequence corresponding to the target copyright information can be determined. The embodiment of the present invention does not limit the specific way of determining the binary sequence corresponding to the target copyright information. For example, the method may be: and coding the target copyright information by using a binary coding technology to obtain a binary sequence corresponding to the target copyright information.
The first binary sequence includes at least one binary bit, and the length of the first binary sequence may be determined according to the specific content of the target copyright information. For example, the determination may be: the correspondence between the specific content of the target copyright information and the length of the first binary sequence may be preset, and the length of the first binary sequence may be determined according to the specific content of the target copyright information using the correspondence.
For example, the preset correspondence relationship between the specific content of the target copyright information and the first binary sequence length is as follows: the length of the first binary sequence corresponding to the name is 16 bits, the length of the first binary sequence corresponding to the serial number is 24 bits, the length of the first binary sequence corresponding to the image is 32 bits, and the length of the first binary sequence is determined to be 16 bits according to the target copyright information as the name; determining the length of the first binary sequence to be 24 bits according to the fact that the target copyright information is a number; according to the target copyright information being an image, the length of the first binary sequence is determined to be 32 bits.
S102, determining an encoding object to be added with a watermark;
specifically, the step of determining the encoding object to be watermarked may be:
determining one of the following information as an encoding object to be watermarked:
the method comprises the following steps of I frame, non-I frame, any type of coded frame, coded frame with frame number being preset frame number, I stripe, non-I stripe, any type of stripe and stripe with stripe number being preset stripe number.
The frame is a basic unit of a video image, and in the process of video coding, part of the video image is compressed into an I frame; parts are compressed into P frames; and also parts are compressed into B-frames. The encoding object to be added with the watermark may be an image-level encoding object, that is, may be only an I frame; or only non-I frames, i.e., P or B frames; but can also be any type of coded frame, i.e. I-frame, or P-frame, or B-frame.
Each coding frame corresponds to a frame number, so that a coding frame can be uniquely determined through the frame number, and the coding object to be added with the watermark can also be a coding frame with the frame number as a preset frame number.
The preset frame number can be preset according to the user requirement, and the embodiment of the invention does not limit the specific numerical value of the preset frame number. For example, the preset frame number may be an odd frame number, such as: 1. 3, 5, 7, etc.; it may also be an even frame number, such as: 2. 4, 6, 8, 10, etc., and may also be any number, such as: 1. 2, 3, 4, 5, 6, 7, etc.
Each frame of video image comprises at least one slice, all slices of an I frame are I slices, all slices of a P frame are P slices, and all slices of a B frame are B slices. The encoding object to be watermarked may also be a slice-level encoding object, i.e., may be only an I-slice; or only non-I bands, namely P bands or B bands; it may also be any type of band, i.e., an I band, or a P band, or a B band.
Each strip in each frame of video image corresponds to a strip number, so that one strip in each frame of video image can be determined through the strip number, and the encoding object to be added with the watermark can also be a strip with the strip number as a preset strip number.
The preset strip number can be preset according to the requirements of users, and the embodiment of the invention does not limit the specific numerical value of the preset strip number. For example, the preset slice number may be an odd slice number, such as: 1. 3, 5, 7, etc.; it may also be an even number of bar numbers, such as: 2. 4, 6, 8, 10, etc., and may also be any number, such as: 1. 2, 3, 4, 5, 6, 7, etc.
In addition, in order to reduce the influence of the digital watermarking process on the encoding quality, in practical application, the encoding object may also be an encoding object at an encoding unit level, that is, one of the following information: a coding unit of a preset position, a coding unit of a target position, and a coding unit of a preset prediction type.
Referring to fig. 2, each picture in a video may include at least one slice, and each slice may include at least one coding unit. The encoding object may be an encoding unit of a preset position, the preset position may be set in advance according to a user requirement, and the preset position may include one or more positions.
For example, the encoding object may be a coding unit at a preset position in the I frame, and the preset position may be a position of a second coding unit column in the first coding unit row in the I frame, or a position of all coding unit columns in the first coding unit row in the I frame.
The encoding object may also be an encoding unit of a target position, and the target position may be: the position determined by the frame number of the encoded frame, the embodiment of the present invention does not limit the manner of determining the target position by the frame number of the encoded frame, for example, the corresponding relationship between the frame number of the encoded frame and the target position may be preset, and the target position may be determined by the frame number of the encoded frame by using the corresponding relationship.
Illustratively, the correspondence between the frame number of the pre-encoded frame and the target position is set as follows: the target position corresponding to frame number 3 of the encoded frame is: the position of the third coding unit row and the third coding unit column in the coding frame with the frame number of 3 and the target position corresponding to the frame number of 4 of the coding frame are as follows: the position of the fourth coding unit row and the fourth coding unit column in the coding frame with the frame number of 4 can determine the target position of the coding unit as follows according to the frame number 3 of the coding frame by utilizing the corresponding relation: the position of a third coding unit row and a third coding unit column in a coding frame with the frame number of 3; determining the target position of the coding unit as follows according to the frame number 4 of the coding frame: and the position of the fourth coding unit column in the fourth coding unit row in the coding frame with the frame number of 4.
According to the prediction type, the coding unit can be divided into: an intra prediction type coding unit and an inter prediction type coding unit. Specifically, the encoding object may also be a preset prediction type encoding unit. The prediction type may be set in advance according to user requirements, for example, the prediction type may be preset as an intra-frame prediction type, and the prediction type may also be preset as an inter-frame prediction type.
It can be seen that, since each image or each slice in the video includes at least one coding unit, with respect to coding objects at image level or slice level, with the coding objects at coding unit level, one image or one slice can include coding objects at multiple coding unit levels, thereby reducing the number of images or slices to be affected when adding the digital watermark, and further reducing the effect of the digital watermark adding process on the coding quality. S103, setting the value of the preset bit of the preset non-key syntax element of the determined coding object as the value of the bit in the first binary sequence corresponding to one by one according to the coding sequence of the determined coding object and the storage sequence of each bit in the first binary sequence, and coding the coding object with the preset bit of the preset non-key syntax element to realize the digital watermark adding.
In the process of video encoding, each encoding object is usually encoded according to a preset encoding order, for example, encoding objects of each image level may be sequentially encoded according to the order of the frame numbers from small to large; sequentially coding the coding objects of each strip level according to the sequence of the strip numbers from small to large; and sequentially coding the coding objects of the coding unit levels according to the descending order of the coding unit numbers.
The first binary sequence comprises at least one bit, and each bit can be stored according to a preset storage sequence, for example, a small-end storage mode, that is, a storage mode with a front low bit and a rear high bit, can be adopted to sequentially store each bit in the first binary sequence; or a large-end storage mode, namely a storage mode with a front high bit and a rear low bit, can be adopted to sequentially store each bit in the first binary sequence.
Therefore, the arrangement order of the respective encoding objects can be determined according to the determined encoding order of the encoding objects; the arrangement order of the bits in the first binary sequence may be determined according to the storage order of the bits in the first binary sequence, and thus, the value of the predetermined bit of the predetermined non-critical syntax element of the determined code object may be set to the value of the bit in the first binary sequence corresponding to one another according to the determined coding order of the code object and the storage order of the bits in the first binary sequence.
Specifically, the step of setting the value of the preset bit of the determined coding object preset non-key syntax element as the value of the bit in the first binary sequence corresponding to one may include step a1 and step a2, which are specifically as follows:
step A1, determining a digital watermark adding group to which a preset non-key syntax element of an encoding object belongs;
one digital watermark adding group corresponds to a complete first binary sequence, and the preset bits of the preset non-key syntax elements of the coded objects belonging to the same digital watermark adding group are in one-to-one correspondence with the bits of the first binary sequence;
and step A2, determining the value of the preset bit of the preset non-key syntax element of the coding object according to the corresponding relation.
Non-critical syntax elements may include one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
The redundant syntax element refers to a syntax element that is forcibly encoded in the encoding object without being encoded. The embodiment of the present invention does not limit the specifically adopted redundant syntax elements. For example, Delta QP (Quantization Parameter variation value) is a syntax element that does not need to be encoded originally in a coding unit, and the Delta QP value of one coding unit may be forced to be 0, so that the Delta QP becomes a redundant syntax element; alternatively, the CBF (CodedBlock F1ag, coding block id) value originally used by the zero-coefficient coding block is 0, and one zero-coefficient block CBF value is forced to be 1, so that the CBF of the zero-coefficient block becomes a redundant syntax element.
The reserved bit syntax element refers to a syntax element having no specific meaning in the encoded object. The embodiment of the present invention does not limit the specifically adopted reserved bit syntax element. For example, the reserved bit syntax element employed may be slice _ reserved _ flag [ i ].
The operational parameters of the non-critical process are parameters that have less impact on the subjective and objective quality of the encoding. In practical application, the operation parameters of the non-critical processing can be designed according to the requirements of users, and the embodiment of the invention does not limit the specifically adopted operation parameters of the non-critical processing. For example, the operating parameter of the non-critical process may be a filtering strength or a filtering threshold value. Specifically, the filtering threshold values may be respectively: alpha and beta in the h.264 Video Coding standard, or beta and tc values in HEVC (High Efficiency Video Coding), etc.
Specifically, a digital watermark adding group may include at least one encoded object to be watermarked, and one encoded object may preset one or more non-key syntax elements, for example, a digital watermark adding group may include a plurality of I-frame encoded objects, and then a filtering threshold value may be used as the non-key syntax element of each I-frame encoded object, and a filtering strength and a filtering threshold value may also be used as the preset non-key syntax elements of each I-frame encoded object.
In addition, the non-key syntax elements preset for each encoding object may be the same or different, and this is not limited in the embodiment of the present invention. For example, a digital watermarking group includes two encoded objects, wherein the preset non-key syntax elements of the first encoded object and the second encoded object may be both: the filtering threshold value, or the preset non-key syntax element of the first coded object may be: for the filtering threshold, the preset non-key syntax elements of the second encoded object are: a filtering strength and a filtering threshold value.
In one implementation, the correspondence between the preset bits of the non-key syntax elements of the encoded objects belonging to the same digital watermark addition group and the bits of the first binary sequence may be preset. The specific manner of setting the correspondence relationship is not limited in the present application.
For example, if the encoded object is an I-frame, a complete first binary sequence includes 22 bits, a digital watermark addition group includes 22I-frame encoded objects, and each I-frame encoded object is preset with a non-key syntax element, the corresponding relationship may be set as: the preset bit of the preset non-key syntax element of the first I frame corresponds to the first bit in the first binary sequence, the preset bit of the preset non-key syntax element of the second I frame corresponds to the second bit in the first binary sequence, … …, and so on, the preset bit of the preset non-key syntax element of the 22 nd I frame corresponds to the 22 nd bit in the first binary sequence; the corresponding relation can also be set as follows: the preset bit of the preset non-key syntax element of the first I frame corresponds to the 22 th bit in the first binary sequence, the preset bit of the preset non-key syntax element of the second I frame corresponds to the 21 st bit in the first binary sequence, … …, and so on, and the preset bit of the preset non-key syntax element of the 22 nd I frame corresponds to the 1 st bit in the first binary sequence.
The preset bit may be a last bit of the preset non-key syntax element. Of course, the preset bits may also be bits at reasonable positions such as a first bit, a second bit, and a third bit of the preset non-key syntax element, which is not limited in the embodiment of the present invention.
In a specific embodiment, the step of determining the digital watermark adding group to which the preset non-key syntax element of the encoding object belongs may be:
and determining the digital watermark adding group to which the preset non-key syntax element of the coded object belongs according to the rule that the same non-key syntax element belongs to the same digital watermark adding group.
For example, it is assumed that the redundant syntax elements are preset to belong to the first digital watermark addition group according to the rule that the same non-key syntax element belongs to the same digital watermark addition group; the reserved bit syntax elements all belong to a second digital watermark adding group; and if the preset non-key syntax element of the coded object is a redundant syntax element, determining that the digital watermark adding group to which the preset non-key syntax element of the coded object belongs is as follows: a first digital watermark addition group.
In another specific embodiment, the step of determining the digital watermark adding group to which the preset non-key syntax element of the encoding object belongs may further include:
and determining a digital watermark adding group to which the preset non-key syntax element of the encoding object belongs according to the encoding sequence.
Because one digital watermark adding group corresponds to a complete first binary sequence, and the preset bits of the preset non-key syntax elements of the coded object of the same digital watermark adding group and the bits of the first binary sequence are in one-to-one correspondence, the number of the preset non-key syntax elements contained in one digital watermark adding group is the same as the number of the bits contained in the first binary sequence, and the preset number of the preset non-key syntax elements which are continuously arranged can be determined to belong to the same digital watermark adding group according to the coding sequence, wherein the preset number is equal to the number of the bits contained in the first binary sequence.
For example, if the first binary sequence includes 16 bits, a digital watermark addition group may be divided every 16 preset non-key syntax elements according to the coding order, and it is determined that the 1 st to 16 th preset non-key syntax elements belong to the same digital watermark addition group; and (4) the 17 th to 32 th preset non-key syntax elements belong to the same digital watermark adding group, … …, and the like, until the digital watermark adding groups to which all the preset non-key syntax elements belong are determined.
According to the corresponding relation, the value of the preset bit of the preset non-key syntax element of the coding object can be determined.
For example, the coded object is a non-I frame, the predetermined non-key syntax element is a filtering threshold value, such as syntax element slice _ beta _ offset _ div2 in HEVC, the predetermined bit is the last bit of slice _ beta _ offset _ div2, a complete first binary sequence includes 16 bits, a digital watermark adding group includes 16 non-I frame coded objects, each non-I frame coded object is predetermined with a non-key syntax element, and the corresponding relationship is: the last bit of slice _ beta _ offset _ div2 of the first non-I frame corresponds to the first bit in the first binary sequence, and the last bit of slice _ beta _ offset _ div2 of the second non-I frame corresponds to the second bit in the first binary sequence, … …, by analogy, the last bit of slice _ beta _ offset _ div2 of the 16 th non-I-frame corresponds to the 16 th bit in the first binary sequence, then it is determined that the last bit of the slice _ beta _ offset _ div2 of the first non-I frame takes the value of the first bit in the first binary sequence and the last bit of the slice _ beta _ offset _ div2 of the second non-I frame takes the value of the first bit in the first binary sequence, … …, by analogy, the value of the last bit of slice _ beta _ offset _ div2 of the 16 th non-I-frame is the value of the 16 th bit in the first binary sequence.
Therefore, by applying the technical scheme provided by the embodiment of the invention, the value of the preset bit of the preset non-key syntax element of the determined coding object is set as the value of the bit in the first binary sequence corresponding to one, and the influence of the non-key syntax element on video coding is small, so that the target copyright information is prevented from being damaged by the quantization and entropy coding links in the video coding process, and the success rate of adding the watermark is improved.
Referring to fig. 3, a digital watermark extracting method provided in an embodiment of the present invention includes the following steps:
s201, determining a decoding object of the digital watermark to be extracted in the video to be decoded;
specifically, the step of determining a decoding object to be subjected to watermark extraction in the video to be decoded may be:
determining one of the following information of the video to be decoded as a decoding object of the watermark to be extracted:
the method comprises the following steps of I frame, non-I frame, any type of decoding frame, decoding frame with frame number being preset frame number, I stripe, non-I stripe, any type of stripe and stripe with stripe number being preset stripe number.
The decoding frame refers to each frame image in a video to be decoded, the decoding frame can be divided into an I frame, a P frame and a B frame, and a decoding object to be subjected to watermark extraction can be an image-level decoding object, namely, the decoding object can be only an I frame; or only non-I frames, i.e., P or B frames; but can also be any type of decoded frame, i.e., I-frame, or P-frame, or B-frame. Each decoding frame corresponds to a frame number, so that a decoding frame can be uniquely determined through the frame number, and the decoding object to be subjected to watermark extraction can also be a decoding frame with the frame number as a preset frame number.
The preset frame number can be preset according to the user requirement, and the embodiment of the invention does not limit the specific numerical value of the preset frame number. For example, the preset frame number may be an odd frame number, such as: 1. 3, 5, 7, etc.; it may also be an even frame number, such as: 2. 4, 6, 8, 10, etc., and may also be any number, such as: 1. 2, 3, 4, 5, 6, 7, etc.
Each decoded frame includes at least one slice, all slices of an I-frame are I-slices, all slices of a P-frame are P-slices, and all slices of a B-frame are B-slices. Similarly, the decoding object to be watermarked may also be a decoding object at the slice level, i.e., may be only an I-slice; or only non-I bands, namely P bands or B bands; it may also be any type of band, i.e., an I band, or a P band, or a B band. Each strip in each decoded frame corresponds to a strip number, so that one strip in each decoded frame can be determined according to the strip number, and a decoding object to be subjected to watermark extraction can also be a strip with the strip number as a preset strip number.
The preset strip number can be preset according to the requirements of users, and the embodiment of the invention does not limit the specific numerical value of the preset strip number. For example, the preset slice number may be an odd slice number, such as: 1. 3, 5, 7, etc.; it may also be an even number of bar numbers, such as: 2. 4, 6, 8, 10, etc., and may also be any number, such as: 1. 2, 3, 4, 5, 6, 7, etc.
In addition, in order to increase the extraction speed of the digital watermark, in practical application, the decoding object may also be a decoding object at a decoding unit level, that is, one of the following information in the video to be decoded:
the decoding unit of the preset position, the decoding unit of the target position and the decoding unit of the preset prediction type, wherein the target position is as follows: a position determined by a frame number of the decoded frame.
The video to be decoded may include at least one decoded frame, each decoded frame may include at least one slice, and each slice may include at least one decoding unit. The decoding object may be a decoding unit of a preset position, the preset position may be set in advance according to a user requirement, and the preset position may include one or more positions.
For example, the decoding object may be a decoding unit at a preset position in an I frame of the video to be decoded, and the preset position may be a position of a first decoding unit row and a third decoding unit column in the I frame of the video to be decoded, and may also be a position of all decoding unit columns in the first decoding unit row in the I frame of the video to be decoded.
The decoding object may also be a decoding unit of a target position, and the target position may be: the position determined by the frame number of the decoding frame, the embodiment of the invention does not limit the mode of determining the target position by the frame number of the decoding frame, for example, the corresponding relation between the frame number of the decoding frame and the target position can be preset, and the target position is determined by the frame number of the decoding frame by utilizing the corresponding relation.
Illustratively, the preset corresponding relationship between the frame number of the decoding frame and the target position is as follows: the target position corresponding to frame number 3 of the decoded frame is: the position of the third decoding unit row and the third decoding unit column in the decoding frame with the frame number of 3, and the target position corresponding to the frame number of 4 of the decoding frame are as follows: the position of the fourth decoding unit row and the fourth decoding unit column in the decoding frame with the frame number of 4 can determine the target position of the decoding unit as follows according to the frame number of the decoding frame 3 by utilizing the corresponding relation: the position of a third decoding unit row and a third decoding unit column in a decoding frame with the frame number of 3; determining the target position of the decoding unit as follows according to the frame number 4 of the decoding frame: and the position of the fourth decoding unit column in the decoding frame with the frame number of 4.
According to the prediction type, the decoding unit can be divided into: an intra prediction type decoding unit and an inter prediction type decoding unit. Specifically, the decoding object may also be a decoding unit of a preset prediction type. The prediction type may be set in advance according to user requirements, for example, the prediction type may be preset as an intra-frame prediction type, and the prediction type may also be preset as an inter-frame prediction type.
It can be seen that, since each decoded frame or slice in the video to be decoded includes at least one coding unit, compared with the decoding object at the image level or slice level, the decoding object at the decoding unit level can be used to enable an image or a slice to include decoding objects at multiple decoding unit levels, so that the number of images or slices required to extract the digital watermark can be reduced, and the extraction speed of the digital watermark can be increased.
S202, decoding the determined decoding object, and extracting the value of the preset bit of the preset non-key syntax element of the determined decoding object from the decoding result;
specifically, the non-key syntax element includes one or more of the following information of the determined decoding object:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
The definitions of the redundant syntax element, the reserved bit syntax element, and the operation parameter of the non-critical process are the same as those of the redundant syntax element, the reserved bit syntax element, and the operation parameter of the non-critical process in step a1, and for specific description, reference may be made to step a1, which is not described herein again.
The preset bit may be a last bit of the preset non-key syntax element. Of course, the preset bits may also be bits at reasonable positions such as a first bit, a second bit, and a third bit of the preset non-key syntax element, which is not limited in the embodiment of the present invention.
Specifically, the value of the predetermined bit of the predetermined non-key syntax element of the determined decoding object extracted from the decoding result may be:
and determining a digital watermark extraction group to which a preset non-key syntax element of the decoding object belongs, and extracting preset bits of the preset non-key syntax element of the decoding object belonging to the same digital watermark extraction group.
In a specific embodiment, the step of determining the digital watermark extraction group to which the preset non-key syntax element of the decoding object belongs may be:
and determining the digital watermark extraction group to which the preset key syntax element of the decoding object belongs according to the rule that the same non-key syntax element belongs to the same digital watermark extraction group.
For example, it is assumed that the redundant syntax elements are preset to belong to the first digital watermark extraction group according to the rule that the same non-key syntax element belongs to the same digital watermark extraction group; the reserved bit syntax elements all belong to a second digital watermark extraction group; if the preset non-key syntax element of the encoded object is a redundant syntax element, determining that the digital watermark extraction group to which the preset non-key syntax element of the encoded object belongs is: a first digital watermark extraction group.
In another specific embodiment, the step of determining the digital watermark extraction group to which the preset non-key syntax element of the decoded object belongs may further include:
and determining a digital watermark extraction group to which the preset key syntax element of the decoding object belongs according to the decoding sequence.
In practical application, a digital watermark extraction group may be preset to include a preset number of preset key syntax elements, and the preset number of preset non-key syntax elements that are continuously arranged are determined to belong to the same digital watermark extraction group according to a decoding sequence.
Assuming that a digital watermark extraction group comprises 16 preset key syntax elements, determining that the 1 st to 16 th preset non-key syntax elements belong to the same digital watermark extraction group according to a decoding sequence; and (4) the 17 th to 32 th preset non-key syntax elements belong to the same digital watermark extraction group, … …, and the like, until the digital watermark extraction groups to which all the preset non-key syntax elements belong are determined.
And S203, obtaining a binary sequence formed by the extracted values according to a decoding sequence as the extracted digital watermark.
For example, decoding object a, object B, and object C in sequence according to the decoding order, and extracting values of preset non-key syntax element preset bits of object a, object B, and object C from the decoding result are: 0. 1 and 0, the extracted digital watermark is: 010.
therefore, the digital watermark extraction method provided by the embodiment of the invention realizes the extraction of the digital watermark from the video to be decoded.
Referring to fig. 4, fig. 4 is a schematic flowchart of another flowchart of the digital watermark extracting method according to the embodiment of the present invention, and based on the embodiment shown in fig. 3, in the embodiment shown in fig. 4 of the present invention, S204, S205, S206, and S207 are added after S203.
S204, determining a second binary sequence corresponding to the preset first copyright information;
the first copyright information may be a name, a number, an image, etc. that may indicate the identity of the video compressor to be identified. The first copyright information can be preset according to the user requirement, and then the second binary sequence corresponding to the first copyright information can be determined. The embodiment of the present invention does not limit the specific manner of determining the binary sequence corresponding to the first copyright information. For example, the method may be: and coding the first copyright information by using a binary coding technology to obtain a second binary sequence corresponding to the first copyright information.
The second binary sequence includes at least one binary bit, and the length of the second binary sequence may be determined according to the specific content of the first copyright information. For example, the determination may be: the correspondence between the specific content of the first copyright information and the length of the second binary sequence may be preset, and the length of the second binary sequence may be determined according to the specific content of the first copyright information using the correspondence.
For example, the preset correspondence between the specific content of the first copyright information and the length of the second binary sequence is: the length of the second binary sequence corresponding to the name is 16 bits, the length of the second binary sequence corresponding to the serial number is 24 bits, the length of the second binary sequence corresponding to the image is 32 bits, and the length of the second binary sequence is determined to be 16 bits according to the fact that the first version weight information is the name; determining the length of the second binary sequence to be 24 bits according to the fact that the first copyright information is a number; according to the first copyright information being an image, the length of the second binary sequence is determined to be 32 bits.
S205, judging whether each bit in the binary sequence of the extracted digital watermark corresponds to each bit in the second binary sequence one by one according to the decoding sequence and the storage sequence of each bit in the second binary sequence; if yes, executing S206, if no, executing S207;
in practice, the number of bits contained in the second binary sequence may be equal to the number of bits contained in the binary sequence of the extracted digital watermark. According to the decoding sequence, the bits in the binary sequence of the extracted digital watermark can be determined; according to the storage sequence of each bit in the second binary sequence, the arrangement sequence of each bit in the second binary sequence can be determined, so that whether each bit in the binary sequence of the extracted digital watermark corresponds to each bit in the second binary sequence can be judged. If yes, S206 is performed, and if no, S207 is performed.
S206, determining the watermark added with the first copyright information in the video to be decoded;
and S207, judging that the watermark of the first copyright information is not added in the video to be decoded.
For example, according to the decoding order, the bits in the binary sequence of the extracted digital watermark are determined to be: 0. 1, and according to the storage sequence of each bit in the second binary sequence, if the bit in the second binary sequence is determined to be: 0. 1, judging that the watermark added with the first copyright information in the video to be decoded, if determining that the bits of the second binary sequence are not in sequence: 0. 1, such as: 0. 1, 0, or 1, etc., it is determined that the watermark of the first copyright information is not added to the video to be decoded.
Therefore, the digital watermark extraction method provided by the embodiment of the invention realizes the extraction of the digital watermark from the video to be decoded, and further realizes the identification of the first copyright information.
Corresponding to the above digital watermark adding method embodiment, an embodiment of the present invention provides a digital watermark adding apparatus, as shown in fig. 5, corresponding to the flow shown in fig. 1, the apparatus including:
a first obtaining module 501, configured to obtain target copyright information, and determine a binary sequence corresponding to the target copyright information as a first binary sequence;
a first determining module 502, configured to determine an encoding object to be watermarked;
a setting module 503, configured to set, according to the determined coding order of the coded object and the storage order of each bit in the first binary sequence, a value of a preset bit of a preset non-key syntax element of the determined coded object to a value of a bit in the first binary sequence that corresponds to one another, and code the coded object with the preset bit value of the preset non-key syntax element, so as to implement digital watermark addition.
Therefore, by applying the technical scheme provided by the embodiment of the invention, the value of the preset bit of the preset non-key syntax element of the determined coding object is set as the value of the bit in the first binary sequence corresponding to one, and the influence of the non-key syntax element on video coding is small, so that the target copyright information is prevented from being damaged by the quantization and entropy coding links in the video coding process, and the success rate of adding the digital watermark is improved.
Optionally, the first determining module 502 is specifically configured to:
determining one of the following information as an encoding object to be watermarked:
the method comprises the following steps of I frame, non-I frame, any type of coded frame, coded frame with frame number being preset frame number, I stripe, non-I stripe, any type of stripe and stripe with stripe number being preset stripe number.
Wherein, the coded object further comprises one of the following information:
the method comprises the steps of encoding a preset position, encoding a target position and encoding a preset prediction type, wherein the target position is as follows: a position determined by a frame number of the encoded frame.
Wherein, the setting module 503 includes: a first group of determination submodules and a value determination submodule; wherein,
the first group determination submodule is used for determining digital watermark addition groups to which preset non-key syntax elements of the coded object belong, wherein one digital watermark addition group corresponds to a complete first binary sequence, and the preset bits of the preset non-key syntax elements of the coded object belonging to the same digital watermark addition group are in one-to-one correspondence with the bits of the first binary sequence;
and the value determination submodule is used for determining the value of the preset bit of the preset non-key syntax element of the coding object according to the corresponding relation.
Wherein the first group of determination sub-modules is specifically configured to:
determining a digital watermark adding group to which a preset non-key syntax element of an encoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark adding group; or
And determining a digital watermark adding group to which the preset non-key syntax element of the encoding object belongs according to the encoding sequence.
Wherein the preset bit is the last bit of the preset non-key syntax element.
Wherein the non-key syntax elements include one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
Wherein the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process were: a filtering strength or a filtering threshold.
Corresponding to the above digital watermark extraction method embodiment, an embodiment of the present invention provides a digital watermark extraction apparatus, as shown in fig. 6, corresponding to the flow shown in fig. 3, where the apparatus includes:
a second determining module 601, configured to determine a decoding object of a video to be decoded, where a digital watermark is to be extracted;
an extracting module 602, configured to decode the determined decoding object, and extract a value of a preset bit of a preset non-key syntax element of the determined decoding object from a decoding result;
a second obtaining module 603, configured to obtain a binary sequence formed by the extracted values according to a decoding order as the extracted digital watermark.
Therefore, the digital watermark extraction device provided by the embodiment of the invention realizes the extraction of the digital watermark from the video to be decoded.
The second determining module 601 is specifically configured to:
determining one of the following information of the video to be decoded as a decoding object of the watermark to be extracted:
the method comprises the following steps of I frame, non-I frame, any type of decoding frame, decoding frame with frame number being preset frame number, I stripe, non-I stripe, any type of stripe and stripe with stripe number being preset stripe number.
Wherein, the decoding object further comprises one of the following information of the video to be decoded:
the decoding unit of the preset position, the decoding unit of the target position and the decoding unit of the preset prediction type, wherein the target position is as follows: a position determined by a frame number of the decoded frame.
Wherein the non-key syntax elements include one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
Wherein the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process were: a filtering strength or a filtering threshold.
Wherein, the extracting module 602 includes: a second set of determination and extraction sub-modules;
the second group of determining sub-modules are used for determining a digital watermark extraction group to which a preset non-key syntax element of a decoding object belongs;
and the extraction submodule is used for extracting preset non-key syntax element preset bits of the decoding objects belonging to the same digital watermark extraction group.
Wherein the second group of determination sub-modules is specifically configured to:
determining a digital watermark extraction group to which a preset non-key syntax element of a decoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark extraction group; or
And determining a digital watermark extraction group to which a preset non-key syntax element of the decoding object belongs according to the decoding sequence.
Wherein the preset bit is the last bit of the preset non-key syntax element.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a digital watermark extracting apparatus according to an embodiment of the present invention, which corresponds to the flow shown in fig. 4, and the embodiment of fig. 7 of the present invention adds a third determining module 604, a determining module 605, a first determining module 606, and a second determining module 607 on the basis of the embodiment shown in fig. 6, and specifically includes the following steps:
a third determining module 604, configured to determine a second binary sequence corresponding to the preset first copyright information after obtaining a binary sequence formed by the extracted values according to the decoding order as the extracted digital watermark;
a determining module 605, configured to determine whether each bit in the binary sequence of the extracted digital watermark corresponds to each bit in the second binary sequence one by one according to the decoding order and the storage order of each bit in the second binary sequence;
a first determining module 606, configured to determine, when the determination result of the determining module 605 is yes, that the watermark of the first copyright information has been added to the video to be decoded;
the second determining module 607 is configured to determine that the watermark of the first copyright information is not added to the video to be decoded when the determining result of the determining module 605 is negative.
Therefore, the digital watermark extraction device provided by the embodiment of the invention realizes the extraction of the digital watermark from the video to be decoded, and further realizes the identification of the first copyright information.
An embodiment of the present invention further provides an electronic device, as shown in fig. 8, the electronic device includes: a first processor 701 and a first memory 702, wherein,
a first memory 702 for storing a computer program;
the first processor 701 is configured to implement the digital watermarking method provided by the embodiment of the present invention when executing the program stored in the memory.
The digital watermark adding method comprises the following steps:
acquiring target copyright information, and determining a binary sequence corresponding to the target copyright information as a first binary sequence;
determining an encoding object to be added with a watermark;
and setting the value of the preset bit of the preset non-key syntax element of the determined coding object as the value of the bit in the first binary sequence in one-to-one correspondence according to the coding sequence of the determined coding object and the storage sequence of each bit in the first binary sequence, and coding the coding object with the value of the preset bit of the preset non-key syntax element to realize the addition of the digital watermark.
Therefore, by applying the technical scheme provided by the embodiment of the invention, the value of the preset bit of the preset non-key syntax element of the determined coding object is set as the value of the bit in the first binary sequence corresponding to one, and the influence of the non-key syntax element on video coding is small, so that the target copyright information is prevented from being damaged by the quantization and entropy coding links in the video coding process, and the success rate of adding the watermark is improved.
It should be noted that other embodiments of the digital watermarking method implemented by the first processor 701 executing the program stored in the first memory 702 are the same as the embodiments of the digital watermarking method mentioned in the foregoing method section, and are not described herein again.
The first Memory mentioned in the above electronic device may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the first memory may also be at least one memory device located remotely from the processor.
The first Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the digital watermarking method described above.
The digital watermark adding method comprises the following steps:
acquiring target copyright information, and determining a binary sequence corresponding to the target copyright information as a first binary sequence;
determining an encoding object to be added with a watermark;
and setting the value of the preset bit of the preset non-key syntax element of the determined coding object as the value of the bit in the first binary sequence in one-to-one correspondence according to the coding sequence of the determined coding object and the storage sequence of each bit in the first binary sequence, and coding the coding object with the value of the preset bit of the preset non-key syntax element to realize the addition of the digital watermark.
Therefore, by applying the technical scheme provided by the embodiment of the invention, the value of the preset bit of the preset non-key syntax element of the determined coding object is set as the value of the bit in the first binary sequence corresponding to one, and the influence of the non-key syntax element on video coding is small, so that the target copyright information is prevented from being damaged by the quantization and entropy coding links in the video coding process, and the success rate of adding the watermark is improved.
It should be noted that other embodiments of the digital watermarking method implemented by the computer program when executed by the processor are the same as the embodiments of the digital watermarking method mentioned in the foregoing method section, and are not described herein again.
Embodiments of the present invention provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the digital watermarking method provided by the above embodiments.
Embodiments of the present invention provide a computer program, which, when running on a computer, causes the computer to execute the digital watermarking method provided in the above embodiments.
An embodiment of the present invention provides an electronic device, as shown in fig. 9, where the electronic device includes: a second processor 801 and a second memory 802, wherein,
a second memory 802 for storing computer programs;
the second processor 801 is configured to implement the digital watermark extracting method according to the embodiment of the present invention when executing the program stored in the memory.
Specifically, the digital watermark extraction method includes the following steps:
determining a decoding object of the digital watermark to be extracted in the video to be decoded;
decoding the determined decoding object, and extracting the value of the preset bit of the preset non-key syntax element of the determined decoding object from the decoding result;
and obtaining a binary sequence formed by the extracted values according to a decoding sequence as the extracted digital watermark.
Therefore, the technical scheme provided by the embodiment of the invention realizes the extraction of the digital watermark from the video to be decoded. It should be noted that other embodiments of the digital watermark extracting method implemented by the second processor 801 executing the program stored in the second memory 802 are the same as the embodiments of the digital watermark extracting method mentioned in the foregoing method section, and are not described herein again.
The second Memory mentioned in the above electronic device may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the first memory may also be at least one memory device located remotely from the processor.
The second Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the digital watermark extraction method are implemented.
The digital watermark extraction method comprises the following steps:
determining a decoding object of the digital watermark to be extracted in the video to be decoded;
decoding the determined decoding object, and extracting the value of the preset bit of the preset non-key syntax element of the determined decoding object from the decoding result;
and obtaining a binary sequence formed by the extracted values according to a decoding sequence as the extracted digital watermark.
Therefore, the technical scheme provided by the embodiment of the invention realizes the extraction of the digital watermark from the video to be decoded.
It should be noted that other embodiments of the digital watermark extraction method implemented when the computer program is executed by the processor are the same as the embodiments of the digital watermark extraction method mentioned in the foregoing method section, and are not described herein again.
Embodiments of the present invention provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the digital watermark extraction method provided in the above embodiments.
Embodiments of the present invention provide a computer program, which, when running on a computer, causes the computer to execute the digital watermark extraction method provided in the above embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, the computer program product containing the instructions, and the computer program embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and it is sufficient to refer to the partial description of the method embodiment for the relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (34)
1. A digital watermarking method, the method comprising:
acquiring target copyright information, and determining a binary sequence corresponding to the target copyright information as a first binary sequence;
determining one of the following information as an encoding object to be watermarked:
i frame, non I frame, any type of coding frame, coding frame with frame number as preset frame number, I stripe, non I stripe, any type of stripe and stripe with stripe number as preset stripe number;
and setting the values of the preset bits of the preset non-key syntax elements of the determined coding object as the values of the bits in the first binary sequence in one-to-one correspondence according to the coding sequence of the determined coding object and the storage sequence of the bits in the first binary sequence, and coding the coding object with the preset bits of the preset non-key syntax elements to realize the digital watermark adding.
2. The method of claim 1, wherein the encoded object further comprises one of the following information:
the method comprises a coding unit of a preset position, a coding unit of a target position and a coding unit of a preset prediction type, wherein the target position is as follows: a position determined by a frame number of the encoded frame.
3. The method according to any of claims 1-2, wherein the step of setting the value of the determined prekey syntax element prekey bit of the coded object to the value of a bit in the first binary sequence in a one-to-one correspondence comprises:
determining digital watermark adding groups to which preset non-key syntax elements of the coded object belong, wherein one digital watermark adding group corresponds to a complete first binary sequence, and preset non-key syntax element preset bits of the coded object belonging to the same digital watermark adding group and each bit of the first binary sequence are in one-to-one correspondence;
and determining the value of the preset bit of the preset non-key syntax element of the coded object according to the corresponding relation.
4. The method according to claim 3, wherein the step of determining the digital watermark addition group to which the preset non-key syntax element of the encoded object belongs comprises:
determining a digital watermark adding group to which a preset non-key syntax element of an encoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark adding group; or
And determining a digital watermark adding group to which the preset non-key syntax element of the encoding object belongs according to the encoding sequence.
5. The method of claim 3, wherein the predetermined bit is a last bit of a predetermined non-key syntax element.
6. The method of any of claims 1-2, wherein the non-key syntax elements include one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
7. The method of claim 6,
the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process are: a filtering strength or a filtering threshold.
8. A method for extracting a digital watermark, the method comprising:
determining one of the following information of the video to be decoded as a decoding object of the watermark to be extracted:
i frame, non I frame, decoding frame of any type, decoding frame with frame number as preset frame number, I stripe, non I stripe, stripe of any type and stripe with stripe number as preset stripe number;
decoding the determined decoding object, and extracting the value of the preset bit of the preset non-key syntax element of the determined decoding object from the decoding result;
and obtaining a binary sequence formed by the extracted values according to a decoding sequence as the extracted digital watermark.
9. The method of claim 8, wherein the decoding object further comprises one of the following information in the video to be decoded:
the decoding unit of the preset position, the decoding unit of the target position and the decoding unit of the preset prediction type, wherein the target position is as follows: a position determined by a frame number of the decoded frame.
10. The method according to any of claims 8-9, wherein the non-key syntax elements include one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
11. The method of claim 10,
the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process are: a filtering strength or a filtering threshold.
12. The method according to any of claims 8-9, wherein after obtaining the binary sequence of extracted values in decoding order as the extracted digital watermark, the method further comprises:
determining a second binary sequence corresponding to the preset first copyright information;
judging whether each bit in the binary sequence of the extracted digital watermark corresponds to each bit in the second binary sequence one by one according to a decoding sequence and a storage sequence of each bit in the second binary sequence;
if the first copyright information is in one-to-one correspondence, the watermark added with the first copyright information in the video to be decoded is judged;
and if the first copyright information does not correspond to the second copyright information, judging that the watermark of the first copyright information is not added in the video to be decoded.
13. The method according to any of claims 8-9, wherein said extracting the value of the predetermined non-key syntax element predetermined bit of the determined decoding object from the decoding result comprises:
and determining a digital watermark extraction group to which a preset non-key syntax element of the decoding object belongs, and extracting preset bits of the preset non-key syntax element of the decoding object belonging to the same digital watermark extraction group.
14. The method according to claim 13, wherein the step of determining the digital watermark extraction group to which the preset non-key syntax element of the decoded object belongs comprises:
determining a digital watermark extraction group to which a preset non-key syntax element of a decoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark extraction group; or
And determining a digital watermark extraction group to which a preset non-key syntax element of the decoding object belongs according to the decoding sequence.
15. The method of claim 14, wherein the predetermined bit is a last bit of a predetermined non-key syntax element.
16. A digital watermarking apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring target copyright information and determining a binary sequence corresponding to the target copyright information as a first binary sequence;
a first determining module, configured to determine one of the following information as an encoding object to be watermarked:
i frame, non I frame, any type of coding frame, coding frame with frame number as preset frame number, I stripe, non I stripe, any type of stripe and stripe with stripe number as preset stripe number;
and the setting module is used for setting the values of the preset bits of the preset non-key syntax elements of the determined coding objects to the values of the bits in the first binary sequence in one-to-one correspondence according to the coding sequence of the determined coding objects and the storage sequence of the bits in the first binary sequence, and coding the coding objects with the preset values of the preset bits of the preset non-key syntax elements to realize the addition of the digital watermark.
17. The apparatus of claim 16, wherein the encoded object further comprises one of:
the method comprises a coding unit of a preset position, a coding unit of a target position and a coding unit of a preset prediction type, wherein the target position is as follows: a position determined by a frame number of the encoded frame.
18. The apparatus of any of claims 16-17, wherein the setup module comprises: a first group of determination submodules and a value determination submodule; wherein,
the first group determining submodule is used for determining digital watermark adding groups to which preset non-key syntax elements of the coded object belong, wherein one digital watermark adding group corresponds to a complete first binary sequence, and a one-to-one correspondence relationship is formed between preset bits of the preset non-key syntax elements of the coded object belonging to the same digital watermark adding group and bits of the first binary sequence;
and the value determination submodule is used for determining the value of the preset bit of the preset non-key syntax element of the coding object according to the corresponding relation.
19. The apparatus of claim 18, wherein the first set of determination sub-modules is specifically configured to:
determining a digital watermark adding group to which a preset non-key syntax element of an encoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark adding group; or
And determining a digital watermark adding group to which the preset non-key syntax element of the encoding object belongs according to the encoding sequence.
20. The apparatus of claim 18, wherein the predetermined bit is a last bit of a predetermined non-key syntax element.
21. The apparatus according to any of claims 16-17, wherein the non-key syntax elements comprise one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
22. The apparatus of claim 21,
the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process are: a filtering strength or a filtering threshold.
23. A digital watermark extraction apparatus, characterized in that the apparatus comprises:
a second determining module, configured to determine one of the following information of the video to be decoded as a decoding object from which the watermark is to be extracted:
i frame, non I frame, decoding frame of any type, decoding frame with frame number as preset frame number, I stripe, non I stripe, stripe of any type and stripe with stripe number as preset stripe number;
the extraction module is used for decoding the determined decoding object and extracting the value of the preset bit of the preset non-key syntax element of the determined decoding object from the decoding result;
and the second obtaining module is used for obtaining a binary sequence formed by the extracted values according to the decoding sequence as the extracted digital watermark.
24. The apparatus of claim 23, wherein the decoding object further comprises one of the following information of the video to be decoded:
the decoding unit of the preset position, the decoding unit of the target position and the decoding unit of the preset prediction type, wherein the target position is as follows: a position determined by a frame number of the decoded frame.
25. The apparatus according to any of claims 23-24, wherein the non-key syntax elements comprise one or more of the following information:
redundant syntax elements, reserved bits syntax elements, and non-critical processing operating parameters.
26. The apparatus of claim 25,
the redundant syntax elements are: the quantization parameter variation value between coding units or the zone bit of the zero coefficient coding block;
the operating parameters of the non-critical process are: a filtering strength or a filtering threshold.
27. The apparatus according to any one of claims 23-24, further comprising:
a third determining module, configured to determine a second binary sequence corresponding to the preset first copyright information after obtaining a binary sequence formed by the extracted values according to the decoding order as the extracted digital watermark;
a judging module, configured to judge whether each bit in the binary sequence of the extracted digital watermark corresponds to each bit in the binary sequence of the second binary sequence one to one according to a decoding order and a storage order of each bit in the second binary sequence;
the first judging module is used for judging the watermark added with the first copyright information in the video to be decoded when the judgment result of the judging module is yes;
and the second judging module is used for judging that the watermark of the first copyright information is not added in the video to be decoded when the judgment result of the judging module is negative.
28. The apparatus according to any one of claims 23-24, wherein the extraction module comprises: a second set of determination and extraction sub-modules;
the second group of determining sub-modules are used for determining a digital watermark extraction group to which a preset non-key syntax element of a decoding object belongs;
and the extraction submodule is used for extracting preset non-key syntax element preset bits of decoding objects belonging to the same digital watermark extraction group.
29. The apparatus according to claim 28, wherein the second set of determination sub-modules is specifically configured to:
determining a digital watermark extraction group to which a preset non-key syntax element of a decoding object belongs according to a rule that the same non-key syntax element belongs to the same digital watermark extraction group; or
And determining a digital watermark extraction group to which a preset non-key syntax element of the decoding object belongs according to the decoding sequence.
30. The apparatus of claim 28, wherein the predetermined bit is a last bit of a predetermined non-key syntax element.
31. An electronic device, characterized in that the electronic device comprises: a first processor and a first memory, wherein,
the first memory is used for storing a computer program;
the first processor, when executing the program stored in the memory, is configured to perform the method steps of any of claims 1-7.
32. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
33. An electronic device, characterized in that the electronic device comprises: a second processor and a second memory, wherein,
the second memory is used for storing a computer program;
the second processor, when executing the program stored in the memory, is adapted to perform the method steps of any of claims 8-15.
34. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 8-15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711062987.XA CN109756738B (en) | 2017-11-02 | 2017-11-02 | Digital watermark adding and extracting method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711062987.XA CN109756738B (en) | 2017-11-02 | 2017-11-02 | Digital watermark adding and extracting method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109756738A CN109756738A (en) | 2019-05-14 |
CN109756738B true CN109756738B (en) | 2021-04-16 |
Family
ID=66398921
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711062987.XA Active CN109756738B (en) | 2017-11-02 | 2017-11-02 | Digital watermark adding and extracting method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109756738B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115665422B (en) * | 2022-10-24 | 2024-08-02 | 昆易电子科技(上海)有限公司 | Video data transmission method, system, injection method and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101681499A (en) * | 2007-06-14 | 2010-03-24 | 汤姆逊许可证公司 | modifying a coded bitstream |
CN102132564A (en) * | 2008-08-20 | 2011-07-20 | 汤姆森特许公司 | Selection of watermarks for the watermarking of compressed video |
CN102187672A (en) * | 2008-08-19 | 2011-09-14 | 汤姆森特许公司 | Cabac/avc compliant watermarking of syntax elements in compressed video |
CN102665100A (en) * | 2012-05-07 | 2012-09-12 | 苏州工业职业技术学院 | Method for applying digital watermarks in streaming media |
CN103106901A (en) * | 2013-01-22 | 2013-05-15 | 宁波大学 | Audio digital steganography and extraction method in compressed domain based on index values |
CN104038761A (en) * | 2014-06-05 | 2014-09-10 | 宁波工程学院 | Encrypted domain H.264/AVC video data hiding method based on CABAC binary string mapping |
CN104038767A (en) * | 2014-06-05 | 2014-09-10 | 宁波工程学院 | Encryption domain H.264/AVC (Advanced Video Coding) video data hiding method compatible with CABAC (Context-based Adaptive Binary Arithmetic Coding) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7623673B2 (en) * | 2005-03-30 | 2009-11-24 | Dolby Laboratories Licensing Corporation | Versatile watermark transport system |
-
2017
- 2017-11-02 CN CN201711062987.XA patent/CN109756738B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101681499A (en) * | 2007-06-14 | 2010-03-24 | 汤姆逊许可证公司 | modifying a coded bitstream |
CN102187672A (en) * | 2008-08-19 | 2011-09-14 | 汤姆森特许公司 | Cabac/avc compliant watermarking of syntax elements in compressed video |
CN102132564A (en) * | 2008-08-20 | 2011-07-20 | 汤姆森特许公司 | Selection of watermarks for the watermarking of compressed video |
CN102665100A (en) * | 2012-05-07 | 2012-09-12 | 苏州工业职业技术学院 | Method for applying digital watermarks in streaming media |
CN103106901A (en) * | 2013-01-22 | 2013-05-15 | 宁波大学 | Audio digital steganography and extraction method in compressed domain based on index values |
CN104038761A (en) * | 2014-06-05 | 2014-09-10 | 宁波工程学院 | Encrypted domain H.264/AVC video data hiding method based on CABAC binary string mapping |
CN104038767A (en) * | 2014-06-05 | 2014-09-10 | 宁波工程学院 | Encryption domain H.264/AVC (Advanced Video Coding) video data hiding method compatible with CABAC (Context-based Adaptive Binary Arithmetic Coding) |
Also Published As
Publication number | Publication date |
---|---|
CN109756738A (en) | 2019-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Sun et al. | Exposing video forgeries by detecting MPEG double compression | |
US9947065B2 (en) | Zero-watermarking registration and detection method for HEVC video streaming against requantization transcoding | |
CA2264625C (en) | Data hiding and extraction methods | |
CN107886560B (en) | Animation resource processing method and device | |
JP2018529273A5 (en) | ||
Swati et al. | A watermarking scheme for high efficiency video coding (HEVC) | |
EP3668104B1 (en) | Video scrambling method and device with adaptive mode selection, network camera and readable storage medium | |
CN104581176B (en) | The insertion of H.264/AVC compression domain robust video watermark and extracting method without frame in error drift | |
Prabakaran et al. | A robust QR-Code video watermarking scheme based on SVD and DWT composite domain | |
CN102685500B (en) | H.264 large-capacity information hiding method based on information variable-length packet structure | |
CN113489990B (en) | Video encoding method, video encoding device, electronic equipment and storage medium | |
CN105744345A (en) | Video compression method and video compression device | |
CN102364949A (en) | H.264_advanced video coding (AVC)-video-stream-integrity-based fragile watermark authentication method | |
CN105915912A (en) | Fragile watermark embedding and detection method of MPEG-2 compressed domain video | |
CN106101714A (en) | One and the tightly coupled H.264 video information hiding method of compression encoding process | |
Su et al. | Detection of double-compression in MPEG-2 videos | |
CN103237209A (en) | H264 video watermarking method based on regional DCT (discrete cosine transform) coefficients | |
JP2009543410A (en) | Keyframe extraction method and system | |
CN107852504A (en) | The video watermark technologies of MPEG 2 in DC coefficient domains | |
CN109756738B (en) | Digital watermark adding and extracting method and device, electronic equipment and storage medium | |
TWI650005B (en) | Dynamic image predictive coding method and dynamic image predictive decoding method | |
Elrowayati et al. | Robust HEVC video watermarking scheme based on repetition-BCH syndrome code | |
CN101005617B (en) | Method for coding, method for decoding, device for coding and device for decoding video data | |
CN111770334A (en) | Data encoding method and device, and data decoding method and device | |
CN113489983B (en) | Method and device for determining block coding parameters based on correlation comparison |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |