Digital watermarking method for videos
The digital watermarking method for moving images addresses image quality and security issues by dividing frames into blocks and using inverted green noise patterns, achieving high-speed, large-capacity embedding with enhanced security and ease of extraction, suitable for various applications.
Patent Information
- Application Number
- JP2022125192
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2026-12-04
- Estimated Expiration
- 2042-08-05
AI Technical Summary
Existing digital watermarking methods for moving images face challenges in maintaining high image quality, large capacity, high-speed embedding, and security, particularly when applied to various operational forms such as copyright protection, tamper detection, and annotation applications, while being vulnerable to collusive attacks and image quality degradation.
A digital watermarking method for moving images that divides each frame into blocks and embeds a dispersed green noise dot pattern with reduced spectral intensity, using inverted patterns and phase shifts across frames, enabling high-speed, large-capacity embedding with enhanced security and ease of extraction without a secret key, and allowing for simultaneous embedding of sub-information patterns.
The method supports various operational forms by maintaining high image quality, resisting collusive attacks, and ensuring secure, high-speed, large-capacity embedding with easy extraction, while allowing for convenient watermark removal and rewriting using a secret key.
Smart Images

Figure 0007960905000001 
Figure 0007960905000002 
Figure 0007960905000003
Abstract
Description
Technical Field
[0001] The present invention relates to a digital watermarking method for moving images that embeds information in moving images, and more particularly to a high-image-quality, large-capacity, high-speed, and highly secure digital watermark embedding, extraction, and removal method that can be adapted to various usage modes.
Background Art
[0002] Users have increasing opportunities to view digitized audio-video (AV) signals, such as those from DVDs, digital broadcasting, and Internet distribution. Compression techniques for digitized AV signals, such as MPEG2 and MPEG4, have made it possible to provide users with high-quality content with a smaller capacity or bandwidth compared to analog signals. Since a digitized AV signal can be easily copied bit by bit without degradation, content protection technology is strongly demanded. Content protection standards such as CSS (Content Scramble System), CPPM (Content Protection for Prerecorded Media), CPRM (Content Protection for Recordable Media), and DTCP (Digital Transmission Content Protection) apply cryptographic techniques to digitized AV signals and have been developed to prevent unauthorized copying. However, during viewing, the encryption is removed, leaving the signal unprotected. Digital watermarking is a technology that embeds additional information in AV signals, and can be applied to prevent unauthorized copying via analog paths.
[0003] Digital watermark embedding in moving images is used for various purposes. The main applications include the following: (A) Copyright protection for video content Copyright information and copyrighted work information (shooting date and time, location, photographer, copyright holder, secondary copyright holder, etc.) are embedded as digital watermarks in video content, enabling copyright assertion while also allowing warnings and tracking of illegal copies. (B) Detection of tampering with video content When using images from surveillance cameras or dashcams as evidence in court, it is necessary to prove that they have not been tampered with. (C) Annotation Application For example, in ebooks containing videos, such as animal encyclopedias, it is necessary to display embedded detailed explanations and annotations by clicking on the video images.
[0004] In copyright protection under (A), digital watermarking is used to crack down on copyright infringements such as illegal copying and surreptitious filming of movies, DVDs, and other video content. The content protection standard defines the following four types of copy control information (CCI): (1) Copy-free: Copying is permitted freely. (2) Copy-never: Content that is not to be copied. (3) Copy-one-generation: Content that can only be copied once. (4) No-more-copies: Content that has been copied once and is allowed to be copied once more (further copying is prohibited). By embedding a Content Control Information (CCI) with this information using digital watermarks, and having the device operate according to the detected CCI, content protection can be achieved. If content that is copyable for one generation is copied once, the CCI must be rewritten to "no more copies," requiring a digital watermark that allows for rewriting.
[0005] Furthermore, in digital watermarking for copyright protection, the embedded information must be easily readable by anyone. In digital watermarking called steganography, confidential information is embedded, so a special secret key is required to extract the watermark. However, for the purpose of copyright protection, it is necessary to communicate whether or not the content is copyrighted and to warn that if it is copyrighted, it must not be illegally copied. For this reason, it needs to be easily extracted without a key.
[0006] Furthermore, when reselling or transferring copyrighted video content, it is necessary to remove and rewrite old copyright information. Therefore, it is necessary to remove, add, or rewrite digital watermarks. Consequently, it is necessary to be able to remove, add, or rewrite watermarks using a key (private key).
[0007] When images from surveillance cameras or dashcams (B) are used as evidence in court, it is necessary to prove that they have not been tampered with. Recent image processing software is capable of highly accurate and extremely detailed video editing. For example, it is easy to tamper with accident footage captured by a dashcam, changing a red light image to a green light. Therefore, it is necessary to prove that the captured footage has not been tampered with, and if tampering has occurred, to identify the location of the tampering. For this reason, the digital watermarking technology used for this purpose requires the detection of tampering and the location of the tampering.
[0008] Furthermore, in video encyclopedias (e-books containing videos) such as (C), at least 100 characters of annotations and detailed information related to the videos are required to be embedded on the video monitor. Therefore, the digital watermarking technology used for this purpose requires the embedding of a large amount of information.
[0009] Thus, the requirements differ depending on the operational form. Each requirement usually has a trade-off relationship; satisfying one requirement means sacrificing another. Therefore, a watermarking method optimized for the priority requirements of the operational form is used. For example, watermarking for copyright protection requires a watermark that can withstand image editing and processing, is deeply embedded to prevent the watermark from disappearing, and has strong resistance. However, watermarking methods for tamper detection use a method that intentionally reduces resistance by embedding the watermark shallowly so that the watermark information is easily lost due to tampering. Also, watermarking for copyright protection uses fewer embedded characters to increase resistance, but in video encyclopedias, for example, large-capacity embedding is prioritized, and resistance is not a major consideration. In other words, watermarking requirements differ depending on the operational form and application, and it is difficult to satisfy all operational forms with a single watermarking algorithm.
[0010] Furthermore, embedding in video requires high-speed embedding. Surveillance cameras and dashcams often have HD resolution (1920x1080 pixels) and frame rates of 30fps (frames per second). Therefore, to perform real-time embedding, a high-speed digital watermarking embedding method is necessary.
[0011] To date, the inventor has proposed a green noise diffusion type digital watermarking method for still images. For example, in Patent Document 1, an image is divided into blocks, a green noise pattern corresponding to the bit sequence of the embedded information is embedded in each block, and the extraction is performed by obtaining the spectrum for each block and deriving the embedded bit sequence from its shape. This method achieves high image quality, high tolerance, and reversibility (removing the watermark and returning to the original image).
[0012] Furthermore, Patent Document 2 describes a method in which sub-information is embedded in addition to watermark information (main information) through multiplexing, and the sub-information is used for tamper detection.
[0013] Furthermore, Patent Documents 3 and 4 describe how to generate camouflage patterns consisting of inverted or phase-shifted green noise patterns, resulting in a highly secure digital watermarking method that is difficult to decipher through colluding attacks by third parties.
[0014] However, applying these still image methods directly to moving images presents several problems. One is that if a watermark is embedded in each frame of a moving image with the same embedding strength (gain) as a still image, the watermark pattern becomes easily visible. Although the video portion is in motion, the watermark information is a still image, making the watermark information stand out. This causes viewers to perceive still image noise superimposed on the moving image, leading to a degradation of the video's image quality.
[0015] Next, it becomes easier for third parties to decipher the patterns through colluding attacks. When the same watermark information is embedded in multiple frames, the number of embedded patterns increases, making them easier to decipher and thus more vulnerable to attack. Similarly, even if different watermark information is embedded in each frame, the number of extracted embedded information and embedded patterns increases, making them easier to analyze and thus more vulnerable to attack.
[0016] In the case of still images, security can be enhanced by using a green noise pattern generated from a different random dot pattern for each image. However, if watermark information is embedded using a different green noise dot pattern for each frame of a moving image, the secret key for removal must be different for each frame, requiring the storage of a key for each frame. This increases the key capacity, reduces convenience, and creates security problems in case of loss. [Prior art documents] [Patent Documents]
[0017] [Patent Document 1] Japanese Patent Publication No. 2018-182471 [Patent Document 2] Japanese Patent Publication No. 2019-195148 [Patent Document 3] Japanese Unexamined Patent Application Publication No. 2020-88469 [Patent Document 4] Japanese Unexamined Patent Application Publication No. 2020-184663 [Summary of the Invention] [Problems to be Solved by the Invention]
[0018] An object of the present invention is to solve such problems, to support various application modes using moving images, to prevent image quality degradation during viewing, and to provide a more secure electronic watermark method for moving images. Another object of the present invention is to provide an electronic watermark method for moving images that enables high-speed, real-time embedding during video shooting and can embed a large-capacity electronic watermark. [Means for Solving the Problems]
[0019] In order to solve these problems, the present invention provides an electronic watermark method for moving images, in which each frame of video data is divided into a plurality of blocks, and a dispersed dot pattern including a green noise dot pattern exhibiting green noise characteristics where spectral intensity decreases in high-frequency and low-frequency regions for each block is embedded in image data. The dispersed dot pattern is stored in a secret key. Watermark embedding is performed by embedding, for the k-th frame (k is an arbitrary frame number), a dispersed dot pattern corresponding to watermark information for each block, and for the (k+1)-th frame, an inverted pattern of the dispersed dot pattern used in the k-th frame for each block. Watermark extraction is performed by decoding the video data, expanding it into frames, obtaining a difference image between the image data of the frame k' (k' is an arbitrary frame number) to be extracted and the (k'+1)-th frame, dividing the difference image into blocks, obtaining a spectrum for each block, and extracting embedded information from the spectrum shape without a secret key. Watermark removal is characterized in that the watermark information can be removed using the secret key and the extracted watermark information to restore the image to its pre-embedding state.
[0020] According to this method, since the dispersed dot pattern is a green noise pattern with reduced spectra in both high-frequency and low-frequency ranges, the embedded pattern is inherently less visible and provides high image quality. Additionally, during viewing, the k-th frame is embedded with the dispersed dot pattern, while the (k+1)-th frame is embedded with an inverted version of the dispersed dot pattern. As a result, when viewed as a moving image, the embedded pattern is temporally averaged and canceled out, enabling high-quality video playback. Furthermore, the extraction accuracy of watermark information is improved because extraction is performed from the difference image between the image data of frame k' and frame k'+1. This cancels out the original image components and doubles the gain of watermark embedding, thereby enhancing extraction accuracy.
[0021] Moreover, since embedding is performed directly on the image data in the spatial domain, high-speed embedding is achievable. Additionally, watermark information can be embedded in block units, and watermark information can be embedded in each frame of the moving image, enabling large-capacity embedding. Furthermore, the embedding capacity can be further increased by using multi-level dispersed dot patterns. Furthermore, a secret key is required to remove the watermark. Since the secret key corresponds to the dispersed dot pattern used for writing, even if the secret key is stolen or lost, it cannot be used to remove watermark information from other videos. Thus, high security is ensured.
[0022] Additionally, the present invention performs watermark embedding in the k-th frame using a dispersed dot pattern that employs, for each block obtained from a random number generator, an index σ of a random inversion pattern and shift amounts X, Y of a phase shift pattern; p’i(σ,x,y)=pi(σ,(x+X) mod R, (y+Y) mod R) where pi(σ,x,y) is the dot pattern of the inversion pattern index σ, and mod R denotes modulo R arithmetic; Embedding in the (k+1)-th frame uses the same watermark information, inversion pattern index σ, and phase shift amounts X, Y as in the k-th frame, employing a dispersed dot pattern; p'i(σ',x,y)=pi((σ+4) mod 8, (x+X) mod R, (y+Y) mod R) Using, W(x,y)=I(x,y)+gain·p'i(σ',x,y) However, W(x, y) is the image with the watermark embedded, I(x, y) is the image before embedding, and gain is the intensity of the embedding. The watermark is embedded in such a way that it can be extracted using common extraction software regardless of the position of the frame from which it is to be extracted. The secret key contains the seed value of the random number generator for generating distributed dot patterns and camouflage patterns. The watermark can be removed using this secret key, the extracted watermark information, and the frame number, returning the image to its pre-embedding state.
[0023] This method embeds the k-th frame with a random distributed dot pattern using a random number sequence generated by a random number generator, and the (k+1)-th frame with an inverted pattern of the same distributed dot pattern as the k-th frame. As a result, every frame and every block will have a different distributed dot pattern, and the probability of the same pattern appearing is extremely low. Therefore, it is difficult to decipher or remove the embedding patterns, protecting against collusive attacks by third parties, and thus offering high security.
[0024] Furthermore, since the spectral shape of the watermark remains the same even when the pattern is inverted and phase-shifted, extraction can always be performed using the same software, regardless of the video data or frame number. In other words, extraction is possible even without information on the inverted pattern index or phase shift amount, and watermark extraction can be performed without a secret key. To put it another way, a key feature is that watermark extraction is possible for all videos and all frames using general-purpose extraction software.
[0025] On the other hand, removing watermarks requires a high level of security measures to withstand malicious external attacks. For this reason, it can only be done using a private key. The private key contains the green noise dot pattern, the embedding strength (gain), and the seed value for random number generation. By using this private key to remove the watermark information from the embedded image, it is possible to revert to the image before embedding.
[0026] Furthermore, in this invention, the distributed dot pattern includes a sub-information pattern composed of a Bayer pattern, the embedding is performed using a pattern synthesized from the green noise dot pattern and the sub-information pattern, the extraction of sub-information is performed using a mask composed of a Bayer pattern in real space (pixel space), the secret key includes the distributed dot pattern, the sub-information pattern, and the seed value of the random number generator for generating the camouflage pattern, and the removal of watermarks and sub-information can be performed by using the secret key, the extracted watermark information, and the frame number to return to the image before embedding.
[0027] This method allows for the simultaneous embedding of sub-information patterns at the same time as watermarking information, making it possible to incorporate both highly resistant watermarks and tamper detection patterns into a single watermarking technique (watermarking algorithm).
[0028] Even when such sub-information patterns are synthesized and embedded, they do not overlap with the spectrum of the green noise dot pattern, thus preventing extraneous interference and beats, and maintaining high image quality. Furthermore, when removing them, including the sub-information patterns in the secret key allows them to be removed simultaneously with the watermark pattern. [Effects of the Invention]
[0029] By using this digital watermarking method, it becomes possible to support various operational forms that utilize moving images. In other words, it enables high-speed and large-capacity embedding into videos while maintaining high image quality when viewing embedded videos. It also increases resistance to collusive attacks. Furthermore, watermark extraction can be easily performed for all video content using common software without the need for a key. When removing or rewriting watermarks, it is possible to rewrite or add watermarks to any frame using a secret key. Even if the secret key is lost, it is not possible to remove or rewrite watermarks on other videos. Therefore, it is possible to combine both convenience and high security. [Brief explanation of the drawing]
[0030] [Figure 1] Diagram of the application device for digital watermarking for video according to the present invention. [Figure 2] Diagram illustrating the processing on a personal computer during the extraction of a digital watermark for video according to the present invention. [Figure 3] Diagram illustrating the generation flow of green noise dot patterns. [Figure 4] A diagram showing a green noise dot pattern and its spectrum. [Figure 5] Diagram showing the inversion pattern [Figure 6] A diagram showing an example of a phase shift pattern. [Figure 7] Block diagram of the watermark embedding overview [Figure 8] Diagram illustrating the method of embedding watermarks for each frame. [Figure 9] Diagram showing the detailed flow of watermark embedding. [Figure 10] Block diagram illustrating the overview of watermark extraction. [Figure 11] Diagram illustrating the overview of the difference processing between frames. [Figure 12] Diagram showing the watermark extraction process. [Figure 13] A diagram illustrating machine learning using neural networks for pattern recognition. [Figure 14]In the diagrams showing the sub-information patterns and their spectra, (a) shows the watermark pattern and spectrum, (b) shows the sub-information pattern, and (c) shows the composite pattern and its spectrum. [Figure 15] Diagram showing the embedding flow of secondary information [Figure 16] Diagram representing a mask pattern for extracting sub-information. [Figure 17] The diagram illustrates watermark and sub-information extraction, with (a) representing the k-frame and k+1-frame images, (b) representing the difference image and a magnified portion thereof, (c) representing the extracted watermark information, and (d) representing the extracted sub-information. [Modes for carrying out the invention]
[0031] Figure 1 is a diagram illustrating the configuration of the system for embedding and extracting watermark information from moving images according to the present invention. Camera 1 is a video camera, surveillance camera, dashcam, or other video-capturing camera, and incorporates a video watermark embedding mechanism described later. The watermarked moving images are captured by the user's personal computer (PC) 4 via a wireless LAN such as Wi-Fi or memory 3 such as an SD card, and the user can view the moving images on a video monitor 2 or extract the watermark information on the PC and display it on the video monitor.
[0032] Figure 2 shows the system configuration for watermark extraction, etc. A personal computer 4 has memory 3 inserted into it, and captured watermarked video footage is imported. If necessary, it is also imported into data memory 8, such as a hard disk. Image processing programs for watermark embedding, extraction, and removal are stored in program memory 7, and processing is executed using the CPU 12, ROM 5, RAM 6, etc. The processed video and extracted watermark information are displayed on the video monitor 2. It is also possible to import videos from the network or cloud, and to track and monitor published videos via the communication function 10. New watermark information can also be entered into the video from which the watermark has been removed using the keyboard 9. [Examples]
[0033] First, let's explain the dispersed dot pattern used for embedding. Figure 3 shows the generation flow of the green noise dot pattern as a dispersed dot pattern. The green noise dot pattern is generated in the following steps. Step 1: First, as an initial value, (R^2) / 2 random dots are placed in a region with a block size of R×R and defined as pi(x, y) (20). Here, the subscript i represents a multi-level number. For example, for binary, i=0,1, and for quaternary, i=0,1,2,3. Also, ^ represents exponentiation. When R=32, 512 black and white dots are randomly placed. The initial value exhibits white noise characteristics. Step 2: Next, perform a two-dimensional Fourier transform on the dot pattern to obtain Pi(fx, fy) (21). Step 3: For Pi(fx, fy), the frequencies fx and fy are fx,min≦fx≦fx,max , fy,min≦fy≦fy,max A new spectral characteristic P'i(fx,fy) is obtained by multiplying by a filter Di(fx,fy) that restricts the bandwidth (22). Step 4: Perform an inverse Fourier transform on P'i(fx,fy) to obtain a multi-valued dot pattern p'i(x,y) (23). Step 5: Error function: e(x,y)=p'i(x,y)-pi(x,y) Calculate the values and invert the colors to white and black in descending order of error (24). Steps 2-5 are repeated until the error function falls below a certain value, at which point the process terminates and the final pattern is obtained (25).
[0034] The dot pattern obtained by this method is a cluster-type dispersed dot pattern exhibiting so-called green noise characteristics, where its spectrum is distributed in the bands of the maximum frequency fmax and minimum frequency fmin. To use it as an embedding pattern for digital watermarking, in the case of quaternary data, four types of anisotropic patterns corresponding to the embedding bits "00", "01", "11", and "10" are created to obtain a quaternary green noise dot pattern. Figure 4 shows a 32x32 pixel green noise dot pattern and its spectrum. The four types of patterns pi(x,y) (i=0, 1, 2, 3) have elliptical spectra, each rotated by 45°. The code assignment is a Gray code with a Hamming distance of 1.
[0035] Here, by using different initial random numbers in Step 1, the resulting dot patterns will differ. In other words, by changing the Seed value of the pseudo-random number generator, it is possible to change the dot pattern. In the RxR block, only R*RC (R*R / 2) different dot patterns are possible, which is virtually infinite. (Here, C represents Combination.) However, the spectral shape does not change. For this reason, the extraction software described later can be used without modification.
[0036] Next, we will explain camouflage patterns. Camouflage patterns consist of inversion patterns and phase-shift patterns. Figure 5 shows the inversion pattern for p1(x,y). The inversion pattern is created as follows. σ=0: Pattern of pi (x,y) (Basic pattern) σ=1: Upside-down inversion pattern of pi (x,y) σ=2: Left-right inverted pattern of pi (x,y) σ=3: Up-and-down and left-and-right inversion pattern of pi (x,y) σ=4: Negative pattern of pi (x,y) σ=5: Negative pattern of the inverted pi (x,y) σ=6: Negative pattern of pi (x,y) with left-right inversion. σ=7: Negative pattern of pi (x,y) inverted vertically and horizontally. The up / down and left / right directions are applied to the major and minor axes of the ellipse, respectively. The negative pattern is a pattern inverted with white and black dots. Since the number of white and black dots is the same, the number does not change even when inverted. For one pi(x,y), a total of eight different dot patterns σj(j=0,1,2,…7) are generated, all exhibiting the same spectral characteristics.
[0037] Here, the dot pattern pi(x,y) is expressed as a 3D array pi(σ, x, y) with σ as a parameter. In this case, the inversion pattern of pi(σ, x, y) to the negative pattern is, Inversion pattern of pi(σ,x,y): pi((σ+4) mod 8,x,y) (1) This is expressed as follows: Here, mod 8 represents the remainder modulo 8. For example, when σ=7, pi((7+4)mod 8, x, y)=pi(3,x, y), and when σ=3, pi((3+4)mod 8, x, y)=pi(7,x, y), showing that σ=7 and σ=3 are inverse patterns of each other.
[0038] Next, a phase shift pattern is a pattern in which the starting position of the pattern is shifted. If the amount of shift is r, then r has components in the x and y directions and will be represented as (X, Y). Here, 0 ≤ X and Y ≤ R - 1. Hereinafter, (X, Y) is determined randomly by generating random numbers. The phase shift pattern, in which the phase is shifted, can be expressed from the pattern without phase shift (basic pattern) by the following formula. A pattern where the phase of pi(σ, x, y) is shifted by (X,Y): pi(σ, (x+X) mod R, (y+Y) mod R) (2) Figure 6 shows an example of a phase-shifted pattern for the p0 pattern (basic pattern). Originally, because the green noise dot pattern consists of uniformly distributed random dots, even if they are placed side by side, their boundaries cannot be distinguished, and even if the phase is shifted, the boundary lines are not visible. For a single green noise pattern, R^2 different phase-shift patterns can be generated, all exhibiting the same spectral characteristics. Therefore, similar to inverted patterns, the extraction software can be used interchangeably without modification.
[0039] Next, we will explain how to embed watermark information. Watermark information is embedded in the luminance signal of color image data or in the green (G) channel signal. Embedding it in the blue (B) component of the image data makes the watermark information least visible due to visual characteristics and allows for the reproduction of high image quality. However, when the embedded image is compressed into video (e.g., MPEG compression), the subsampling of the color difference signal is usually made coarser, which reduces the accuracy of watermark extraction.
[0040] Figure 7 shows the process of watermarking in the camera. A watermark is embedded in the output data (RAW data) from the camera sensor 30 (31), and the embedded image is stored in the frame buffer 32. After several frames have been stored, the watermarked video data 34, which has been compressed by the H264 encoder 33, is output. This entire process is controlled by the CPU 35 inside the camera. Embedding processes in devices such as dashcams and surveillance cameras need to be performed in real time simultaneously with image capture, requiring high-speed embedding. Embedding in real time for HD size (1920 pixels x 1080 pixels) video at 30fps (frames per second) is a very difficult process, but this method of embedding using a green noise pattern embeds the raster sequence into each block in real space (pixel space), making it possible to do so with software or simple hardware, similar to dithering.
[0041] The embedding method involves dividing the image data I(x, y) of each frame of video data into R-pixel × R-pixel blocks, and sequentially embedding a green noise pattern corresponding to the watermark bit information into each block. If the image size is W-pixel × H-pixel, the number of blocks N per frame is W / R * H / R (where " indicates rounding down to the nearest integer). If we use R=32 block size and embed a quaternary green noise pattern in an HD-sized image, there are 1920 blocks per frame, making it possible to embed 480 ASCII characters. In reality, this will be slightly reduced due to the inclusion of error correction codes, but it is still a sufficient amount of embedding for practical purposes.
[0042] Furthermore, when embedding information in cameras mounted on mobile devices such as dashcams, it is desirable to embed it in each frame, as this involves embedding information that changes moment by moment, such as the time of shooting and GPS information. In this invention, the watermark information is updated every two frames. First, Figure 8 shows an overview of the watermark embedding process. For the k-th frame (where k is arbitrary) of the RAW data from the camera sensor 30, the watermark information 42, which has been converted into a bit string, is extracted in block order and embedded into each pixel by an adder 38 using the inverted pattern σ 40. For the next k+1 frame, the same watermark information is used, but the inverted pattern 41 of (σ+4) mod 8 is added and embedded by an adder 39. The embedded image data of each frame is sent to the frame buffer 32 and stored.
[0043] Next, Figure 9 shows the specific embedding process. First, as preparation for embedding (50), we determine the distributed dot pattern pi(σ, x, y) and the number of blocks N to be embedded. The number of patterns for pi(σ, x, y) varies depending on the level of multi-level imaging, but in the case of quaternary imaging, there are four types, p0 to p3, each with eight inversion patterns, resulting in a total of 32 patterns. These are then arranged into a 3D array using σ. N is the number of blocks per frame, and if the image size is W x H and the block size is R x R, then N = W / R * H / R. We also set Seed1, which is the seed value for random numbers used to determine the inversion pattern, and Seed2, which is the seed value for random numbers used to determine the phase shift pattern. These values are set differently for each video. The random number sequence determined by these seed values is calculated for each block in even frames. Therefore, each even frame will have a different random number sequence.
[0044] Next, embedding begins from frame number k=0 (51). In the k-th frame (initially k=0), random values (σ, X, Y) to be assigned to the inversion pattern and phase shift pattern are calculated in advance for the number of blocks N for one frame. The random number generator by Seed1 generates N inversion pattern index σ as a sequence of random integers from 0 to 7, and the random number generator by Seed2 generates N phase shift amounts X and Y as sequences of random integers from 0 to R-1 (52).
[0045] Next, we begin embedding into k frames (53). Embedding is performed by sequentially selecting random values (σ,X,Y) from N random values for each block and performing the embedding sequentially for each block in raster order. The distributed dot pattern p'i(σ,x,y) in the nth block (n=0,1,2,...N-1) is expressed by the following formula. p'i(σ,x, y)= pi(σ, (x + X) mod R, (y + Y) mod R) (3) Using this pattern, embedding is performed block by block as shown in the following equation. W(x, y)=I(x, y)+gain p'i(σ,x, y) (4) Here, W(x, y) is the image in which the watermark is embedded, and I(x, y) is the image before embedding, both cut out into corresponding blocks. Gain is the embedding strength, and is set to 0 < gain ≪ 1 to make the watermark invisible. A large gain value makes embedding more robust and improves resistance, but degrades image quality. Normally, the experimentally obtained optimal value (gain=0.1725) is used as the default value, but when a different value is used, it must be included in the secret key because it is required during watermark removal. This operation is performed on all blocks.
[0046] Subsequently, k is incremented by 1 (54), and embedding is performed on the k+1 frame (55). The watermark information to be embedded and the random values (σ, X, Y) assigned to each block are the same as those used in the k-th frame. The dispersed dot pattern for embedding p'i(σ',x, y)= pi((σ+4)mod 8 , (x + X) mod R, (y + Y) mod R) (5) is used for embedding as in the following equation. W'(x, y)=I(x, y)+gain· p'i(σ',x, y) (6) That is, for each block of the k+1 frame, an inverted dot pattern of the dispersed dot pattern of the k-th frame is used. Subsequently, k is incremented by 1 (57), and the process moves to the next frame, where the same embedding operation is performed with new watermark information. Embedding is completed when all frames have been processed (56) (58).
[0047] Next, watermark extraction will be described. Figure 10 is a block diagram showing the outline of watermark extraction. The watermarked video data 34 is decompressed by an H.264 decoder 60 from the motion-compressed data, and stored in a frame buffer 61. Subsequently, an arbitrary frame to be watermark-extracted and the next frame are extracted, and difference processing is performed on both (62). Watermark extraction processing is performed on the difference image (63), to obtain watermark information 64.
[0048] Figure 11 illustrates the difference processing part, where k-frame 65 and k+1-frame 66 are extracted from frame buffer 61, which stores watermarked RAW data. Then, the difference between the two is taken (67). In other words, k-frame embedded image: W(x, y)=I(x, y)+gain·p'i(σ,x, y) Embedded image for k+1 frames: W'(x, y)=I(x, y)+gain·p'i(σ',x, y) Therefore, W(x,y)-W'(x,y)=I(x,y)-I'(x,y)+gain·[p'i(σ,x, y)-p'i(σ',x, y)] ≈2gain·p'i(σ,x, y) (7) Consequently, if there is no movement in the image data, the image data is canceled out, and the watermark information is amplified twice and output (64). This improves the accuracy of watermark extraction. Conversely, if the same extraction accuracy is acceptable, it means that the watermark can be embedded with half the gain. In that case, the PSNR (peak signal-to-noise ratio) of the embedded image improves.
[0049] Figure 12 shows the processing flow for extracting watermarks from difference images. The difference image for one frame is divided into blocks (70), and processing is performed on the nth block (initially n=0) (71). First, a Fast Fourier Transform (FFT) is performed on the block data to obtain the spectral distribution (72). Next, the data is normalized by processing such as histogram equalization (73), and patterns are identified from the spectral distribution (74). The identification method uses pattern recognition by a neural network, which will be described later. As a result of the identification, if it is a quaternary data type, 2 bits of watermark information are extracted from each block. It is determined whether all blocks in the frame have been completed, and if not, n is incremented by 1 and the process moves to the next block (77). If all blocks have been completed, all bits are extracted and the data is restored to character information.
[0050] Figure 13 shows the pattern classifier obtained using machine learning with a neural network (NN). The machine learning model prepares a dataset of numerous labeled spectral data extracted from embedded images (80), divides it into training and test data, and performs training using a neural network (NN) method. The judgment image size is 32x32, the input layer (81) has 1024 neurons, the hidden layer (intermediate layer) (82) has 50 neurons, and the output layer (84) has 4 neurons. The sigmoid function is used as the activation function (83), and the output (85) is obtained using Softmax in the final stage. For the dataset, a watermark pattern of a camouflage pattern was embedded in the image, and 2000 extracted spectra were prepared for each pattern, totaling 8000 images, with 80% used for training and 20% for testing. As a result of performing machine learning using backpropagation, an accuracy rate of almost 100% was obtained. By incorporating the network parameters obtained from this machine learning into a watermark extraction program, it is possible to perform pattern recognition with a significantly higher accuracy rate compared to conventional identification methods.
[0051] The watermark extraction accuracy of this invention may decrease depending on the spatial frequency characteristics of the original image. This is because if the spatial frequency of the original image is high, i.e., if there is a fine pattern, the spectral distribution will broaden and overlap with the spectrum of green noise. Therefore, the accuracy of the extracted watermark is image-dependent and lacks stability, requiring error correction codes. Therefore, we introduced Reed-Solomon (RS) coding as an error correction code and extracted watermark information while maintaining error correction capabilities. Using the relationship x^8+x^4+x^3+x+1 in the extended Galois field GF(2^8) composed of 2^8 elements, we incorporated RS(16,6) coding that allows for error correction of up to 3 words in 16 words. In this case, the generating polynomials are x^6+a^166 x^5+a^0 x^4+a^134 x^3+a^5 x^2+a^176 x+a^15. Embedding information using such RS coding reduces the amount of embeddable information to 10 / 16 compared to the case without error correction coding, but it is possible to obtain an accuracy rate close to 100% regardless of the image.
[0052] Next, we will explain the embedding of sub-information. The sub-information pattern is intended to detect the location of tampering when video data has been altered. Figure 14 shows the sub-information pattern; (a) shows the watermark pattern pi(σ, x, y) and its spectrum, and (b) shows the sub-information pattern m(x, y). The black regions of the pattern (regions where m(x, y)=0) are embedded in the image with a Bayer-type checkerboard pattern Bayer(x, y). Figure (c) shows the watermark pattern and the sub-information pattern combined. The spectrum of the watermark pattern is an elliptical ring pattern, but the spectrum of the sub-information pattern, which consists of a Bayer-type checkerboard pattern, has a strong spectrum at the Nyquist frequency fx=fy=R / 2, and as shown in the spectrum of Figure (c), the spectrum is concentrated near the four ends of the block. Therefore, there is no overlap between the spectra of the watermark pattern and the sub-information pattern, and no interference occurs, making it possible to extract information independently from each.
[0053] Figure 15 shows the flow of embedding supplementary information into the video. First, beforehand, Sub-information pattern: m(x, y), Bayer pattern: Bayer(x, y), Inverted Bayer pattern: 1-Bayer(x, y), Prepare (90). Here, Bayer(x, y) is a checkerboard pattern normalized to {0, 1}. First, embedding begins in k frames (initially = 0). Embedding is done block by block, with the region m(x, y)=0 embedded with a Bayer pattern and the region m(x, y)=1 embedded with a phase-shifted watermark pattern (92). When all blocks in k frames are finished, k is incremented by 1 and the process moves to the next frame (k+1 frame) (93). Similarly, embedding is done block by block, but the region m(x, y)=0 is embedded with an inverted Bayer pattern and the region m(x, y)=1 is embedded with a phase-shifted inverted watermark pattern as explained in the watermark embedding section (94). When the frame is finished, k is incremented by 1 again (96) and the process moves to the next frame. When all frames are finished (95), the embedding is complete (97).
[0054] The embedding of sub-information patterns is not affected by the phase shift used in watermark embedding. Therefore, the sub-information pattern is always embedded in a fixed position, regardless of the frame, and can be used for position detection in case of tampering.
[0055] The extraction of secondary information is performed in real space by performing a convolution operation on the embedded image using the secondary information extraction mask patterns M0 and M1 shown in Figure 16. Mask pattern M0 consists of a 3x3 Bayer pattern, and M1 is the inverted pattern of M0. If the results of convolution with the embedded image W(x,y) using these patterns M0 and M1 are denoted as U0 and U1, then U0 and U1 can be expressed as follows. U0 = W(x, y) * M0 U1 = W(x, y) * M1(8) However, * represents convolution. The sub-information pattern can be detected from the difference between U0 and U1, and the output Mout of the binarized sub-information for contrast improvement is obtained using the following formula. When Mout(x,y) = 1 |U0-U1|>Th (9) 0 Other Here, Th is the threshold (constant) for binarization.
[0056] The output Mout of the sub-information pattern will appear across the entire frame if there has been no tampering. If tampering occurs, the sub-information pattern at the tampered location will disappear, making it possible to detect the location of the tampering.
[0057] Sub-information can also be extracted from difference images. In fact, difference images allow for more accurate extraction because the image data is canceled out, but it is unclear whether the information is located in frame k or frame k+1. Therefore, it is reasonable to first extract sub-information from difference images, and if tampering is detected, then perform tampering detection on each individual frame.
[0058] Next, we will explain how to remove and rewrite embedded information. Watermark removal is performed frame by frame by specifying the frame number. From equation (4) or equation (6), I(x, y)=W(x, y) - gain pi(σ,x, y) (10) Therefore, it can be obtained by subtracting a pattern obtained by multiplying the distributed dot pattern pi(σ,x,y) by the gain from the watermarked image.
[0059] Each frame is embedded with a camouflage pattern determined by the inversion pattern index σ and the phase shift amount (X,Y). Therefore, to remove it, it is necessary to know the embedded watermark information and the values of (σ, X, Y) for each block. The watermark information can be obtained by extracting the watermark from the frame. (σ, X, Y) can be obtained from the Seed value of the pseudo-random number generator used during embedding, the frame number, and the block number. By providing the same Seed value as during embedding, the same sequence of random numbers can be obtained. If the m-th random number is represented by round[m], the random value in the n-th block of the k-th frame can be represented by round[kN+n], where N is the number of blocks in one frame. Therefore, given (k, n), the values of (σ, X, Y) can be determined, and the watermark information can be removed from equation (10).
[0060] The removal of sub-information patterns can be achieved by subtracting them from the embedded image, along with the watermark removal, using the sub-information patterns stored in the private key and the gain applied during embedding, thereby returning the image to its pre-embedding state. This can be done by embedding the same watermark and sub-information into the embedded image using embedding software with a negative gain value (-gain). After that, new watermark information can be embedded.
[0061] The above explains the embedding, extraction, and removal of watermark and sub-information. Figure 17 shows an experiment in embedding and extracting watermark and sub-information using a 960x540 size (HD / 2 size) video. 120 characters were embedded using a quaternary green noise dot pattern in a 32x32 block size. Figure (a) shows the k-th and k+1-th frames of the embedded video, Figure (b) is the difference image between the k-th and k+1-th frames, and Figure (c) is the spectral image for extracting the watermark information. The embedded information was extracted 100% correctly from the spectral image. (d) shows the sub-information extracted from the k-th frame, and it can be seen that the entire frame is covered with the sub-information pattern and has not been tampered with.
[0062] Next, we will explain the security aspects of the digital watermarking method for moving images according to the present invention. To maintain security, it is necessary to prevent the theft or illegal detection of the green noise dot pattern contained in the key. Therefore, in this invention, the seed value of the random number that gives the camouflage pattern is set to a different value for each video. As a result, the embedded distribution turns are different for different video content, and even if the key is lost, it is not possible to remove the watermark from different videos. Furthermore, when generating the green noise dot pattern, patterns generated with different seed values for each video are used, so the distributed dot patterns are different, and even if the key is lost, it is not possible to access other videos with that key.
[0063] On the other hand, watermarks can be removed from the sum of k frames and k+1 frames. Now, when equations (4) and (6) are added together, the watermarks cancel each other out and the image data is added. That is, W(x, y)+W'(x,y)=I(x, y)+I'(x,y) + gain·( pi(σ,x, y)+ pi(σ',x, y)) ≈ 2·I(x,y) This results in the image I(x,y) before embedding. In the resulting video, the image is averaged in moving parts, and the image quality deteriorates. Also, the number of frames is halved. Therefore, it is not possible to completely restore the original video, but for videos that are close to still images, a result close to the original is obtained. For this reason, some countermeasures are necessary.
[0064] To avoid such problems, the present invention embeds some kind of detection pattern, for example, a binary representation of the frame number, with sub-information superimposed on it, into the first eight blocks of each frame. By embedding the eight blocks with a quadrivalent dot pattern, it is possible to embed frame numbers represented in binary from 0 to 65535. This corresponds to 36 minutes of 30fps video. These frame numbers are handled separately from the watermark information, and the actual watermark information is embedded starting from the 9th block. The watermark information uses the inverted dot pattern of frame k for k+1 frames, but the first 8 blocks where the frame numbers are embedded do not use the inverted pattern and are all embedded in the same way. Therefore, it is canceled out in the difference image but not canceled out in the additive image and remains, so the frame number and sub-information pattern (tamper detection pattern) can be extracted, and thus it is equivalent to the watermarked portion being tampered with. Thus, it can be seen that the video content has been tampered with.
[0065] Here, we will explain the secret key used to remove the watermark. As mentioned above, different green noise dot patterns can be obtained by changing the initial random number seed value. This seed value is called Seed0. The green noise dot pattern generated by Seed0 is called the basic pattern. The key that contains the basic pattern is called the "owner key". The basic pattern is like the fingerprint of the owner (copyright holder) of the video content. Individual keys are used for different video data from the same owner. Individual keys contain the Seed1 and Seed2 values in the basic pattern, and a camouflage pattern is generated using the index σ of the inversion pattern and the phase shift amount (X,Y) with this key, allowing for watermark removal from individual video content.
[0066] For different owners, a different basic pattern of owner key is generated by setting Seed0 to a different value, and a separate key is generated for each piece of content owned by that owner. If the number of pieces of content increases under the same owner, multiple owner keys may be created.
[0067] Thus, a different secret key is generated for each video content, but this is only necessary when removing the watermark; the key is not needed for watermark extraction. Therefore, the watermark extraction software can be the same for all content, and only one type is needed. [Industrial applicability]
[0068] As described above, the present invention provides a video watermarking method that offers high image quality, large capacity, high speed, and high security, and can be used in various operational forms. In operational forms aimed at copyright protection, even if a watermark is embedded in a video, it is not noticeable during playback and can be extracted without a key. In applications such as dashcams and surveillance cameras, it can be embedded in real time as the video is captured. Furthermore, it can be used as a watermarking method for detecting tampering, and thus, a single watermarking method can be used in various operational forms. [Explanation of symbols]
[0069] 1 represents the video recording camera, 2 the video monitor, 3 the memory for saving the video, 4 the personal computer (PC), 5 the ROM in the PC, 6 the RAM, 7 the program memory containing the digital watermark extraction program, 8 the data memory, 9 the keyboard, 10 the communication function, 11 the CPU, 30 the camera sensor, 31 the watermark embedding process, 32 the frame buffer, 33 the H264 encoder, 34 the output of watermarked video data, and 35 the camera CPU.
Claims
[Claim 1] In a digital watermarking method for video, each frame of video data is divided into multiple blocks, and each block is embedded in the image data with a dispersed dot pattern that includes a green noise dot pattern exhibiting green noise characteristics where the spectral intensity decreases in the high-frequency and low-frequency ranges, Embedding the watermark generates a camouflage pattern consisting of an inverted pattern and a phase shift of the dispersed dot pattern. For the k-th frame (where k is an arbitrary frame number), a dispersed dot pattern is created using the index σ of the inversion pattern and the shift amounts X and Y of the phase shift pattern; p'i(σ,x,y)= pi(σ,(x+X) mod R,(y+Y) mod R) Using it as a camouflage pattern, W(x,y)=I(x,y)+gain・p'i(σ,x,y) Embed it so that it becomes, For the (k+1)th frame, a dispersed dot pattern is used, employing the same watermark information, inversion pattern index σ, and phase shift amounts X and Y as for the kth frame; p'i(σ',x,y)=pi((σ+4) mod 8,(x+X) mod R,(y+Y) mod R) Using it as a camouflage pattern, W(x,y)=I(x,y)+gain・p'i(σ',x,y) Embed it so that it looks like this. However, W(x, y) is the image with the watermark embedded, I(x, y) is the image before embedding, gain is the intensity of the embedding, and mod R is the residue modulo R. Watermark information is extracted by decoding the video data, unpacking it into frames, calculating the difference image between the frame k' (where k' is an arbitrary frame number) and the k'+1 frame, dividing the difference image into blocks, calculating the spectrum for each block, and extracting the embedded information from the spectral shape. A method for digitally watermarking videos, characterized by the following:
Citation Information
Patent Citations
Electronic watermark device and method
JP2018182471A
Digital watermark apparatus and method
JP2019195148A
Digital watermarking apparatus and method
JP2020088469A
High resistance digital watermarking method
JP2020184663A
Electronic watermark embedding method, electronic watermark detecting method, electronic watermark embedding device, electronic watermark detecting device, program and computer readable recording medium
WO2009025019A1
