[go: up one dir, main page]

CN103037268B - Method and device for watermark adding - Google Patents

Method and device for watermark adding Download PDF

Info

Publication number
CN103037268B
CN103037268B CN201210528223.6A CN201210528223A CN103037268B CN 103037268 B CN103037268 B CN 103037268B CN 201210528223 A CN201210528223 A CN 201210528223A CN 103037268 B CN103037268 B CN 103037268B
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.)
Expired - Fee Related
Application number
CN201210528223.6A
Other languages
Chinese (zh)
Other versions
CN103037268A (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

Landscapes

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

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 current video watermark is of a great variety, but all there is certain deficiency.Some interpolation water mark methods add complete watermark by fixed position, easily directly detained and go or simply replace with color lump; In the color consecutive image region maximum by the size of each two field picture watermarking images being added to video file had, avoid the shortcoming of a kind of front method, 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 maximum color consecutive image region of the size of each two field picture may be the important information region of image, the area taking video image is large, and the method directly can have influence on the appreciation effect of video.
Therefore, a kind of anti-theft feature watermark adding method that is good, that do not affect the overall appreciation effect of video is proposed real in necessary.
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 procedure operand is little, efficiency is high; The area taking image is little.
The scheme adopted 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 video image is greater than or equal to default pixel value described in the pixel value of watermarking images and each frame, show the pixel of described watermarking images; When described absolute value is less than described default pixel value, show the pixel of video image described in each frame.
And a kind of watermark adding set, comprising:
Setting unit, for arranging the first area of adding watermark in the same position of each frame video image;
Pixel processing unit, in described first area, when the absolute value of the difference of the pixel value of video image is greater than or equal to default pixel value described in the pixel value of watermarking images and each frame, shows the pixel of described watermarking images; When described absolute value is less than described default pixel value, show the pixel of video image described in each frame.
The present invention by watermarking images and video image poor, then the absolute value of difference is made comparisons with the pixel value preset, carry out the mode selecting display, it is irregular image that watermarking images is shown in video image, and the shape shown in every frame video image is nearly all not identical, therefore has good anti-theft effect; The area taking video image is less, adds the position of watermark and fixes, and the position of watermarking images can not be caused to differ and cause and too beat, can not affect overall appreciation effect; And the signed magnitude arithmetic(al) of pixel difference is only for the region of adding watermarking images, therefore, operand is little, and it is high that efficiency compares conventional method.
Accompanying drawing explanation
Fig. 1 is an embodiment flow chart of the inventive method;
Fig. 2 A arranges 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 the video image after setting up first area;
Fig. 2 C is one of them schematic diagram of the watermark that need add;
Fig. 2 D be carry out pixel relatively after watermark schematic diagram;
Fig. 2 E is a wherein two field picture schematic diagram of the video image after adding watermark;
Fig. 2 F be carry out pixel relatively after another schematic diagram of watermark;
Fig. 2 G is another two field picture schematic diagram of the video image after adding watermark;
Fig. 2 H is a wherein two field picture schematic diagram of the video image after setting up second area;
Fig. 2 I is a wherein two field picture schematic diagram of the video image after adding another image tagged;
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, be described below in conjunction with accompanying drawing.
The present invention proposes a kind of watermark adding method, and idiographic flow with reference to figure 1, can comprise step:
S1, arrange in the same position of each frame video image and add the first area of watermark;
Concrete, first area can be set in any one corner regions in each frame video image 4 corners; As shown in Figure 2 A, 4 corners that can be 1,2,3,4 at the label of each frame video image arrange first area, such as, arrange first area in the lower left corner of all video frame images, please refer to Fig. 2 B.When first area is set, can arrange according to the size of the watermark that will add; Total principle can hold watermark entirety completely in the first region.
S2, in the first region, when the absolute value of the difference of the pixel value of watermarking images and the pixel value of each frame video image is greater than or equal to default pixel value, the pixel of display watermarking images;
S3, in the first region, when absolute value is less than default pixel value, show the pixel of each frame video image.
Concrete, watermark added in the first region, like this, watermarking images will cover a part of each frame video image, and each point on watermarking images forms corresponding relation with each point on capped video image; Compared by the pixel value of the pixel value of each point watermarking images and the video image of corresponding points, the pixel obtaining each point watermarking images and video image is poor; When the absolute value of this pixel difference is greater than or equal to default pixel value, the pixel of display watermarking images; When this absolute value is less than default pixel value, show the pixel of each frame video image.
Wherein, the pixel value preset can be arranged according to actual conditions.By the step that the pixel value of the pixel value of each point watermarking images and the video image of corresponding points compares, can be before watermark is added in first area, the position that watermark is placed in first area is set, obtain each point pixel value of watermarking images, and the video image obtained in first area places each point pixel value of watermark location; In each corresponding points, the pixel value of watermarking images is deducted the pixel value of video image, thus obtain the absolute value of each point pixel difference.
The present invention by watermarking images and video image poor, then the absolute value of difference is made comparisons with the pixel value preset, carry out the mode selecting display, it is irregular image that watermarking images is shown in video image, and the shape shown in every frame video image is nearly all not identical, therefore has good anti-theft effect; The area taking video image is less, adds the position of watermark and fixes, and the position of watermarking images can not be caused to differ and cause and too beat, can not affect overall appreciation effect; And the signed magnitude arithmetic(al) of pixel difference is only for the region of adding watermarking images, therefore, operand is little, and it is high that efficiency compares conventional method.
In order to improve the anti-theft feature of video image further, can also do following improvement: the second area adding image tagged is set in the same position of the designated frame of video image; Wherein, second area and first area are not overlapping; Another image tagged is added at second area.
In a specific embodiment, second area can be arranged on the region in any one corner in each frame video image in four corners, such as: be arranged on side, first area; Or second area being arranged on other corners of each frame video image, such as: when arranging first area in 1 region, second area can being set in 2 regions; 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 while can ensureing anti-theft effect like this;
Wherein, when designated frame arranges second area, can be in odd-numbered frame or even frame; Can also be other frames self-defined; The present invention is not limited.
With specific embodiment, the watermark adding method that the present invention proposes is described below;
Please refer to Fig. 2 C, is a watermark schematic diagram needing to add; Watermark is added on first area shown in Fig. 2 B; In the first region, through comparing the difference of the pixel value of watermarking images and the pixel value of current frame video image, the absolute value obtaining the difference of the wherein pixel value of a part of watermarking images and the pixel value of current frame video image is less than default pixel value, region as shown in the striped of Fig. 2 D; Then according to method of the present invention, region shown in the striped not showing Fig. 2 D in current frame video image, the effect after the video image of present frame adds watermark is as shown in Figure 2 E;
When adding watermark in the first area of another frame video image, in like manner, in the first region, through comparing the difference of the pixel value of watermarking images and the pixel value of current frame video image, the absolute value obtaining the difference of the wherein pixel value of a part of watermarking images and the pixel value of current frame video image is less than default pixel value, region as shown in the striped of Fig. 2 F; Then according to method of the present invention, region shown in the striped not showing Fig. 2 F in current frame video image, the effect after the video image of present frame adds watermark is as shown in Figure 2 G;
If the side, first area of the video image shown in Fig. 2 E arranges second area, refer to Fig. 2 H; Schematic diagram after this second area increases another image tagged, refers to Fig. 2 I.
The present invention also proposes a kind of watermark adding set, please refer to Fig. 3, comprising:
Setting unit, for arranging the first area of adding watermark in the same position of each frame video image;
Pixel processing unit, in the first region, when the absolute value of the difference of the pixel value of watermarking images and the pixel value of each frame video image is greater than or equal to default pixel value, the pixel of display watermarking images; When absolute value is less than default pixel value, show the pixel of each frame video image.
The present invention by watermarking images and video image poor, then the absolute value of difference is made comparisons with the pixel value preset, carry out the mode selecting display, it is irregular image that watermarking images is shown in video image, and the shape shown in every frame video image is nearly all not identical, therefore has good anti-theft effect; The area taking video image is less, adds the position of watermark and fixes, and the position of watermarking images can not be caused to differ and cause and too beat, can not affect overall appreciation effect; And the signed magnitude arithmetic(al) of pixel difference is only for the region of adding watermarking images, therefore, operand is little, and it is high that efficiency compares conventional method.
In order to the anti-theft effect of augmented video image, watermark adding set also comprises mark adding device, please refer to Fig. 4;
Wherein, setting unit is used in the same position of the designated frame of video image, arrange the second area adding image tagged; Wherein, second area and first area are not overlapping;
Mark adding device is used for adding another image tagged at second area.
Wherein in an execution mode, first area is the region in any one corner in each frame video image in four corners.Second area is the region in any one corner in each frame video image in four corners.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It 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 (10)

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 video image is greater than or equal to default pixel value described in the pixel value of watermarking images and each frame, show the pixel of described watermarking images; When described absolute value is less than described default pixel value, show the pixel of video image described in each frame.
2. watermark adding method according to claim 1, is characterized in that, arranges the second area adding image tagged in the same position of the designated frame of described video image; Wherein, described second area is not overlapping with described first area;
Another image tagged is added at described second area.
3. watermark adding method according to claim 1, is characterized in that, described first area is the region in any one corner in four corners in video image described in each frame.
4. watermark adding method according to claim 2, is characterized in that, described first area is the region in any one corner in four corners in video image described in each frame.
5. watermark adding method according to claim 4, is characterized in that, described second area is the region in any one corner in four corners in video image described in each frame.
6. a watermark adding set, is characterized in that, comprising:
Setting unit, for arranging the first area of adding watermark in the same position of each frame video image;
Pixel processing unit, in described first area, when the absolute value of the difference of the pixel value of video image is greater than or equal to default pixel value described in the pixel value of watermarking images and each frame, shows the pixel of described watermarking images; When described absolute value is less than described default pixel value, show the pixel of video image described in each frame.
7. watermark adding set according to claim 6, is characterized in that, described watermark adding set also comprises mark adding device;
Wherein, described setting unit is used in the same position of the designated frame of described video image, arrange the second area adding image tagged; Wherein, described second area is not overlapping with described first area;
Described mark adding device is used for adding another image tagged at described second area.
8. watermark adding set according to claim 6, is characterized in that, described first area is the region in any one corner in four corners in video image described in each frame.
9. watermark adding set according to claim 7, is characterized in that, described first area is the region in any one corner in four corners in video image described in each frame.
10. watermark adding set according to claim 9, is characterized in that, described second area is the region in any one corner in four corners in video image described in 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 CN103037268A (en) 2013-04-10
CN103037268B true 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)

Families Citing this family (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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155249A (en) * 2006-09-28 2008-04-02 富士通株式会社 Electronic watermark embedding device and electronic watermark detection device
CN101393635A (en) * 2008-10-27 2009-03-25 华为技术有限公司 Method and device for embedding and extracting watermark information, 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
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 江苏奇异点网络有限公司 Video watermark adding method with self-adaptive watermark position
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6563936B2 (en) * 2000-09-07 2003-05-13 Sarnoff Corporation Spatio-temporal channel for images employing a watermark and its complement
JP2010124450A (en) * 2008-10-24 2010-06-03 Canon Inc Document processing apparatus, and document processing method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155249A (en) * 2006-09-28 2008-04-02 富士通株式会社 Electronic watermark embedding device and electronic watermark detection device
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
CN101393635A (en) * 2008-10-27 2009-03-25 华为技术有限公司 Method and device for embedding and extracting watermark information, 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 江苏奇异点网络有限公司 Video watermark adding method with self-adaptive watermark position
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

Also Published As

Publication number Publication date
CN103037268A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
JP6381215B2 (en) Image processing apparatus, image processing method, display apparatus, display apparatus control method, and program
CN103929604B (en) Projector array splicing display method
JP2011019191A5 (en)
CN101409790B (en) High-efficiency multi-projector splicing and amalgamation method
JP2013516840A5 (en)
CN104580933A (en) Multi-scale real-time monitoring video stitching device based on feature points and multi-scale real-time monitoring video stitching method
JP5948508B2 (en) Video processor and method of operating video processor
JP2010016798A5 (en)
CN104182194A (en) Method and system for seamless edge blending processing in projection display
KR102095272B1 (en) Display device and driving method thereof
CN106899878A (en) A kind of adjustable video and graph compound method and system of transparency based on OMAP chips
TW201203130A (en) System for correcting image and correcting method thereof
TWI639916B (en) System for testing external display interface of? notebook computer and the method thereof are provided
WO2010015067A8 (en) Method and system for predictive scaling of colour mapped images
CN112650460B (en) Media display method and media display device
CN103037268B (en) Method and device for watermark adding
CN104461441A (en) Rendering method, rendering device and display device
KR20140057138A (en) Image processing method and image processing apparatus for generating vehicular image
CN107590776A (en) Image processing apparatus and image processing method
JP4659793B2 (en) Image processing apparatus and image processing method
CN104240213A (en) Display method and device
CN109285113B (en) Improved color image interpolation method based on gradient
CN102426693B (en) Method for converting 2D into 3D based on gradient edge detection algorithm
CN104767985A (en) Method for automatically detecting three-dimensional image format using area distribution analysis
US20160203617A1 (en) Image generation device and display device

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