WO2020244474A1 - 视频水印添加、提取的方法、装置和设备 - Google Patents
视频水印添加、提取的方法、装置和设备 Download PDFInfo
- Publication number
- WO2020244474A1 WO2020244474A1 PCT/CN2020/093658 CN2020093658W WO2020244474A1 WO 2020244474 A1 WO2020244474 A1 WO 2020244474A1 CN 2020093658 W CN2020093658 W CN 2020093658W WO 2020244474 A1 WO2020244474 A1 WO 2020244474A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- watermark
- transparent
- pixel
- video
- video frame
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000003860 storage Methods 0.000 claims abstract description 16
- 239000011159 matrix material Substances 0.000 claims description 23
- 238000000605 extraction Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 6
- 125000004122 cyclic group Chemical group 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 230000011218 segmentation Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8358—Generation of protective data, e.g. certificates involving watermark
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
- H04N19/467—Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
Definitions
- This article relates to, but is not limited to, a method, device, device, and computer-readable storage medium for adding and extracting video watermarks.
- content providers In order to prevent theft of video resources, content providers generally add watermark information that is invisible to the naked eye, and then extract the watermark through certain technical methods to determine whether the video is infringing, and use it as a basis for infringement.
- the current video watermarking on the set-top box is generally implemented by the chip and DRM (Digital Rights Management) manufacturers.
- the DRM manufacturer is responsible for producing the watermark information, and the chip is superimposed on the image when the image is rendered.
- the main drawback is that the watermark must use a dedicated chip that supports the watermark, and the chip must be certified by the DRM manufacturer and pay a license fee to the DRM manufacturer. Therefore, the cost increases and the watermark function cannot be provided on the existing set-top box.
- the embodiments of the application provide a method, device, device and computer-readable storage medium for adding and extracting a video watermark.
- An embodiment of the application provides a method for adding a video watermark, including: obtaining watermark information, generating a watermark transparent picture carrying the watermark information according to the watermark information; and mixing the watermark transparent picture into a video playback screen.
- An embodiment of the present application also provides a method for extracting a video watermark, including: obtaining a target video frame mixed with a watermark transparent picture in a video playback screen, and obtaining a source video frame corresponding to the target video frame; Compare with the source video frame to obtain the watermark information carried by the watermark transparent picture.
- An embodiment of the present application also provides an apparatus for adding a video watermark, including: a generating unit for obtaining watermark information, and generating a watermark transparent picture carrying the watermark information according to the watermark information; and a mixing unit for combining the watermark information The watermark transparent image is mixed into the video playback screen.
- An embodiment of the present application also provides a video watermark extraction device, including: an acquisition unit, configured to acquire a target video frame mixed with a transparent watermark picture in a video playback screen, and acquire a source video frame corresponding to the target video frame; extract The unit is configured to compare the target video frame with the source video frame to obtain the watermark information carried by the watermark transparent picture.
- An embodiment of the present application also provides a video watermark adding device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the video watermark when the program is executed Method of adding.
- An embodiment of the present application also provides a video watermark extraction device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the video watermark when the program is executed The method of extraction.
- An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the video watermarking method.
- An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the video watermark extraction method.
- Fig. 1 is a flowchart of a method for adding a video watermark according to an embodiment of the present application
- FIG. 2 is a schematic diagram of a watermark information segmentation protocol according to an embodiment of the present application.
- Fig. 3 is an example diagram of converting a watermark text block into a watermark data block in an embodiment of the present application
- Figure 4 is a schematic diagram of adding watermark information to a transparent picture in an embodiment of the present application.
- Figure 5 is a schematic diagram of a video watermark adding system according to an embodiment of the present application.
- Fig. 6 is a flowchart of a method for adding a video watermark according to an embodiment of the present application
- Fig. 7 is a flowchart of a method for extracting a video watermark according to an embodiment of the present application.
- Figure 8 is a schematic diagram of a video watermark extraction system according to an embodiment of the present application.
- Fig. 9 is a flowchart of a method for extracting a video watermark according to an embodiment of the present application.
- FIG. 10 is a schematic diagram of a video watermark adding device according to an embodiment of the present application.
- Figure 11 is a schematic diagram of a video watermark extraction device according to an embodiment of the present application.
- Figure 12 is a schematic diagram of a video watermark adding device according to an embodiment of the present application.
- Figure 13 is a schematic diagram of a video watermark extraction device according to an embodiment of the present application.
- the embodiments of the application provide a method and system for quickly adding hidden video watermarks, and extracting and detecting watermark information on the video playback end, so as to achieve adding to the video being played without affecting the smoothness of video playback. Hide the watermark information, and effectively extract the watermark information.
- the method for adding a video watermark in an embodiment of the present application includes:
- Step 101 Obtain watermark information, and generate a watermark transparent picture carrying the watermark information according to the watermark information.
- the watermark information can be obtained from the playback device, and the watermark information can include the device identification and product authentication data.
- the watermark information includes device ID (identification), device MAC (Media Access Control Address, media access control address), device IP (Internet Protocol Address, Internet Protocol address), user account, site and other information.
- the generating a watermark transparent picture carrying the watermark information according to the watermark information includes:
- the watermark binary data is generated according to the watermark information; the watermark binary data is embedded in the corresponding transparent picture to obtain the watermark transparent picture carrying the watermark information.
- the watermark binary data is used for mixing into the video playback screen during video playback.
- the watermark information is generated into watermark text
- the watermark text is encrypted and encoded and divided into multiple blocks
- the watermark text block is converted into binary data
- the binary data is set according to certain rules They are respectively embedded into the corresponding transparent pictures to obtain the watermark transparent pictures carrying the watermark information.
- the generating watermark binary data according to the watermark information includes:
- n watermark text blocks carrying number information are generated according to the watermark text.
- the generating n watermark text blocks carrying number information according to the watermark text includes: generating n watermark text blocks carrying number information according to the encrypted watermark text.
- a watermark data block (that is, a numbered binary data block) carrying number information and check information can be generated, the numbered binary data block is converted into a bit matrix, and the matrix is further divided into multiple sub-matrices , And embed it in the specified position of the watermark transparent image according to the rules.
- embedding the watermark binary data into the corresponding transparent picture to obtain the watermark transparent picture carrying the watermark information includes:
- Each group of watermark binary data in the n groups is sequentially added to the first color channel of the pixel at the specified position of the transparent picture to obtain n watermark transparent pictures carrying the watermark information, and the first color channel includes a red channel , Green channel and blue channel, n is an integer greater than or equal to 1.
- the transparent picture may be a png picture with four channels of RGBA.
- the adding the data in the watermark binary data sequentially to the first color channel of the pixel at the specified position of the transparent picture includes:
- R W is a transparent watermark image pixels in a first color channel value
- R O is a pixel corresponding to a first color channel value transparent image
- a bit value of the watermark W is binary data B.
- the sliding window is defined as s ⁇ t, assuming that the 0th block of data is mixed with the pixel point [x,y] starting from the mth pixel of the transparent picture, and the jth block of data is mixed with the j+1th block of data in the transparent picture.
- Step 102 Mix the watermark transparent picture into a video playback screen.
- step 102 includes:
- the watermark transparent pictures are sequentially mixed into the video playback picture in a loop at a preset time interval.
- step 102 after confirming that the video play instruction is received, the watermark transparent picture is mixed into the video play screen.
- the n watermark transparent pictures generated according to the watermark information are sequentially mixed with the n source video frames in the video playback in a circular manner, and the target is obtained after the playback and mixing.
- Video frame According to a preset time interval, the n watermark transparent pictures generated according to the watermark information are sequentially mixed with the n source video frames in the video playback in a circular manner, and the target is obtained after the playback and mixing.
- the source video frame and the target video frame are key frames (I-frames), and the n watermark transparent pictures and n sources in the video playback are sequentially generated according to the watermark information in a looping manner.
- Video frames are mixed, including:
- the n-th order transparent watermark image and the video playback of the n source key frame by one pixel in a first mixed color channel values according to R d R s + R w ⁇ R a, to give The mixed target key frame, where R d is the first color channel value of the pixel in the target key frame, R s is the first color channel value of the pixel in the source key frame, and R w is the pixel in the watermark transparent image
- the first color channel value of R a is the alpha channel value of the pixel in the transparent watermark picture, where n is an integer greater than or equal to 1.
- the above embodiment converts the watermark text block into binary data respectively and embeds it in a transparent picture.
- the watermark text can also be converted into a watermark picture, and the watermark picture is divided into one or more pictures. Blocks are respectively embedded in the corresponding transparent pictures to generate a watermark transparent picture.
- the terminal-side player can independently complete the real-time embedding of transparent watermark information without the participation of a broadcast control platform or a dedicated chip, and has the characteristics of fast speed, real-time, high visibility, security and robustness.
- the video watermarking system deployed in the IPTV set-top box includes a watermark information encoding subsystem 21, a transparent watermark generation subsystem 22, and a video
- the watermark mixing subsystem 23 the processing flow is as follows:
- the watermark text generation module 211 in the watermark information encoding subsystem 21 obtains information including device ID, device MAC, device IP, user account, site, etc. from the IPTV set-top box, and generates the watermark text in a certain format, such as device ID_MAC_account _MarketCode; the watermark information encryption/encoding module 212 encrypts and encodes the watermark text information; the watermark text slicing module 213 divides the encrypted text information into n blocks as shown in Figure 2, and performs binary conversion of each block data, And the data is arranged in an X ⁇ Y matrix (less than 0).
- the rule of the transparent watermark generation subsystem 22 for binary conversion is to convert each block of data from hexadecimal to binary, arrange it in big-endian byte order, and use X bits as a row in sequence and divide it into Y columns.
- the bit bit of 0 is complemented to convert to an X ⁇ Y bit matrix.
- the hexadecimal character string 0XBE23F05A is converted into an 8*4 matrix.
- R W is a watermark image pixel values R, R R O channel corresponding pixel value (fixed to 0) as a clear image
- W b is the bit values of the encrypted text of the watermark
- a transparent image is four-channel png RGBA Picture
- the selection rule of the designated area is j multiplied by the sliding window size, where j is the j-th block of data, and the sliding window is defined as s ⁇ t, assuming that the 0th block of data and the pixel starting from the mth pixel of the transparent picture [x, y]
- the positional relationship of the pixel points of the j-th block of data and the j+1-th block of data in the transparent picture for the mixing operation is As shown in Figure 4, the data blocks are arranged in an 8 ⁇ 4 matrix, and the sliding window is defined as 4 ⁇ 3.
- the [4,2] bit value in the 0th block is the same as the R channel of the [4,2] pixel in the transparent picture.
- R d is the R channel value of the pixel in the video frame of the mixed transparent watermark
- R s is the R channel value of the pixel in the I frame of the source
- R w is the R channel value of the transparent watermark pixel
- R a is the value of the pixel in the transparent watermark picture ⁇ channel value.
- FIG. 6 an embodiment is used to illustrate the process of adding a transparent watermark to a video. The steps are as follows:
- Step 1 Create an RGBA four-channel png image with alpha channel and pack it into the player.
- Step 2 After the application is started, read the device ID information and product authentication data as watermark information, do encryption and, for example, use base64 (a method based on 64 printable characters to represent binary data) encoding processing, and convert the watermark information Is binary data;
- Step 3 The watermark binary data is divided into blocks according to the format defined by the watermark information division protocol in Figure 2, and divided into n parts;
- s ⁇ t is the sliding window of the hybrid watermark dynamically moving Is the mixed pixel area in the transparent picture corresponding to the j-th block, It is the mixed pixel area in the transparent picture corresponding to the j+1th block.
- the j-th block data and the pixels in the [x,y] area starting from the [0,0] pixel of the transparent picture are mixed, and the j-th block data is mixed with the j+1-th block data in the transparent picture.
- the point position relationship is As shown in Figure 4, the data blocks are arranged in an 8 ⁇ 4 matrix, and the sliding window is defined as 4 ⁇ 3.
- the [4,2] bit value in the 0th block is the same as the R channel of the [4,2] pixel in the transparent picture.
- Step 5 Perform lossless compression on the mixed png image to obtain the j-th transparent watermark picture mixed with the j-th block of watermark information;
- Step 7 Step 6 is repeated in turn to realize the function of dynamically adding a transparent watermark during playback.
- the video watermark extraction method in the embodiment of this application is the inverse process of the video watermark adding method. As shown in FIG. 7, the video watermark extraction method in the embodiment of this application includes:
- Step 301 Obtain a target video frame mixed with a watermark transparent picture in a video playback screen, and obtain a source video frame corresponding to the target video frame.
- the acquiring a target video frame mixed with a watermark transparent picture in a video playback screen includes:
- the video frame corresponding to the data block to be checked is used as the starting video frame, and the starting video frame is started according to the preset time interval. At the beginning of the frame, determine the target video frame in turn.
- Step 302 Compare the target video frame with the source video frame to obtain watermark information carried by the watermark transparent picture.
- step 302 includes:
- the pixel point information in the target video frame may be respectively obtained for the pixel point information of the watermark data block carried in the watermark transparent picture corresponding to the target video frame, the watermark data block may be spliced according to the number information, and the watermark data block may be spliced according to the splicing The latter watermark data block determines the watermark information.
- the obtaining the watermark information carried by the watermark transparent picture according to the difference between the pixel point information in the target video frame and the source video frame includes:
- a plurality of watermark data blocks are spliced together to obtain the watermark information.
- the source video frame and the target video frame are key frames
- the first color of the pixel in the watermark transparent picture is determined according to the difference of pixel information in the target video frame and the source video frame Channel values, including:
- R w (R d -R s )/R a , determine the first color channel value of the pixel in the watermark transparent picture, where Rd is the first color channel value of the pixel in the target key frame, and R s is The first color channel value of the pixel in the source key frame, R w is the first color channel value of the pixel in the watermark transparent picture.
- the determining the watermark data block according to the position of the watermark binary data in the watermark transparent picture and the first color channel value of the pixel in the watermark transparent picture includes:
- the video watermark extraction system of the embodiment of the present application includes a watermark information extraction subsystem 41 and a watermark information decoding subsystem 42, and the processing flow is as follows:
- R d R s + R w ⁇ R a inverse operation
- R w (R d -R s ) / R a
- j-sheets one by parsing the video corresponding R w , and then mixed in the transparent image watermark text formula
- the watermark information decoding subsystem 42 sequentially finds n blocks of data through the blocknum (block number) defined in the segmentation protocol in FIG. 2, and splices them into complete text data, and then restores the watermark text after decryption, and judges whether the played video is legal.
- the watermark information extraction process includes the following steps:
- Step 1 Record a video screen during playback, randomly obtain a certain key frame, here it is assumed that it is the j-th key frame;
- Step 3 The step 2 determines the position information, n order to find parts of the R channel value R S I from the same location as the original video frame corresponding to the picture from the transparent and to obtain a fixed ⁇ channel value R A;
- Step 6 According to the header information defined in the watermark information segmentation protocol in Figure 2, find the j-th block of data that meets the format from n pieces of watermark text to be confirmed; if it is not found, it proves that the video does not carry watermark information, and the video is illegal , If the j-th block of data is found, proceed to step 7;
- Step 7 Extract sequentially from the j+1 frame to the j-1 frame, a total of n-1 video key frames to be extracted from the watermark, and repeat the W b acquisition process from step 2 to step 6 to obtain the remaining n-1 in turn Block watermark text;
- Step 8 Splice into complete text data in order through the blocknum defined in the segmentation protocol
- Step 9 Decode the text data to obtain the watermark information to be confirmed.
- Step 10 Verify whether the extracted watermark is trustworthy information as a basis for infringement.
- step 7 if there is incomplete data in a block, such as information loss in the k-th block, continue to obtain the watermark information of the k-th block from the subsequent n+k block , And complete the watermark text;
- Application example 1 Deploying a watermark video generation system in an OTT (Over The Top, Internet TV) set-top box:
- the video watermark adding system deployed in the OTT set-top box includes a watermark information encoding subsystem 21, a transparent watermark generation subsystem 22, and a video watermark mixing subsystem 23:
- the watermark text generation module 211 in the watermark information encoding subsystem 21 obtains information including the device ID, device MAC, device IP, user account, site, etc. from the OTT set-top box, and generates the watermark text in a certain format; the watermark information is encrypted / Encoding module 212 encrypts and encodes the watermark text information; the watermark text slicing module 213 divides the encrypted text information into n blocks as shown in Figure 2, performs binary conversion of each block data, and presses the data into X ⁇ Y matrix arrangement (less than 0).
- R d R s + R w ⁇ R a pixel point
- DVB Digital Video Broadcasting, digital video broadcasting
- the video watermark adding system deployed in the DVB set-top box includes a watermark information encoding subsystem 21, a transparent watermark generation subsystem 22, and a video watermark mixing subsystem 23:
- the watermark text generation module 211 in the watermark information encoding subsystem 21 obtains information including device ID, device MAC, device IP, user account, site, etc. from the DVB set-top box, and generates watermark text in a certain format; watermark information encryption / Encoding module 212 encrypts and encodes the watermark text information; the watermark text slicing module 213 divides the encrypted text information into n blocks as shown in Figure 2, performs binary conversion of each block data, and presses the data into X ⁇ Y matrix arrangement (less than 0).
- R d R s + R w ⁇ R a pixel point
- the R channel values are mixed one by one, so as to realize the real-time addition of transparent watermark information when the DVB set-top box plays the video.
- the video watermark adding system deployed in the mobile terminal includes a watermark information encoding subsystem 21, a transparent watermark generation subsystem 22, and a video watermark mixing subsystem 23:
- the watermark text generation module 211 in the watermark information encoding subsystem 21 obtains information including the device ID, device MAC, device IP, user account, site, etc. from the mobile phone, and generates the watermark text in a certain format; watermark information encryption/ The encoding module 212 encrypts and encodes the watermark text information; the watermark text slicing module 213 divides the encrypted text information into n blocks as shown in FIG. 2, performs binary conversion of each block data, and presses the data into X ⁇ Y Matrix arrangement (less than 0).
- R d R s + R w ⁇ R a pixel point
- the video watermark adding system deployed in the PC terminal includes a watermark information encoding subsystem 21, a transparent watermark generating subsystem 22, and a video watermark mixing subsystem 23:
- the watermark text generation module 211 in the watermark information encoding subsystem 21 obtains information including the device ID, device MAC, and device IP from the PC, and generates the watermark text in a certain format; the watermark information encryption/encoding module 212 generates the watermark text The information is encrypted and encoded; the watermark text slicing module 213 divides the encrypted text information into n blocks as shown in Figure 2, performs binary conversion of each block data, and arranges the data in an X ⁇ Y matrix (less than 0 ).
- R d R s + R w ⁇ R a pixel point
- the embodiments of this application have the characteristics of fast speed, real-time, high visibility, security and robustness.
- an embodiment of the present application also provides a video watermarking device, including:
- the generating unit 51 is configured to obtain watermark information, and generate a watermark transparent picture carrying the watermark information according to the watermark information;
- the mixing unit 52 is configured to mix the watermark transparent picture into the video playback picture.
- an embodiment of the present application also provides a video watermark extraction device, including:
- the obtaining unit 61 is configured to obtain a target video frame mixed with a watermark transparent picture in a video playback picture, and obtain a source video frame corresponding to the target video frame;
- the extraction unit 62 is configured to compare the target video frame with the source video frame to obtain the watermark information carried by the watermark transparent picture.
- an embodiment of the present application also provides a video watermarking device, including: a memory 71, a processor 72, and a computer program 73 stored on the memory 71 and running on the processor 72.
- the processing The method for adding the video watermark is realized when the device 72 executes the program.
- an embodiment of the present application also provides a video watermark extraction device, including: a memory 81, a processor 82, and a computer program 83 stored on the memory 81 and running on the processor 82.
- the processing The method for extracting the video watermark is realized when the device 82 executes the program.
- An embodiment of the present application also provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the video watermark extraction method.
- the foregoing storage medium may include, but is not limited to: U disk, Read-Only Memory (ROM), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc.
- U disk Read-Only Memory
- RAM Random Access Memory
- RAM Random Access Memory
- mobile hard disk magnetic disk or optical disk, etc.
- Such software may be distributed on a computer-readable medium
- the computer-readable medium may include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium).
- the term computer storage medium includes volatile and non-volatile memory implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data).
- Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage device, or Any other medium used to store desired information and that can be accessed by a computer.
- communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media .
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
Description
Claims (22)
- 一种视频水印添加的方法,包括:获取水印信息,根据所述水印信息生成携带有所述水印信息的水印透明图片;将所述水印透明图片混合至视频播放画面中。
- 如权利要求1所述的方法,其中,所述根据所述水印信息生成携带有所述水印信息的水印透明图片,包括:根据所述水印信息生成水印二进制数据;所述水印二进制数据嵌入对应的透明图片中,得到携带有所述水印信息的水印透明图片。
- 如权利要求2所述的方法,其中,所述根据所述水印信息生成水印二进制数据,包括:根据所述水印信息生成水印文本;根据所述水印文本生成携带编号信息的n个水印文本块,将每个所述水印文本块分别转换为二进制数据,得到n组水印二进制数据;其中,n为整数。
- 如权利要求3所述的方法,其中,所述根据所述水印文本生成携带编号信息的n个水印文本块之前,所述方法还包括:对所述水印文本进行加密编码;所述根据所述水印文本生成携带编号信息的n个水印文本块,包括:根据经过加密编码的水印文本生成携带编号信息的n个水印文本块。
- 如权利要求3所述的方法,其中,所述得到n组水印二进制数据之后,所述方法还包括:将每组所述水印二进制数据生成按矩阵排列的水印数据块。
- 如权利要求2所述的方法,其中,所述水印二进制数据嵌入对应的透明图片中,得到携带有所述水印信息的水印透明图片,包括:将n组中的每组水印二进制数据依次加入所述透明图片指定位置像素点的 第一颜色通道中,得到n张携带有所述水印信息的水印透明图片,所述第一颜色通道包括红色通道、绿色通道和蓝色通道之一,n为整数。
- 如权利要求6所述的方法,其中,所述将所述水印二进制数据中的数据依次加入所述透明图片指定位置像素点的第一颜色通道中,包括:设置所述透明图片的滑动窗口,按照R w=R o+W b,将所述水印二进制数据中的数据依次加入所述滑动窗口指定位置对应的像素点的第一颜色通道中,其中,R W为水印透明图片中像素点的第一颜色通道值,R O为透明图片对应像素点的第一颜色通道值,W b为水印二进制数据的比特值。
- 如权利要求1所述的方法,其中,所述将所述水印透明图片混合至视频播放画面中,包括:依次将所述水印透明图片按照预设的时间间隔,循环混合到视频播放画面中。
- 如权利要求8所述的方法,其中,所述依次将所述水印透明图片按照预设的时间间隔,循环混合到视频播放画面中,包括;按照预设的时间间隔,采用循环的方式依次将根据所述水印信息生成n张水印透明图片与视频播放中的n个源视频帧进行混合,播放混合后得到所述目标视频帧。
- 如权利要求9所述的方法,其中,所述源视频帧和目标视频帧为关键帧,所述采用循环的方式依次将根据所述水印信息生成n张水印透明图片与视频播放中的n个源视频帧进行混合,包括:采用循环的方式,依次将所述n张水印透明图片与视频播放中的n个源关键帧按照R d=R s+R w×R a进行像素点中第一颜色通道值的逐一混合,得到混合后的目标关键帧,其中,R d为目标关键帧中像素点的第一颜色通道值,R s为源关键帧中像素点的第一颜色通道值,R w为水印透明图片中像素点的第一颜色通道值,R a为透明水印图片中像素点的α通道值,其中,n为整数。
- 一种视频水印提取的方法,包括:获取视频播放画面中混合有水印透明图片的目标视频帧,以及获取所述目标视频帧对应的源视频帧;将所述目标视频帧与所述源视频帧进行比对,获得所述水印透明图片携带的水印信息。
- 如权利要求11所述的方法,其中,所述获取视频播放画面中混合有水印透明图片的目标视频帧,包括:获取视频播放画面中的视频帧,对所述视频帧的指定位置的像素点进行计算,确定待校验的数据块;确定所述待校验的数据块中包含预设的编号信息时,将所述待校验的数据块对应的视频帧作为起始视频帧,按照预设的时间间隔,从所述起始视频帧开始,依次确定目标视频帧。
- 如权利要求11所述的方法,其中,所述将所述目标视频帧与所述源视频帧进行比对,获得所述水印透明图片携带的水印信息,包括:根据所述目标视频帧和源视频帧中像素点信息的差值,获得所述水印透明图片携带的水印信息。
- 如权利要求13所述的方法,其中,所述根据所述目标视频帧和源视频帧中像素点信息的差值,获得所述水印透明图片携带的水印信息,包括:根据所述目标视频帧和源视频帧中像素点信息的差值,确定水印透明图片中像素点的第一颜色通道值;根据水印二进制数据在所述水印透明图片的位置,以及所述水印透明图片中像素点的第一颜色通道值,确定水印数据块;根据所述水印数据块携带的编号信息,将多个水印数据块拼接,得到所述水印信息。
- 如权利要求14所述的方法,其中,所述源视频帧和目标视频帧为关键帧,所述根据所述目标视频帧和源视频帧中像素点信息的差值,确定水印透明图片中像素点的第一颜色通道值,包括:按照R w=(R d-R s)/R a,确定水印透明图片中像素点的第一颜色通道值,其中,R d为目标关键帧中像素点的第一颜色通道值,R s为源关键帧中像素点的第一颜色通道值,R w为水印透明图片中像素点的第一颜色通道值。
- 如权利要求14所述的方法,其中,所述根据水印二进制数据在所述水 印透明图片的位置,以及所述水印透明图片中像素点的第一颜色通道值,确定水印数据块,包括:根据透明图片中滑动窗口指定位置对应的像素点的第一颜色通道值,以及所述水印透明图片中对应像素点的第一颜色通道值,按照W b=R w-R o,得到水印二进制数据的比特值,根据所述水印二进制数据的比特值确定水印数据块;其中,R W为水印透明图片中像素点的第一颜色通道值,R O为透明图片对应像素点的第一颜色通道值,W b为水印二进制数据的比特值。
- 一种视频水印添加的装置,包括:生成单元,用于获取水印信息,根据所述水印信息生成携带有所述水印信息的水印透明图片;混合单元,用于将所述水印透明图片混合至视频播放画面中。
- 一种视频水印提取的装置,包括:获取单元,用于获取视频播放画面中混合有水印透明图片的目标视频帧,以及获取所述目标视频帧对应的源视频帧;提取单元,用于将所述目标视频帧与所述源视频帧进行比对,获得所述水印透明图片携带的水印信息。
- 一种视频水印添加的设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如权利要求1~10中任意一项所述视频水印添加的方法。
- 一种视频水印提取的设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如权利要求11~16中任意一项所述视频水印提取的方法。
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~10中任意一项所述视频水印添加的方法。
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求11~16中任意一项所述视频水印提取的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910476010.5 | 2019-06-03 | ||
CN201910476010.5A CN112040336B (zh) | 2019-06-03 | 2019-06-03 | 视频水印添加、提取的方法、装置和设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020244474A1 true WO2020244474A1 (zh) | 2020-12-10 |
Family
ID=73576722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/093658 WO2020244474A1 (zh) | 2019-06-03 | 2020-06-01 | 视频水印添加、提取的方法、装置和设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112040336B (zh) |
WO (1) | WO2020244474A1 (zh) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112822544A (zh) * | 2020-12-31 | 2021-05-18 | 广州酷狗计算机科技有限公司 | 视频素材文件生成方法、视频合成方法、设备及介质 |
CN113379583A (zh) * | 2021-05-31 | 2021-09-10 | 北京达佳互联信息技术有限公司 | 图像签名方法、装置、计算设备及存储介质 |
CN113766273A (zh) * | 2021-01-05 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | 一种处理视频数据的方法和装置 |
CN114339449A (zh) * | 2022-01-10 | 2022-04-12 | 广东统信教育科技有限公司 | 在显示系统中嵌入水印的版权保护方法 |
CN115396742A (zh) * | 2022-07-11 | 2022-11-25 | 浙江大华系统工程有限公司 | 视频水印叠加方法、装置、计算机设备和存储介质 |
WO2024087864A1 (zh) * | 2022-10-24 | 2024-05-02 | 抖音视界有限公司 | 图像水印处理方法及装置 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114418825B (zh) * | 2022-03-10 | 2022-07-22 | 太平金融科技服务(上海)有限公司深圳分公司 | 图像处理方法、装置、计算机设备和存储介质 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090060261A1 (en) * | 2007-08-31 | 2009-03-05 | Xerox Corporation | System and method for the generation of correlation-based digital watermarks |
CN101742193A (zh) * | 2009-12-22 | 2010-06-16 | 北京中星微电子有限公司 | 一种在数字电影中添加水印的方法 |
CN103366330A (zh) * | 2012-03-31 | 2013-10-23 | 北大方正集团有限公司 | 水印的设置方法和装置 |
CN103458320A (zh) * | 2013-08-29 | 2013-12-18 | 上海美琦浦悦通讯科技有限公司 | 基于水印技术的版权控制系统及视频添加数字水印的方法 |
CN109413508A (zh) * | 2018-10-26 | 2019-03-01 | 广州虎牙信息科技有限公司 | 图像混合的方法、装置、设备、推流方法及直播系统 |
CN109685710A (zh) * | 2018-12-29 | 2019-04-26 | 北京奇虎科技有限公司 | 一种图像版权隐数字水印嵌入的方法及装置 |
CN109791579A (zh) * | 2017-03-14 | 2019-05-21 | 谷歌有限责任公司 | 半透明嵌入式水印 |
CN110896484A (zh) * | 2018-09-12 | 2020-03-20 | 中兴通讯股份有限公司 | 视频水印添加和提取方法、装置、视频播放端及存储介质 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101529082B1 (ko) * | 2008-12-01 | 2015-06-17 | 주식회사 케이티 | 분할된 추적 정보를 이용한 워터마킹 장치 및 방법 |
CN202455458U (zh) * | 2011-12-28 | 2012-09-26 | 成都东银信息技术股份有限公司 | 用于数字电视版权验证的数字水印叠加装置 |
-
2019
- 2019-06-03 CN CN201910476010.5A patent/CN112040336B/zh active Active
-
2020
- 2020-06-01 WO PCT/CN2020/093658 patent/WO2020244474A1/zh active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090060261A1 (en) * | 2007-08-31 | 2009-03-05 | Xerox Corporation | System and method for the generation of correlation-based digital watermarks |
CN101742193A (zh) * | 2009-12-22 | 2010-06-16 | 北京中星微电子有限公司 | 一种在数字电影中添加水印的方法 |
CN103366330A (zh) * | 2012-03-31 | 2013-10-23 | 北大方正集团有限公司 | 水印的设置方法和装置 |
CN103458320A (zh) * | 2013-08-29 | 2013-12-18 | 上海美琦浦悦通讯科技有限公司 | 基于水印技术的版权控制系统及视频添加数字水印的方法 |
CN109791579A (zh) * | 2017-03-14 | 2019-05-21 | 谷歌有限责任公司 | 半透明嵌入式水印 |
CN110896484A (zh) * | 2018-09-12 | 2020-03-20 | 中兴通讯股份有限公司 | 视频水印添加和提取方法、装置、视频播放端及存储介质 |
CN109413508A (zh) * | 2018-10-26 | 2019-03-01 | 广州虎牙信息科技有限公司 | 图像混合的方法、装置、设备、推流方法及直播系统 |
CN109685710A (zh) * | 2018-12-29 | 2019-04-26 | 北京奇虎科技有限公司 | 一种图像版权隐数字水印嵌入的方法及装置 |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112822544A (zh) * | 2020-12-31 | 2021-05-18 | 广州酷狗计算机科技有限公司 | 视频素材文件生成方法、视频合成方法、设备及介质 |
CN112822544B (zh) * | 2020-12-31 | 2023-10-20 | 广州酷狗计算机科技有限公司 | 视频素材文件生成方法、视频合成方法、设备及介质 |
CN113766273A (zh) * | 2021-01-05 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | 一种处理视频数据的方法和装置 |
CN113379583A (zh) * | 2021-05-31 | 2021-09-10 | 北京达佳互联信息技术有限公司 | 图像签名方法、装置、计算设备及存储介质 |
CN114339449A (zh) * | 2022-01-10 | 2022-04-12 | 广东统信教育科技有限公司 | 在显示系统中嵌入水印的版权保护方法 |
CN114339449B (zh) * | 2022-01-10 | 2023-09-01 | 广东统信教育科技有限公司 | 在显示系统中嵌入水印的版权保护方法 |
CN115396742A (zh) * | 2022-07-11 | 2022-11-25 | 浙江大华系统工程有限公司 | 视频水印叠加方法、装置、计算机设备和存储介质 |
WO2024087864A1 (zh) * | 2022-10-24 | 2024-05-02 | 抖音视界有限公司 | 图像水印处理方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN112040336B (zh) | 2023-03-14 |
CN112040336A (zh) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020244474A1 (zh) | 视频水印添加、提取的方法、装置和设备 | |
US11023618B2 (en) | Systems and methods for detecting modifications in a video clip | |
CN110896484B (zh) | 视频水印添加和提取方法、装置、视频播放端及存储介质 | |
US7224819B2 (en) | Integrating digital watermarks in multimedia content | |
US8363882B2 (en) | User discernible watermarking | |
EP2036035B1 (en) | System and method for object oreinted fingerprinting of digital videos | |
US20070003102A1 (en) | Electronic watermark-containing moving picture transmission system, electronic watermark-containing moving picture transmission method, information processing device, communication control device, electronic watermark-containing moving picture processing program, and storage medium containing electronic watermark-containing | |
US20140029786A1 (en) | Forensic marking using a common customization function | |
US9813780B2 (en) | Device and method to mark digital audio or audio and/or video content | |
US20170316189A1 (en) | Object-based watermarking | |
US8144870B2 (en) | Encoding and detecting apparatus | |
JP5646187B2 (ja) | アクセス方法、生成方法、ユーザ装置及び生成装置 | |
US20100098250A1 (en) | Movie based forensic data for digital cinema | |
US9319752B2 (en) | Robust watermark | |
US20050203872A1 (en) | Method and apparatus making, operating and using media parsers to mark, read, and unmark instances of media formats supporting one, two and multi-dimensional instances and data streams | |
CN113810780B (zh) | 视频传输方法、装置、及存储介质 | |
JP2005318068A (ja) | コンテンツ認証データの電子透かし埋め込み方式および認証方式 | |
CN117499665B (zh) | 一种基于灰度值量化的图像数据嵌入和提取方法、装置 | |
CN115622706A (zh) | 一种基于flv视频封装格式的数字水印添加及提取方法 | |
CN116527965A (zh) | 标记视频的生成方法和装置、视频标记的检测方法和装置 | |
Cika | New watermarking scheme for colour image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20817625 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20817625 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20817625 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/05/2022) |