Full text
MASTER THESIS TITLE: Robust Watermarking Techniques for authentication of printed copies through digital camera capture MASTER DEGREE: Master in Science in Telecommunication Engineering & Management AUTHOR: Albert Gavaldà García DIRECTOR: Francesc Tarrés Ruiz DATE: March 8th, 2013
Title: Robust Watermarking Techniques for authentication of printed copies through digital camera capture Author: Albert Gavaldà García Director: Francesc Tarrés Ruiz Date: March 8th, 2013 Overview Within the digital processing field, the aim of this thesis is to validate a robust image watermarking method and, afterwards, the authentication of these watermarks when images are printed and captured by a digital camera. This aim is focused to a specific business application: the sale of soccer sticker collections in both virtual and printed versions: printed images with the watermark will be captured by a digital camera of a smart-phone and later processed to detect the watermark. Thus, the purpose of the whole system is to analyze the robustness for uniquely identifying printed copies of those stickers for fan collectors. The work is organized into four chapters. The first chapter shows some concepts about digital watermarking, such as a definition, main properties, a theoretical model and a classification of the types of watermarks. Afterwards, it is presented the selected watermarking technique, how it works and also the advantages and disadvantages of this selection. The second chapter details the algorithms for insertion and detection of invisible watermarks that have been developed, and the implemented routines in a programming language according to these algorithms. These program routines have been developed in MATLAB programming language. The third chapter presents some experimental results and also conclusions extracted from them. The different tests detailed in this chapter may allow a more accurate use of the developed functions and a better knowledge of their behavior under specific possible circumstances. Finally, the last chapter concludes and summarizes the work done in this thesis and gives some suggestions for future work in following studies.
INDEX INTRODUCTION ................................................................................................ 1 CHAPTER 1. DIGITAL WATERMARKING ..................................................... 3 1.1 Digital watermarks ......................................................................................................... 3 1.1.1 Main properties ................................................................................................... 4 1.1.2 Types of watermarks ........................................................................................... 5 1.1.3 Theoretical model................................................................................................ 6 1.1.4 Desired features .................................................................................................. 8 1.2 Selected technique ........................................................................................................ 9 1.2.1 Secure Spread Spectrum Watermarking.............................................................. 9 1.2.2 Insertion of the watermark ................................................................................. 10 1.2.3 Extraction of the watermark ............................................................................... 12 CHAPTER 2. ALGORITHMS AND PROGRAMS ......................................... 14 2.1 Watermark insertion .................................................................................................... 14 2.1.1 Algorithm .......................................................................................................... 14 2.1.2 Program: “WM_Embedding.m” .......................................................................... 19 2.2 Watermark detection ................................................................................................... 20 2.2.1 Algorithm .......................................................................................................... 20 2.2.2 Program: “WM_Detection.m” ............................................................................. 23 CHAPTER 3. ROBUSTNESS TESTS AND RESULTS................................. 24 3.1 Imperceptibility ............................................................................................................ 25 3.1.1 Definition of parameter 'WMscale' ..................................................................... 25 3.1.2 Experimental results .......................................................................................... 25 3.2 Positive detection ........................................................................................................ 27 3.3 Cropping ...................................................................................................................... 29 3.4 Rotation........................................................................................................................ 31 3.5 Changes in color ......................................................................................................... 32 3.5.1 Brightness ......................................................................................................... 33 3.5.2 Contrast ............................................................................................................ 34 3.5.3 Color intensity ................................................................................................... 35 3.6 Print and scan .............................................................................................................. 36 3.6.1 Initial settings .................................................................................................... 36 3.6.2 Undamaged ...................................................................................................... 38 3.6.3 Wrinkled ............................................................................................................ 39 3.7 Digital camera capture ................................................................................................ 41 3.7.1 Initial settings .................................................................................................... 41 3.7.2 Undamaged ...................................................................................................... 42 3.7.3 Wrinkled ............................................................................................................ 44 3.8 Conclusions from tests ............................................................................................... 44
SUMMARY AND OUTLOOK ........................................................................... 46 BIBLIOGRAPHY .............................................................................................. 48
Introduction 1 INTRODUCTION The development of new technologies in recent years has brought a revolution in the area of leisure activities, often abandoning physical formats to embrace new digital formats. One of these activities which is rapidly changing is in particular stickers collecting. A new digital version of stickers has arisen and it spreads out more and more among the fan collectors. These digital sticker albums are a version of the traditional stickers but all or part of the content is stored in a digital system. This content may be carried by a paper sticker, a device specifically designed for it or it can be completely virtual, so it is necessary to use an electronic device. This distinction divides digital stickers in two different types: physical stickers with digital content and digital virtual stickers. The physical stickers with digital content have the characteristic of being a collectable tangible object which contains digital content and both the digital content as the physical object that contains it are attached. This implies that when these stickers are exchanged (or given); both digital content and physical object are delivered together. In the other hand, digital stickers are virtual objects, intangible, and need an external electronic device. The display and storage of these stickers cannot be done without the help of an electronic device such as a computer, tablet, mobile or similar. However, it can be defined a hybrid type of digital sticker which should involve both characteristics: virtual collectable objects which may need the use of an electronic device to interact with them, and they also could be printed and converted into paper stickers. The specific business application considered in this thesis is actually this hybrid type, and that implies the necessity of identifying the stickers in both physical and digital versions. Some technical solutions have been considered to solve that identification problem, such as QR codes or watermarking. However, the identification code must be invisible because of esthetic reasons, and robust enough to survive to manipulation. Due to this, both solutions were immediately rejected because they need to spoil the image (watermark) or keep a specific place to allocate the code (QR codes).
The solution presented in this thesis is the use of digital watermarking for this specific business application. It is presented an implementation of a robust digital watermarking method that will be applied to the images (digital stickers). These images may be printed with the digital watermark in them, and they could be later digitized (e.g., by a scanner or by a digital camera of a smart-phone). Thus, the digital watermark should be detected when the image is printed and later digitized once again, and when it is kept in digital format, as well. Nevertheless, the objective of the thesis is not to implement the system as a final application, but to validate a robust watermarking and digital capture process. Therefore, the watermark insertion, image processing and watermark extraction will be implemented in MATLAB. The objective of the thesis is addressed in the following chapters: Chapter 1 starts with an explanation of some concepts about digital watermarking that will be necessary for this study. There can be found a definition, main properties, the theoretical model and a classification of the types of watermarks. The second part of the chapter briefly presents the selected watermarking technique, how it works and also the advantages and disadvantages of this selection. Afterwards, chapter 2 details the developed algorithms for insertion and detection of invisible watermarks, and the implemented routines in a programming language according to these algorithms. Then, some experimental results are presented in chapter 3. This chapter presents the results obtained from computer simulations and also some conclusions extracted from them. The different tests detailed in the different sections of this chapter may allow a more accurate use of the developed functions and a better knowledge of their behavior under specific possible circumstances. Finally, the last chapter concludes and summarizes the work done in this thesis and gives some suggestions for future work in following studies.
Chapter 1. Digital watermarking 3 CHAPTER 1. DIGITAL WATERMARKING The first chapter gives some important concepts about digital watermarking which will be necessary to be taken into account before the study of the proposed system. The chapter is divided in two sections: section 1.1 explains what digital watermarks are (definition, main properties, theoretical model and types of watermarks) and the characteristics demanded for the application of this project. Afterwards, section 1.2 briefly presents the selected watermarking technique, how it works and also its advantages and disadvantages of this selection. 1.1 Digital watermarks Digital watermarking is the process of embedding data called watermark into a multimedia object (image, audio or video) in such a way that this watermark can be detected and/or extracted later. Based on the purpose of the watermark, it can be embedded either visibly or invisibly [1] [2]. Figure 1.1. Example of visible watermark
10 Robust Watermarking Techniques for authentication of printed copies through digital camera capture Similarly, the watermark can be spread over very many frequency bins so that the energy in any one bin is very small and certainly undetectable. However, because the watermark verification process knows the location and context of the watermark, it is possible to intensify these many weak signals with a high signal to noise ratio (SNR). Nevertheless, to destroy such a watermark would require noise of high amplitude to be added to all frequency bins. A large measure of security against unintentional or intentional attack is ensured by the spreading of the watermark throughout the spectrum of an image. One reason is the fact that the spatial location of the watermark is not obvious. Moreover, frequency regions should be selected in a such a way that ensures severe degradation of the original data following any attack on the watermark. As a result, an attack creates visible defects in the data. Similarly, unintentional signal distortions due to compression or image manipulation, must leave the perceptually significant spectral components intact. Otherwise, the resulting image will be severely degraded. Due to this, the watermark can be considered robust. 1.2.2 Insertion of the watermark The watermark insertion can be made following these steps [5]: - DCT of the entire original image is computed assuming as one block. - The perceptually significant regions of the image are found out: the authors have used the 1000 largest coefficients of the DCT block. - The watermark X = x1, x2,…, xn is computed where each xi is chosen according to N(0,1) where denotes a normal distribution with mean μ = 0 and variance σ2 = 1. - The watermark is inserted in the DCT domain of the image by setting the frequency components vi in the original image to v’i using the following equation: v’i = vi·(1 + α·xi) (1.1) where α is a scalar factor (the author has chosen α = 0.1).
Chapter 1. Digital watermarking 11 Figure 1.5. Secure Spread Spectrum Watermarking: insertion process [3] A Gaussian type of watermark is used because it is more strong to tampering than uniform type. Moreover, the length of the watermark is variable and can be adjusted to suit the characteristics of the data. For example, longer watermarks may be used for an image that is especially sensitive to large modifications of its spectral coefficients, thus requiring weaker scaling factors for individual components. When watermark X is inserted into V to obtain V', it is specified the scaling parameter α, which determines the extent to which X alters V. If vi = 106, then adding 100 may be insufficient for establishing a mark, but if vi = 10 adding 100 will distort this value unacceptably. The insertion of the watermark using equation 1.1 makes it more robust against such differences of scale.
12 Robust Watermarking Techniques for authentication of printed copies through digital camera capture Another characteristic to be taken into account is the length of the watermark n. The choice of this length dictates the degree to which the watermark is spread out among the relevant components of the image. In general, as the number of altered components is increased the extent to which they must be altered decreases. For the watermarking procedure described, one can recover the watermark when α is proportional to . That is, by quadrupling the number of components used, one can halve the magnitude of the watermark placed into each component. 1.2.3 Extraction of the watermark The extraction of the watermark can be made following these steps [5]: - DCT of the entire watermarked image is computed assuming as one block. - The difference of the two images is the watermark X*. - The extracted watermark X* is compared with the original watermark X using similarity function given in equation 1.2. (1.2) It is highly unlikely that the extracted mark X* will be identical to the original watermark X. Even the acto of requantizing the watermarked document for delivery will cause X* to deviate from X. The authors measure the similarity of X and X* by equation 1.2, but many other measures are possible, including the standard correlation coefficient. Moreover, in order to decide whether X and X* match or not, it can be set a threshold T in such way that SIM(X,X*) > T. On the other hand, the watermarking technique has the disadvantage that it needs the original image for its exatraction.
Chapter 1. Digital watermarking 13 Figure 1.6. Secure Spread Spectrum Watermarking: extraction process [3] If the extracted message similarity is checked with 1000 random sequences including the original, a result such as what can be seen in Figure 1.6 is obtained. Regarding this plot, a suitable value of threshold can be set to detect the original watermark. Figure 1.6. Detector response to 1000 random sequences including original [5]
14 Robust Watermarking Techniques for authentication of printed copies through digital camera capture CHAPTER 2. ALGORITHMS AND PROGRAMS The study done in this thesis is based, essentially, on the development of algorithms for insertion and detection of invisible watermarks, on their subsequent implementation in a programming language and also on the evaluation of the developed routines. It has been decided to use Mathworks™ MATLAB ® because it is a high-level language and interactive environment for numerical computation, visualization and programming. Moreover, it has an image processing toolbox which other programming languages do not have available. Using MATLAB ®, it is possible to analyze data, develop algorithms and create models or applications, and interface with programs written in other languages, such as C,C++ or Java [6]. This chapter explains the developed algorithms and the implemented routines according to them. It shows how this algorithms works following the modules of the scheme represented in Figure 2.1 and Figure 2.4, and then the program functions developed. 2.1 Watermark insertion The first part of the system is the insertion of the watermark. The developed part of the system for this purpose is based on the one explained in section 1.2.2 and follows the basic model detailed in section 1.1.3a). This section is divided in two parts: a first part to explain the algorithm and a second part to show its programmed function. 2.1.1 Algorithm The presented process for watermark insertion can be seen as a group of individual blocks or modules that work all together. The whole system will be programmed using MATLAB ® and saved as a function. This function is called "WM_Embedding.m" and it is detailed in the section below (section 2.1.2). Figure 2.1 shows the overall system for the watermark insertion, and there can be seen those modules that define it.
Chapter 2. Algorithms and programs 15 Figure 2.1. Embedding algorithm
16 Robust Watermarking Techniques for authentication of printed copies through digital camera capture These modules have their own inputs and outputs, and their operation can be individually studied: a) Pre-processing The first module receives the image as input. It is in charge of doing all the necessary procedures to work with the input data (see Figure 2.2). These procedures are: - Convert the data type: from this stage until the reconversion, the data is no longer considered an image, but a 3D-matrix (one dimension for each color component) of specific type of values (it is used the type "double" for these data). - Extract yellow component: the process of embedding the watermark will be done over the yellow component of the image. It has been decided to use the yellow component because changes in it are less perceptible by human's eyes. This yellow component (Y in Figure 2.1) is a 2D-matrix result of the sum the components red and green in average, and it is the output delivered to the next stage. Figure 2.2. Embedding algorithm: Pre-processing b) Reorder by Perceptually Significant Regions Once the yellow component is extracted (coming from the "Pre-processing" module), the discrete cosine transform (DCT) can be done. The result is a new matrix with the DCT values of the image's yellow component called D (see Figure 2.1).
Chapter 2. Algorithms and programs 17 Now it is the moment for selecting the regions where the watermark will be inserted. As it have been said before (section 1.2), the watermark must be inserted in the perceptually significant components of a signal to be strong to common signal distortions and malicious attacks. Nevertheless, the modification of these components may lead to perceptual degradation of the signal. However, the question still remains: "which coefficients are going to change and how". Cox et. al. use 1000 largest coefficients to embed a watermark sequence of length 1000. The only exception is the DC term, located in (0,0) of the DCT matrix, that should not be changed due to its perceptible change in the whole brightness of the picture. On the other hand, high frequencies are easily changed under common attacks such as compression [1] [5]. This module reorders the matrix by those selected coefficients and saves the original order (parameter "Idx") for later invertion process and for watermark detection. This reordered matrix is where the watermark will be later added (D' in Figure 2.1). c) WM generation The module of watermark generation has the inputs "ID" and "WMlevel", and delivers the watermark as output. The watermark structure consists of Gaussian noise defined by a sequence of random numbers drawn from a N(0,1) distribution. Binary watermark has been rejected because it is far less robust to attacks based on collusion of several independently watermarked copies of an image. Moreover, the MATLAB ® function "randn(n)" produces a sequence of pseudorandom values according to that normal distribution. However, this sequence of numbers is determined by the settings of the uniform random number generator of the program. That shared random number generator can be controlled with the input "seed", in such a way that any specific sequence would be repeated by simply assigning that "seed". This characteristic of the function "randn(n)" allows the use of some "identifiers" to associate specific watermarks. The input parameter "ID" may be that seed for the watermark generation. A database with all the IDs used in the watermarking process may allow the identification of any specific watermark among all the possible cases.
18 Robust Watermarking Techniques for authentication of printed copies through digital camera capture The other input parameter of this module is "WMlevel". Its value is selected by the user in order to control the scaling parameter of the watermark (see section 1.2.2). There are 10 levels defined for "WMlevel", depending on the variable "WMscale". The relation between "WMlevel" and "WMscale" is established after the test results in section 3.8. When the watermark (WM) is generated, then it is added to the matrix delivered by the previous module (D'). The result is a new matrix called . d) UNDO Reorder by Perceptually Significant Regions The new dct-matrix containing the watermark must recover the original order. That is, the effects of the module "Reorder by Perceptually Significant Regions" must be inverted, and it is achieved by using the parameter "Idx". The result of this module is the dct-matrix of the image, with its original order, but also containing the watermark ( ). The Inverse Discrete Cosine Transform (IDCT) of this matrix returns the yellow component of the image with the added watermark ( ). e) Post-processing The last part of the embedding algorithm takes the yellow component watermarked and returns the whole image watermarked. This module is, essentially, the inverse of the "Pre-processing" module: from the new yellow component, and the original data, it is possible to recover the three color components of the image. Equations 2.1, 2.2 and 2.3 detail the process. (2.1) (2.2) (2.3) Figure 2.3 shows the procedure to get the RGB components. The recovered image ( ) is finally saved as a new image: "ImageWM".
Chapter 2. Algorithms and programs 19 Figure 2.3. Embedding algorithm: Post-processing 2.1.2 Program: “WM_Embedding.m” The function in charge of the watermark insertion is called "WM_Embedding.m". It includes all phases defined in Figure 2.1 since the image has been selected until its delivery with the watermark already inserted. The function is defined by “ImageWM = WM_Embedding(Image,ID,Wlevel)” and works using the following variables: a) Inputs: - Image: 3D-matrix. It corresponds to the RGB components of the image to be selected and marked. The matrix may contain integer numbers with values between 0 and 255. Moreover, this original image will be saved and related to the ID using a database. - ID: numerical (natural numbers). It is the identifier for the particular watermark to be inserted into the selected image. If all "ID" used in all insertions are stored in a database, it can be obtained a complete relation between these watermarks and any information associated with them (e.g., owner, date, history, etc.). Because of this identifier, the image may become unique and detectable among all the other copies. That is, for the proposed application of this project, to identify a concrete sticker among all the stickers of the same class. In order to make easier the storage and control of these identifiers, the function only accepts natural numbers.
26 Robust Watermarking Techniques for authentication of printed copies through digital camera capture a) Original image b) WMscale = 1% c) WMscale = 10% d) WMscale = 30% e) WMscale = 50% f) WMscale = 100% Figure 3.1. Test "Imperceptibility"
Chapter 3. Simulations and Results 27 3.2 Positive detection The next test has also two objectives: to check the detection of the watermark and its correct identification among other different watermarks; and then, to determine a minimum value for the scaling factor of the watermark while maintaining its correct detection and identification. This test begins with the generation of a list of 100 different "keys" (ID) which will have their own associated watermark; and then, one of this ID is chosen and the associated watermark is embedded to the sample image. For this test, it has been chosen ID = 63, and a value of WMscale = 50%. When the image is already watermarked, the detection module should be able to say whether the watermark corresponds to one specific ID or not with a percentage of confidence set by the correlation (output of the detection module, see Section 2.2.2). Figure 3.2. Test "Positive detection" (I)
28 Robust Watermarking Techniques for authentication of printed copies through digital camera capture Figure 3.2 shows the results of this test: only the ID equal to 63 has a high correlation (Correlation = 99.7%), so it can be concluded that the watermark of the image is indeed the one associated to its ID. With this result, it is easy to determine which ID is the correct one because the difference in the correlation is really huge (close to 100% vs. lower than 10%). Therefore, the threshold to give a positive detection can be set in Correlation equal to 10% . However, the test has been done setting the highest recommended scaling factor of the watermark (WMscale = 50%), so this can be called the "best case detection scenario". Figure 3.3. Test "Positive detection" (II) The second part of this test tries to determine worse scenarios of detection when the scaling factor of the watermark is reduced. It can be seen in Figure 3.3 how the values of correlation decrease if WMscale < 5%, and how they directly fall down if WMscale < 3%. From the results of this test, the minimum scaling factor of the watermark can be set: watermarks with the parameter WMscale lower than 5% could be too weak for future positive detections even in the best conditions.
Chapter 3. Simulations and Results 29 3.3 Cropping The first robustness test is the "cropping test". It has two versions: the first one is a successive "cut" of the image from the edges to the center. The second version of the test is also a successive cut of the image, but simulating the extraction of one of its sectors. In both versions it is cut 1 row/column per edge every time. Figure 3.4 shows the clue to fully understand the operation of this test. (a) Cropping edges (b) Cropping sector Figure 3.4. Test "Cropping": (a) edges, (b) sector The results of this are shown in Figure 3.5 and Figure 3.6. It is represented by percentage of pixels cut off from the image respect to its total. It can be seen that the detection of the watermark gets worse very fast even with the highest value of scaling factor (WMscale = 50%).
30 Robust Watermarking Techniques for authentication of printed copies through digital camera capture Figure 3.5. Test "Cropping" - edges Figure 3.6. Test "Cropping" - sector
Chapter 3. Simulations and Results 31 3.4 Rotation The next robustness test studies the rotation effects in the detection process. The same watermarked image has been modified introducing small rotations to see if the detection was still possible. The test has been repeated for several values of WMscale: the highest recommended value (50%), the lowest recommended value (5%) and two intermediate values (30% and 10%). Figure 3.7. Test "Rotation" Figure 3.7 shows the results of this study: rotations greater than ±4º in strong watermarks and ±2º in weak watermarks makes impossible a positive detection. For rotations greater than those, it would be necessary a preprocessing to correct the rotation before starting the detection process.
32 Robust Watermarking Techniques for authentication of printed copies through digital camera capture 3.5 Changes in color There are many possible attacks related to changes in the color that an image can suffer. The tests presented in this section are based on changes in color brightness (section 3.5.1), color contrast (section 3.5.2) and color intensity (section 3.5.3), and how much affected can be the watermark due to them. According to the results shown in Figure 3.9, Figure 3.11 and Figure 3.13, these attacks to the watermark may not imply a failure in detection if it was embedded with a strong level highly enough. Only cases where WMscale was lower than 10% would have problems of detection; and also only in cases of big changes (more than 40%) in the color of the image. Furthermore, some samples of the effects in every test are shown, as well: Figure 3.8, Figure 3.10 and Figure 3.12 show the extreme cases compared with the original image for a better understanding of what is done in this test.
Chapter 3. Simulations and Results 33 3.5.1 Brightness The change of "brightness" makes the image lighter or darker when it increases or decreases, respectively. It rather looks as if a light source gets closer to the image or move away from it. (a) Brightness of -40% (b) Original (c) Brightness of 40% Figure 3.8. Brightness: extreme cases Figure 3.9. Test "changes in color" - brightness
34 Robust Watermarking Techniques for authentication of printed copies through digital camera capture 3.5.2 Contrast If the "contrast" is increased, the difference in luminance of the objects represented in the image is also increased. That increment makes the image more distinguishable. However, if this contrast is decreased, the whole image loses its clarity and sharpness, and that would eventually make impossible to distinguish any object of the image. (a) Contrast of -40% (b) Original (c) Contrast of 40% Figure 3.10. Contrast: extreme cases Figure 3.11. Test "Changes in color" - contrast
Chapter 3. Simulations and Results 35 3.5.3 Color intensity If saturation is increased, the colors of the image look more vivid, more intense. In the other hand, with lower levels of saturation, the image tends to gray-scale. (a) Intensity of -100% (b) Original (c) Intensity of 100% Figure 3.12. Color intensity: extreme cases Figure 3.13. Test "Changes in color" - color intensity
42 Robust Watermarking Techniques for authentication of printed copies through digital camera capture WMscale = 50%; ID = 77 ID = 77: Correlation = 99.78% Figure 3.17. Digital camera capture - initial settings 3.7.2 Undamaged It has been seen in section 3.6.2 the necessity of some image processing for a correct detection of the watermark. Due to this, the images captured by the cameras are manually modified before trying to detect the embedded watermark. Figure 3.18 shows the results of detection process using the four models of camera detailed in the section above for a value of WMscale = 50%. Table 3.3 shows the results according to the different values of WMscale. Table 3.3. Digital camera capture - undamaged WMscale Correlation Iphone4S Experia Galaxy Ace 50% 22.74% 20.91% 11.67% 30% 10.61% 12.23% 10.55% 10% Not detected Not detected Not detected 5% Not detected Not detected Not detected
Chapter 3. Simulations and Results 43 (a) Capture using iPhone4S ID = 77: Correlation = 22.74% (b) Capture using Ericsson Experia ID = 77: Correlation = 20.91% (c) Capture using Samsung Galaxy Ace ID = 77: Correlation = 11.67% Figure 3.18. Test "Digital camera capture" - undamaged
44 Robust Watermarking Techniques for authentication of printed copies through digital camera capture 3.7.3 Wrinkled The printed images are wrinkled roughly and then captured digitally using the smart-phones detailed before. Table 3.4 shows the detection results depending on the scaling factor of the watermark and the device used for the capture. Table 3.4. Digital camera capture - wrinkled WMscale DETECTION Iphone4S Experia Galaxy Ace 70% OK OK OK 50% OK OK OK 30% Not detected OK Not detected 10% Not detected Not detected Not detected 5% Not detected Not detected Not detected 3.8 Conclusions from tests Some conclusions can be extracted from the results of all these tests. The first conclusion is that the embedding and detection modules work properly. Watermarks of different scaling factors can be embedded and later correctly detected. However, the user must always assume a trade-off: the stronger the watermark, the easier to be detected later, but also the lower imperceptibility. The second conclusion is that a specific threshold can be inserted in the detection process. Experimental results show values of correlation lower than 10% in negative detections, so it could be set the condition of higher correlations just to affirm the watermark has been correctly detected. There is one conclusion that can be extracted from the robustness tests: images watermarked by this system can bear low cropping and rotation effects before the watermark is no longer detectable, but they can do accept high changes in their color characteristics. However, some preprocessing techniques can be used in order to compensate all those negative effects before the detection process.
Chapter 3. Simulations and Results 45 All these conclusions have been used for the two final tests: printing and scanning a watermarked image, and capture using a digital camera. With the experimental results of these tests (in both "undamaged" and "wrinkle" parts), it can be set different categories of watermark according to the value of the scaling factor. Table 3.5 shows the levels of watermark available for the user and their relation with the parameter WMscale, and Table 3.6 shows the applications suggested for each level of watermark. Taking this information into account, one can decide the level of the watermark according to the use of the watermarked image. Table 3.5. Levels of watermark according to its scaling factor IMPERCEPTIBLE HIGH LOW WM LEVEL 1 2 3 4 5 6 7 8 9 10 WMscale 1% 5% 10% 20% 30% 40% 50% 60% 65% 70% STRENGTH LOW HIGH Table 3.6. Suggested WM categories according to its level LEVEL Category Suggestions 10 Ultra-high Only for printed and digital camera capture 9 High Recommended for "printed-and-scan" applications 8 7 6 Medium Recommended for both digital and printed applications with small degradation 5 4 Low Recommended for digital applications 3 2 1 Ultra-low Not recommended
46 Robust Watermarking Techniques for authentication of printed copies through digital camera capture SUMMARY AND OUTLOOK The aim of this thesis has been the implementation and analysis of a robust watermarking method in order to be applied to printed images. These printed images with the watermark will be captured by a digital camera of a smartphone and later processed to detect the watermark. Due to the specific business application, the watermark must be invisible for the human's eye while very robust to image manipulations. Taking this features into account, it has been implemented a method based on spread spectrum watermarking. The algorithms of insertion and extraction of the watermark have been used to program routines using MATLAB. Then, these routines have been tested in order to determine the good operation of the programs and the robustness of the watermarks. However, the user must always assume the trade-off between "scaling factor" and "imperceptibility": the stronger the watermark, the easier to be detected later, but also the lower imperceptibility. With the results of the first tests, the good operation of the programmed routines is checked, and also a specific threshold can be inserted in the detection process. Experimental results show values of correlation lower than 10% in negative detections, so it is set as condition for correct detections. The results of the next tests shows that images watermarked by this method can bear low cropping and rotation effects before the watermark is no longer detectable, but they can do accept high changes in their color characteristics. Nevertheless, some preprocessing techniques can be used in order to compensate all those negative effects before the detection process. The final tests are printing and then scanning a watermarked image, and printing and then capturing the image with a digital camera. With the experimental results of this test, it has been set different categories of watermark according to different levels of scaling, and it have been suggested which category of watermarking to use depending on the application. Regarding to the environmental impact of this study, it has to be remarked two consumptions: the electrical consumption when programming and doing the computer processes and especially the ink consumption when images have been printed.
Summary and Outlook 47 Further work The method of determining the different categories of watermark has been the comparison of the experimental results: the levels of the watermarks, and obviously its limits, have been set after several subjective tests. It is recommended to use some objective parameter to determine the levels of the watermarks, for example, the Peak Signal-to-Noise Ratio (PSNR). Since this is an engineering term for the ratio between the maximum possible power of a signal and the power of a corrupting noise, it can be a good parameter to evaluate how the watermark affects the fidelity of the original image. Moreover, other preprocessing modules could be developed in order to improve the watermark detections when images are captured by a digital camera. It is suggested to implement a function for perspective correction. Finally, an application should be implemented. Programming languages as C++ or Java could be an option for the implementation of a computer application, but it is suggested to convert this method in a application for smart-phone (using Android and/or iOS).
48 Robust Watermarking Techniques for authentication of printed copies through digital camera capture BIBLIOGRAPHY [1] Ingemar J. Cox: Digital watermarking and steganography. Morgan Kaufmann, Burlington, MA, USA, 2008. [2] Frank Y. Shih: Digital watermarking and steganography: fundamentals and techniques. Taylor & Francis, Boca Raton, FL, USA, 2008. [3] Saraju P. Mohanty , "Digital Watermarking: A Tutorial Review", Department of Computer Science and Engineering, University of South Florida, 1999, pp. 1- 24. [4] Yanqun Zhang, “Digital Watermarking Technology: A Review”, 2009. [5] Ingemar J. Cox, “Secure Spread Spectrum Watermarking for Multimedia”, IEEE Transactions on Image Processing, VOL.6, NO.12, December 1997. [6] Mathworks official website. 10 Feb. 2013. http://www.mathworks.es/products/matlab/