CN110675304A - Picture watermark encoding method - Google Patents

Picture watermark encoding method Download PDF

Info

Publication number
CN110675304A
CN110675304A CN201810720743.4A CN201810720743A CN110675304A CN 110675304 A CN110675304 A CN 110675304A CN 201810720743 A CN201810720743 A CN 201810720743A CN 110675304 A CN110675304 A CN 110675304A
Authority
CN
China
Prior art keywords
watermark
picture
image
code
dot
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
Application number
CN201810720743.4A
Other languages
Chinese (zh)
Inventor
吴永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Huaruan Goldencis Software Co Ltd
Original Assignee
Shandong Huaruan Goldencis Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shandong Huaruan Goldencis Software Co Ltd filed Critical Shandong Huaruan Goldencis Software Co Ltd
Priority to CN201810720743.4A priority Critical patent/CN110675304A/en
Publication of CN110675304A publication Critical patent/CN110675304A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

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

A picture watermark coding method comprises the following steps: firstly, generating a watermark code: a32-bit number is calculated for information with any length, marked as watermark information, and the number is marked as a watermark code. Secondly, generating a watermark dot matrix diagram: generating a dot matrix picture for the watermark code, and recording the dot matrix picture as a watermark dot matrix, wherein the watermark code is a 32-bit number; thirdly, generating an original watermark image, namely tiling a plurality of watermark dot matrixes to make redundancy, splicing the watermark dot matrixes into a larger picture, and recording the larger picture as the original watermark image. Fourthly, generating a watermark image: and scaling the original watermark image according to the size of the image to be watermarked to form a new image which is recorded as a watermark image. And step five, superposing the watermark on the original image: and (4) superposing the watermark image and the picture to be watermarked to form the final picture with the watermark. The watermark generated by the invention does not directly display characters, but is in a dot matrix watermark mode, and the dot matrixes cannot be restored into specific information by naked eyes, so that the concealment is strong.

Description

Picture watermark encoding method
Technical Field
The invention belongs to the technical field of image processing, and particularly relates to a picture watermark encoding method.
Background
In image copyright protection, an image watermarking technology is often used, namely, a mark of an image provider is added to an image, so that the source of the image is indicated, and the image is prevented from being stolen. If pictures published on a large number of websites are frequently marked with LOGO of the website in corners to indicate that the source and version of the pictures belong to the website, a remarkable warning effect can be provided for persons with stealing attempts. The reprinter can choose to abandon the use based on legal risk, and the mode that adopts at present all is simply adding the characters that people can be discerned by naked eyes in four corners basically, but if to the higher occasion of image protection requirement, it is also not enough only to add watermark characters in the corner, and the thief can simply remove the watermark region through image cutting and use, and the version side is difficult to hold the malicious attempt of thief like this, does not play very strong guard action. In addition, a method is adopted to cover the character watermark on the whole picture, so that the problem of embezzlement is solved, the viewing experience of the picture is seriously influenced due to overlarge watermark area, and if characters are printed on the whole picture, the original content is covered by too much parts, so that the content on the picture is difficult to read. The watermark is displayed in a text mode, the amount of carried information is small, if only one company name can be displayed, more texts are displayed, and the reading of image content is influenced.
Disclosure of Invention
In order to solve the technical problem, the invention provides a picture watermark encoding method. The method adds watermarks as much as possible on the premise of not influencing the observation experience, and can encode any length of information on the picture in an index mode. According to the scheme, characters are not directly displayed, but a dot matrix type watermark mode is adopted, a picture viewer can see some small dots on the picture, the dot matrixes cannot be restored into specific information through naked eyes, and the concealment is strong.
In order to achieve the purpose, the invention adopts the technical scheme that the method comprises the following steps:
firstly, generating a watermark code: a32-bit number is calculated for information with any length, marked as watermark information, and the number is marked as a watermark code.
Secondly, generating a watermark dot matrix diagram: generating a dot matrix picture for the watermark code, and recording the dot matrix picture as a watermark dot matrix, wherein the watermark code is a 32-bit number;
thirdly, generating an original watermark image, namely tiling a plurality of watermark dot matrixes to make redundancy, splicing the watermark dot matrixes into a larger picture, and recording the larger picture as the original watermark image.
Fourthly, generating a watermark image: and scaling the original watermark image according to the size of the image to be watermarked to form a new image which is recorded as a watermark image.
And step five, superposing the watermark on the original image: and (4) superposing the watermark image and the picture to be watermarked to form the final picture with the watermark.
In order to further realize the invention, the technical scheme can be also adopted as follows: the first step watermark code is a checksum calculated by performing CRC32 on the watermark information, and the watermark code is subject to the shortest rule. The 32-bit number in the second step is a dot matrix and is a 6 x 6 matrix, wherein the extra 4 dots are used for verification. The first bit is used as a start mark of the dot matrix, the later 32 bits are used for coding, the 32-bit watermark code is converted into a binary system, one dot is printed on the part of the binary system 1, and no dot is printed on the part of the binary system 0; the start marker is larger than a dot of the data portion. The watermark is spread over the entire picture. And in the fourth step, the length and the width of the watermark original image are adjusted to be consistent with the picture to be covered to form a new watermark image.
The invention has the beneficial effects that: the invention solves the watermark problem well under the condition of not influencing picture browsing, has high watermark strength, and can code information with any length on the picture in an index mode. The scheme does not directly display characters, but uses a dot matrix type watermark mode, a picture viewer can see some small dots on the picture, but the dot matrixes cannot be restored into specific information through naked eyes, the concealment is strong, additional extra information is more, the operation is simple, and the implementation is easy.
Description of the drawings:
FIG. 1 is a flow chart of the present invention;
FIG. 2 is an illustration of generating a watermark lattice according to the present invention;
fig. 3 is a schematic diagram of an image effect generated by the embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A picture watermark encoding method, as shown in fig. 1, includes the following steps:
1. firstly, generating a watermark code: a32-bit number is calculated for information with any length, which is recorded as watermark information, and the number is recorded as a watermark code. The watermark code is generated for the watermark information with any length, the watermark code is as short as possible, so that fewer pixels are occupied when the dot matrix image is generated in the next step, and the influence on the image is smaller when the dot matrix image is finally covered on a real image. The scheme uses a 32-bit integer as the watermark code, and the scheme uses the watermark information to carry out CRC32 calculated checksum as the watermark code.
Secondly, generating a watermark dot matrix diagram: generating a dot matrix picture for the watermark code, and recording the dot matrix picture as a watermark dot matrix, wherein the watermark code is a 32-bit number; the 32-bit digital code is coded into a lattice by using pixels, the 6 x 6 lattice can be approximately used, 4 more points can be used for other purposes or verification, the first bit is used as a starting mark of the lattice, the later 32 bits are used for coding, the 32-bit watermark code is converted into a binary system, one point can be marked on the part of the binary system 1, and no point is marked on the part of the binary system 0. The start mark may be larger than the point of the data portion, so that it is clearly distinguishable where the start is, which is crucial for later retrieval of the watermark code by the picture. For example, if the number 0xd9aee7d3 is converted into 11011001101011101110011111010011, the watermark lattice is generated as shown in fig. 2 (black indicates transparent part):
thirdly, generating an original watermark image, namely tiling a plurality of watermark dot matrixes to make redundancy, splicing the watermark dot matrixes into a larger picture, and recording the larger picture as the original watermark image. If the watermark only covers one part of the picture, only the watermark part needs to be cut off, and other parts have no self-protection capability, so that the watermark has to be paved in the whole picture. If only one watermark dot matrix is stretched to fully cover the whole image, the image cannot be restored after being partially damaged (if one white dot is painted with other colors), so that enough redundancy is needed, a plurality of watermark dot matrix images can be repeatedly displayed, a certain number of watermark dot matrixes can be generated according to parameters, and the watermark dot matrixes are spliced to form a large image, namely the watermark original image. If 4 copies can be displayed in the horizontal direction and 3 copies in the vertical direction, 12 copies of the watermark lattice can be generated into a watermark original image.
2. Fourthly, generating a watermark image: and scaling the original watermark image according to the size of the image to be watermarked to form a new image which is recorded as a watermark image. The length and width of the original watermark image may not be consistent with the image to be covered, so that the original watermark image needs to be stretched or compressed to a specified size, the step is simple, and the original watermark image is scaled and compressed according to the specified size.
And step five, superposing the watermark on the original image: and (4) superposing the watermark image and the picture to be watermarked to form the final picture with the watermark. The watermark image generated in the last step is directly superposed with the real image to be protected to form a final image, and the final image is synthesized by noting that the black part generated in the last steps is actually transparent, as shown in fig. 3, a plurality of small white dots are displayed in the image and can not obviously reduce the image browsing experience, so that after the image is embezzled, the embezzled image is only required to be taken to be manually operated or even to be written with a computer program to reduce the watermark point in the image into a watermark code, and then the corresponding record is found out from the database, so that all information before the image is published can be mentioned.
The picture is watermarked by the scheme and then is published on a website, and the picture is discovered from other websites later, so that the picture is really stolen from my places. The method comprises the steps of firstly downloading pictures of other websites, wherein compression possibly exists in the picture transferring process, so that picture quality loss is serious, even noise exists, because redundancy is considered, firstly, an identifiable region with better picture quality is found out from the pictures, 12 parts in the example are only identifiable as long as 1 part, the position of a small white point is copied, a binary code is directly read out, then, a two-process code is converted into a code with 16 bits or 10 bits, finally, a corresponding record is found out from a database, and watermark information when the pictures are published is taken out, so that evidence is obtained.
The invention solves the watermark problem well under the condition of not influencing picture browsing, has high watermark strength, and can code information with any length on the picture in an index mode. The scheme does not directly display characters, but uses a dot matrix type watermark mode, a picture viewer can see some small dots on the picture, but the dot matrixes cannot be restored into specific information through naked eyes, the concealment is strong, additional extra information is more, the operation is simple, and the implementation is easy.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments or portions thereof without departing from the spirit and scope of the invention.

Claims (6)

1. A picture watermark encoding method is characterized in that: the specific steps are
Firstly, generating a watermark code: a32-bit number is calculated for information with any length, marked as watermark information, and the number is marked as a watermark code.
Secondly, generating a watermark dot matrix diagram: generating a dot matrix picture for the watermark code, and recording the dot matrix picture as a watermark dot matrix, wherein the watermark code is a 32-bit number;
thirdly, generating an original watermark image, namely tiling a plurality of watermark dot matrixes to make redundancy, splicing the watermark dot matrixes into a larger picture, and recording the larger picture as the original watermark image.
Fourthly, generating a watermark image: and scaling the original watermark image according to the size of the image to be watermarked to form a new image which is recorded as a watermark image.
And step five, superposing the watermark on the original image: and (4) superposing the watermark image and the picture to be watermarked to form the final picture with the watermark.
2. The picture watermarking encoding method of claim 1, wherein: the first step watermark code is a checksum calculated by performing CRC32 on the watermark information, and the watermark code is subject to the shortest rule.
3. The picture watermarking encoding method of claim 1, wherein: the 32-bit number in the second step is a dot matrix and is a 6 x 6 matrix, wherein the extra 4 dots are used for verification.
4. A picture watermark encoding method according to claim 3, wherein: the first bit is used as a start mark of the dot matrix, the later 32 bits are used for coding, the 32-bit watermark code is converted into a binary system, one dot is printed on the part of the binary system 1, and no dot is printed on the part of the binary system 0; the start marker is larger than a dot of the data portion.
5. The picture watermarking encoding method of claim 1, wherein: the watermark is spread over the entire picture.
6. The picture watermarking encoding method of claim 1, wherein: and in the fourth step, the length and the width of the watermark original image are adjusted to be consistent with the picture to be covered to form a new watermark image.
CN201810720743.4A 2018-07-03 2018-07-03 Picture watermark encoding method Pending CN110675304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810720743.4A CN110675304A (en) 2018-07-03 2018-07-03 Picture watermark encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810720743.4A CN110675304A (en) 2018-07-03 2018-07-03 Picture watermark encoding method

Publications (1)

Publication Number Publication Date
CN110675304A true CN110675304A (en) 2020-01-10

Family

ID=69065572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810720743.4A Pending CN110675304A (en) 2018-07-03 2018-07-03 Picture watermark encoding method

Country Status (1)

Country Link
CN (1) CN110675304A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488902A (en) * 2020-12-21 2021-03-12 重庆紫光华山智安科技有限公司 Optimization method, system, medium and terminal for self-adaptive hidden watermark
CN113129199A (en) * 2021-05-10 2021-07-16 杭州天宽科技有限公司 Dark watermark protection method based on Android platform
CN113496451A (en) * 2020-04-07 2021-10-12 奇安信科技集团股份有限公司 Watermark adding method and device and screen image leakage tracking method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790420A (en) * 2005-12-01 2006-06-21 北京北大方正电子有限公司 Method and apparatus for embedding and detecting digital watermark in text file
CN101807402A (en) * 2010-03-10 2010-08-18 苏州大学 Method for embedding character information in broadcasting signal
CN102222504A (en) * 2011-06-10 2011-10-19 深圳市金光艺科技有限公司 Digital audio multilayer watermark implanting and extracting method
CN103606127A (en) * 2013-12-03 2014-02-26 中国科学院大学 Anti-copying image watermarking method based on optical microstructure
CN106384328A (en) * 2016-11-07 2017-02-08 武汉圆周率软件科技有限公司 Image digital copyright protecting method and image digital copyright protecting system based on frequency domain digital watermarking algorithm
CN106385539A (en) * 2016-09-22 2017-02-08 深圳市思创奇科技有限公司 Photograph processing method and system
CN106686333A (en) * 2016-11-02 2017-05-17 四川秘无痕信息安全技术有限责任公司 Method for producing video added watermarks for Android equipment
CN107391976A (en) * 2017-08-18 2017-11-24 北京明朝万达科技股份有限公司 A kind of document protection method and apparatus based on ambient noise and vector watermark
CN107423588A (en) * 2017-07-24 2017-12-01 中国地质大学(武汉) A kind of common map symbol library copy-right protection method based on Human Visual System

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790420A (en) * 2005-12-01 2006-06-21 北京北大方正电子有限公司 Method and apparatus for embedding and detecting digital watermark in text file
CN101807402A (en) * 2010-03-10 2010-08-18 苏州大学 Method for embedding character information in broadcasting signal
CN102222504A (en) * 2011-06-10 2011-10-19 深圳市金光艺科技有限公司 Digital audio multilayer watermark implanting and extracting method
CN103606127A (en) * 2013-12-03 2014-02-26 中国科学院大学 Anti-copying image watermarking method based on optical microstructure
CN106385539A (en) * 2016-09-22 2017-02-08 深圳市思创奇科技有限公司 Photograph processing method and system
CN106686333A (en) * 2016-11-02 2017-05-17 四川秘无痕信息安全技术有限责任公司 Method for producing video added watermarks for Android equipment
CN106384328A (en) * 2016-11-07 2017-02-08 武汉圆周率软件科技有限公司 Image digital copyright protecting method and image digital copyright protecting system based on frequency domain digital watermarking algorithm
CN107423588A (en) * 2017-07-24 2017-12-01 中国地质大学(武汉) A kind of common map symbol library copy-right protection method based on Human Visual System
CN107391976A (en) * 2017-08-18 2017-11-24 北京明朝万达科技股份有限公司 A kind of document protection method and apparatus based on ambient noise and vector watermark

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113496451A (en) * 2020-04-07 2021-10-12 奇安信科技集团股份有限公司 Watermark adding method and device and screen image leakage tracking method and device
CN112488902A (en) * 2020-12-21 2021-03-12 重庆紫光华山智安科技有限公司 Optimization method, system, medium and terminal for self-adaptive hidden watermark
CN112488902B (en) * 2020-12-21 2024-02-06 重庆紫光华山智安科技有限公司 Optimization method, system, medium and terminal for self-adaptive hidden watermark
CN113129199A (en) * 2021-05-10 2021-07-16 杭州天宽科技有限公司 Dark watermark protection method based on Android platform
CN113129199B (en) * 2021-05-10 2023-03-07 杭州天宽科技有限公司 Dark watermark protection method based on Android platform

Similar Documents

Publication Publication Date Title
KR101361591B1 (en) Covert and robust mark for media identification
US6523114B1 (en) Method and apparatus for embedding authentication information within digital data
US8194917B2 (en) Progressive image quality control using watermarking
US8019116B2 (en) Content processing methods using reversible watermarking
Singh Digital watermarking: a tutorial
Langelaar et al. Copy protection for multimedia data based on labeling techniques
US20130028466A1 (en) Embedding and Detecting Hidden Information
CN111680273B (en) Watermark embedding method, watermark embedding device, electronic equipment and readable storage medium
CN110675304A (en) Picture watermark encoding method
Lefèvre et al. Efficient image tampering localization using semi-fragile watermarking and error control codes
Lu et al. Lossless information hiding in images
Chang et al. An effective image self-recovery based fragile watermarking using self-adaptive weight-based compressed AMBTC
US20040151313A1 (en) Digital watermark with variable location
CN111836054B (en) Video anti-piracy method, electronic device and computer readable storage medium
Garcia Freitas et al. Secure self-recovery watermarking scheme for error concealment and tampering detection
JP5508896B2 (en) Image processing method
US20140049802A1 (en) System and method for digital analysis of authenticity and integrity of documents using portable devices
JP3881810B2 (en) Digital watermark with adjustable watermark mark visibility
JP2000106624A (en) Data processing unit, method and computer-readable storage medium
JP3499294B2 (en) Document security management method and image processing apparatus
Aliwa et al. Robust digital watermarking based falling-off-boundary in corners board-MSB-6 gray scale images
CN110648271A (en) Method for embedding digital watermark in halftone image by using special dots
CN117499665B (en) Image data embedding and extracting method and device based on gray value quantization
Stanescu et al. A hybrid watermarking technique using singular value decomposition
CN113538198B (en) Watermark adding method, device, storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200110

RJ01 Rejection of invention patent application after publication