CN103037268A - Method and device for watermark adding - Google Patents

Method and device for watermark adding Download PDF

Info

Publication number
CN103037268A
CN103037268A CN2012105282236A CN201210528223A CN103037268A CN 103037268 A CN103037268 A CN 103037268A CN 2012105282236 A CN2012105282236 A CN 2012105282236A CN 201210528223 A CN201210528223 A CN 201210528223A CN 103037268 A CN103037268 A CN 103037268A
Authority
CN
China
Prior art keywords
area
video image
watermark
frame
pixel value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012105282236A
Other languages
Chinese (zh)
Other versions
CN103037268B (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.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201210528223.6A priority Critical patent/CN103037268B/en
Publication of CN103037268A publication Critical patent/CN103037268A/en
Application granted granted Critical
Publication of CN103037268B publication Critical patent/CN103037268B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for watermark adding. The method for watermark adding includes the steps that a first area for adding watermark is arranged in a same position of a video image in each frame, in the first area when an absolute value of a difference between a pixel value of a watermark image and that of the video image in each frame is greater than or equal to a presupposed pixel value, the pixel of the watermark image is displayed, and when the absolute value is less than the presupposed pixel value, the pixel of the video image in each frame is displayed. The invention provides a device for watermark adding. The device for watermark adding is good in anti-theft function, little in amount of calculation of watermark adding process, high in efficiency, and small in the occupied image area.

Description

A kind of watermark adding method and device
Technical field
The present invention relates to image processing field, particularly relate to a kind of watermark adding method and device.
Background technology
The adding method of video watermark is of a great variety at present, but all has certain deficiency.Some interpolation water mark methods are to add complete watermark by the fixed position, are easily gone or simply replace with color lump by direct button; Passing through of having added watermarking images in the color consecutive image zone of size maximum of each two field picture of video file to, a kind of shortcoming of method before having avoided, anti-theft effect is better, but because the watermarking images of the method is almost all different in the position of each two field picture, and the color consecutive image zone of the size maximum of each two field picture may be the important information zone of image, the area that takies video image is large, and the method can directly have influence on the appreciation effect of video.
Therefore, it is necessary proposing a kind of anti-theft feature watermark adding method good, that do not affect the whole appreciation effect of video real.
Summary of the invention
The object of the invention is to propose a kind of watermark adding method and device, anti-theft feature is good, Watermark-adding process operand is little, and efficient is high; The area that takies image is little.
The scheme that adopts is:
A kind of watermark adding method comprises step:
The first area of adding watermark is set in the same position of each frame video image;
In described first area, when the absolute value of the difference of the pixel value of the pixel value of watermarking images and the described video image of each frame is greater than or equal to default pixel value, show the pixel of described watermarking images; When described absolute value during less than described default pixel value, show the pixel of the described video image of each frame.
And a kind of Watermark-adding device comprises:
Setting unit is used in the same position of each frame video image the first area of adding watermark being set;
Pixel processing unit is used in described first area, when the absolute value of the difference of the pixel value of the pixel value of watermarking images and the described video image of each frame is greater than or equal to default pixel value, shows the pixel of described watermarking images; When described absolute value during less than described default pixel value, show the pixel of the described video image of each frame.
The present invention is poor by watermarking images and video image, then the absolute value of difference is made comparisons with default pixel value, select the mode that shows, irregular image so that watermarking images shows in video image, and the shape that shows in every frame video image is nearly all not identical, therefore has good anti-theft effect; The area that takies video image is less, adds the position of watermark and fixes, and can not cause the position of watermarking images to differ and cause and too beat, and can not affect whole appreciation effect; And the poor signed magnitude arithmetic(al) of pixel is only for the zone of adding watermarking images, and therefore, operand is little, and it is high that efficient is compared conventional method.
Description of drawings
Fig. 1 is an embodiment flow chart of the inventive method;
Fig. 2 A is for arranging the schematic diagram of first area at a wherein two field picture of video image;
Fig. 2 B is a wherein two field picture schematic diagram of setting up the video image behind the first area;
Fig. 2 C is one of them schematic diagram that needs the watermark of interpolation;
Fig. 2 D carries out the watermark schematic diagram of pixel after relatively;
Fig. 2 E is a wherein two field picture schematic diagram of the video image after the interpolation watermark;
Fig. 2 F carries out pixel another schematic diagram of watermark after relatively;
Fig. 2 G is another two field picture schematic diagram of the video image after the interpolation watermark;
Fig. 2 H is a wherein two field picture schematic diagram of setting up the video image behind the second area;
Fig. 2 I is a wherein two field picture schematic diagram of the video image after another image tagged of interpolation;
Fig. 3 is a structural representation of apparatus of the present invention;
Fig. 4 is another structural representation of apparatus of the present invention.
Embodiment
For ease of understanding, describe below in conjunction with accompanying drawing.
The present invention proposes a kind of watermark adding method, and idiographic flow can with reference to figure 1, comprise step:
S1, the first area of adding watermark is set in the same position of each frame video image;
Concrete, can the first area be set in any corner regions in each 4 corner of frame video image; Shown in Fig. 2 A; Can be that 4 corners of 1,2,3,4 arrange the first area at the label of each frame video image, for example in the lower left corner of all video frame images the first area is set, please refer to Fig. 2 B.When the first area is set, can arrange according to the size of the watermark that will add; Total principle is can hold watermark integral body fully in the first area.
S2, in the first area, when the absolute value of the difference of the pixel value of the pixel value of watermarking images and each frame video image is greater than or equal to default pixel value, show the pixel of watermarking images;
S3, in the first area, when absolute value during less than default pixel value, show the pixel of each frame video image.
Concrete, in the first area, like this, watermarking images will cover each frame video image of a part with Watermark-adding, and the each point on the watermarking images forms corresponding relation with each point on the capped video image; The pixel value of the video image of the pixel value of each point watermarking images and corresponding points is compared, and the pixel that obtains each point watermarking images and video image is poor; When the poor absolute value of this pixel is greater than or equal to default pixel value, show the pixel of watermarking images; When this absolute value during less than default pixel value, show the pixel of each frame video image.
Wherein, default pixel value can arrange according to actual conditions.The step that the pixel value of the video image of the pixel value of each point watermarking images and corresponding points is compared, can be before watermark is added in the first area, the position that watermark is placed in the first area is set, obtain the each point pixel value of watermarking images, and the each point pixel value that obtains the video image placement watermark location in the first area; In each corresponding points, the pixel value of watermarking images is deducted the pixel value of video image, thereby obtain the poor absolute value of each point pixel.
The present invention is poor by watermarking images and video image, then the absolute value of difference is made comparisons with default pixel value, select the mode that shows, irregular image so that watermarking images shows in video image, and the shape that shows in every frame video image is nearly all not identical, therefore has good anti-theft effect; The area that takies video image is less, adds the position of watermark and fixes, and can not cause the position of watermarking images to differ and cause and too beat, and can not affect whole appreciation effect; And the poor signed magnitude arithmetic(al) of pixel is only for the zone of adding watermarking images, and therefore, operand is little, and it is high that efficient is compared conventional method.
In order further to improve the anti-theft feature of video image, can also do following improvement: in the same position of the designated frame of video image, the second area that adds image tagged is set; Wherein, second area and first area are not overlapping; Add another image tagged at second area.
In embodiment, second area can be arranged in each frame video image the zone in any one corner in four corners, for example: be arranged on the next door, first area; Perhaps second area is arranged on other corners of each frame video image, for example: when in 1 region division first area, can be at 2 region division second areas; The size of adding another image tagged at second area can be less than the size of watermark, do not affect the visual effect of video image when can guarantee anti-theft effect like this;
Wherein, when designated frame arranges second area, can be in odd-numbered frame or even frame; Can also be self-defined other frames; The present invention is not limited.
Below with specific embodiment the watermark adding method that the present invention proposes is described;
Please refer to Fig. 2 C, is the watermark schematic diagram that needs add; With Watermark-adding in first area shown in Fig. 2 B; In the first area, the difference of the pixel value of process comparison watermarking images and the pixel value of current frame video image, obtain the absolute value of difference of pixel value of the pixel value of a part of watermarking images wherein and current frame video image less than default pixel value, zone shown in the striped of Fig. 2 D; The method according to this invention does not then show zone shown in the striped of Fig. 2 D in current frame video image, the effect after the video image of present frame adds watermark is shown in Fig. 2 E;
When adding watermark in the first area of another frame video image, in like manner, in the first area, the difference of the pixel value of process comparison watermarking images and the pixel value of current frame video image, obtain the absolute value of difference of pixel value of the pixel value of a part of watermarking images wherein and current frame video image less than default pixel value, zone shown in the striped of Fig. 2 F; The method according to this invention does not then show zone shown in the striped of Fig. 2 D in current frame video image, the effect after the video image of present frame adds watermark is shown in Fig. 2 G;
If next door, the first area of the video image shown in Fig. 2 E arranges second area, see also Fig. 2 H; Schematic diagram after this second area increases another image tagged sees also Fig. 2 I.
The present invention also proposes a kind of Watermark-adding device, please refer to Fig. 3, comprising:
Setting unit is used in the same position of each frame video image the first area of adding watermark being set;
Pixel processing unit is used in the first area, when the absolute value of the pixel value of watermarking images and the difference of the pixel value of each frame video image is greater than or equal to default pixel value, and the pixel of demonstration watermarking images; When absolute value during less than default pixel value, show the pixel of each frame video image.
The present invention is poor by watermarking images and video image, then the absolute value of difference is made comparisons with default pixel value, select the mode that shows, irregular image so that watermarking images shows in video image, and the shape that shows in every frame video image is nearly all not identical, therefore has good anti-theft effect; The area that takies video image is less, adds the position of watermark and fixes, and can not cause the position of watermarking images to differ and cause and too beat, and can not affect whole appreciation effect; And the poor signed magnitude arithmetic(al) of pixel is only for the zone of adding watermarking images, and therefore, operand is little, and it is high that efficient is compared conventional method.
For the anti-theft effect of augmented video image, the Watermark-adding device also comprises the mark adding device; Please refer to Fig. 4;
Wherein, setting unit is used in the same position of the designated frame of video image the second area that adds image tagged being set; Wherein, second area and first area are not overlapping;
The mark adding device is used for adding another image tagged at second area.
Therein in execution mode, the first area is the zone in any one corner in four corners in each frame video image.Second area is the zone in any one corner in four corners in each frame video image.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (8)

1. a watermark adding method is characterized in that, comprises step:
The first area of adding watermark is set in the same position of each frame video image;
In described first area, when the absolute value of the difference of the pixel value of the pixel value of watermarking images and the described video image of each frame is greater than or equal to default pixel value, show the pixel of described watermarking images; When described absolute value during less than described default pixel value, show the pixel of the described video image of each frame.
2. watermark adding method according to claim 1 is characterized in that, the second area that adds image tagged is set in the same position of the designated frame of described video image; Wherein, described second area and described first area are not overlapping;
Add another image tagged at described second area.
3. watermark adding method according to claim 1 and 2 is characterized in that, described first area is the zone in any one corner in four corners in the described video image of each frame.
4. watermark adding method according to claim 3 is characterized in that, described second area is the zone in any one corner in four corners in the described video image of each frame.
5. a Watermark-adding device is characterized in that, comprising:
Setting unit is used in the same position of each frame video image the first area of adding watermark being set;
Pixel processing unit is used in described first area, when the absolute value of the difference of the pixel value of the pixel value of watermarking images and the described video image of each frame is greater than or equal to default pixel value, shows the pixel of described watermarking images; When described absolute value during less than described default pixel value, show the pixel of the described video image of each frame.
6. Watermark-adding device according to claim 5 is characterized in that, described Watermark-adding device also comprises the mark adding device;
Wherein, described setting unit is used in the same position of the designated frame of described video image the second area that adds image tagged being set; Wherein, described second area and described first area are not overlapping;
Described mark adding device is used for adding another image tagged at described second area.
7. according to claim 5 or 6 described Watermark-adding devices, it is characterized in that, described first area is the zone in any one corner in four corners in the described video image of each frame.
8. Watermark-adding device according to claim 7 is characterized in that, described second area is the zone in any one corner in four corners in the described video image of each frame.
CN201210528223.6A 2012-12-07 2012-12-07 Method and device for watermark adding Expired - Fee Related CN103037268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210528223.6A CN103037268B (en) 2012-12-07 2012-12-07 Method and device for watermark adding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210528223.6A CN103037268B (en) 2012-12-07 2012-12-07 Method and device for watermark adding

Publications (2)

Publication Number Publication Date
CN103037268A true CN103037268A (en) 2013-04-10
CN103037268B CN103037268B (en) 2015-07-08

Family

ID=48023679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210528223.6A Expired - Fee Related CN103037268B (en) 2012-12-07 2012-12-07 Method and device for watermark adding

Country Status (1)

Country Link
CN (1) CN103037268B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563929A (en) * 2018-04-16 2018-09-21 深圳市联软科技股份有限公司 It is a kind of only in the method for concerning security matters Area generation watermark, system, device and medium
CN110620961A (en) * 2019-08-09 2019-12-27 上海紫竹数字创意港有限公司 Video watermark adding method and device and video editing terminal

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020027612A1 (en) * 2000-09-07 2002-03-07 Brill Michael H. Spatio-temporal channel for images
CN101155249A (en) * 2006-09-28 2008-04-02 富士通株式会社 Electronic watermark embedding apparatus and electronic watermark detection apparatus
CN101393635A (en) * 2008-10-27 2009-03-25 华为技术有限公司 Watermark information embedding, extracting method and processing system
CN101452565A (en) * 2007-12-06 2009-06-10 京瓷美达株式会社 Image processing apparatus, image forming apparatus, and recording medium
CN101472162A (en) * 2007-12-25 2009-07-01 北京大学 Method and device for embedding and recovering prime image from image with visible watermark
CN101661609A (en) * 2009-08-31 2010-03-03 重庆大学 Digital image interesting region visible watermarik adding method suitable for internet
US20100103470A1 (en) * 2008-10-24 2010-04-29 Canon Kabushiki Kaisha Document processing apparatus and document processing method
CN101828356A (en) * 2007-06-29 2010-09-08 汤姆逊许可证公司 Volume marking with low-frequency
CN101990081A (en) * 2010-11-11 2011-03-23 宁波大学 Method for protecting copyright of virtual viewpoint image
CN102404649A (en) * 2011-11-30 2012-04-04 江苏奇异点网络有限公司 Watermark position self-adaptive video watermark adding method
CN102497602A (en) * 2011-12-16 2012-06-13 海南杰福瑞网络科技有限公司 Digital watermarking processing method and device
CN102722855A (en) * 2011-03-31 2012-10-10 北京大学 Reversible watermark embedding method, extracting method thereof, device and system
CN102801977A (en) * 2012-08-07 2012-11-28 合肥极光科技股份有限公司 Method for embedding robust digital watermark in H.264 based on video complexity analysis

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020027612A1 (en) * 2000-09-07 2002-03-07 Brill Michael H. Spatio-temporal channel for images
CN101155249A (en) * 2006-09-28 2008-04-02 富士通株式会社 Electronic watermark embedding apparatus and electronic watermark detection apparatus
CN101828356A (en) * 2007-06-29 2010-09-08 汤姆逊许可证公司 Volume marking with low-frequency
CN101452565A (en) * 2007-12-06 2009-06-10 京瓷美达株式会社 Image processing apparatus, image forming apparatus, and recording medium
CN101472162A (en) * 2007-12-25 2009-07-01 北京大学 Method and device for embedding and recovering prime image from image with visible watermark
US20100103470A1 (en) * 2008-10-24 2010-04-29 Canon Kabushiki Kaisha Document processing apparatus and document processing method
CN101393635A (en) * 2008-10-27 2009-03-25 华为技术有限公司 Watermark information embedding, extracting method and processing system
CN101661609A (en) * 2009-08-31 2010-03-03 重庆大学 Digital image interesting region visible watermarik adding method suitable for internet
CN101990081A (en) * 2010-11-11 2011-03-23 宁波大学 Method for protecting copyright of virtual viewpoint image
CN102722855A (en) * 2011-03-31 2012-10-10 北京大学 Reversible watermark embedding method, extracting method thereof, device and system
CN102404649A (en) * 2011-11-30 2012-04-04 江苏奇异点网络有限公司 Watermark position self-adaptive video watermark adding method
CN102497602A (en) * 2011-12-16 2012-06-13 海南杰福瑞网络科技有限公司 Digital watermarking processing method and device
CN102801977A (en) * 2012-08-07 2012-11-28 合肥极光科技股份有限公司 Method for embedding robust digital watermark in H.264 based on video complexity analysis

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563929A (en) * 2018-04-16 2018-09-21 深圳市联软科技股份有限公司 It is a kind of only in the method for concerning security matters Area generation watermark, system, device and medium
CN110620961A (en) * 2019-08-09 2019-12-27 上海紫竹数字创意港有限公司 Video watermark adding method and device and video editing terminal

Also Published As

Publication number Publication date
CN103037268B (en) 2015-07-08

Similar Documents

Publication Publication Date Title
JP6381215B2 (en) Image processing apparatus, image processing method, display apparatus, display apparatus control method, and program
CN106531073A (en) Processing circuit of display screen, display method and display device
CN106464959B (en) Semiconductor integrated circuit and the display device and control method for having the semiconductor integrated circuit
CN105574924A (en) Rendering method, rendering apparatus, and electronic apparatus
JP2018500585A (en) Deterioration control of display pixels in high-definition displays
KR102095272B1 (en) Display device and driving method thereof
CN104182194A (en) Method and system for seamless edge blending processing in projection display
CN201919121U (en) Projection system for mosaicking of multiple projected images
CN106899878A (en) A kind of adjustable video and graph compound method and system of transparency based on OMAP chips
CN102497526B (en) Method and system for displaying multiple channels of video by same link
CN104240213A (en) Display method and device
CN103037268B (en) Method and device for watermark adding
TW201512834A (en) System for testing external display interface of notebook computer and the method thereof are provided
US20150043821A1 (en) Image processing method
TWI698834B (en) Methods and devices for graphics processing
CN105430237B (en) A kind of processing method and system of frame missing image
CN102426693B (en) Method for converting 2D into 3D based on gradient edge detection algorithm
CN105530505A (en) Three-dimensional image conversion method and device
CN106782401B (en) Control method of display
CN104202588A (en) 3D (Three-Dimensional) signal shear method and system and 3D signal windowing method and system
CN104952414A (en) Image display method, display device and operation method thereof
CN103366343A (en) Bitmap scaling method and system
CN103413267B (en) Embedding grammar that a kind of digital watermarking seamlessly transits and device
TWI486947B (en) Layer access method, data access device and layer access arrangement method
CN106550281A (en) A kind of generation method and device of shadow captions

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150708

Termination date: 20211207