CN109785223A - A method of addition digital watermarking - Google Patents
A method of addition digital watermarking Download PDFInfo
- Publication number
- CN109785223A CN109785223A CN201910047760.0A CN201910047760A CN109785223A CN 109785223 A CN109785223 A CN 109785223A CN 201910047760 A CN201910047760 A CN 201910047760A CN 109785223 A CN109785223 A CN 109785223A
- Authority
- CN
- China
- Prior art keywords
- picture
- layer
- frequency domain
- rgb channel
- watermark information
- 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.)
- Pending
Links
Landscapes
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
The present invention relates to a kind of method for adding digital watermarking, the RGB channel of picture is transformed to frequency domain by Fourier transformation by this method respectively, adds watermark to image in frequency domain, then by inverse transformation, convert the image into spatial domain.Relative to airspace means, frequency domain means are invisible stronger, and attack tolerant is higher.
Description
[technical field]
The invention belongs to field of image processing more particularly to a kind of methods that digital watermarking is added in digital picture.
[background technique]
The rapid development of information network technique promotes constantly bringing forth new ideas for digital image watermarking technology, makes digital watermarking skill
The application field of art is more and more extensive.How to ensure the digital information safety in communication network, prevent secret information from leaking, has become
For e-commerce field urgent problem to be solved.Digital image watermarking technology is applied to business communication network, can be effectively ensured
The safety of important information.Digital figure watermark in e-commerce using mainly have copyright protection, content authentication, operation tracking,
Copy control, covert communications.
Although doing a lot of work in terms of picture digital watermarking research, plentiful and substantial research achievement is achieved.But it makes a general survey of
Picture digital watermark technology field, many problems are not solved preferably, and the following aspects is mainly manifested in:
(1) after smearing attack, digital watermark information is subject to pollution and destroys picture, causes to obtain watermark information success
Rate reduces;
(2) after scaling, rotation, digital watermark information sequence is subject to destroy picture, causes to obtain watermark information
Success rate reduces;
(3) after shearing, screenshotss, digital watermark information is easily lost picture, and associated rights information is caused to be lost.
[summary of the invention]
In order to solve the above problem in the prior art, the present invention provides a kind of methods for adding digital watermarking.
The technical solution adopted by the present invention is specific as follows:
A method of adding digital watermarking in picture, comprising the following steps:
(1) the picture original image and digital watermark information for needing to add digital watermarking are obtained;
(2) RGB channel layering is carried out to the picture original image, obtains the RGB channel figure layer of original image;
(3) DFT Fourier transformation is carried out to the figure layer of the RGB channel of acquisition respectively, obtains the frequency domain layer figure in each channel
Sample;
(4) coding of watermark information is carried out respectively to the frequency domain layer of RGB channel;
(5) inverse Fourier transform is carried out to the frequency domain layer of the insertion watermark information of RGB channel respectively;
(6) three channels are merged by the figure layer after inverse Fourier transform, superposition generates final insertion water
The picture of official seal breath.
Further, using the related separation algorithm in cross-platform vision library OPENCV, the RGB channel layering is carried out.
Further, Fourier Transform Algorithm, inverse Fourier transform algorithm, watermark information embedded mobile GIS use
OPENCV vision library related algorithm function is completed.
Present invention is alternatively directed to the methods of above-mentioned addition watermark to provide a kind of method for extracting digital watermarking, including following step
It is rapid:
(1) picture for being embedded in watermark information is obtained;
(2) RGB channel layering is carried out to the picture, obtains the RGB channel figure layer of picture;
(3) Fourier transformation is carried out to the RGB channel figure layer of acquisition respectively, obtains the frequency domain layer in each channel, and will become
Low frequency part after changing moves to picture centre;
(4) watermark decoding operate is carried out respectively to the frequency domain layer in three channels, then by decoded three frequency domain layers into
Row merges superposition, generates the watermark information picture finally extracted.
Further, watermark information decoding algorithm and merging superposition figure layer algorithm can be in conjunction with the phases in OPENCV vision library
Algorithm is closed to complete.
The system that the present invention also provides a kind of to add digital watermarking in picture, comprising:
Module is obtained, needs to add the picture original image and digital watermark information of digital watermarking for obtaining;
RGB channel hierarchical block obtains the RGB channel figure of original image for carrying out RGB channel layering to the picture original image
Layer;
Fourier transformation module carries out DFT Fourier transformation for the figure layer respectively to the RGB channel of acquisition, obtains each
The frequency domain layer pattern in a channel;
Watermark encoder module carries out the coding of watermark information for the frequency domain layer to RGB channel respectively;
Frequency domain Fourier inverse transform module, the frequency domain layer for the insertion watermark information respectively to RGB channel carry out in Fu
Leaf inverse transformation;
Frequency domain laminating module, for three channels to be merged by the figure layer after inverse Fourier transform, superposition life
At the picture of final insertion watermark information.
Present invention is alternatively directed to the systems of above-mentioned addition watermark to provide a kind of system for extracting digital watermarking, comprising:
Module is obtained, for obtaining the picture for being embedded in watermark information;
RGB channel hierarchical block obtains the RGB channel figure layer of picture for carrying out RGB channel layering to the picture;
Fourier transformation module obtains each channel for carrying out Fourier transformation to the RGB channel figure layer of acquisition respectively
Frequency domain layer, and transformed low frequency part is moved into picture centre;
Watermark information deciphering module carries out watermark decoding operate for the frequency domain layer to three channels respectively;
Frequency domain laminating module generates the watermark finally extracted for decoded three frequency domain layers to be merged superposition
Information picture.
The beneficial effects of the present invention are: after increasing digital watermarking to picture, it can be in picture by smearing, rotating, contract
Put, shear and screenshotss in the case where digital watermark information added by complete extraction.
[Detailed description of the invention]
Described herein the drawings are intended to provide a further understanding of the invention, constitutes part of this application, but
It does not constitute improper limitations of the present invention, in the accompanying drawings:
Fig. 1 is the flow chart of present invention addition digital watermarking.
Fig. 2 is the flow chart that the present invention extracts digital watermarking.
[specific embodiment]
Come that the present invention will be described in detail below in conjunction with attached drawing and specific embodiment, illustrative examples therein and says
It is bright to be only used to explain the present invention but not as a limitation of the invention.
The present invention using frequency domain addition digital watermarking method, refer to by certain shift means (Fourier transformation, it is discrete
Cosine transform, wavelet transformation etc.) image transformed into frequency domain (wavelet field), watermark is added to image in frequency domain, then pass through inversion
It changes, converts the image into spatial domain.Relative to airspace means, frequency domain means are invisible stronger, and attack tolerant is higher.Below to this
The method of invention is specifically described.
Specific embodiment 1: being embedded in digital watermarking in picture, referring to attached drawing 1, the specific steps are as follows:
(1) the picture original image and digital watermarking for needing to add digital watermarking are obtained.
In order to carry out subsequent processing, picture original image should be based on RGB mode, and in addition to this, the present invention is to picture original
Figure is without other limitations.
(2) RGB channel layering is carried out to the picture original image, obtains the RGB channel figure layer of original image.
Specifically, the RGB channel point can be carried out using the related separation algorithm in cross-platform vision library OPENCV
Layer, obtains the passage layered figure of R, the passage layered figure of G and channel B hierarchical diagram.
(3) DFT Fourier transformation is carried out to the figure layer of the RGB channel of acquisition respectively, obtains the frequency domain layer figure in each channel
Sample.
Specifically, carrying out Fourier transformation to the passage layered figure of R, the channel R frequency domain layer is obtained;The passage layered figure of G is carried out
Fourier transformation obtains the channel G frequency domain layer;Fourier transformation is carried out to channel B hierarchical diagram, obtains channel B frequency domain layer.
(4) coding of watermark information is carried out respectively to the frequency domain layer of RGB channel.
Specifically, watermark information coding is carried out to the channel R frequency domain layer, to be embedded in corresponding digital watermarking;To the channel G frequency
Domain layer carries out watermark information coding, to be embedded in corresponding digital watermarking;Watermark information coding is carried out to channel B frequency domain layer, from
And it is embedded in corresponding digital watermarking.
The insertion algorithm of above-mentioned DFT Fourier Transform Algorithm and watermark information can be with R. concomitans OPENCV vision library phase
Algorithmic function is closed to complete.
(5) inverse Fourier transform is carried out to the frequency domain layer of the insertion watermark information of RGB channel respectively.
Specifically, inverse Fourier transform is carried out to the channel the R frequency domain layer of insertion digital watermarking, to the G of insertion digital watermarking
Channel frequency domain layer carries out inverse Fourier transform, carries out inverse Fourier transform to the channel B frequency domain layer of insertion digital watermarking.Fourier
Transform algorithm can be completed with related algorithm in R. concomitans OPENCV vision library.
(6) three channels are merged by the figure layer after inverse Fourier transform, superposition generates final insertion water
The picture of official seal breath.
Specific embodiment 2: for the picture for using the method for the present invention insertion digital watermarking, digital watermarking is therefrom extracted, is joined
See attached drawing 2, the specific steps are as follows:
(1) picture for being embedded in watermark information is obtained.
The picture of acquisition should be the picture using the method insertion digital watermarking of above-described embodiment 1.
(2) RGB channel layering is carried out to the picture, obtains the RGB channel figure layer of picture.
Specifically, the RGB channel point can be carried out using the related separation algorithm in cross-platform vision library OPENCV
Layer, obtains the passage layered figure of R, the passage layered figure of G and channel B hierarchical diagram.
(3) Fourier transformation is carried out to the RGB channel figure layer of acquisition respectively, obtains the frequency domain layer in each channel, and will become
Low frequency part after changing moves to picture centre.
Specifically, carrying out Fourier transformation to the passage layered figure of R, the channel R frequency domain layer is obtained;The passage layered figure of G is carried out
Fourier transformation obtains the channel G frequency domain layer;Fourier transformation is carried out to channel B hierarchical diagram, obtains channel B frequency domain layer.Then right
In each above-mentioned frequency domain layer, low frequency part is all moved into picture centre.
(4) watermark decoding operate is carried out respectively to the frequency domain layer in three channels, then by decoded three frequency domain layers into
Row merges superposition, generates the watermark information picture finally extracted.
Watermark information decoding algorithm and merging superposition figure layer algorithm can combine the related algorithm in OPENCV vision library complete
At.
The above description is only a preferred embodiment of the present invention, thus it is all according to the configuration described in the scope of the patent application of the present invention,
The equivalent change or modification that feature and principle are done, is included in the scope of the patent application of the present invention.
Claims (7)
1. a kind of method for adding digital watermarking in picture, which comprises the following steps:
(1) the picture original image and digital watermark information for needing to add digital watermarking are obtained;
(2) RGB channel layering is carried out to the picture original image, obtains the RGB channel figure layer of original image;
(3) DFT Fourier transformation is carried out to the figure layer of the RGB channel of acquisition respectively, obtains the frequency domain layer pattern in each channel;
(4) coding of watermark information is carried out respectively to the frequency domain layer of RGB channel;
(5) inverse Fourier transform is carried out to the frequency domain layer of the insertion watermark information of RGB channel respectively;
(6) three channels are merged by the figure layer after inverse Fourier transform, superposition generates final insertion watermark letter
The picture of breath.
2. the method according to claim 1, wherein being calculated using the related separation in cross-platform vision library OPENCV
Method carries out the RGB channel layering.
3. method according to claim 1 to 2, which is characterized in that Fourier Transform Algorithm, inverse Fourier transform algorithm, water
The embedded mobile GIS of official seal breath uses OPENCV vision library related algorithm function to complete.
4. a kind of method from using extraction digital watermarking in method of claim 1 method picture generated, which is characterized in that packet
Include following steps:
(1) picture for being embedded in watermark information is obtained;
(2) RGB channel layering is carried out to the picture, obtains the RGB channel figure layer of picture;
(3) Fourier transformation is carried out to the RGB channel figure layer of acquisition respectively, obtains the frequency domain layer in each channel, and will be after transformation
Low frequency part move to picture centre;
(4) watermark decoding operate is carried out to the frequency domain layer in three channels respectively, then closes decoded three frequency domain layers
And be superimposed, generate the watermark information picture finally extracted.
5. according to the method described in claim 4, it is characterized in that, watermark information decoding algorithm and merging superposition figure layer algorithm
It can be completed in conjunction with the related algorithm in OPENCV vision library.
6. a kind of system for adding digital watermarking in picture characterized by comprising
Module is obtained, needs to add the picture original image and digital watermark information of digital watermarking for obtaining;
RGB channel hierarchical block obtains the RGB channel figure layer of original image for carrying out RGB channel layering to the picture original image;
Fourier transformation module carries out DFT Fourier transformation for the figure layer respectively to the RGB channel of acquisition, obtains each logical
The frequency domain layer pattern in road;
Watermark encoder module carries out the coding of watermark information for the frequency domain layer to RGB channel respectively;
Frequency domain Fourier inverse transform module, it is inverse that the frequency domain layer for the insertion watermark information respectively to RGB channel carries out Fourier
Transformation;
Frequency domain laminating module, for merging in three channels by the figure layer after inverse Fourier transform, superposition is generated most
The picture of whole insertion watermark information.
7. a kind of system from using extraction digital watermarking in method of claim 1 method picture generated, which is characterized in that packet
It includes:
Module is obtained, for obtaining the picture for being embedded in watermark information;
RGB channel hierarchical block obtains the RGB channel figure layer of picture for carrying out RGB channel layering to the picture;
Fourier transformation module obtains the frequency in each channel for carrying out Fourier transformation to the RGB channel figure layer of acquisition respectively
Domain layer, and transformed low frequency part is moved into picture centre;
Watermark information deciphering module carries out watermark decoding operate for the frequency domain layer to three channels respectively;
Frequency domain laminating module generates the watermark information finally extracted for decoded three frequency domain layers to be merged superposition
Picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910047760.0A CN109785223A (en) | 2019-01-17 | 2019-01-17 | A method of addition digital watermarking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910047760.0A CN109785223A (en) | 2019-01-17 | 2019-01-17 | A method of addition digital watermarking |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109785223A true CN109785223A (en) | 2019-05-21 |
Family
ID=66501734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910047760.0A Pending CN109785223A (en) | 2019-01-17 | 2019-01-17 | A method of addition digital watermarking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109785223A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532740A (en) * | 2019-08-20 | 2019-12-03 | 新华智云科技有限公司 | Image ciphering method, apparatus, the encroach right method of determination and computer storage medium |
CN111105337A (en) * | 2019-12-19 | 2020-05-05 | 腾讯科技(深圳)有限公司 | Watermark processing method, information display method and related device |
CN111784556A (en) * | 2020-06-23 | 2020-10-16 | 中国平安人寿保险股份有限公司 | Method, device, terminal and storage medium for adding digital watermark in image |
CN112580110A (en) * | 2020-12-23 | 2021-03-30 | 国家电网有限公司大数据中心 | Data resource sharing safety method based on watermark technology |
CN113630606A (en) * | 2020-05-07 | 2021-11-09 | 百度在线网络技术(北京)有限公司 | Video watermark processing method and device, electronic equipment and storage medium |
CN115482142A (en) * | 2022-09-27 | 2022-12-16 | 河北纬坤电子科技有限公司 | Dark watermark adding method, extracting method, system, storage medium and terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719265A (en) * | 2010-01-12 | 2010-06-02 | 北京大学 | Digital image watermark embedding method and system thereof based on computer-generated hologram |
CN102592257A (en) * | 2012-01-04 | 2012-07-18 | 上海理工大学 | Cyan, magenta, yellow and black (CMYK) color space-based optical holographic watermark algorithm |
CN105931174A (en) * | 2016-04-12 | 2016-09-07 | 上海理工大学 | High-robustness digital watermarking method making color QR code embedded in color image |
CN109064378A (en) * | 2018-07-25 | 2018-12-21 | 成都睿码科技有限责任公司 | Digital watermark embedding and extracting method based on Fourier transform |
-
2019
- 2019-01-17 CN CN201910047760.0A patent/CN109785223A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719265A (en) * | 2010-01-12 | 2010-06-02 | 北京大学 | Digital image watermark embedding method and system thereof based on computer-generated hologram |
CN102592257A (en) * | 2012-01-04 | 2012-07-18 | 上海理工大学 | Cyan, magenta, yellow and black (CMYK) color space-based optical holographic watermark algorithm |
CN105931174A (en) * | 2016-04-12 | 2016-09-07 | 上海理工大学 | High-robustness digital watermarking method making color QR code embedded in color image |
CN109064378A (en) * | 2018-07-25 | 2018-12-21 | 成都睿码科技有限责任公司 | Digital watermark embedding and extracting method based on Fourier transform |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532740A (en) * | 2019-08-20 | 2019-12-03 | 新华智云科技有限公司 | Image ciphering method, apparatus, the encroach right method of determination and computer storage medium |
CN110532740B (en) * | 2019-08-20 | 2021-09-28 | 新华智云科技有限公司 | Picture encryption method and device, infringement determination method and computer storage medium |
CN111105337A (en) * | 2019-12-19 | 2020-05-05 | 腾讯科技(深圳)有限公司 | Watermark processing method, information display method and related device |
CN113630606A (en) * | 2020-05-07 | 2021-11-09 | 百度在线网络技术(北京)有限公司 | Video watermark processing method and device, electronic equipment and storage medium |
CN113630606B (en) * | 2020-05-07 | 2024-04-19 | 百度在线网络技术(北京)有限公司 | Video watermark processing method, video watermark processing device, electronic equipment and storage medium |
CN111784556A (en) * | 2020-06-23 | 2020-10-16 | 中国平安人寿保险股份有限公司 | Method, device, terminal and storage medium for adding digital watermark in image |
CN111784556B (en) * | 2020-06-23 | 2024-04-02 | 中国平安人寿保险股份有限公司 | Method, device, terminal and storage medium for adding digital watermark in image |
CN112580110A (en) * | 2020-12-23 | 2021-03-30 | 国家电网有限公司大数据中心 | Data resource sharing safety method based on watermark technology |
CN115482142A (en) * | 2022-09-27 | 2022-12-16 | 河北纬坤电子科技有限公司 | Dark watermark adding method, extracting method, system, storage medium and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109785223A (en) | A method of addition digital watermarking | |
CN107742272B (en) | Semi-fragile watermarking method based on image tampering positioning and recovery | |
CN101604440B (en) | Treatment method for reversibly watermarking vector map based on spatial characters | |
CN102880999B (en) | Color image digital watermark method capable of resisting stamping, printing and scanning processes | |
CN101005615A (en) | Embedding and detecting method and system for image data watermark information | |
CN102938841B (en) | Method for hiding information in bearing image, image quality evaluation method and information transmission method | |
CN106097241A (en) | Reversible information hidden method based on eight neighborhood pixel | |
CN101860744B (en) | H.264 standard-based real-time digital video watermarking method | |
Rai et al. | Analysis of image steganography techniques: a survey | |
CN105632506A (en) | Robust digital audio watermark embedding and detection method based on polar harmonic transform | |
CN101860743B (en) | Real-time digital video watermarking method based on MPEG-2 standard | |
CN102523535B (en) | Video stream and global positioning system (GPS) real-time registration and synchronous transmission method based on digital watermarking technology | |
Liu et al. | Optimum detection for spread-spectrum watermarking that employs self-masking | |
CN101847250B (en) | Vector map data blind watermarking method based on DCT (discrete cosine transformation) | |
Malik et al. | Reversible data hiding with multiple data for multiple users in an encrypted image | |
CN103366333A (en) | Standard color space-based color digital holographic watermarking algorithm | |
CN103617589B (en) | A kind of information concealing method based on local histogram | |
CN101430786A (en) | Vector map lossless data hiding method based on vision perception characteristic | |
Wang et al. | A DCT-based blind watermarking algorithm for vector digital maps | |
He et al. | A multi-level privacy-preserving scheme for extracting traffic images | |
Brar et al. | Double layer image security system using encryption and steganography | |
CN103731654A (en) | Information embedding system and information extracting system using 2D/3D videos | |
Ding et al. | Robust blind video watermark algorithm in transform domain combining with 3D video correlation | |
Wu et al. | CEWformer: A Transformer-Based Collaborative Network for Simultaneous Underwater Image Enhancement and Watermarking | |
Li et al. | Large-capacity local multi-dimensional information hiding method for 6g networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |