Watermark embedding method and system

Abstract: A data embedding method and apparatus and a data reproducing method and apparatus are provided which can apply a digital watermark to various contents. Instead of embedding watermarking information in respective pixels or by using a relation between pixels, the watermarking information is embedded as a position pattern (4) of changed pixels (3) in the contents. Reliability comparable with conventional techniques can be obtained irrespective of a change in a smaller number of pixels for the contents.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a method and system for embedding information such as a copyright notice in data, and more particularly to a digital watermark embedded in an image. Description of the Related Art Digital watermarking is applied to various contents. A watermark embedded in an image will be described by way of example. Information of a digital watermark is embedded in an image by modifying pixel values such as luminance components, and frequency components so that a set of images represents particular information of "0" or "1". In conventional techniques, for example, in "Still Image Data Hiding in Pixel Blocks", Shimizu et al., Proc. of IPSJ 53rd Annual Conference, 1996, the values of two pixels are changed minutely to represent "0", or "1" based upon a difference of values between two pixels. However, the following two conditions are required to be satisfied, when a digital watermark is to be embedded. 1) It is necessary that an image embedded with watermark information hardly changes from an original image (that the watermark is invisible). 2) It is necessary that embedded information is hard to be erased during an image conversion process such as JPEG compression ("Digital Compression and Coding of Continuous-Tone Still Images", ISO/IEC/0918-1). An error rate of each bit subjected to JPEG compression is 0.1 to 0.2. In order to lower the bit error rate of JPEG compression to a -8 power of 10, it is necessary to provide each bit of an embedded watermark with a redundancy of ten times or higher, so that the values of a number of pixels are necessary to be changed. Since the values of a number of pixels and frequencies are required to be changed in order to lower the bit error rate, there is a tradeoff between a reliability of watermark data detection and a quality of contents. An image compression process such as MPEG is necessary for an image having a large amount of data such as a moving image. In such a case, it is essential to detect watermark data under the condition of MPEG compression, i.e., under the condition of MPEG streams. It is also necessary to prepare a fundamental function of detecting a watermark under the image condition. In this case, a detector system is required to have a MPEG decoder, increasing its cost and process time. Ruanaidh et al. describe in "Water marking digital images for copyright protection" the use of a transform domain watermarking algorithm which is adapted from JPEG. The algorithm first outlines a form of modulation for placing bits on an image and then determines the number of bits to be placed at given locations in the image. Caronni describes in "Assuring Ownership rights for digital images" a method for integrating and recovering tags into/from digital images by modulating the brightness of chosen rectangles in the image to hide its? tagging information. This tagging information is hidden in the 'natural' noise of the digital image. Bors and Pitus use in "Image watermarking using DCT domain constraints" certain watermarking algorithms for image copyright protection. The algorithms proposed in their study select certain blocks in the image based on a Gaussian network classifier. The pixel values of the selected blocks are modified such that their Discrete Cosine Transform (DCT) coefficients fulfill a constraint imposed by the watermark code. SUMMARY OF THE INVENTION It is an object of the present invention to provide a method and a system for digital watermark embedding and detecting technique capable of minimizing the number of pixels to be changed in order to embed a digital watermark, while a reliability of detecting embedded data is maintained high. This object is achieved by the independent claims, dependent claims relate to further embodiments and developments of the present invention. According to a first aspect of the invention, a first data embedding and detecting approach is provided in which data is embedded in a two-dimensional image as a position pattern of blocks whose pixel values are changed. Accordingly, a reliability same as that obtained through conventional techniques can be retained irrespective of that the number of pixels whose values are changed is smaller. According to a second aspect of the invention, a second data embedding and detecting approach is provided in which a sum (or average) of pixel values of partial images is changed to a specific value. Accordingly, it becomes possible to optimize the change amount of pixel values of partial images. According to a third aspect of the invention, a data embedding system is provided which uses the first and second data embedding approaches. According to a fourth aspect of the invention, a data detecting system is provided which uses the first and second data detecting approaches. According to a fifth aspect of the invention, an approach is provided in which the first and second aspects are combined, namely, an image is divided into blocks of k × l pixels and a sum or average of pixel values of each block is changed to a value satisfying particular conditions. According to a sixth aspect of the invention, an approach is provided in which the size of each block embedded with watermark information based upon the fifth aspect is set to the size (e.g., 8 × 8 pixels) of a block used as the processing unit of a compression process such as JPEG and MPEG. Accordingly, embedded data under the image condition and under the condition of compression streams has one-to-one correspondence so that the embedded data can be detected both under the image condition and under the condition of compression streams. Other objects, features and advantages of the present invention will become apparent from reading the following description of the invention taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram illustrating a method of embedding data in an image, according to an embodiment of the invention. Fig. 2 is a flow chart illustrating a pixel value changing approach according to an embodiment of the invention. Fig. 3 is a diagram showing a data embedding system according to an embodiment of the invention. Fig. 4A is a diagram illustrating a method of detecting data from an image, according to an embodiment of the invention. Fig. 4B is a diagram showing a data detecting system according to an embodiment of the invention. Figs. 5A to 5C are diagrams illustrating an example of watermark embedding and detecting realized by software. Fig. 6 is a flow chart illustrating an application of the invention to image data to be recorded in a recording medium, according to an embodiment of the invention. Fig. 7 is a diagram illustrating a method of embedding data in an image according to an embodiment of the invention. Fig. 8 is a diagram showing a system of embedding data in an image according to an embodiment of the invention. Fig. 9 is a flow chart illustrating a method of embedding data in an image according to an embodiment of the invention. Fig. 10 is a flow chart illustrating a method of detecting data from an image according to an embodiment of the invention. Fig. 11 is a diagram illustrating a method of embedding data in an image according to an embodiment of the invention. Fig. 12 is a correspondence table illustrating a method of embedding data in an image according to an embodiment of the invention. Fig. 13 is a flow chart illustrating a method of embedding data in an image according to an embodiment of the invention. Fig. 14 is a flow chart illustrating a method of detecting data from an image according to an embodiment of the invention. Fig. 15 is a diagram illustrating a method of embedding data in an image according to an embodiment of the invention. Fig. 16 is a diagram illustrating a method of embedding data in an image according to an embodiment of the invention. Fig. 17 is a diagram illustrating a method of embedding data in an image according to an embodiment of the invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the invention will be described with reference to the accompanying drawings. First, an embodiment according to the first aspect of the invention will be described with reference to Fig. 1 which is a schematic diagram illustrating an approach to embedding data in an image. In the first embodiment shown in Fig. 1, each block 2 divided from an image 1 having m × n pixels represents a two-dimensional partial image of k × l pixels where m, n, k and l are positive integers. A block 3 with hatched lines has pixel values changed through a pixel value changing approach so that the block 3 has a specific value, the pixel value representing image information such as a luminance, a color difference, R, G and B color data. Information to be embedded is not represented by respective blocks, but it is represented by a block interval d . In this embodiment, the two-dimensional partial images whose pixel values are changed are disposed at the block interval d which corresponds to a data value x of a copyright notice for example, to thereby embed the data x in the image. In embedding watermark information, the data x is converted into the block interval d and the pixel values are changed based upon this block interval d . In detecting a watermark, a block pattern converted from the image is detected to read the block interval and convert the block interval into the data. In this embodiment, although the block interval d corresponding to the data x is set constant, it may be changed. For example, three different block intervals d1, d2 and d3 corresponding to the data x may be cyclically used to irregularly dispose blocks whose pixel values are changed. Next, a pixel value changing approach according to a second embodiment of the second aspect of the invention will be described. In embedding a watermark, each pixel value in a block of a two-dimensional partial image shown in Fig. 1 is changed so that the sum of pixel values of the block takes a specific value near the sum. For example, each pixel value in the partial image is changed so that the sum of luminance values of pixels takes a multiple of a certain value. This embodiment will be described with reference to Fig. 2 which is a flow chart illustrating the pixel value changing approach. Consider now that the size of the two-dimensional partial image is 8 × 8 pixels, and that each pixel value is changed so that the sum of pixel values of the partial image takes a multiple of "512", i.e., so that the sum of pixel values is smaller than a particular value (in this case "512"). It is assumed that pixels of each block are given pixel numbers from "1" to "64". First at Step 201, "1" is set to a pixel number I. At Step 202, each of the pixel values of the pixel number "1" is incremented by "1". At Step 203 the sum of pixel values of the two-dimensional partial image (block) having 8 × 8 pixels is incremented or decremented by "1" after the pixel value of the pixel number "1" is changed. It is checked at Step 204 whether the changed sum of the two-dimensional partial image is equal to the specific value of "512". If equal, this approach is terminated, whereas if not, the approach advances to Step 205 whereat it is checked whether the pixel number I is "64", i.e., whether all the pixels of the two-dimensional partial image have been changed. If changed, the approach is terminated, whereas if not, the pixel number I is incremented by "1" at Step 206 to change the pixel value of the next pixel. If this approach to simply changing each pixel value has a fear that a third party may steal the watermark information, then a change amount in each pixel value representative of a luminance, a color difference, R, G, B or the like may be changed, as disclosed in the U.S. application being filed based on Japanese Patent Application No. 9-238031 filed on September 3, 1997 by the present assignee, et al. In detecting a watermark, the sum of pixel values of each two-dimensional partial image (block) is calculated to check whether the sum is the specific value or a value near the specific value and to detect the block whose pixel values were changed. In this case, a block is also detected, whose pixel values were not changed and its original sum was a value near the specific value. To deal with this issue, blocks can be detected at a higher precision if known pattern matching, majority decision, or the like is performed. Presumption of the specific value by a third party becomes difficult if a different specific value is used for each two-dimensional partial image (block) depending upon the position of each partial image. Next, an embodiment according to the third aspect of the invention will be described with reference to Fig. 3 which is a schematic diagram showing a data embedding system using the data embedding approach of the first and second embodiments. In the third embodiment shown in Fig. 3, data x to be embedded is converted into the block interval d through the pixel value changing approach of the first embodiment, and blocks whose pixel values are to be changed are determined. Next, the position information of the determined blocks is supplied to the image in which the data x is embedded, and the pixel values of each block is changed through the data embedding approach of the second embodiment. Next, a fourth embodiment according to the third aspect of the invention will be described with reference to Fig. 4A which is a schematic diagram showing a data detecting system using the data detecting approach. In the fourth embodiment shown in Fig. 4A, blocks whose pixel values were changed are detected from two-dimensional partial images (blocks) with the data x being embedded, by a changed block detecting means which checks the specific value of each block from the sum of pixel values thereof. Next, the block interval between the blocks whose pixel values were changed is converted into the data x by a pattern detecting means, so that the data x can be reproduced from the watermark embedded image. Fig. 4B illustrates a modification of the fourth embodiment shown in Fig. 4A. In Fig. 4B, like elements to those shown in Fig. 4A are represented by identical reference numerals. Reference numeral 23 represents a storage means for storing position information of blocks to be supplied to a pattern detecting means 21. In this fifth embodiment, after the position information detected with the changed block detecting means 20 is temporarily stored in storage mans 23, a pattern is detected by the pattern detecting means 21 to reproduce the data x . Figs. 5A to 5C illustrate an example of a method of embodying watermark embedding and detecting of this invention by using software running on a computer. Fig. 5A is a diagram illustrating a functional structure of the inside of a computer. In embedding a watermark, an image and embedding data are input from an input/output unit 501 and stored in a storage device 503. Next, an operation unit 502 executes a watermark embedding process, and a watermark embedded image is output from the input/output unit 501. In detecting a watermark, a watermark embedded image is input from the input/output unit 501 and stored in the storage device 503. Next, the operation unit 502 executes a watermark detecting process, and embedded data is output from the input/output unit 501. Fig. 5B is a diagram illustrating a functional structure of embedding a watermark. Reference numerals 511, 512, and 513 represent processes to be executed by a CPU of the computer. Reference numerals 514 to 516 represent data stored in the storage device 503 of the computer. An input/output unit 511 stores image data 514 and embedding information (data x) 515 in the storage device 503. In a watermark embedding process 513, the embedding information is converted into watermarking information which is embedded in image data 514. The watermark embedded image 516 is stored in the storage device. The watermark embedded image 516 stored in the storage device 503 is output from the input/output unit 501. Fig. 5C is a diagram illustrating a functional structure of detecting a watermark. Reference numeral 521 represents a process to be executed by CPU of the computer. The input/output unit 511 stores a watermark embedded image 516 in the storage device 503. In the watermark detecting process 521, watermarking information is derived from the watermark embedded image 516 and converted into embedding information (data x ) which is stored in the storage device 503. The embedding information stored in the storage device 503 is output from the input/output unit 501. Fig. 6 is a flow chart illustrating an operation of storing an image embedded with data in a recording medium according to a fifth embodiment of the invention. Reference numeral 32 represents a data embedding means of this invention, reference numeral 33 represents an image compressing means, and reference numeral 34 represents a formatting means specific to a recording medium 35. Digital watermark data 31 is embedded in a two-dimensional image 30 by the data embedding approach of this invention. The watermark embedded two-dimensional image is then compressed by the image compressing means 33, formatted to have a format specific to the recording medium 35, and stored in the recording medium 35. It is therefore possible to form a recording medium such as an optical disk which stores data such as a digital watermark embedded two-dimensional image. Next, a sixth embodiment of the invention will be described. In this embodiment, watermark data can be detected both under the image condition and under the condition of compression streams. Fig. 7 is a diagram illustrating an example of a method of embedding data in an image, the method being suitable for an image compression process. In Fig. 7, reference numeral 171 represents a two-dimensional partial image (block) of 8 × 8 pixels. This size (8 × 8 pixels) of the two-dimensional partial image 71 to be subjected to the pixel changing approach is an image processing unit of an image compression process such as JPEG and MPEG. Therefore, embedded information becomes hard to be lost during the image processing process. It is also known that sum of values of 8 × 8 pixels is a DC component value of I-frame under the condition of MPEG compression, i.e., MPEG streams. Therefore, the information embedded in such a manner that the sum of pixel values of each two-dimensional partial image takes the specific value, can be detected by judging whether or not the DC component value of I-frame under the condition of MPEG streams takes the above-described specific value and by deriving the interval of blocks satisfying the specific value. With this embodiment method, it is possible to derive the embedded information both under the image condition and under the condition of compression streams. If detection from only under the condition of compression streams is used, it is not necessary for a detector system to have a MPEG decoder so that the cost of the system can be lowered. Next, a seventh embodiment of the invention will be described. Fig. 8 is a schematic diagram illustrating the format of data embedded in an image. In Fig. 8, an image 81 of 720 × 480 pixels is divided into two-dimensional partial images (blocks) 82 each being constituted of 8 × 8 pixels. A macro block 83 is constituted of 64 blocks. There are 84 macro blocks in the image. As shown, a y-th block in an x-th macro block is represented by Bxy, where x is an integer from 1 to 84 and y is an integer from 1 to 64. Blocks in a block pattern whose pixel values are changed are disposed at a constant block interval d (in this example, d = 64). The embedding information is represented by a shift amount m (m = 0 to 63) of a block whose pixel values are changed. In this example, watermark information of 64 types (6 bits) can be embedded, including block patterns of (B11, B21,..., B84 1), (B12, B22,..., B84 2),..., (B1 m+1, B2 m+1,..., B84 m+1),..., (B1 64, B2 64,..., B84 64). In the example shown in Fig. 8, the block pattern (B11, B21,..., B84 1) 84 is embedded. Fig. 9 is a flow chart illustrating the data embedding method. At Step 901 a block pattern shift amount m is calculated from 6-bit data x . Step 902 and following Steps illustrate an operation of embedding watermark information in the block pattern (B1 m+1, B2 m+1,..., B84 m+1) shifted by m blocks from the block pattern (B11, B21,..., B84 1). At Step 902 the number n of the macro block in which watermark information was embedded is set to "1". At Step 903 it is checked whether the watermark information has been embedded in all the macro blocks (84 blocks). If embedded, the flow is terminated, whereas if not, the flow advances to Step 904. At Step 904 the (m+1)-th block in the n-th macro block is designated, and at Step 905 watermark information is embedded in the designated block by changing the pixel values thereof. At Step 906 the number n of the macro block embedded with the watermark information is incremented by "1". Fig. 10 is a flow chart illustrating the data detecting approach. First, at Step 1002 the block pattern shift amount m is set to "0". At Step 1003 it is checked whether detection number D temporarily stored in the system has been obtained for all the block patterns of 64 types. If obtained, the flow advances to Step 1012, whereas if not the flow advances to Step 1004. The detection number D indicates the number of blocks satisfying a particular rule. For example, the detection number D is the number of blocks each having a sum of luminance values equal to a multiple of "512". At Step 1004, the macro block number n is set to "1" and the detection number D is set to "0". At Step 1005 it is checked whether detection for all the macro blocks with the shift amount m has been completed. If completed, at Step 1010 a detection number Dm at the shift amount m is stored as the detection number D, and at Step 1011 the shift amount m is incremented by "1" to continue the detecting process at the new shift amount. If not completed at Step 1005, the flow advances to Step 1006 whereat the block Bn m+1 in the n-th macro block at the shift amount m is designated. At Step 1007 it is checked from the pixel values of the designated block whether the watermark information can be detected. If detected, at Step 1008 the detection number D is incremented by "1", and thereafter at Step 1009 the macro block number n is incremented by "1" in order to designate the corresponding block in the next macro block. If not detected at Step 1007, the flow advances directly to Step 1009 whereat only the macro block number n is incremented by "1". After the detection numbers Dm for all the shift amounts m are obtained, i.e., after it is judged at Step 1003 as m = 63, at Step 1012 the detection number Dm larger than a threshold value is searched from the detection numbers Dm at respective shift numbers m and the shift amount m at the searched detection number Dm is used as the shift amount m when the watermark information was embedded. At Step 1013 the shift amount m is converted into the data x to derive the watermark information. Next, an eighth embodiment of the invention will be described. Fig. 11 is a schematic diagram illustrating the format of data embedded in an image. Hatched blocks 111 constitute a block pattern. A different point from the format shown in Fig. 8 resides in that the block intervals of the block pattern whose pixel values are changed, are not constant but random. If the block interval is constant as shown in Fig. 8, there is a fear that watermark information may be erroneously detected or easily removed illicitly, although depending on the type of an image. In accordance with a correspondence table between data x and a block pattern shown in Fig. 12, blocks in each block pattern are randomly allocated to each macro block, and data x of 6 bits can be embedded. The block pattern shown in Fig. 11 corresponds to the block pattern "1" shown in the table of Fig. 12. Fig. 13 is a flow chart illustrating the data embedding approach according to the eight embodiment. At Step 1301, data x is converted into a block pattern by referring to the correspondence table shown in Fig. 12. At Step 1302 watermark information is embedded randomly in a block Bn An (An is a random number series from "0" to "64") of the n-th macro block. Other Steps correspond to those described with Fig. 9. Fig. 14 is a flow chart illustrating the data detecting approach. At Step 1401 the block pattern number p shown in Fig. 12 is set to "1". At Step 1402 it is checked whether detection has been obtained for all the block patterns of 64 types. If obtained, the flow advances to Step 1406, whereas if not, the flow advances to Step 1004 whereat the macro block number n and detection number D are initialized. If detection for all the 84 macro blocks in one block pattern has been completed at Step 1005, a detection number Dp at the block pattern p is stored at Step 1404 as the detection number D, and at Step 1405 the block pattern p is incremented by "1". If not completed at Step 1005, the flow advances to Step 1403 whereat the An-th block Bn An in the n-th macro block is designated and watermark information is detected at Step 1007. If detection has been obtained for all the block patterns at the judgement Step 1402, then at Step 1402 the block pattern p detection number Dp larger than a threshold value is searched from the detection numbers Dp and the block pattern p at the searched detection number Dp is used as the block pattern p when the watermark information was embedded. At Step 1407 the block pattern p is converted into the data x by referring to the correspondence table shown in Fig. 12 to derive the watermark information. Next, a ninth embodiment of the invention will be described. In the seventh and eighth embodiments, 6-bit watermark information can be embedded because the block interval is set to "64" without permitting any duplication of blocks between block patterns. This ninth embodiment aims to allow watermark information of 6 bits or larger to be embedded, by permitting duplication of blocks between block patterns while the number of blocks of each block pattern is maintained "84". Fig. 15 is a schematic diagram of an image embedded with a 7-bit watermark information by the embodiment data embedding method. There are 128 block patterns in total. In Fig. 15, hatched blocks embedded with watermark information are shown disposed in respective macro blocks of each block pattern. The data embedding method same as the seventh embodiment is used for the block patterns 1 to 64. Namely, these block patterns 1 to 64 are represented by (B11, B21,..., B84 1), (B12, B22,..., B84 2),..., (B1 64, B2 64,..., B84 64). The block patterns 65 to 128 are formed in accordance the following rules, as illustrated in Fig. 15. The block pattern p is represented by (B1 (p-1)mod64+1, B2 (p-2)mod64+2,..., Bn (p-1)mod64+n,..., B84 (p-1)mod64+84). A mod B is a remainder of A divided by B, and the second suffix of B takes "1" after "64". For example, B80 65 = B80 1, B80 66 = B80 2, and so on. With this block pattern setting, the embedding position of a block in each macro block in one block pattern becomes essentially coincident with the embedding position of a corresponding macro block in another block pattern. The number of coincident embedding positions between arbitrary two block patterns is "2". For example, in the block patterns shown in Fig. 15, the watermark embedding position of the macro block 2 of the block pattern 65 is B2 2 which is the same as that of the macro block 2 of the block pattern 2. In all the block patterns, the number of coincident watermark embedding positions of the block patterns 65 and 2 is "2" and this is true for any of other combinations of two block patterns. In the above manner, since blocks between block patterns are duplicated, information of larger bits can be embedded. In this embodiment data embedding method, blocks may be determined randomly by using the eighth embodiment described above. The data embedding method and detecting method of this embodiment are similar to those shown in Figs. 13 and 14 except that An is set so as to match the ninth embodiment. The description of the methods is therefore omitted. A tenth embodiment of the invention will be described with reference to Figs. 16 and 17. This embodiment aims to embed watermark information of 8 bits or larger, expanding the ninth embodiment. Figs. 16 and 17 are schematic diagrams of an image embedded with an 8-bit watermark information by the embodiment data embedding method. There are 256 block patterns in total. The other layout of the blocks is the same as that shown in Fig. 15. Block patterns in Figs. 16 and 17 are represented as in the following. Block patterns p 1 to 64 are represented in the manner same as the ninth embodiment. Block patterns p 65 to 128 are represented by (B1 (p-1)mod64+1, B2 (p-2)mod64+1+7,..., Bn (p-1)mod64+1+7(n-1),..., B84 (p-1)mod64+1+7*83). Block patterns p 129 to 192 are represented by (B1 (p-1)mod64+1, B2 (p-2)mod64+1+11,..., Bn (p-1)mod64+1+11(n-1),..., B84 (p-1)mod64+1+11*83). Block patterns p 193 to 256 are represented by (B1 (p-1)mod64+1, B2 (p-2)mod64+1+13,..., Bn (p-1)mod64+1+13(n-1),..., B84 (p-1)mod64+1+13*83). Similar to the ninth embodiment, A mod B is a remainder of A divided by B, and the second suffix of B takes "1" after "64". For example, B80 65 = B80 1, B80 66 = B80 2, and so on. With this block pattern setting, watermark information can be embedded while duplication of block patterns is minimized. Namely, by making uniform the number of arbitrary duplication block patterns, the number of duplications can be minimized. According to the invention, it is possible to embed data such as digital watermark information in a two-dimensional image and to detect the embedded data from a data embedded two-dimensional image, while a change in the contents is minimized, the image quality is prevented from being degraded, and the data detection reliability is improved. Furthermore, by designating the size of a two-dimensional partial image, not only embedded information becomes hard to be lost during an image compression process, but also the embedded information can be derived and reproduced both under the image condition and under the condition of compression streams. If detection only under the condition of compression streams is performed, it is not necessary for a detector system to install a MPEG decoder and the system cost can be lowered.

Claims: A method of embedding watermarking information in two-dimensional image data, comprising the steps of: dividing the two-dimensional image data into a plurality of blocks (82); changing values of image data in a partial block set (83) so as to satisfy a particular condition to thereby generate digital watermarks; and selecting the partial block set (83) based on the watermarking information from the plurality of blocks (82), characterized in that the watermarking information to be embedded is represented by a block interval d between the blocks (82) in the partial block set (83). A method according to claim 1, wherein the block is a two-dimensional partial image constituting a compression processing unit. A method according to claim 1, wherein the block is a two-dimensional partial image, and the values of image data are a sum of luminances of pixels in each block. A method according to claim 1, wherein the partial set of blocks corresponding to the watermarking information is selected depending upon the watermarking information and random integers. A method according to claim 1, wherein the partial set of blocks is selected so as not to duplicate blocks between types of the watermarking information, if A is N/M or smaller where A is the number of types of the watermarking information, N is a total sum of blocks, and M is the number of partial sets of blocks and N and M are positive integers (Fig. 1). A method according to claim 1, wherein the partial set of blocks is selected so as to duplicate blocks between types of the watermarking information, a difference of duplicated block numbers between arbitrary two partial sets of blocks being set to 0 or 1, if A larger than N/M where A is the number of types of the watermarking information, N is a total sum of blocks, and M is the number of partial sets of blocks and N, M are positive integers (Figs. 15 - 17). A method according to claim 1 of embedding watermarking data x in a two-dimensional image (1) having m horizontal pixels and n vertical pixels, comprising the steps of: selecting a two-dimensional partial image (2, 3) whose pixel values are to be changed in order to embed the watermarking data x , the two-dimensional partial image having k horizontal pixels (k x i = m , where k, i and m are positive integers) and l vertical pixels (l x j = n, where l, j and n are positive integers); and changing a value of each pixel of the selected two-dimensional partial image such that a sum of pixel values of the selected two-dimensional partial image takes a specific value to thereby generate digital watermarks. A method according to claim 1 of embedding watermarking data x in a two-dimensional image having m horizontal pixels and n vertical pixels, comprising the steps of: selecting two-dimensional partial images (2, 3) based on the watermarking data x, the two-dimensional partial image having k horizontal pixels (k x i = m, where k, i and m are positive integers) and l vertical pixels (l x j = n, l, j and n are positive integers), wherein said two-dimensional partial images are selected from the two-dimensional image based on the watermarking data to be embedded in the two-dimensional image so as to form a pattern corresponding to the watermarking data; and changing a value of a pixel of the selected two-dimensional partial image such that a sum of pixel values of the selected two-dimensional partial image takes a specific value to thereby generate digital watermarks. A system for embedding watermarking information in two-dimensional image data, comprising: means for dividing the two-dimensional image data into a plurality of blocks; means for changing values of image data in a partial block set (83) so as to satisfy a particular condition to thereby generate digital watermarks; and means for selecting the partial block set (83) based on the watermarking information from the plurality of blocks (82) characterized in that the watermarking information to be embedded is represented by a block interval d between the blocks (82) in the partial block set (83). A system according to claim 9, wherein the block is a two-dimensional partial image constituting a compression processing unit. A system according to claim 9, wherein the block is a two-dimensional partial image, and the values of image data are a sum of luminances of pixels in each block. A system according to claim 9, wherein the partial set of blocks corresponding to the watermarking information is selected depending upon the watermarking information and random integers. A system according to claim 9, wherein the partial set of blocks is selected so as not to duplicate blocks between types of the watermarking information, if A is N/M or smaller where A is the number of types of the watermarking information, N is a total sum of blocks, and M is the number of partial sets of blocks and N and M are positive integers (Fig. 1). A system according to claim 9, wherein the partial set of blocks is selected so as to duplicate blocks between types of the watermarking information, a difference of duplicated block numbers between arbitrary two partial sets of blocks being set to 0 or 1, if A larger than N/M where A is the number of types of the watermarking information, N is a total sum of blocks, and M is the number of partial sets of blocks and N and M are positive integers (Figs. 15 - 17). A system according to claim 9 for embedding watermarking data x in a two-dimensional image (1) having m horizontal pixels and n vertical pixels, comprising: selecting means for selecting a two-dimensional partial image (2, 3) whose pixel values are to be changed in order to embed the watermarking data x , the two-dimensional partial image having k horizontal pixels (k x i = m, where k, i and m are positive integers) and l vertical pixels (l x j = n, where l, j and n are positive integers); and pixel value changing means coupled to said selecting means for changing a value of each pixel of the selected two-dimensional partial image such that a sum of pixel values of the selected two-dimensional partial image takes a specific value to thereby generate digital watermarks. A system according to claim 9 for embedding watermarking data x in a two-dimensional image having m horizontal pixels and n vertical pixels, comprising: selecting means for selecting two-dimensional partial images based on the watermarking data x, the two-dimensional partial image having k horizontal pixels (k x i = m, where k, i and m are positive integers) and l vertical pixels (l x j = n, where 1, j and n are positive integers), wherein said two-dimensional partial images are selected from the two-dimensional image based on the watermarking data to be embedded in the two-dimensional image so as to form a pattern corresponding to the watermarking data; and pixel value changing means coupled to said selecting means for changing a value of a pixel of the selected two-dimensional partial image such that a sum of pixel values of the selected two-dimensional partial image takes a specific value to thereby generate digital watermarks. A method of reading watermarking information embedded in two-dimensional image data, comprising the steps of: dividing (1401) the two-dimensional image data into a plurality of blocks (82); storing (1404) partial block sets (83) in correspondence with each type of the watermark information; judging whether a value of image data of each block (82) satisfies a specific condition; and comparing (1406) a block set satisfying the specific condition with the partial block sets (83); and selecting the partial block set (83) from the plurality of divided blocks (82), characterized in that a block interval p between the blocks (82) in the partial block set (83) represents the watermarking information. A method according to claim 17, wherein the two-dimensional image data is compressed image data, and whether the value of image data of each block satisfies the specific condition is judged from a correspondence between a value of compressed data and a value of image data. A method according to claim 17 comprising the steps of: detecting (20) the two-dimensional partial image whose pixel values were changed, the two-dimensional partial image corresponding to the watermarking data x embedded by the data embedding method according to claim 7; storing (23) position information of the two-dimensional partial image of the two-dimensional image detected by said detecting step in storage means; and detecting (21) a pattern of the position information of the two-dimensional partial image stored in the storage means. A system for reading watermarking information embedded in two-dimensional image data, comprising: means for dividing (1401) the two-dimensional image data into a plurality of blocks (82); means for storing (1404) partial block sets (83) in correspondence with each type of the watermark information; means for judging whether a value of image data of each block (82) satisfies a specific condition; and means for comparing (1406) a block set satisfying the specific condition with the partial block sets (83); and means for selecting the partial block set (83) from the plurality of divided blocks (82), characterized in that a block interval p between the blocks (82) in the partial block set (83) represents the watermarking information. A system according to claim 20, wherein the two-dimensional image data is compressed image data, and whether the value of image data of each block satisfies the specific condition is judged from a correspondence between a value of compressed data and a value of image data. A system according to claim 20, comprising: two-dimensional partial image detecting means (20) for detecting the two-dimensional partial image whose pixel values were changed, the two-dimensional partial image corresponding to the watermarking data x embedded by the data embedding method according to claim 7; storing means (23) for storing position information of the two-dimensional partial image of the two-dimensional image detected by said detecting step; and pattern detecting means (21) for detecting a pattern of the position information of the two-dimensional partial image stored in the storage means. A recording medium storing a compressed moving image, the moving image embedded with watermarking data x by the method according to claim 7. A computer-readable storage medium storing a program which implements by the computer a data embedding operation of embedding watermarking data x in a two-dimensional image (1) having m horizontal pixels and n vertical pixels, according to claim 7. A computer-readable storage medium storing a program which implements by the computer a water working reading operation according to claim 19. A computer-readable storage medium storing a program which implements by the computer an operation of embedding watermarking information in two-dimensional image data, according to claim 1. A computer-readable storage medium storing a program which implements by the computer an operation of reading watermarking information embedded in two-dimensional image data according to claim 17.

Inventors: ARAI TAKAO, ECHIZEN ISAO, NAKAMURA MASAFUMI, TAKEUCHI TOSHIFUMI, YOSHIURA HIROSHI, ARAI, TAKAO, ECHIZEN, ISAO, NAKAMURA, MASAFUMI, TAKEUCHI, TOSHIFUMI, YOSHIURA, HIROSHI
Applicants: HITACHI LTD, HITACHI, LTD.
Application year: 1998
Main classification: G06T1
IPC codes: H04N1, H04N7, G06T1