US20130251190A1 - Device and method for embedding watermark into image - Google Patents
Device and method for embedding watermark into image Download PDFInfo
- Publication number
- US20130251190A1 US20130251190A1 US13/744,475 US201313744475A US2013251190A1 US 20130251190 A1 US20130251190 A1 US 20130251190A1 US 201313744475 A US201313744475 A US 201313744475A US 2013251190 A1 US2013251190 A1 US 2013251190A1
- Authority
- US
- United States
- Prior art keywords
- pixels
- section
- selected section
- image
- binary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
- G06T1/0028—Adaptive watermarking, e.g. Human Visual System [HVS]-based watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2201/00—General purpose image data processing
- G06T2201/005—Image watermarking
- G06T2201/0051—Embedding of the watermark in the spatial domain
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2201/00—General purpose image data processing
- G06T2201/005—Image watermarking
- G06T2201/0061—Embedding of the watermark in each block of the image, e.g. segmented watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/60—Digital content management, e.g. content distribution
- H04L2209/608—Watermarking
Definitions
- the present disclosure relates to a device and a method of embedding a watermark into an image, and particularly, to a device and a method of embedding a binary watermark into an image in spatial domain.
- a digital watermark may protect multimedia content on the internet.
- DCT Discrete cosine transform
- FIG. 1 is a block diagram of a device for embedding a binary watermark into an image in accordance with an exemplary embodiment.
- FIG. 2 is a flowchart of a method for embedding a binary watermark into an image in accordance with an exemplary embodiment.
- FIG. 1 is a block diagram illustrating a computing device 100 capable of embedding a binary watermark into an image according to an exemplary embodiment of the present disclosure.
- the computing device 100 has a processor 1 , a memory 2 and a display 3 .
- the display 3 can be a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, or a LED display.
- the memory 2 can be flash memory, a hard disk drive, or other non-transitory storage medium.
- the memory 2 stores one or more programs and several modules, wherein the modules are configured for execution by the programs, and the modules include an image-processing module 21 , a selecting module 22 and a calculating module 23 .
- FIG. 2 is a flowchart illustrating a method of embedding a binary watermark into an image according to an exemplary embodiment of the present disclosure.
- the method can be applied to the computing device 100 .
- An image which the user wants to protect, and a watermark, are input into the computing device 100 .
- step S 101 the processor 1 calculates the binary watermark by a descending dimension algorithm to obtain a one-dimensional watermark sequence.
- the watermark sequence consists of K binary numbers.
- step S 102 the image-processing module 21 converts the image into a grayscale image.
- the grayscale image can be converted from any one of the three quantities (R, G, B) of the original RGB image.
- step S 103 the image-processing module 21 segments the grayscale image into a plurality of equal sections, which are ordered.
- each of the sections has 3 ⁇ 3 pixels.
- the grayscale image is divided into N/3 ⁇ M/3 sections.
- the pixels are in order and serial numbers C 1 , C 2 . . . C 9 are assigned to the pixels.
- step S 104 the selecting module 22 generates a random key 24 , and selects K sections randomly from the sections, while each of the selected sections corresponds to one of the binary numbers of the watermark sequence.
- the random key 24 is stored in the memory 2 after being generated.
- step S 105 in each selected section, the calculating module 23 compares a sum of a first part of the pixels and a sum of a second part of the pixels to obtain a comparison.
- the first and the second parts of the pixels have the same number of pixels and there is no pixel repeated.
- the sum of the pixels means the addition of the gray scale values of the pixels.
- the first part of pixels points to first three pixels of the ordered pixels with serial numbers C 1 , C 2 , C 3
- the second part of pixels points to the middle three pixels of the ordered pixels with serial numbers C 4 , C 5 , C 6 .
- the comparison establishes the difference between the first three pixels and the middle three pixels.
- step S 106 the calculating module 23 determines if the result of the comparison in relation to each selected section corresponds to a corresponding binary number, in accordance with a predefined correlation.
- the predefined correlation is set to be but not limited to that if the section corresponds to the binary number 0 , the result should be bigger than or equal to a threshold, which is 0 in this embodiment. If the section corresponds to the binary number 1 , the result thereof should be smaller than the threshold, which is 0 in this embodiment 1. For example, if a section corresponds to the binary number 1 , but the comparison result of the section is not smaller than 0, the result of the section fails to correspond to the binary number 1 in accordance with the correlation.
- step S 107 if the result of comparison in relation to the section does not correspond to the corresponding binary number in accordance with the correlation, the calculating module 23 adjusts the pixels of the section to make the result of the section correspond to the binary number in accordance with the correlation. For example, if a section corresponds to the binary number 1 , the result of that section should be smaller than the threshold, in this embodiment. If the result of that section is smaller than 0, the pixels of the section are not adjusted.
- the calculating module 23 sets a constant, which is a natural number, and respectively adds the d/3 and the constant to the middle three pixels C 4 , C 5 , C 6 , therefore turning the result of that section into a result smaller than 0, so as to fit the correlation.
- the processor 1 retrieves the random key 24 from the memory 2 for retrieving the K selected sections from the image according to the random key 24 .
- the calculating module 23 compares a sum of a first part of the pixels and a sum of a second part of the pixels to obtain a comparison result.
- the calculating module 23 retrieves the binary watermark sequence according to the correlation of the result of comparison and the binary number. For example, if the result of a section is smaller than 0, according to the correlation, the binary number corresponding to the section is 1 . Finally, the processor 1 reconstructs the binary watermark by calculating the watermark sequence and displays the binary watermark on the display 3 .
- the method of embedding watermark of the present disclosure is less complicated than that of related art and is more difficult to be filtered out.
Abstract
Description
- 1. Technical Field
- The present disclosure relates to a device and a method of embedding a watermark into an image, and particularly, to a device and a method of embedding a binary watermark into an image in spatial domain.
- 2. Description of Related Art
- Piracy in relation to multimedia content is a serious issue. A digital watermark may protect multimedia content on the internet. However, the present technology of digital watermark embedding is usually based on DCT (Discrete cosine transform), which has the disadvantages of being complicated to embed and extract, and is too easy to be filtered out.
- To avoid the above-mentioned disadvantages, a method of embedding binary watermark is required.
- The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of a device and a method of embedding a binary watermark into an image. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
-
FIG. 1 is a block diagram of a device for embedding a binary watermark into an image in accordance with an exemplary embodiment. -
FIG. 2 is a flowchart of a method for embedding a binary watermark into an image in accordance with an exemplary embodiment. - The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
-
FIG. 1 is a block diagram illustrating acomputing device 100 capable of embedding a binary watermark into an image according to an exemplary embodiment of the present disclosure. Thecomputing device 100 has aprocessor 1, amemory 2 and adisplay 3. Thedisplay 3 can be a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, or a LED display. Thememory 2 can be flash memory, a hard disk drive, or other non-transitory storage medium. Thememory 2 stores one or more programs and several modules, wherein the modules are configured for execution by the programs, and the modules include an image-processing module 21, aselecting module 22 and a calculatingmodule 23. - Although this diagram depicts components as functionally separate, such depiction is merely for illustrative purposes. It will be apparent to those skilled in the art that the components portrayed in the figures can be arbitrarily combined or divided into separate software, firmware and/or hardware components. Furthermore, it will also be apparent to those skilled in the art that such components, regardless of how they are combined or divided, can be executed on the same computing device or multiple computing devices, and the multiple computing devices can be connected and interconnected by one or more networks.
-
FIG. 2 is a flowchart illustrating a method of embedding a binary watermark into an image according to an exemplary embodiment of the present disclosure. The method can be applied to thecomputing device 100. An image which the user wants to protect, and a watermark, are input into thecomputing device 100. The binary watermark has n×m=K pixels, and the image has N×M pixels. In this embodiment, the watermark is a bitmap object having a size of 32×32=1024 pixels, and the image is a RGB image having a size of 512×512 pixels. - In step S101, the
processor 1 calculates the binary watermark by a descending dimension algorithm to obtain a one-dimensional watermark sequence. The watermark sequence consists of K binary numbers. In step S102, the image-processing module 21 converts the image into a grayscale image. The grayscale image can be converted from any one of the three quantities (R, G, B) of the original RGB image. - In step S103, the image-
processing module 21 segments the grayscale image into a plurality of equal sections, which are ordered. In this embodiment, each of the sections has 3×3 pixels. In this way, the grayscale image is divided into N/3×M/3 sections. Moreover, in each of the sections, the pixels are in order and serial numbers C1, C2 . . . C9 are assigned to the pixels. - In step S104, the selecting
module 22 generates arandom key 24, and selects K sections randomly from the sections, while each of the selected sections corresponds to one of the binary numbers of the watermark sequence. Therandom key 24 is stored in thememory 2 after being generated. - In step S105, in each selected section, the calculating
module 23 compares a sum of a first part of the pixels and a sum of a second part of the pixels to obtain a comparison. The first and the second parts of the pixels have the same number of pixels and there is no pixel repeated. The sum of the pixels means the addition of the gray scale values of the pixels. In this embodiment, in each selected section, the first part of pixels points to first three pixels of the ordered pixels with serial numbers C1, C2, C3, while the second part of pixels points to the middle three pixels of the ordered pixels with serial numbers C4, C5, C6. The comparison establishes the difference between the first three pixels and the middle three pixels. The result of the comparison can be represented as a value d, wherein d=(C1+C2+C3)−(C4+C5+C6). - In step S106, the calculating
module 23 determines if the result of the comparison in relation to each selected section corresponds to a corresponding binary number, in accordance with a predefined correlation. In this embodiment, the result of the comparison is d=(C1+C2+C3)−(C4+C5+C6), the predefined correlation is set to be but not limited to that if the section corresponds to the binary number 0, the result should be bigger than or equal to a threshold, which is 0 in this embodiment. If the section corresponds to thebinary number 1, the result thereof should be smaller than the threshold, which is 0 in thisembodiment 1. For example, if a section corresponds to thebinary number 1, but the comparison result of the section is not smaller than 0, the result of the section fails to correspond to thebinary number 1 in accordance with the correlation. - In step S107, if the result of comparison in relation to the section does not correspond to the corresponding binary number in accordance with the correlation, the calculating
module 23 adjusts the pixels of the section to make the result of the section correspond to the binary number in accordance with the correlation. For example, if a section corresponds to thebinary number 1, the result of that section should be smaller than the threshold, in this embodiment. If the result of that section is smaller than 0, the pixels of the section are not adjusted. If the result of that section is not smaller than 0, the calculatingmodule 23 sets a constant, which is a natural number, and respectively adds the d/3 and the constant to the middle three pixels C4, C5, C6, therefore turning the result of that section into a result smaller than 0, so as to fit the correlation. - Therefore, all of the selected sections have their results corresponding to the corresponding binary number in accordance with the correlation. In this way, the binary watermark is embedded into the image, as the gray scale values of the pixels of the selected sections has been adjusted to make the calculation results of the gray scale values match the information of the binary watermark.
- For subsequently extracting the binary watermark, first, the
processor 1 retrieves therandom key 24 from thememory 2 for retrieving the K selected sections from the image according to therandom key 24. Second, in each selected section, the calculatingmodule 23 compares a sum of a first part of the pixels and a sum of a second part of the pixels to obtain a comparison result. - Third, the calculating
module 23 retrieves the binary watermark sequence according to the correlation of the result of comparison and the binary number. For example, if the result of a section is smaller than 0, according to the correlation, the binary number corresponding to the section is 1. Finally, theprocessor 1 reconstructs the binary watermark by calculating the watermark sequence and displays the binary watermark on thedisplay 3. - The method of embedding watermark of the present disclosure is less complicated than that of related art and is more difficult to be filtered out.
- Although the present disclosure has been specifically described on the basis of the embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Claims (8)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210073990.2 | 2012-03-20 | ||
CN201210073990.2A CN103325081B (en) | 2012-03-20 | 2012-03-20 | Insertion and extracting method based on spatial domain image digital watermark |
CN201210073990 | 2012-03-20 |
Publications (2)
Publication Number | Publication Date |
---|---|
US20130251190A1 true US20130251190A1 (en) | 2013-09-26 |
US8903185B2 US8903185B2 (en) | 2014-12-02 |
Family
ID=49193805
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/744,475 Active 2033-07-14 US8903185B2 (en) | 2012-03-20 | 2013-01-18 | Device and method for embedding watermark into image |
Country Status (3)
Country | Link |
---|---|
US (1) | US8903185B2 (en) |
CN (1) | CN103325081B (en) |
TW (1) | TWI534644B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9959586B1 (en) * | 2016-12-13 | 2018-05-01 | GoAnimate, Inc. | System, method, and computer program for encoding and decoding a unique signature in a video file as a set of watermarks |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105898324A (en) * | 2015-12-07 | 2016-08-24 | 乐视云计算有限公司 | Video watermark hidden insertion method and device |
CN106651874B (en) * | 2016-12-08 | 2019-06-28 | 温州医科大学 | Space domain splitting method after brain tumor surgery based on multi-modal MRI data |
CN109996028A (en) * | 2017-12-29 | 2019-07-09 | 浙江宇视科技有限公司 | Monitoring display equipment and watermark adding method |
CN110570341A (en) * | 2018-06-05 | 2019-12-13 | 南京工业大学 | Channel end value steganographic digital watermark |
CN111652788A (en) * | 2020-06-05 | 2020-09-11 | 山东汇贸电子口岸有限公司 | Digital watermark embedding method and system, digital watermark extracting method and system, digital watermark embedding device and digital watermark extracting device and medium |
CN112862654B (en) * | 2021-01-26 | 2022-08-30 | 合肥工业大学 | Blind watermark embedding and extracting method based on combination of relational interpolation and linear interpolation |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7245740B2 (en) * | 2003-07-01 | 2007-07-17 | Oki Electric Industry Co., Ltd. | Electronic watermark embedding device, electronic watermark detection device, electronic watermark embedding method, and electronic watermark detection method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6504941B2 (en) * | 1998-04-30 | 2003-01-07 | Hewlett-Packard Company | Method and apparatus for digital watermarking of images |
KR20050078767A (en) * | 2004-02-02 | 2005-08-08 | 삼성전자주식회사 | Digital image watermarking apparatus and method |
CN100419791C (en) * | 2006-10-26 | 2008-09-17 | 丹东东方测控技术有限公司 | Method for removing visual watermark of block local encrypted digital image |
-
2012
- 2012-03-20 CN CN201210073990.2A patent/CN103325081B/en not_active Expired - Fee Related
- 2012-04-05 TW TW101112023A patent/TWI534644B/en not_active IP Right Cessation
-
2013
- 2013-01-18 US US13/744,475 patent/US8903185B2/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7245740B2 (en) * | 2003-07-01 | 2007-07-17 | Oki Electric Industry Co., Ltd. | Electronic watermark embedding device, electronic watermark detection device, electronic watermark embedding method, and electronic watermark detection method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9959586B1 (en) * | 2016-12-13 | 2018-05-01 | GoAnimate, Inc. | System, method, and computer program for encoding and decoding a unique signature in a video file as a set of watermarks |
Also Published As
Publication number | Publication date |
---|---|
US8903185B2 (en) | 2014-12-02 |
TW201339876A (en) | 2013-10-01 |
CN103325081A (en) | 2013-09-25 |
TWI534644B (en) | 2016-05-21 |
CN103325081B (en) | 2017-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8903185B2 (en) | Device and method for embedding watermark into image | |
US10140520B2 (en) | Determining native resolutions of video sequences | |
US9679366B2 (en) | Guided color grading for extended dynamic range | |
JP5760438B2 (en) | Digital watermark embedding apparatus, digital watermark embedding method, digital watermark embedding computer program, and digital watermark detection apparatus | |
US8599270B2 (en) | Computing device, storage medium and method for identifying differences between two images | |
WO2016082277A1 (en) | Video authentication method and apparatus | |
Saha et al. | Full-reference image quality assessment by combining global and local distortion measures | |
TW201428688A (en) | Image similarity judgment system and method | |
US20200243040A1 (en) | Image processing apparatus and recording medium | |
JP5870598B2 (en) | Image white balance processing method and apparatus | |
WO2015167901A1 (en) | Video fingerprinting | |
KR102661879B1 (en) | Image processing apparatus and image processing method thereof | |
US20140348428A1 (en) | Dynamic range-adjustment apparatuses and methods | |
Ren et al. | Image retargeting based on global energy optimization | |
CN114626967A (en) | Digital watermark embedding and extracting method, device, equipment and storage medium | |
CN113222921A (en) | Image processing method and system | |
US10438323B2 (en) | Image brightness correction and noise suppression method, device, and recording medium for storing image processing program | |
CN112541853A (en) | Data processing method, device and equipment | |
CN109859092A (en) | Information concealing method, device, equipment and computer readable storage medium | |
Wan et al. | Improved spread transform dither modulation based on robust perceptual just noticeable distortion model | |
Jung et al. | Data hiding based on two-stage referencing for two-colour images | |
CN113674130A (en) | Image processing method and device, storage medium and terminal | |
Cao et al. | Combining visual saliency and pattern masking for image steganography | |
KR101796389B1 (en) | Method of enhancing document captured image | |
Azeroual et al. | Video Shot Detection and Key Frame Extraction Using Faber Shauder DWT and SVD |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: HON HAI PRECISION INDUSTRY CO., LTD., TAIWAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WONG, SHIH-FANG;LU, XIN;XIONG, YU-KAI;AND OTHERS;REEL/FRAME:029653/0546 Effective date: 20130115 Owner name: FU TAI HUA INDUSTRY (SHENZHEN) CO., LTD., CHINA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WONG, SHIH-FANG;LU, XIN;XIONG, YU-KAI;AND OTHERS;REEL/FRAME:029653/0546 Effective date: 20130115 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
CC | Certificate of correction | ||
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551) Year of fee payment: 4 |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 8 |