This application claims the benefit, under 35 U.S.C. §365 of International Application PCT/EP2008/067254, filed Dec. 10, 2008, which was published in accordance with PCT Article 21(2) on Jun. 18, 2009 in English and which claims the benefit of European patent application No. 07301670.1, filed Dec. 13, 2007.
The present invention relates generally to digital content processing, and in particular removable visible watermarking of images.
This section is intended to introduce the reader to various aspects of art, which may be related to various aspects of the present invention that are described and/or claimed below. This discussion is believed to be helpful in providing the reader with background information to facilitate a better understanding of the various aspects of the present invention. Accordingly, it should be understood that these statements are to be read in this light, and not as admissions of prior art.
Visible watermarking of an image is a relatively simple technique that is divided into two main families: insertion of a little image in the original image, such as for example the logotype of a television channel in a corner, and semi-transparent superposition of a, generally binary, image of the same size as the original image.
Most techniques for visible watermarking may be expressed by the equation:
pvi,j=ai,j·pi,j+bi,j
where pvi,j is the value of visibly watermarked pixel i, j, pi,j the value of the pixel before watermarking, and ai,j and bi,j are variables of the watermark.
For insertion of a little image in the original image having size M×N at coordinates I, J, the variables are:
for I≦i<I+M and J≦j<J+N (i.e. inside the visible watermark): ai,j is the transparency of the watermark (0≦ai,j<1) and bi,j is the value of the watermark pixel x (1−ai,j).
for i<I or i≧I+M or j<J or j≧J+N (i.e. outside the visible watermark): ai,j=1 and bi,j=0. In other words, the original image is not modified outside the watermark.
It follows that to remove the visible watermark, one may calculate pi,j from pvi,j using pi,j=(pvi,j−bi,j)/ai,j; if ai,j≠0.
For semi-transparent superposition of an image: ai,j is the value of the image pixel to superpose (0<ai,j≦1) and bi,j=0. To remove the watermark, one calculates pi,j=pvi,j/ai,j. A person skilled in the art will appreciate that in order to remove the visible watermark, one needs, in the first case, either ai,j and bi,j or pi,j if ai,j=0. If pi,j represents an information mass smaller than ai,j, then this may naturally be used directly, but it should be noted that ai,j usually is constant for a particular image. In the second case, one needs either ai,j or pi,j.
A problem is that while it often is desirable to use visible watermarks in pictures, for example for copyright information, it may also be desirable to remove the visible watermark from the image. This may for example be the case in a system where a customer may freely download visibly watermarked images from a server and then buy the rights to use the image in its non-watermarked version.
It may thus be seen that a problem lies in the way an end-user may obtain the information necessary for removal of the visible watermark.
One trivial solution to the problem is to download the non-watermarked version of the image.
Another solution is presented in “Copyright Protection and Authentication of Grayscale Images by Removable Visible Watermarking and Invisible Signal Embedding Techniques: A New Approach” by Pei-Ming Huang and Wen-Hsiang Tsai; 16th IPPR Conference on Computer Vision, Graphics and Image Processing (CVGIP 2003), August 2003. A binary logo is inserted as a visible watermark (semi transparent) and as an invisible watermark at the same position in the picture. In practice, the values of the pixels to be marked are multiplied by a factor k (0<k<1), for the visible watermark, and their least significant bit (LSB) is set to 1 while it is set to 0 for other pixels, for the invisible watermark. To remove the visible watermark, pixel values which have their LSB set to 1 are simply divided by k. A problem with this solution is that anyone can easily remove both the visible and invisible watermarks.
Published patent application US 2001/0004736 solves the problem by copying the part of the image into which the visible watermark is to be put. The watermark is then embedded as an invisible watermark in the copied information, and this is then encrypted. The encryption key and the position and size of the visible watermark are then encrypted using a second encryption key to create authentication information that is embedded as an invisible watermark in the original image (except for in the watermarked part). Finally, the twice watermarked original image and the encrypted watermarked copied information are then sent to the user. While this solution solves the problem, it is quite burdensome.
It can therefore be appreciated that there is a need for a solution that allows controlled removal visible watermarks that is simpler than the solutions of the prior art. This invention provides such a solution.
In a first aspect, the invention is directed to a method of watermarking an image. Values of pixels of the image to be covered by an opaque watermark are memorised, the opaque watermark is inserted in the image to obtain a visibly watermarked image, the memorised pixel values are protected to obtain protected information, and the protected information is inserted as an invisible watermark in the visibly watermarked image to obtain a visibly and invisibly watermarked image.
In a first preferred embodiment, the memorised pixel values further comprises the position and size of the visible watermark in the visibly watermarked picture.
In a second preferred embodiment, the protecting step comprises encrypting the memorised pixel values.
In a second aspect, the invention is directed to a method of removing a visible watermark from an image that further comprises an invisible watermark. The invisible watermark comprising protected values of pixels that are to replace the visible watermark is extracted and the protected information is unprotected to obtain values of pixels that are to replace the visible watermark. The visible watermark is then removed by restoring the pixels for which the values were comprised in the invisible watermark.
In a third aspect, the invention is directed to an apparatus for watermarking an image. The apparatus comprises means for memorising values of pixels of the image to be covered by an opaque watermark, means for inserting the opaque watermark in the image to obtain a visibly watermarked image, means for protecting the memorised pixel values to obtain protected information, and means for inserting the protected information as an invisible watermark in the visibly watermarked image to obtain a visibly and invisibly watermarked image.
In a first preferred embodiment, the means for inserting the protected information is further adapted to also insert the position and size of the visible watermark in the visibly watermarked picture.
In a second preferred embodiment, the protecting means is an encryption module.
In a fourth aspect, the invention is directed to an apparatus for removing a visible watermark from an image that further comprises an invisible watermark. The apparatus comprises means for extracting the invisible watermark comprising protected values of pixels that are to replace the visible watermark, means for unprotecting the protected information to obtain values of pixels that are to replace the visible watermark, and means for removing the visible watermark by restoring the pixels for which the values were comprised in the invisible watermark.
Preferred features of the present invention will now be described, by way of non-limiting example, with reference to the accompanying drawings, in which:
The general inventive concept of the invention is to insert the, preferably encrypted or otherwise protected, information necessary for removal of the visible watermark as an invisible watermark in the image itself.
The skilled person will appreciate that in some cases when the image T is not opaque (ai,j≠0), it is equally possible, as an alternative, to memorise the values of the variables ai,j and bi,j instead of the values pi,j of the pixels.
The masked pixel information 22, whether it be the values of the pixels pi,j or the values of the variables ai,j and bi,j, is then preferably encrypted 24 using a key 25 so as to obtain protected masked pixel information 26 that may also comprise information about the position and form or size of the visible watermark. The encryption algorithm may be symmetrical or asymmetrical.
The protected masked pixel information 26 is then inserted 27 as an invisible watermark into the visibly watermarked picture IV thus obtaining a visibly and invisibly watermarked image IVI.
Any suitable technique for inserting an invisible watermark may be employed, as long as they provide an insertion capacity sufficient for inserting the protected masked pixel information 26 in the visibly watermarked picture IV with little visual degradation thereto. It should be noted that the insertion of a 64×64 pixel logo in a black and white image using 8 bits to represent each pixel requires an invisible watermark of 32768 bits, something that may easily triple, for a colour image, depending on format. On the other hand, there is no need for a robust invisible watermark, as a hacker has no interest whatsoever in removing the invisible watermark, since the invisible watermark contains the information necessary for the removal of the visible watermark. It should also be noted that if some lossy compression is to be applied to the watermarked image, the invisible watermark must be designed in order to resist to this lossy compression.
Exemplary algorithms for carrying out the methods of the first preferred embodiment will now be described in greater detail. IO is the original image of size M′×N′, composed of pixels pi,j (0≦i<M′, 0≦j<N′). The bit at position b (0≦b<8, b=0 for the least significant bit) is denoted pi,j[B]. The image T to be visibly watermarked in position I, J in IO, is of size M×N and composed of pixels bi,j. The size of IO is at least seven times that of T (7×M×N≦M′×N′).
First the pixels in IO that will be replaced by those of T are stored in a temporary memory TEMP. Only the seven most significant bits need to be stored, as the least significant bit of all other pixels of the image will be used for the values of the invisible watermark:
The contents of TEMP is then encrypted, for example using the AES algorithm:
encrypt TEMP with key K
The visible watermark may then be inserted, by replacing the pixels of IO by those of T:
The pixels pi,j now form image IV. The invisible watermark may then be inserted in the least significant bits of the pixels of IV:
If the image IO is fourteen times bigger (or more) than the watermark image T, then it is possible to repeat the invisible watermark at least once.
The pixels pi,j now form image IVI and the method for inserting the watermarks is finished.
It should be noted that the invisible watermarking method is not part of the core of the invention, and that the one described in the present example has been chosen for its simplicity and would not resist to any lossy compression that may be applied to the watermarked image.
To remove the visible watermark, the algorithm is performed in the reverse direction:
The pixels pi,j now form image IR, identical with IO apart from, in all probability, in some of the least significant bits.
The algorithms for inserting and removing a visible watermark in the alternative where the masked pixel information comprises ai,j and bi,j instead of pi,j will not be described, as it is believed that it is well within the competence of the skilled person to perform the necessary modifications.
In the description of
The watermark inserter 600 further comprises a pixel memorisation module 620, a visible watermark insertion module 625, an encryption module 630, and an invisible watermark insertion module 635.
It will thus be appreciated that the watermark inserter 600 comprises the necessary functional and structural entities needed for creating a visibly and invisibly watermarked image according to the first preferred embodiment of the invention.
The watermark remover 650 comprises a processor 652, a user interface 654 and a memory 656. The watermark remover 650 further comprises an input 660 and an output 662. The input 660 is adapted to receive, directly or indirectly, a visibly and invisibly watermarked image IVI from the watermark inserter 600, and the output 662 is adapted to render the restored image or to send it to another device.
The watermark remover 650 further comprises an invisible watermark extraction module 670, a decryption module 680, and a pixel restoration module 690.
It will thus be appreciated that the watermark remover 650 comprises the necessary functional and structural entities needed for restoring a visibly watermarked image according to the first preferred embodiment of the invention.
It will be appreciated that, while the present invention has been described using still images as an example, it may also be employed for digital video, as this is a series of still images.
It will be further appreciated that while the invention has been described using black and white images, it may be easily adapted to colour images, for example by applying the described techniques to each component CrCb, RVB or CMJN, as the case may be.
It will also be appreciated that the present invention provides ways of inserting and removing visible watermarks into images, wherein the visible watermark may be removed using information in an invisible watermark in the image. It is possible to remove the watermarks using only information comprised in the image, except for, in preferred embodiments, a decryption key.
Each feature disclosed in the description and (where appropriate) the claims and drawings may be provided independently or in any appropriate combination. Features described as being implemented in hardware may also be implemented in software, and vice versa. Connections may, where applicable, be implemented as wireless connections or wired, not necessarily direct or dedicated, connections.
Reference numerals appearing in the claims are by way of illustration only and shall have no limiting effect on the scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
07301670 | Dec 2007 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP2008/067254 | 12/10/2008 | WO | 00 | 6/9/2010 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2009/074618 | 6/18/2009 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5530759 | Braudaway et al. | Jun 1996 | A |
5949885 | Leighton | Sep 1999 | A |
6345100 | Levine | Feb 2002 | B1 |
6574350 | Rhoads et al. | Jun 2003 | B1 |
6775392 | Rhoads | Aug 2004 | B1 |
6809792 | Tehranchi et al. | Oct 2004 | B1 |
6901514 | Iu et al. | May 2005 | B1 |
20020199106 | Hayashi | Dec 2002 | A1 |
20030070075 | Deguillaume et al. | Apr 2003 | A1 |
20030099373 | Joo et al. | May 2003 | A1 |
20030149879 | Tian et al. | Aug 2003 | A1 |
20030179901 | Tian et al. | Sep 2003 | A1 |
20030202679 | Rodriguez | Oct 2003 | A1 |
20030223099 | Fan et al. | Dec 2003 | A1 |
20040151311 | Hamberg et al. | Aug 2004 | A1 |
20040170299 | Macy et al. | Sep 2004 | A1 |
20050025337 | Lu et al. | Feb 2005 | A1 |
20050140788 | Fox et al. | Jun 2005 | A1 |
20050180596 | Abe et al. | Aug 2005 | A1 |
20060133647 | Werner et al. | Jun 2006 | A1 |
20100115282 | Amsterdam et al. | May 2010 | A1 |
Entry |
---|
Riard Bosnjakovic, “Create a Traced Watermark Image”, CreativeCOW.net, all pages, Nov. 3, 2007. http://web.archive.org/web/20071103054909/http://library.creativecow.net/articles/bosnjakovic—rikard/watermark.php. |
“How to add a watermark to your photos”, All-Things-Photography.com, all pages, Oct. 6, 2007. http://web.archive.org/web/20071006210033/http://www.all-things-photography.com/add-a-watermark.html#How. |
Sue Chastain, “How to Add a Text Watermark Over a Photo in Photoshop 5.5 or higher”, About.com, all pages, Aug. 22, 2006. http://web.archive.org/web/20060822130438/http://graphicssoft.about.com/cs/photoshop/ht/apswatermark.htm. |
Adobe Photoshop 6.0 User Guide, Adobe Systems Incorporated, 2000, all pages. |
Number | Date | Country | |
---|---|---|---|
20100254569 A1 | Oct 2010 | US |