CN109447888A - A kind of watermark handling method of food packaging false-proof digital image - Google Patents
A kind of watermark handling method of food packaging false-proof digital image Download PDFInfo
- Publication number
- CN109447888A CN109447888A CN201811256196.5A CN201811256196A CN109447888A CN 109447888 A CN109447888 A CN 109447888A CN 201811256196 A CN201811256196 A CN 201811256196A CN 109447888 A CN109447888 A CN 109447888A
- Authority
- CN
- China
- Prior art keywords
- image
- watermark
- watermarking images
- transformation
- discrete cosine
- 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.)
- Withdrawn
Links
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/005—Robust watermarking, e.g. average attack or collusion attack resistant
-
- 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/0065—Extraction of an embedded watermark; Reliable detection
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a kind of watermark handling methods of food packaging false-proof digital image.Specifically include that the two dimensional image of A. acquisition food packaging completes the segmentation and transformation of image by piecemeal two-dimension discrete cosine transform;B. the low frequency component of subimage block after converting is chosen, scramble transformation and discrete cosine transform by watermarking images obtain the discrete cosine transform coefficient of watermarking images;C. it by multiplying property embedding method and stretching factor, will be embedded into food packaging image by the watermarking images of transformation, and complete the detection of watermarking images using correlation detector;D. the inverse process being embedded according to watermark, realizes the extraction of watermarking images, is finally completed the watermark processing of digital picture.This method has good robustness, and can simplify the conversion process of image according to the two-dimension discrete cosine transform algorithm of polynomial transformation, obtains the good watermarking images of concealment, is completed quickly and effectively the watermark processing of digital picture.
Description
Technical field
The present invention relates to a kind of watermark handling methods of false-proof digital image, belong to multimedia technology and Information Hiding Techniques
Field.
Background technique
Know vacation for convenience of consumer and distinguish false, protect the legitimate interests of business and consumer and agent, anti-counterfeit package at
For the indispensable a part of commodity packaging.The watermark processing of current digital image, the scientific and technological content of used anti-counterfeiting technology
It is lower, not only without good stability and it cannot achieve the concealment of watermark information, to influence antifalse effect;Due to water
The scientific and technological content for printing processing is lower, so that criminal is easy to just copy out, anti-counterfeiting technology is Yi Dan not only after counterfeit
Consumer is set to have dust thrown into the eyes, the interests of enterprise also will receive huge loss.
Summary of the invention
To solve the above problems, the purpose of the present invention is to provide a kind of watermark processings of food packaging false-proof digital image
Method, itself has the ability of simplification, and robustness is good.
The present invention solves the problems, such as technical solution used by it, comprising the following steps:
A. the two dimensional image for obtaining food packaging completes the segmentation and change of image by piecemeal two-dimension discrete cosine transform
It changes;
B. the low frequency component of subimage block after selection converts, scramble transformation and discrete cosine transform by watermarking images,
Obtain the discrete cosine transform coefficient of watermarking images;
C. by multiplying property embedding method and stretching factor, food packaging image will be embedded by the watermarking images of transformation
In, and utilize the detection of correlation detector completion watermarking images;
D. the inverse process being embedded according to watermark, realizes the extraction of watermarking images, is finally completed the watermark processing of digital picture.
The beneficial effects of the present invention are:
In complexity in digital figure watermark processing task that is strong and easily distorting, the present invention can stablize, snugly realize
Insertion, detection and the extraction of digital figure watermark, and can be according to the two-dimension discrete cosine transform algorithm of polynomial transformation, simplification figure
The conversion process of picture completes the insertion and extraction of watermarking images using specific key, has simple and direct reliable beneficial effect.
Detailed description of the invention
Fig. 1 is a kind of overall flow figure of the watermark handling method of food packaging false-proof digital image;
Fig. 2 is the scramble transformation of digital watermarking image.
Specific embodiment
Referring to Fig.1, method of the present invention the following steps are included:
A. the two dimensional image for obtaining food packaging completes the segmentation and change of image by piecemeal two-dimension discrete cosine transform
It changes;
(1) image of input is divided into 8 × 8 image block, discrete cosine transform is carried out to each subimage block;
1. the size for assuming food packaging image is M × M, 8 × 8 subimage blocks not overlapped are divided into, it is right
Each image block carries out two-dimension discrete cosine transform and obtains:
Wherein, C (u, v) indicates that the Two Dimension Discrete Cosine of subimage block, P (m, n) indicate picture signal, u, v
Indicate that the pixel of subgraph, k are positive integer, f (u, v) indicates a transformation factor;
2. the value of f (u, v) is determined by the relationship between the pixel of subimage block:
(2) according to the symmetry of two-dimension discrete cosine transform, when carrying out image transformation according to matrix disposal method C=
SPST, simplify the polynomial computation in above-mentioned transformation coefficient, wherein S indicates that image array, P indicate that image, T indicate transposition, C table
Show transformation coefficient;
B. the low frequency component of subimage block after selection converts, scramble transformation and discrete cosine transform by watermarking images,
Obtain the discrete cosine transform coefficient of watermarking images;
(1) pass through transformed food packaging image, all pixels value of image is predominantly located in low frequency component, is obtained
Its low frequency component;
1. M × M image contains the main information of image after the transformation of discrete remainder in the low frequency component of image, main
To be located at the upper left side of image array, and high fdrequency component is located at the lower right of image array;
2. retaining low frequency component by ignoring high fdrequency component, the compression of original image is completed, and obtains the low frequency point of image
Amount;
(2) random number disorder method is used, scramble is carried out to digital watermarking image, and carry out to the image after scramble discrete
Cosine transform;
1. completing the scramble of watermarking images in the form of modulus, image converts formula are as follows:
Wherein, H ' (x, y) indicates that the watermarking images after scramble, H (x, y) indicate original image,Table
Show that transformation matrix, T indicate number of transitions;
2. being converted using above-mentioned formula to original image, wherein being become using t and T as key according to the value of key
Change and generates different watermarking images;
3. 1. carrying out corresponding Block DCT to the watermarking images after scramble using step A- (1)-;
C. by multiplying property embedding method and stretching factor, food packaging image will be embedded by the watermarking images of transformation
In, and utilize the detection of correlation detector completion watermarking images;
(1) according to watermark embedded mode and the suitable insertion channel of detection method selection, watermark figure is determined with insertion coefficient
The embedment strength of picture;
The coefficient sequence of original image for carrying out watermark insertion is known as channel, according to the characteristic of channel pseudo-random distribution and
The good anti-distortion of multiplying property embedded mode realizes that watermark is embedded in using multiplying property embedded mode:
Yμ=C (1+ θ μ)
Wherein, YμImage after expression watermark insertion, C indicate that watermark is embedded in the transformation coefficient of preceding image, θ expression watermark insertion
Intensity, that is, stretching factor, μ indicate the discrete cosine transform coefficient of watermarking images;
(2) similitude between Packaging image and watermarking images is calculated, is wrapped by comparing threshold value and similarity measurement judgement
Whether contain watermark in dress image;
1. calculating the Packaging image after insertion watermark using correlation detectorWith the linear correlation values between watermarking images H:
Compare the size of testing result relation Yu given threshold Z, if relation >=Z, contains water in image
It prints, otherwise no-watermark in image;Wherein M indicates the size of image, and i indicates i-th of subimage block of image;
2. detection threshold value is excessive, the omission factor of image is caused to increase, false alarm rate reduces;When detection threshold value is too small, so that
The false alarm rate of image increases, and omission factor reduces;Detection threshold value is determined using the false alarm rate of image detection, is increased when false alarm rate is larger
Otherwise threshold value reduces threshold value, complete the detection of watermarking images;
D. the inverse process being embedded according to watermark, realizes the extraction of watermarking images, is finally completed the watermark processing of digital picture.
Identical segmentation and transformation are carried out respectively to containing watermarking images and original food product Packaging image, are embedded in using watermark
Key complete watermarking images extraction;
1. containing identical subimage block in segmented image respectively, randomly selects wherein identical pixel and utilize step A
The discrete cosine transform of image is carried out, discrete cosine transform coefficient is obtained:
Wherein, the Two Dimension Discrete Cosine of C ' (u, v) expression subimage block, P ' (m, n) expression picture signal, u,
V indicates that the pixel of subgraph, k are positive integer, and f (u, v) indicates a transformation factor;
2. seed of the key used when embedding a watermark into as random function rand () is containing watermarking images and original graph
Identical subimage block is randomly choosed respectively as in, and obtains the discrete transform coefficient C ' (u, v) and C (u, v) of image block;
3. utilizing
It extracts containing the watermark in watermarking images, wherein L ' (x, y) indicates transformed watermarking images transformation coefficient, and r's takes
Value determines the clarity of watermarking images, and complete clearly watermark information can be extracted when r ∈ [0.025,0.5], is finally completed
The watermark processing of digital picture.
In conclusion just realizing a kind of watermark handling method of food packaging false-proof digital image.It is strong in complexity and
In the digital figure watermark processing task easily distorted, insertion, inspection that the present invention can stablize, snugly realize digital figure watermark
It surveys and extracts, and the conversion process of image can be simplified according to the two-dimension discrete cosine transform method of polynomial transformation, utilization is specific
Key completes the insertion and extraction of watermarking images, has simple and direct reliable beneficial effect.
Claims (5)
1. a kind of watermark handling method of food packaging false-proof digital image, which is characterized in that the described method comprises the following steps:
A. the two dimensional image for obtaining food packaging completes the segmentation and transformation of image by piecemeal two-dimension discrete cosine transform;
B. the low frequency component of subimage block after converting is chosen, scramble transformation and discrete cosine transform by watermarking images obtain
The discrete cosine transform coefficient of watermarking images;
C. by multiplying property embedding method and stretching factor, will be embedded into food packaging image by the watermarking images of transformation,
And the detection of watermarking images is completed using correlation detector;
D. the inverse process being embedded according to watermark, realizes the extraction of watermarking images, is finally completed the watermark processing of digital picture.
2. the watermark handling method of food packaging false-proof digital image according to claim 1, which is characterized in that the step
Suddenly A includes:
(1) image of input is divided into 8 × 8 image block, discrete cosine transform is carried out to each subimage block;
1. the size for assuming food packaging image is M × M, 8 × 8 subimage blocks not overlapped are divided into, to each
Image block carries out two-dimension discrete cosine transform and obtains:
Wherein, C (u, v) indicates that the Two Dimension Discrete Cosine of subimage block, P (m, n) indicate picture signal, and u, v are indicated
The pixel of subgraph, k are positive integer, and f (u, v) indicates a transformation factor;
2. the value of f (u) is determined by the relationship between the pixel of subimage block:
(2) according to the symmetry of two-dimension discrete cosine transform, when carrying out image transformation according to matrix disposal method C=SPST, letter
Change the polynomial computation in above-mentioned transformation coefficient, wherein S indicates that image array, P indicate that image, T indicate that transposition, C indicate transformation
Coefficient.
3. the watermark handling method of food packaging false-proof digital image according to claim 2, which is characterized in that the step
Suddenly B includes:
(1) pass through transformed food packaging image, all pixels value of image is predominantly located in low frequency component, and it is low to obtain its
Frequency component;
1. M × M image contains the main information of image, main position after the transformation of discrete remainder in the low frequency component of image
In the upper left side of image array, and high fdrequency component is located at the lower right of image array;
2. retaining low frequency component by ignoring high fdrequency component, the compression of original image is completed, and obtain the low frequency component of image;
(2) random number disorder method is used, scramble is carried out to digital watermarking image, and discrete cosine is carried out to the image after scramble
Transformation;
1. completing the scramble of watermarking images in the form of modulus, image converts formula are as follows:
Wherein, H'(x, y) indicate that the watermarking images after scramble, H (x, y) indicate original image,Indicate transformation
Matrix, T indicate number of transitions;
2. being converted using above-mentioned formula to original image, wherein being changed according to the value of key and being produced using t and T as key
Raw different watermarking images;
3. 1. carrying out corresponding Block DCT to the watermarking images after scramble using step A- (1)-.
4. the watermark handling method of food packaging false-proof digital image according to claim 3, which is characterized in that the step
Suddenly C includes:
(1) according to watermark embedded mode and the suitable insertion channel of detection method selection, watermarking images are determined with insertion coefficient
Embedment strength;
The coefficient sequence for carrying out the original image of watermark insertion is known as channel, according to the characteristic of channel pseudo-random distribution and multiplying property
The good anti-distortion of embedded mode realizes that watermark is embedded in using multiplying property embedded mode:
Yμ=C (1+ θ μ)
Wherein, YμImage after expression watermark insertion, C indicate that watermark is embedded in the transformation coefficient of preceding image, θ expression watermark embedment strength
That is stretching factor, μ indicate the discrete cosine transform coefficient of watermarking images;
(2) similitude between Packaging image and watermarking images is calculated, by comparing threshold value and similarity measurement judgement packaging figure
Whether contain watermark as in;
1. calculating the Packaging image after insertion watermark using correlation detectorWith the linear correlation values between watermarking images H:
Compare the size of testing result relation Yu given threshold Z, if relation >=Z, contains watermark in image, it is no
Then no-watermark in image;Wherein M indicates the size of image, and i indicates i-th of subimage block of image;
2. detection threshold value is excessive, the omission factor of image is caused to increase, false alarm rate reduces;When detection threshold value is too small, so that image
False alarm rate increase, omission factor reduce;Detection threshold value is determined using the false alarm rate of image detection, increases threshold when false alarm rate is larger
Value, otherwise reduces threshold value, completes the detection of watermarking images.
5. the watermark handling method of food packaging false-proof digital image according to claim 4, which is characterized in that the step
Suddenly D includes:
Identical segmentation and transformation are carried out respectively to containing watermarking images and original food product Packaging image, are embedded in using watermark close
The extraction of key completion watermarking images;
1. containing identical subimage block in segmented image respectively, randomly selects wherein identical pixel and carried out using step A
The discrete cosine transform of image obtains discrete cosine transform coefficient:
Wherein, C'(u, v) indicate subimage block Two Dimension Discrete Cosine, P'(m, n) indicate picture signal, u, v table
Show that the pixel of subgraph, k are positive integer, f (u, v) indicates a transformation factor;
2. seed of the key used when embedding a watermark into as random function rand (), in containing watermarking images and original image
Identical subimage block is randomly choosed respectively, and obtains discrete transform the coefficient C'(u, v of image block) and C ();
3. utilizing
Extract containing the watermark in watermarking images, wherein L'(x, y) indicate transformed watermarking images transformation coefficient, the value of r is determined
The clarity for determining watermarking images can extract complete clearly watermark information when r ∈ [0.025,0.5], be finally completed number
The watermark processing of image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811256196.5A CN109447888A (en) | 2018-10-26 | 2018-10-26 | A kind of watermark handling method of food packaging false-proof digital image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811256196.5A CN109447888A (en) | 2018-10-26 | 2018-10-26 | A kind of watermark handling method of food packaging false-proof digital image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109447888A true CN109447888A (en) | 2019-03-08 |
Family
ID=65548728
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811256196.5A Withdrawn CN109447888A (en) | 2018-10-26 | 2018-10-26 | A kind of watermark handling method of food packaging false-proof digital image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109447888A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021023085A1 (en) * | 2019-08-02 | 2021-02-11 | 北京大米科技有限公司 | Watermark adding method and apparatus, watermark recognition method and apparatus, and electronic device |
-
2018
- 2018-10-26 CN CN201811256196.5A patent/CN109447888A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021023085A1 (en) * | 2019-08-02 | 2021-02-11 | 北京大米科技有限公司 | Watermark adding method and apparatus, watermark recognition method and apparatus, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Duan et al. | A new high capacity image steganography method combined with image elliptic curve cryptography and deep neural network | |
Bravo-Solorio et al. | Automated detection and localisation of duplicated regions affected by reflection, rotation and scaling in image forensics | |
Wang et al. | A robust blind color image watermarking in quaternion Fourier transform domain | |
CN110766594B (en) | Information hiding method and device, detection method and device and anti-counterfeiting tracing method | |
Fadl et al. | Robust copy–move forgery revealing in digital images using polar coordinate system | |
Han et al. | Content-based image authentication: current status, issues, and challenges | |
CN102194208B (en) | Image falsification detecting and falsification positioning method based on image signature | |
Hadmi et al. | Perceptual image hashing | |
CN103974144A (en) | Video digital watermarking method based on characteristic scale variation invariant points and microscene detection | |
Hou et al. | Detection of hue modification using photo response nonuniformity | |
Xijin et al. | The application research of MD5 encryption algorithm in DCT digital watermarking | |
CN115482142A (en) | Dark watermark adding method, extracting method, system, storage medium and terminal | |
CN104978706B (en) | Watermark embedding and extracting method, device and system based on Fourier descriptor | |
El-Shafai et al. | A comprehensive taxonomy on multimedia video forgery detection techniques: challenges and novel trends | |
CN102419979A (en) | Audio semi-fragile watermarking algorithm for realizing precise positioning of altered area | |
Guan et al. | An effective image steganalysis method based on neighborhood information of pixels | |
Sharma et al. | A review of passive forensic techniques for detection of copy-move attacks on digital videos | |
CN109447888A (en) | A kind of watermark handling method of food packaging false-proof digital image | |
Conotter | Active and passive multimedia forensics | |
Ishizuka et al. | A zero-watermarking-like steganography and potential applications | |
Pan et al. | Chi-square detection for PVD steganography | |
Nguyen et al. | Radon transform-based secure image hashing | |
Chalamala et al. | Local binary patterns for digital image watermarking | |
Dommeti et al. | Comparative Stratification of Steganalysis Techniques to Interpret & Target Anomalies | |
Dattatherya et al. | A generalized image authentication based on statistical moments of color histogram |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190308 |
|
WW01 | Invention patent application withdrawn after publication |