CN103530843B - A kind of photo watermark embedding based on color information compression and removing method - Google Patents

A kind of photo watermark embedding based on color information compression and removing method Download PDF

Info

Publication number
CN103530843B
CN103530843B CN201310477833.2A CN201310477833A CN103530843B CN 103530843 B CN103530843 B CN 103530843B CN 201310477833 A CN201310477833 A CN 201310477833A CN 103530843 B CN103530843 B CN 103530843B
Authority
CN
China
Prior art keywords
watermark
region
pixel
photo
word
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.)
Active
Application number
CN201310477833.2A
Other languages
Chinese (zh)
Other versions
CN103530843A (en
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.)
Nanjing Fenglijian Information Technology Co Ltd
Original Assignee
Hangzhou Dianzi University
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 Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN201310477833.2A priority Critical patent/CN103530843B/en
Publication of CN103530843A publication Critical patent/CN103530843A/en
Application granted granted Critical
Publication of CN103530843B publication Critical patent/CN103530843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of photo watermark embedding based on color information compression and removing method.Three parts are removed including watermarking arrangements, watermark embedding and watermark, watermarking arrangements is the Pixel Information that default all word grids turn to latticed form, then for each word lattice figure increases the identifier preventing flase drop, map masterplate as watermark to be embedded and preserve.The step that watermark embeds is: specify watermark to embed region in photo;From watermark mapping template, select the dot chart of preembedded Word message, be mapped to watermark and specify embedding region;On the photo covered word lattice figure, preimage element carries out color information compression, high-order at pixel binary code embeds watermark detection code, the step that watermark removes is: embeds region in watermark, travels through all pixels, determines doubtful watermark region by detection watermark detection code;In this region, detect flase drop identifier, the pixel detected is carried out watermark detection code and removes;Pixel is carried out colouring information reduction.

Description

A kind of photo watermark embedding based on color information compression and removing method
Technical field
The present invention relates to image processing field, relate to a kind of photo watermark embedding based on color information compression and removing method.
Technical background
Owing to taking pictures of digital camera is convenient and swift, digital camera is taken pictures now is to become more and more popular, but being likely to be due to the embedding of shooting date watermark in photo and can affect photo aesthetic feeling, or the important information in photo has been blocked in watermark, this is accomplished by watermark information removing.
But, the shooting date watermark information of photo all has specific characteristics in color and position, it is still desirable to manually watermark region being carried out selection and remove to carry out watermark, efficiency is low, but also is likely to result in and smears by mistake.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, it is proposed that a kind of method that photo watermark based on color information compression embeds and removes.
For solving above-mentioned technical problem, the photo that the present invention proposes embeds and removes shooting date watermark information technology and includes that watermarking arrangements, watermark embedding and watermark remove three parts.
Watermarking arrangements comprises the following steps:
1) preset the word needing to embed the watermark information in photo, the vectogram grid of all words is turned to bitmap, obtain the Pixel Information of latticed form;
2) in the most descending Pixel Information of each connected region of each word lattice figure, there was added the identifier preventing flase drop of special pixel arrangement;
3) as watermark to be embedded, each word lattice figure with flase drop identifier is mapped masterplate to be saved in data base, in case calling when subsequent watermark embeds;
Watermark embeds and comprises the following steps:
1) it is that embedding region is specified in the watermark with word as content in photo;
2) according to preembedded Word message, from watermark mapping template, the corresponding word lattice figure with flase drop identifier is selected;
3) selected word lattice figure is mapped to watermark and specifies embedding region;
4) on the photo covered by word lattice figure, preimage element carries out color information compression;
5) high position for the pixel binary code after compression being carried out watermark detection code embedding, this watermark detection code plays two effects: a) convenient detection embeds the position of watermark;B) color contrast of this pixel and periphery non-watermark area pixel is increased.
Watermark removes and comprises the following steps:
1) detection watermark: embed region in default watermark, travel through all pixels, determines doubtful watermark region by detection watermark detection code;
2) in doubtful watermark region, detect default flase drop identifier, determine the location of pixels containing watermark information with this;
3) pixel detected is carried out watermark detection code to remove;
4) pixel of previous step is carried out colouring information reduction.
The identifier of described flase drop be each word lattice figure each connected region the most descending in leftmost pixel toward moving left one, or for rightmost pixel in the most descending in each connected region of each word lattice figure toward moving right an a kind of special arrangement formed.
Beneficial effect: when this method is possible not only to realize photograph taking, the embedding of date watermark information also achieves removing of watermark, reverts to color in original photo, is the method for very useful a kind of photo watermark processing.
Detailed description of the invention:
Watermarking arrangements is divided into following three steps: (1) presets the word needing to embed the watermark information in photo, and the vectogram grid of all words turns to bitmap, obtains the Pixel Information of latticed form;(2) in the most descending Pixel Information of each connected region of each word lattice figure, there was added the identifier preventing flase drop of special pixel arrangement, such as, each word lattice figure each connected region the most descending in leftmost pixel toward moving left one so that in connected region, leftmost three pixels of this row form the identifier preventing flase drop of " black and white is black " three dot information;(3) as watermark to be embedded, each word lattice figure with flase drop identifier is mapped masterplate to be saved in data base, in case calling when subsequent watermark embeds.
Specifying for the watermark with word as content in photo in watermark embedding embeds region and is divided into following steps: (1) obtains photo length and wide information from photo files head;(2) utilize length and width that photo is divided into equirotal four pieces of regions;(3) region in the lower right corner divides a zonule and specifies embedding region as watermark;(4) watermark is specified embedding region be equally divided into and embed the zonule that text watermark number is equal.
The each word lattice figure with flase drop identifier designed is mapped in the zonule that the equivalent division embedding region is specified in watermark.
On the photo covered word lattice figure, preimage element carries out color information compression: in embedding region is specified in watermark, the three-channel binary digit of RGB of native color pixel carries out right-shift operation according to the coding rule of detection code, such as, the R channel binary gt 2 of pixel;G channel binary gt 1;Channel B binary digit moves to right 2.
A high position for pixel binary code after compression is carried out watermark detection code embedding: high two of the binary system code bit of the colored pixels after compressing in each zonule embed one group of detection code, high 2 of such as R channel binary position is " 10 ", high 1 of G channel binary position is " 0 ", and high 2 of channel B binary digit is " 00 ".
Watermark detection comprises the following steps: (1) embeds region in default watermark, and first pixel starts, from left to right, from top to bottom, scan each point successively, if high 2 information of pixel RGB binary system code bit are consistent with detection code, then be defined as doubtful watermark region;(2) in doubtful watermark region, detect the next line pixel of connected region, if front several pixel meets default flase drop identification condition, such as, in connected region, leftmost three pixels of this row form " black and white is black " three dot information, it is determined that this connected region is the position containing watermark information.
Watermark removes and comprises the following steps: the binary digit that the RGB triple channel of (1) all colours pixel to detecting comprises detection code carries out zero setting, remove watermark detection code, such as, former detection code be set to R passage high 2 for " 10 ", then be " 00 " by high for R passage 2 positions;(2) when embedding according to above watermark, the shift rule of color compressed inversely shifts, carry out colouring information reduction, watermark is made to remove, such as, the all colours pixel detected is carried out R channel binary code bit and moves to left 2, G channel binary code bit moves to left 1, channel B binary code lt 2.

Claims (1)

1. photo watermark embedding based on color information compression and a removing method, including watermarking arrangements, Watermark embedding and watermark remove three parts, it is characterised in that: described watermarking arrangements comprises the following steps:
1) word needing to embed the watermark information in photo is preset, by the vectogram rasterizing of all words For bitmap, obtain the Pixel Information of latticed form;
2) in the most descending Pixel Information of each connected region of each word lattice figure, there was added special picture The identifier preventing flase drop of element arrangement;
3) as watermark to be embedded, each word lattice figure with flase drop identifier is mapped masterplate to preserve In data base, in case calling when subsequent watermark embeds;
Described watermark embeds and comprises the following steps:
1) it is that embedding region is specified in the watermark with word as content in photo;
2) according to preembedded Word message, from watermark mapping template, corresponding identifying with flase drop is selected The word lattice figure of symbol;
3) selected word lattice figure is mapped to watermark and specifies embedding region;
4) on the photo covered by word lattice figure, preimage element carries out color information compression;
5) high position for the pixel binary code after compression is carried out watermark detection code embedding;
Watermark removes and comprises the following steps:
1) detection watermark: embed region in default watermark, travel through all pixels, is examined by detection watermark Survey code and determine doubtful watermark region;
2) in doubtful watermark region, detect default flase drop identifier, determine containing watermark information with this Location of pixels;
3) pixel detected is carried out watermark detection code to remove;
4) pixel of previous step is carried out colouring information reduction;
The identifier of described flase drop be each word lattice figure each connected region the most descending in The pixel on the left side is toward moving left an a kind of special arrangement formed or at each word lattice figure Each connected region the most descending in rightmost pixel toward move right one formed a kind of special row Row.
CN201310477833.2A 2013-10-14 2013-10-14 A kind of photo watermark embedding based on color information compression and removing method Active CN103530843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310477833.2A CN103530843B (en) 2013-10-14 2013-10-14 A kind of photo watermark embedding based on color information compression and removing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310477833.2A CN103530843B (en) 2013-10-14 2013-10-14 A kind of photo watermark embedding based on color information compression and removing method

Publications (2)

Publication Number Publication Date
CN103530843A CN103530843A (en) 2014-01-22
CN103530843B true CN103530843B (en) 2016-08-10

Family

ID=49932827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310477833.2A Active CN103530843B (en) 2013-10-14 2013-10-14 A kind of photo watermark embedding based on color information compression and removing method

Country Status (1)

Country Link
CN (1) CN103530843B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765349A (en) * 2018-05-31 2018-11-06 四川斐讯信息技术有限公司 A kind of image repair method and system with watermark

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107578366B (en) * 2017-09-18 2020-06-19 南京师范大学 Watermark information embedding and detecting method and device
CN108319945A (en) * 2018-01-09 2018-07-24 佛山科学技术学院 A kind of separate type OCR recognition methods and its system
CN112000303B (en) * 2020-08-26 2024-05-14 杭州网易再顾科技有限公司 Processing method and device capable of realizing watermark printing, electronic equipment and storage medium
CN112801844A (en) * 2021-01-19 2021-05-14 广州数智网络科技有限公司 Reversible watermark of high-fidelity semi-fragile two-dimensional vector diagram

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4164463B2 (en) * 2003-06-03 2008-10-15 キヤノン株式会社 Information processing apparatus and control method thereof
CN100461213C (en) * 2007-04-05 2009-02-11 上海交通大学 Lossless digital watermark method having regioselectivity
CN101166260B (en) * 2007-09-12 2012-07-04 华为技术有限公司 Method and device for image coding and watermark removal
CN102270335A (en) * 2010-06-03 2011-12-07 三星电子(中国)研发中心 Method for embedding additional information into image
CN101916427B (en) * 2010-08-10 2012-01-25 浙江大学 Spatial domain-based image watermark adding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765349A (en) * 2018-05-31 2018-11-06 四川斐讯信息技术有限公司 A kind of image repair method and system with watermark

Also Published As

Publication number Publication date
CN103530843A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN103530843B (en) A kind of photo watermark embedding based on color information compression and removing method
US20190228529A1 (en) Image Segmentation Method, Apparatus, and Fully Convolutional Network System
WO2017157034A1 (en) Method, device, and storage medium for identifying two-dimensional code
JP2020017999A5 (en)
CN109862389B (en) Video processing method, device, server and storage medium
US20130222424A1 (en) Object display device and object display method
KR101817153B1 (en) Information insertion method, information extraction method and information extraction apparatus using dot based information robust to geometric distortion
US9159112B2 (en) Digital watermarking using saturation patterns
EP1771008A3 (en) Adaptive method and system for encoding digital images for the internet
CN104243769A (en) Video scene change detection method based on self-adaptation threshold value
CN113228101B (en) System and method for image segmentation
CN102169585A (en) Method and device for detecting image color cast
CN102270335A (en) Method for embedding additional information into image
CN105578080A (en) Imaging method, image sensor, imaging device and electronic device
CN102663669A (en) Dual-color digital image blind watermarking method based on Schur decomposition
JP2014149646A (en) Image processing apparatus and method
CN103617591A (en) Dual-color image blind watermarking method based on QR decomposition and compensation
CN106599010B (en) Graph code searching method
CN101459854B (en) Encoding/decoding apparatus for picture compression and encoding/decoding method therefor
CN100548030C (en) A kind of news main broadcaster's lens detection method based on the space-time strip pattern analysis
CN109151427A (en) Information processing unit, information processing system, information processing method and storage medium
CN104185069A (en) Station icon identification method and identification system
AU2012209026B2 (en) Image processing apparatus, image processing method, and program
US20150288853A1 (en) Image processing apparatus, image processing method, and storage medium
CN104484853A (en) Method and device for clipping pictures containing graphical signs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161020

Address after: 18 horses in Qixia District of Nanjing City No. 210049 Jiangsu Street Xianlin Avenue

Patentee after: NANJING FENGLIJIAN INFORMATION TECHNOLOGY CO., LTD.

Address before: Hangzhou City, Zhejiang province 310018 Xiasha Higher Education Park No. 2 street

Patentee before: Hangzhou Electronic Science and Technology Univ