WO2017092320A1 - 一种在视频中添加水印和确定水印的信息的方法和设备 - Google Patents

一种在视频中添加水印和确定水印的信息的方法和设备 Download PDF

Info

Publication number
WO2017092320A1
WO2017092320A1 PCT/CN2016/088954 CN2016088954W WO2017092320A1 WO 2017092320 A1 WO2017092320 A1 WO 2017092320A1 CN 2016088954 W CN2016088954 W CN 2016088954W WO 2017092320 A1 WO2017092320 A1 WO 2017092320A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
sub
time information
parameter value
region
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.)
Ceased
Application number
PCT/CN2016/088954
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Le Holdings Beijing Co Ltd, Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Le Holdings Beijing Co Ltd
Priority to US15/247,862 priority Critical patent/US20170161862A1/en
Publication of WO2017092320A1 publication Critical patent/WO2017092320A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8358Generation of protective data, e.g. certificates involving watermark
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/167Position within a video image, e.g. region of interest [ROI]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/0028Adaptive watermarking, e.g. Human Visual System [HVS]-based watermarking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0053Embedding of the watermark in the coding stream, possibly without decoding; Embedding of the watermark in the compressed domain
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0061Embedding of the watermark in each block of the image, e.g. segmented watermarking

Definitions

  • the present application relates to the field of video technologies, and in particular, to a method and an apparatus for adding a watermark to a video and determining information of the watermark.
  • the main format of the video on the network is H.264.
  • Network quality can be affected by many conditions (such as weather, network load, etc.), and the quality of the network will have a great impact on watching video. Therefore, the server providing the video needs to constantly interact with the device watching the H.264 video for card detection to determine whether the video is stuck or not, and if there is a jam, the quality of the network channel is improved.
  • the PTS Present Time Stamp
  • the PTS represents the time when one frame of image is expected to play, and the difference between the PTS of one frame of image and the time when the frame image is actually played is the delay time of video playback. The greater the delay time, the more serious the stuck phenomenon. Therefore, obtaining a PTS of a frame of image in a video is important to determine if the video is stuck.
  • the inventor has found that the current method for acquiring a frame of H.264 video PTS in a video is to encode the PTS of each frame of the video into a high frequency domain of the video file during video encoding, and then play the video.
  • the device decodes the PTS of each frame of video through a dedicated decoder. Therefore, the prior art requires the use of a dedicated decoder to obtain the PTS of each frame of video, which has the disadvantage of poor versatility.
  • the embodiment of the present application provides a method and a device for adding a watermark and determining a watermark in a video.
  • a dedicated decoder to acquire the PTS of each frame of the video, which is inferior in versatility.
  • an embodiment of the present application provides a method for adding a watermark to a video, including:
  • the method for adding a watermark may adjust the parity value of the specific parameter of the sub-region in the watermarking region of the image to be watermarked according to the pre-broadcast time information, and each sub-region corresponds to the binary pre-broadcast time information. Relationship, so the decoding device can determine binary pre-broadcast time information based on the parity values of all sub-regions of the watermarked image.
  • adjusting the specific parameter value of each sub-area of the target image according to the pre-broadcast time information of the target image to which the watermark is currently added including:
  • the value of the bit in the binary change time information is taken as a specific parameter value of the corresponding sub-area.
  • the embodiment of the present application may determine the binary change time information corresponding to the reference image according to the selection method of the reference image, and adjust the specific parameter according to the binary change time information. Therefore, the embodiment of the present application may adopt different frames.
  • the image is used as a reference image.
  • the specific parameter value is determined according to the target image and the reference image
  • Determining binary change time information according to the binary pre-time information including:
  • the binary pre-broadcast time information is used as binary change time information
  • the target image is Converting reference time information of the image of the previous frame into binary reference time information, and determining binary change time information according to the binary pre-broadcast time information and the binary reference time information, wherein the binary reference time information of the previous frame image is The binary pre-broadcast time information of the previous frame image.
  • the embodiment of the present application provides two specific methods for determining the binary change time information of the first frame image and the reference image of the video as the reference image. Therefore, the embodiment of the present application may select the two frames as a reference.
  • the image is more flexible.
  • the specific parameter value is one of the following parameters:
  • Luminance value, hue value, color saturation value, luminance residual value, hue residual value, color saturation residual value Luminance value, hue value, color saturation value, luminance residual value, hue residual value, color saturation residual value.
  • the embodiment of the present application can add a watermark containing pre-broadcast time information to the video by adjusting various parameters, and is more flexible.
  • the specific parameter value is one of a luminance residual value, a hue residual value, and a color saturation residual value
  • the specific parameter is a brightness residual value; if the reference parameter value is a tone value, the specific parameter is a hue residual value; if the reference parameter value is a color saturation value, The specific parameter is the color saturation residual value.
  • the decoding module of the video playback device of the embodiment of the present application sums the reference parameter value and the specific parameter value of one sub-area to obtain the target parameter value of the sub-area, and adjusts the reference parameter value of each sub-area of the reference image. It is an even number, so the user can more conveniently control the parity of the target parameter value of the sub-region obtained after decoding by controlling the parity of a specific parameter value of a sub-area before encoding.
  • the embodiment of the present application provides a method for determining information about a watermark in a video, including:
  • the specific parameter value of the same sub-area is equal to the parity value of the target parameter value, and the specific parameter value of each sub-area is adjusted by the encoding device according to the binary pre-broadcast time information.
  • the method for determining the watermark information in the video in the embodiment of the present application may obtain a one-digit value of the secondary pre-broadcast time information by determining the parity value of the target parameter of one sub-region in one frame image, and thus may be based on one frame.
  • the parity value of the target parameter of all sub-regions included in the image is used to obtain binary pre-broadcast information of the image of the frame.
  • determining, according to the determined target parameter value of each sub-area, a parity value of the target parameter value of each sub-area including:
  • the parity value of the target parameter value of the sub-area is 1, and if the target parameter value of the sub-area is an even number, the parity value of the target parameter value of the sub-area is 0; or
  • the parity value of the target parameter value of the sub-area is 0. If the target parameter value of the sub-area is an even number, the parity value of the target parameter value of the sub-area is 1.
  • the parity value of the sub-region can be determined more accurately according to the target parameter value of the sub-region.
  • determining, according to the determined parity value of the target parameter value of each sub-region, a value of a bit of binary pre-broadcast time information corresponding to each of the sub-regions including:
  • a value of a bit of binary pre-broadcast time information corresponding to each of the sub-regions is determined according to the determined parity value of the target parameter value of each of the sub-regions.
  • the embodiment of the present application can determine the value of the bit in the binary change time information corresponding to the sub-area according to the sub-area parity value, the binary pre-broadcast time information can be determined more accurately.
  • determining a target parameter value of each sub-area according to a specific parameter value of each sub-area in the watermarking area of the target image obtained in the decoding process including:
  • the specific parameter value is one of a brightness value, a tone value, and a color saturation value, the specific parameter value is taken as a target parameter value of the sub-region;
  • the specific parameter value is one of a luminance residual value, a hue residual value, and a color saturation residual value Determining, for a sub-region of the target image, a target parameter value of a sub-region of the target image according to a specific parameter value of the sub-region and a reference parameter value of the sub-region;
  • the specific parameter is a brightness residual value; if the reference parameter value is a tone value, the specific parameter is a hue residual value; if the reference parameter value is a color saturation value, The specific parameter is the color saturation residual value.
  • the method for adding a watermark in the embodiment of the present application provides two kinds of video to the pre-broadcast time information watermark for adjusting the parameter and adjusting the variation of the parameter, so that the user can more conveniently select the appropriate pre-broadcast time information watermark according to the situation.
  • the target parameter value is one of the following parameters:
  • an apparatus for adding a watermark to a video including:
  • a sub-area determining module configured to determine a plurality of sub-areas in the watermarking area of all frame images of the video
  • An information determining module configured to determine binary pre-broadcast time information of a target image that needs to be watermarked, and a bit corresponding to the binary pre-broadcast time information of each sub-area, where the number of the sub-areas is not less than the binary pre-broadcast The number of bits of time information;
  • an adjusting module configured to adjust, according to the binary pre-broadcast time information, a specific parameter value of each sub-area, such that a parity value corresponding to a specific parameter value of each sub-region and the binary pre-broadcast time information corresponding to the sub-area
  • the values of the bits are equal, such that the video display end determines the binary pre-broadcast time information of the target image according to a parity value corresponding to a specific parameter value of all sub-regions in the watermarking region of the target image.
  • the adjusting module is specifically configured to:
  • the value of the bit in the binary change time information is taken as a specific parameter value of the corresponding sub-area.
  • the specific parameter value is determined according to the target image and the reference image
  • the information determining module is specifically configured to:
  • the binary pre-broadcast time information is used as binary change time information
  • the reference image is a previous frame image of the target image in the video, converting reference time information of the previous frame image of the target image into binary reference time information, according to the binary pre-broadcast time information and the The binary reference time information determines binary change time information, wherein the binary reference time information of the previous frame image is binary pre-broadcast time information of the previous frame image.
  • the specific parameter value is one of the following parameters:
  • Luminance value, hue value, color saturation value, luminance residual value, hue residual value, color saturation residual value Luminance value, hue value, color saturation value, luminance residual value, hue residual value, color saturation residual value.
  • the specific parameter value is one of a luminance residual value, a hue residual value, and a color saturation residual value
  • the adjustment module is further configured to:
  • the specific parameter is a brightness residual value; if the reference parameter value is a tone value, the specific parameter is a hue residual value; if the reference parameter value is a color saturation value, The specific parameter is the color saturation residual value.
  • an embodiment of the present application provides an apparatus for determining information about a watermark in a video, including:
  • a parameter determining module configured to determine a target parameter value of each sub-region according to a specific parameter value of each sub-region in the watermarking region of the target image
  • a parity determination module configured to determine a parity value of a target parameter value of each sub-region
  • a time determining module configured to determine a value of a bit of binary pre-broadcast time information corresponding to each of the sub-regions according to the determined parity value of the target parameter value of each sub-region;
  • the parity value of the specific parameter value of each sub-area is adjusted by the encoding device according to the binary pre-broadcast time information; the specific parameter value of the same sub-area is equal to the parity value of the target parameter value.
  • the parity determining module is specifically configured to:
  • the parity value of the target parameter value of the sub-region is 1, and if the target parameter value of the sub-region is an even number, the parity value of the target parameter value of the sub-region Value is 0; or
  • the parity value of the target parameter value of the sub-area is 0. If the target parameter value of the sub-area is an even number, the parity value of the target parameter value of the sub-area is 1.
  • the time determining module is specifically configured to:
  • a value of a bit of binary pre-broadcast time information corresponding to each of the sub-regions is determined according to the determined parity value of the target parameter value of each of the sub-regions.
  • the parameter determination module is specifically configured to:
  • the specific parameter value is one of a brightness value, a tone value, and a color saturation value, the specific parameter value is taken as a target parameter value of the sub-region;
  • the specific parameter value is one of a luminance residual value, a hue residual value, and a color saturation residual value, for a sub-region of the target image, according to a specific parameter value of the sub-region and the a reference parameter value of the sub-region, determining a target parameter value of the sub-region of the target image;
  • the specific parameter is a brightness residual value; if the reference parameter value is a tone value, the specific parameter is a hue residual value; if the reference parameter value is a color saturation value, The specific parameter is the color saturation residual value.
  • the target parameter value is one of the following parameters:
  • an embodiment of the present application provides another device for adding a watermark in a video, including a memory, one or more processors, and one or more programs, where the one or more programs are When one or more processors execute, do the following:
  • Determining a plurality of sub-regions in the watermarking region of all frame images of the video determining binary pre-broadcast time information of the target image that currently needs to be watermarked, and bits corresponding to the binary pre-broadcast time information for each sub-region, wherein the sub-region
  • the number of the regions is not less than the number of bits of the binary pre-broadcast time information; according to the binary pre-broadcast time information, the specific parameter values of each sub-region are adjusted so that the parity values corresponding to the specific parameter values of each sub-region are The values of the bits of the binary pre-broadcast time information corresponding to the sub-areas are equal, so that the video display end determines the content of the target image according to a parity value corresponding to a specific parameter value of all sub-regions in the watermarking region of the target image.
  • the one or more programs are executed when executed by the one or more processors The following operations:
  • Determining the binary change time information according to the binary pre-time information determining the bit in the binary change time information corresponding to each sub-area according to the correspondence between the sub-region and the bit change time information; The value of the bit in the binary change time information is taken as a specific parameter value of the corresponding sub-area.
  • the specific parameter value is determined according to the target image and the reference image
  • the one or more programs when executed by the one or more processors, perform the operations described below:
  • the binary pre-broadcast time information is used as binary change time information
  • the reference image is a previous frame image of the target image in the video, converting reference time information of the previous frame image of the target image into binary reference time information, according to the binary pre-broadcast time information and the The binary reference time information determines binary change time information, wherein the binary reference time information of the previous frame image is binary pre-broadcast time information of the previous frame image.
  • the specific parameter value is one of the following parameters:
  • Luminance value, hue value, color saturation value, luminance residual value, hue residual value, color saturation residual value Luminance value, hue value, color saturation value, luminance residual value, hue residual value, color saturation residual value.
  • the specific parameter value is one of a luminance residual value, a hue residual value, and a color saturation residual value
  • the one or more programs when executed by the one or more processors, perform the operations described below:
  • the specific parameter is a brightness residual value; if the reference parameter value is a tone value, the specific parameter is a hue residual value; if the reference parameter value is a color saturation value, The specific parameter is the color saturation residual value.
  • an embodiment of the present application provides another apparatus for determining information of a watermark in a video, including a memory, one or more processors, and one or more programs, wherein the one or more programs are in the The following operations are performed when one or more processors are executed:
  • the parity value of the specific parameter value of each sub-area is adjusted by the encoding device according to the binary pre-broadcast time information; the specific parameter value of the same sub-area is equal to the parity value of the target parameter value.
  • the one or more programs when executed by the one or more processors, perform the following operations:
  • the parity value of the target parameter value of the sub-area is 1, and if the target parameter value of the sub-area is an even number, the parity value of the target parameter value of the sub-area is 0; or
  • the parity value of the target parameter value of the sub-area is 0. If the target parameter value of the sub-area is an even number, the parity value of the target parameter value of the sub-area is 1.
  • the one or more programs when executed by the one or more processors, perform the following operations:
  • a value of a bit of binary pre-broadcast time information corresponding to each of the sub-regions is determined according to the determined parity value of the target parameter value of each of the sub-regions.
  • the one or more programs perform the following operations when executed by the one or more processors
  • the specific parameter value is one of a brightness value, a tone value, and a color saturation value, the specific parameter value is taken as a target parameter value of the sub-region;
  • the specific parameter value is one of a luminance residual value, a hue residual value, and a color saturation residual value, for a sub-region of the target image, according to a specific parameter value of the sub-region and the a reference parameter value of the sub-region, determining a target parameter value of the sub-region of the target image;
  • the specific parameter is a brightness residual value; if the reference parameter value is a tone value, the specific parameter is a hue residual value; if the reference parameter value is a color saturation value, The specific parameter is the color saturation residual value.
  • the target parameter value is one of the following parameters:
  • FIG. 1 is a schematic diagram of a method for adding a watermark to a video according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a macroblock in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of adding a watermark region dividing sub-region according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a macroblock including a pixel according to an embodiment of the present application.
  • FIG. 5( a ) is a schematic diagram showing the same size of a sub-area in which a watermark region is added according to an embodiment of the present application;
  • FIG. 5(b) is a schematic diagram showing different sub-areas of a watermarking area according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of adjusting a watermarking area according to a binary pre-broadcast time information according to an embodiment of the present application
  • FIG. 7 is a schematic diagram of a method for determining watermark information according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an overall process of adding a watermark in a video and determining information in a watermark according to an embodiment of the present application
  • FIG. 9 is a schematic structural diagram of an apparatus for adding a watermark in a video according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an apparatus for determining watermark information according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of another apparatus for adding a watermark in a video according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another apparatus for determining watermark information according to an embodiment of the present application.
  • the embodiment of the present application provides a method for adding a watermark in a video. In the same manner, determining a plurality of sub-regions in a watermarking region of all frame images of a video; determining binary pre-broadcast time information of a target image that needs to be added with a watermark.
  • the parity value corresponding to the specific parameter value of each sub-area is equal to the value of the bit of the binary pre-broadcast time information corresponding to the sub-area, so that the video display end selects specific parameters of all sub-areas in the watermark-added area according to the target image.
  • the parity value corresponding to the value determines the binary pre-broadcast time information of the target image.
  • the method for adding a watermark may adjust the parity value of the specific parameter of the sub-region in the watermarking region of the image to be watermarked according to the pre-broadcast time information, and each sub-region corresponds to the binary pre-broadcast time information. Relationship, so the decoding device can determine binary pre-broadcast time information based on the parity values of all sub-regions of the watermarked image.
  • an embodiment of the present application provides a method for adding a watermark to a video, including:
  • Step 101 Determine a plurality of sub-regions in a watermarking region of all frame images of the video; wherein each sub-region corresponds to one bit of binary pre-broadcast information;
  • Step 102 Determine binary pre-broadcast time information of a target image that needs to be watermarked, and bits corresponding to the binary pre-broadcast time information of each sub-area, where the number of the sub-areas is not less than the binary pre-broadcast time information. Number of digits;
  • Step 103 Adjust, according to the binary pre-broadcast time information, a specific parameter value of each sub-area, such that the parity value corresponding to the specific parameter value of each sub-area and the bit of the binary pre-broadcast time information corresponding to the sub-area The values are equal to each other such that the video display end determines the binary pre-broadcast time information of the target image according to a parity value corresponding to a specific parameter value of all sub-regions in the watermarking region of the target image.
  • the method for adding a watermark in the embodiment of the present application can be used for a video encoded according to the H.264 standard, and can also be used for other video encoding methods for generating other frame images according to one frame of image.
  • the H.264 standard is a popular codec standard.
  • the execution body of the method of adding a watermark may be any device having a video encoding function such as a mobile phone or a computer.
  • the information added to the watermark in the embodiment of the present application is binary pre-broadcast time information, that is, the value obtained by converting the predicted play time of one frame of the network video into a binary number.
  • the video playback device can compare the pre-broadcast time information of one frame of the video with the actual playing time to determine the view. Whether the frequency is stuck or not, and the determined cardon information is fed back to the server providing the video, the server adjusts the network bandwidth according to the cardon information, and improves the state of the video played by the video playing device.
  • the lowest bit of the secondary pre-broadcast time information may represent 1 ms or other times (such as 0.1 ms).
  • the pre-broadcast time information is 1000 ms
  • the lowest bit of the binary pre-broadcast time information represents 1 ms
  • the converted binary pre-broadcast time information is 1111101000.
  • the watermarking area of the embodiment of the present application is an image block having the same content in the video.
  • the added watermark area may be a LOGO (such as a video provider logo) area. If the video is a program recorded by the television station, the watermark area may be added, or the station logo area of the television station.
  • the location and extent of the added watermark area can be set in the device (such as a computer) used to add a watermark depending on the video.
  • Embodiments of the present application determine one or more macroblocks as sub-regions in the watermarking region.
  • one frame of image is composed of a plurality of macroblocks. Adding a watermark area to a portion of a frame of an image is also composed of a plurality of macroblocks.
  • a macroblock is an image block composed of a plurality of pixels. When an image is adjusted, a single pixel cannot be directly adjusted, and the smallest unit adjusted each time is a macroblock.
  • a sub-area may be an off-the-shelf macroblock or may be divided into watermarked regions, including multiple macroblocks. As shown in FIG.
  • the watermarking area of one frame image is composed of four macroblocks of the same size, each of which is used as a sub-area. As shown in FIG. 3, the watermarking area of one frame image is composed of four macroblocks of the same size, and the watermarking area is divided into two left and right sub-regions, each of which includes two macroblocks.
  • the macroblock is divided into five types according to the number and arrangement of pixels: 4x4, 16x16, 8x16, 16x8 and 8x8.
  • the macroblock is a square or rectangular matrix composed of pixels.
  • the number in front of the multiplication sign indicates the number of pixels in the horizontal direction, after the multiplication
  • the number represents the number of pixels in the portrait, and the smallest macroblock is 4x4.
  • the size of one macroblock is 4x4.
  • the same frame image encoded by H.264 can use macroblocks of different sizes. For example, a region with a high image contrast uses a smaller macroblock, and vice versa.
  • the embodiment of the present application determines the sub-regions of all the frame image added watermark regions in the video in the same manner. For example, the watermarking region of the first frame image of the video is equally divided into four sub-regions, and the watermarking region of the second frame image of the video is equally divided into four sub-regions.
  • a certain number of pure white or pure black macroblocks in the watermark area are added as sub-regions, and other macroblocks are not used as sub-regions for adding binary pre-broadcast time. If this is used The number of macroblocks of pure white or pure black should be greater than or equal to the number of bits of the binary pre-broadcast time information. Otherwise, the method of selecting any macroblock from the watermarking area as a sub-area should be used.
  • the size of the sub-areas included in the added watermark area may be the same or different.
  • the watermarking region includes two sub-regions, each of which is a 4 ⁇ 4 macroblock; for example, as shown in FIG. 5(b), the watermarking region includes two sub-regions and one sub-region. It is a 4x4 macroblock and the other subarea is an 8x8 macroblock.
  • Each sub-area in the added watermark area may be associated with one of the binary pre-broadcast time information. If a sub-area has a correspondence with a bit in the binary pre-broadcast time information, the specific parameter value of the sub-area of the frame image may be adjusted according to the value of one bit in the binary pre-broadcast time information of the one-frame image. .
  • the number of sub-areas should be greater than or equal to the number of bits of binary pre-broadcast time information.
  • the specific parameter values of each corresponding sub-region of the binary pre-broadcast time information are respectively adjusted according to the value of each bit in the binary pre-broadcast time information.
  • the watermarking area is divided into two sub-areas: sub-area 1 and sub-area 2.
  • the binary pre-broadcast time information is a two-digit number of 10.
  • Sub-area 1 corresponds to the lower bits of the two-bit binary pre-broadcast time information
  • sub-area 2 corresponds to the higher bits of the two-bit binary pre-broadcast time information.
  • the specific parameter values of the sub-areas 1 are adjusted according to 0.
  • the value of each bit of the binary pre-broadcast time information is adjusted according to the specific parameter value of the sub-region corresponding to each bit of the binary pre-broadcast time information. And does not change the specific parameter value of the sub-region that does not have a correspondence with each bit of the binary pre-broadcast time information.
  • the watermarking area is divided into four sub-areas: sub-area 1, sub-area 2, sub-area 3, and sub-area 4.
  • the binary pre-broadcast time information is a two-digit number of 10.
  • Sub-area 1 corresponds to the lower bits of the two-bit binary pre-broadcast time information
  • sub-area 2 corresponds to the higher bits of the two-bit binary pre-broadcast time information. Then, according to the specific parameter values of the pair of sub-regions 2, the specific parameter values of the sub-region 1 are adjusted according to 0, and the original parameter values of the sub-region 3 and the sub-region 4 are kept unchanged.
  • the correspondence between the position of each sub-area in each frame of image and one bit in the secondary pre-broadcast time information is previously set in the watermarked device and the device that reads the watermark information.
  • the setting of the correspondence between the position of each sub-area in each frame image and the correspondence with one bit of the secondary pre-broadcast time information is the same in both devices.
  • the method for adding a watermark in the embodiment of the present application adjusts the same image parameter value (ie, a specific parameter value) of each sub-area according to the binary pre-broadcast time information.
  • the specific parameter value may be one of a luminance value, a tone value, a color saturation value, a luminance residual value, a hue residual value, and a color saturation residual value in the YUV coordinate system.
  • the encoded luminance value ranges from 0 to 255
  • the tone value and the color saturation value range from 0 to 127.
  • Luminance values have a larger range of values and are more suitable for use as specific parameter values that include the addition of pre-broadcast time information.
  • the method of adjusting the specific parameter values of an image can be divided into two types according to the specific parameter values:
  • Method 1 The specific parameter value is the parameter value of the image.
  • the specific parameter value is one of a brightness value, a tone value, and a color saturation value.
  • the specific parameter value is a luminance value
  • the adjusted region is a sub-region in the watermarking region
  • the parity value of the luminance in the one sub-region and one of the binary pre-time information may be adjusted.
  • the values of the bits are equal.
  • the parity value of the sub-area when the brightness parameter value of all the pixels in a sub-area is an odd number, the parity value of the sub-area is 1; when the brightness parameter value of all the pixels in a sub-area is an even number, the parity value of the sub-area is 0; or when the brightness parameter value of all pixels in a sub-area is odd, the parity value of this sub-area is 0; when the brightness parameter value of all pixels in a sub-area is even, the parity value of this sub-area Is 1.
  • the adjustment of the brightness value of the sub-area according to the parity value is divided into two ways according to positive logic and negative logic:
  • the luminance values of all the pixels in the area may be adjusted to an odd number; if the sub-area corresponds to 1 in the binary pre-broadcast time information, all the areas in the area may be The brightness values are all adjusted to an even number.
  • the encoding device uses positive logic, so there is no need to process binary encoded information.
  • one sub-region includes two pixel points, the luminance value of pixel 1 is 2, and the luminance value of pixel 2 is 3.
  • the luminance values of all pixels in one sub-region are adjusted. If it is an even number, the brightness value of the pixel 1 is not adjusted, and the parameter of the pixel 2 is +1, the brightness value of the pixel 1 after adjustment is 2, and the brightness value of the pixel 2 is 4, and the parity of the sub-area is finally determined.
  • the sex value gives a parity value of zero. For example, as shown in Figure 6.
  • the brightness parameter value of the watermarking area including 4 ⁇ 4 sub-areas is adjusted according to the binary pre-broadcast time information 001111101000, and the parity of the brightness values of all the sub-areas in the watermark area is added. Among them, if all in a sub-area If the luminance value of the pixel is an odd number, the parity of the region is "odd”; if the luminance value of all the pixels in a sub-region is an even number, the parity of the region is "even".
  • the luminance values of all the pixels in the area may be adjusted to an odd number; if the sub-area corresponds to 1 in the binary pre-broadcast time information, all the brightness in the area is used. The values are adjusted to an even number.
  • Negative logic is the opposite of positive logic, where 1 represents 1 of the actual number and 1 of the negative logic represents 0 of the actual number.
  • the actual number can be obtained by negating each digit of a multi-bit binary negative logical number. For example, "101" of negative logic represents the actual number 010.
  • the parity in negative logic is also opposite to the parity in positive logic. For example, in negative logic, 1 is an even number and 0 is an odd number.
  • the bitwise inversion is performed according to the binary encoding information, and then the specific parameter value of the subregion is adjusted according to the inverted secondary encoding information. For example, to adjust the luminance value of one pixel in the negative logic, if the value of the bit corresponding to the negative logical binary pre-broadcast information of the sub-region is 1, the luminance value of the pixel is adjusted to an even number, and the pixel is The negative logic brightness value is 100, and the brightness value can be adjusted to 101.
  • the parity of the specific parameter values of all the pixel points in the sub-area should theoretically be the same.
  • the parity of a particular parameter value of an individual pixel in a sub-area is different from the parity value of most other specific parameter values in a sub-area.
  • the user can set a certain ratio in the device for determining the watermark information. If the specific parameter value of the pixel in the sub-region exceeds a certain ratio (for example, 80%), the parity value of the specific parameter value of the sub-region is considered to be 1 (or 0).
  • the parity value of this sub-area is considered to be 0 (or 1).
  • a sub-area includes 16 pixel points, and the brightness value of the 16 pixel points is adjusted according to one bit of the binary pre-broadcast time information, and the brightness value of 15 pixels in the brightness value of 16 pixel points is obtained after decoding. For an even number, the luminance value of one pixel is an odd number.
  • the parity of the point determines the parity value of the entire sub-area, and the parity value of this sub-area is 0.
  • the parity value of the luminance value of one sub-area is adjusted to 1, including:
  • the brightness value of one pixel in the sub-area is an odd number, the brightness value of the pixel is not adjusted; if the brightness value of one pixel in the sub-area is an even number, the brightness value of the pixel is +1;
  • the brightness value of one pixel in the sub-area is an even number, the brightness value of the pixel is not adjusted; if the brightness value of one pixel in the sub-area is an odd number, the brightness value of the pixel is +1.
  • the encoding device preserves the content of all sub-regions of each frame of the video while encoding.
  • the decoding module of the video playback device may directly use the luminance values (ie, specific parameter values) of all sub-regions of each frame of the image before decoding as the luminance values (ie, target parameter values) of all sub-regions of each frame of the decoded image.
  • Method 2 The specific parameter value is the residual value of the parameter.
  • the specific parameter value is one of the luminance residual value, the hue residual value, and the color saturation residual value.
  • an encoding device can compress image blocks of the same or similar content in a multi-frame image with the same content, retain an image block of one of the image frames as a reference, and retain image blocks of other frame images and serve as a reference. The difference in image blocks of this frame of image.
  • the image block of the other frame image may be generated from the image block of the image as the reference and the image block of the other frame image and the image block of the frame image.
  • the specific parameter value in the embodiment of the present application is a residual value of a parameter, and represents a parameter of a sub-region of the same position as a frame image (ie, a target image) and an image (ie, a reference image) as a reference of the frame image.
  • the amount of change is a residual value of a parameter, and represents a parameter of a sub-region of the same position as a frame image (ie, a target image) and an image (ie, a reference image) as a reference of the frame image.
  • the content of the watermarked area of all frame images is initially the same. Therefore, the specific parameter value of all sub-regions of the target image in the initial state is 0, and may be 1 if it is negative logic.
  • the embodiment of the present application adjusts the specific parameter value according to the binary pre-broadcast information, so that the parity value of the specific parameter value of one sub-region and the binary pre-broadcast information corresponding to the sub-region The values of the bits are equal.
  • the method of adjustment is the same as that in Method 1, and is not described here.
  • the reference parameter values of each sub-area of the watermarking area of the reference image are adjusted such that the reference parameter values of each sub-area are even.
  • the adjustment of the brightness value of a sub-area of the reference image is an odd number, including:
  • the brightness value of one pixel in the sub-area is an odd number, the brightness value of the pixel is not adjusted; if the brightness value of one pixel in the sub-area is an even number, the brightness value of the pixel is +1;
  • adjusting the brightness value of a sub-area of the reference image to an even number includes:
  • the brightness value of one pixel in the sub-area is an even number, the brightness value of the pixel is not adjusted; if the brightness value of one pixel in the sub-area is an odd number, the brightness value of the pixel is +1.
  • the video playback device may obtain a target parameter value of the sub-region of the target image according to the reference parameter value of one sub-region of the reference image and the specific parameter value of the sub-region of the same position of the target image. Therefore, in the case where all the reference parameter values are adjusted to an even number, the parity of the target parameter value is the same as the parity of the specific parameter value.
  • Adjusting the parity of a specific parameter value of a sub-region of the target image before encoding may control the parity of the target parameter of the sub-region of the decoded target image, that is, the parity value and the target parameter of the specific parameter value corresponding to the same sub-region
  • the parity values of the values are equal.
  • adjusting the brightness residual value of a sub-area of the target image can be divided into three steps:
  • Step 1 Adjust the brightness value of the reference image.
  • the brightness values of all the pixels in the watermarking area of the reference image are all adjusted to an even or odd number.
  • the adjustment method is the same as the method of adjusting the brightness values of all the pixels in one sub-area to an even number in the first method, and details are not described herein.
  • step 1 need not be performed. Because the luminance values of all the pixels in the white macroblock are 255 (all are odd, the encoding device uses negative logic), the luminance values of all the pixels in the black macroblock are 0 (both even, the encoding device uses positive logic). Therefore, selecting the sub-area in this way does not need to perform step one in method two (ie, adjusting the parameters of all pixels in the reference image to an even number)
  • Step 2 Process binary pre-broadcast time information.
  • the embodiment of the present application processes the binary pre-broadcast time information according to the selection method of the reference image before adjusting the specific parameter value according to the binary pre-broadcast time information, to obtain binary change time information.
  • the bits of the secondary system change time correspond one-to-one with the number of bits of the binary pre-broadcast time information. For example two The pre-cast time information is two bits, the highest bit corresponds to sub-area 2, the lowest bit corresponds to sub-area 1, the binary change time information is also two bits, the highest bit corresponds to sub-area 2, and the lowest bit corresponds to sub-area 1.
  • the first frame image of the video is a reference image.
  • the binary pre-broadcast time information is taken as binary change time information.
  • the secondary pre-broadcast time information corresponding to the previous frame image may be operated with the secondary pre-broadcast time information of the target image (such as XOR), and the pre-broadcast time information of the target image is obtained relative to the front of the reference image.
  • the pre-broadcast time information of one frame of image changes which bits, and the result of the operation is used as binary change time information. For example, if the reference image is the first frame image of the video and the binary pre-broadcast time information is 1, the binary change time information is 1.
  • the reference image is the previous frame image of the target image
  • the binary pre-broadcast time information of the target image is 11
  • the second-level pre-broadcast time information corresponding to the previous frame image is 10
  • the 11 and 10 are XORed. , get the binary change time information is 1.
  • Step 3 Adjust the brightness residual value of the target image.
  • the luminance residual values of all the pixels in all the residual blocks corresponding to the sub-regions are determined according to the values of the bits of the secondary change time information corresponding to the sub-regions.
  • the way to control the residual value of a sub-area in the H.264 standard is to adjust the values in all residual blocks corresponding to the sub-area.
  • a residual block is fixed as a residual macroblock containing 4x4 pixels, and one sub-region may correspond to one or more residual blocks according to the size of the sub-region.
  • a sub-region corresponds to a one-bit value 1 in the secondary change time information
  • the sub-region corresponds to four residual blocks
  • each residual block is composed of 4 ⁇ 4 pixels, and the four residual blocks are shared.
  • the 16 residual values are assigned a value of 1.
  • the method for adding watermark information in the embodiment of the present application is related to the H.264 encoding, and the encoding mode can be set to achieve the best effect.
  • the quantization level of the encoding is adjusted, and the “quantization, variation, inverse quantization, and inverse transformation” of the encoding is set to “lossless”. This ensures that the image of all frames of the video does not appear to discard the residual value of the specific parameter used to determine the pre-broadcast time information of the image during encoding and decoding.
  • the macroblock prediction mode for generating the target image sub-region is set to “direct prediction” (ie, P_10 mode).
  • the H.264 standard includes a plurality of prediction modes for generating image blocks of other frame images based on image block prediction of a reference image. Since the content in the added watermark region in all the frame images in the video of the embodiment of the present application is static, no motion compensation is needed, and the direct prediction mode of the residual value of the specific parameter may be adopted.
  • the prediction mode of the sub-region is determined to be a P macroblock prediction mode according to a residual value of the specific parameter value corresponding to the sub-region in the target image.
  • the existing encoding device may be used to encode the watermarked video.
  • a coded video conforming to the H.264 standard can be obtained.
  • the embodiment of the present application provides a method for determining information about a watermark in a video, including:
  • Step 701 a target parameter value of each sub-region in the watermarking region of the target image obtained by decoding the target image;
  • Step 702 Determine, according to the determined target parameter value of each sub-area, a parity value of each sub-area;
  • Step 703 Determine, according to the determined parity value of each sub-area, a value of a bit of binary pre-broadcast time information corresponding to each of the sub-areas;
  • the parity value of each sub-area is adjusted by the encoding device according to the binary pre-broadcast time information
  • the execution body of the method for determining the information of the watermark may be a video playing device, or may be a server that can communicate with the video playing device.
  • the embodiment of the present application is used to determine a specific parameter value of all sub-regions in a decoded video after decoding a watermark-added video by a decoding module (such as a decoder chip) of the video playing device.
  • the sub-region corresponds to the sub-region in the watermarking method added above.
  • the video decoded by the decoding device is the video in the method 1 of adding a watermark above
  • the decoding device may directly use the specific parameter value of each sub-area of the target image as the target parameter value of each sub-area of the target image; if the video decoded by the decoding device is the video in the second method of adding the watermark above, the decoding device may The target parameter value of each sub-region of the target image is obtained by adding the reference parameter value of each sub-region of the reference image and the specific parameter value of each sub-region of the target image.
  • the embodiment of the present application may determine the value of the bit of the corresponding binary pre-broadcast information of each sub-area by determining the parity value of the target parameter value of each sub-area.
  • the parity value of a sub-area is determined, that is, the parity of the target parameter value of all pixels in the sub-area is determined.
  • the binary pre-broadcast time information may be quantized and multiplied by the time represented by the lowest bit to obtain pre-broadcast time information. For example, after the binary pre-broadcast time information 11_1110_1000 is obtained, the pre-broadcast time information of the target image is obtained by multiplying the binary pre-broadcast time information by the time represented by the lowest bit by 1 ms.
  • the method for determining the watermark information in the video in the embodiment of the present application may obtain a one-digit value of the secondary pre-broadcast time information by determining the parity value of the target parameter of one sub-region in one frame image, and thus may be based on one frame.
  • the parity value of the target parameter of all sub-regions included in the image is used to obtain binary pre-broadcast information of the image of the frame.
  • the overall process of adding a watermark in a video and determining a information in a watermark in the method embodiment includes:
  • Step 804 provides a method for adjusting the residual value of a specific parameter of a sub-area according to one bit of the binary pre-broadcast time information. This process needs to be performed multiple times until all the watermarking areas are adjusted according to the entire binary pre-broadcast time information.
  • the residual value of the specific parameter of the sub-area; likewise, steps 805-807 give a method of determining one bit of the binary pre-broadcast time information according to the target parameter of one sub-area, which needs to be executed multiple times to target according to all sub-areas The parameters determine the entire binary pre-broadcast time information.
  • Step 801 the watermarking device determines, according to the same manner, a plurality of sub-regions in the watermarking region of all frame images of the video;
  • Step 802 The prediction mode of the watermarking device setting encoding is “direct prediction”, and the specific parameter value is “luminance value”;
  • Step 803 adding a watermark device to set a first frame image of the video as a reference image, and adjusting a brightness value of all sub-regions of the reference image to an even number;
  • Step 804 The watermarking device determines binary change time information according to the binary pre-broadcast time information, and adjusts each sub-object of the target image corresponding to the bit of the second-order change time information according to the value of each bit in the binary change time information respectively.
  • Step 805 Add a watermark device to set a coding quantization level, and set quantization, variation, inverse quantization, and inverse transformation to lossless;
  • Step 806 The encoding device encodes the video according to the setting of the watermarking device to obtain an encoded video.
  • Step 807 The decoding device decodes the encoded video to obtain a decoded video.
  • the brightness value of the target image in the decoded video is determined by the luminance residual value of the sub-region in the target image and the luminance value of the sub-region at the same position of the reference image. of;
  • Step 808 The watermark information determining device determines a parity value of the sub-region of the target image according to the brightness value of the sub-region of the target image.
  • Step 809 The watermark information determining device determines, according to the parity value of the sub-area, the value of the secondary pre-broadcast time information and the bit corresponding to the sub-area, and further determines the secondary pre-broadcast time information.
  • the method for adding a watermark may adjust the parity value of the specific parameter of the sub-region in the watermarking region of the image to be watermarked according to the pre-broadcast time information, and each sub-region corresponds to the binary pre-broadcast time information. Relationship, so the decoding device can determine binary pre-broadcast time information based on the parity values of all sub-regions of the watermarked image.
  • an apparatus for adding a watermark in a video is also provided in the embodiment of the present application.
  • the method corresponding to the device is the method in the embodiment of the present application, and the method for solving the problem is similar to the method in the embodiment of the present application. Therefore, the implementation of the device can be referred to the implementation of the method, and the repeated description will not be repeated.
  • the embodiment of the present application provides an apparatus for adding a watermark to a video, including:
  • a sub-area determining module 901 configured to determine a plurality of sub-areas in the watermarking area of all frame images of the video;
  • the information determining module 902 is configured to determine binary pre-broadcast time information of the target image that needs to be watermarked, and a bit corresponding to the binary pre-broadcast time information of each sub-area, where the number of the sub-areas is not less than the binary pre- The number of bits of the broadcast time information;
  • the adjusting module 903 is configured to adjust, according to the binary pre-time information, a specific parameter value of each sub-area, such that a parity value corresponding to a specific parameter value of each sub-region and the binary pre-broadcast time corresponding to the sub-area
  • the values of the bits of the information are equal so that the video display is based on the target map
  • the parity value corresponding to a specific parameter value of all sub-regions in the watermarking region of the image determines the binary pre-broadcast time information of the target image.
  • the adjusting module 903 is specifically configured to:
  • the value of the bit in the binary change time information is taken as a specific parameter value of the corresponding sub-area.
  • the specific parameter value is determined according to the target image and the reference image
  • the information determining module 902 is specifically configured to:
  • the binary pre-broadcast time information is used as binary change time information
  • the reference image is a previous frame image of the target image in the video, converting reference time information of the previous frame image of the target image into binary reference time information, according to the binary pre-broadcast time information and the The binary reference time information determines binary change time information, wherein the binary reference time information of the previous frame image is binary pre-broadcast time information of the previous frame image.
  • the specific parameter value is one of the following parameters:
  • Luminance value, hue value, color saturation value, luminance residual value, hue residual value, color saturation residual value Luminance value, hue value, color saturation value, luminance residual value, hue residual value, color saturation residual value.
  • the specific parameter value is one of a luminance residual value, a hue residual value, and a color saturation residual value
  • the adjustment module 903 is further configured to:
  • the specific parameter is a brightness residual value; if the reference parameter value is a tone value, the specific parameter is a hue residual value; if the reference parameter value is a color saturation value, The specific parameter is the color saturation residual value.
  • the method for adding a watermark may adjust the parity value of the specific parameter of the sub-region in the watermarking region of the image to be watermarked according to the pre-broadcast time information, and each sub-region corresponds to the binary pre-broadcast time information. Relationship, so the decoding device can be added according to The parity value of all sub-areas of the watermarked image determines binary pre-broadcast time information.
  • an embodiment of the present application provides an apparatus for determining information about a watermark in a video, including:
  • the parameter determining module 1001 is configured to determine a target parameter value of each sub-region according to a specific parameter value of each sub-region in the watermarking region of the target image;
  • a parity determination module 1002 configured to determine a parity value of a target parameter value of each sub-region
  • the time determining module 1003 is configured to determine, according to the determined parity value of the target parameter value of each sub-region, a value of a bit of binary pre-broadcast time information corresponding to each of the sub-regions;
  • the parity value of the specific parameter value of each sub-area is adjusted by the encoding device according to the binary pre-broadcast time information; the specific parameter value of the same sub-area is equal to the parity value of the target parameter value.
  • the parity determining module 1002 is specifically configured to:
  • the parity value of the target parameter value of the sub-area is 1, and if the target parameter value of the sub-area is an even number, the parity value of the target parameter value of the sub-area is 0; or
  • the parity value of the target parameter value of the sub-area is 0. If the target parameter value of the sub-area is an even number, the parity value of the target parameter value of the sub-area is 1.
  • the time determining module 1003 is specifically configured to:
  • a value of a bit of binary pre-broadcast time information corresponding to each of the sub-regions is determined according to the determined parity value of the target parameter value of each of the sub-regions.
  • the parameter determining module 1001 is specifically configured to:
  • the specific parameter value is one of a brightness value, a tone value, and a color saturation value, the specific parameter value is taken as a target parameter value of the sub-region;
  • the specific parameter value is one of a luminance residual value, a hue residual value, and a color saturation residual value, for a sub-region of the target image, according to a specific parameter value of the sub-region and the a reference parameter value of the sub-region, determining a target parameter value of the sub-region of the target image;
  • the specific parameter is a brightness residual value; if the reference The parameter value is a tone value, and the specific parameter is a hue residual value; if the reference parameter value is a color saturation value, the specific parameter is a color saturation residual value.
  • the target parameter value is one of the following parameters:
  • the method for determining the watermark information in the video in the embodiment of the present application may obtain a one-digit value of the secondary pre-broadcast time information by determining the parity value of the target parameter of one sub-region in one frame image, and thus may be based on one frame.
  • the parity value of the target parameter of all sub-regions included in the image is used to obtain binary pre-broadcast information of the image of the frame.
  • another apparatus for adding a watermark in a video including a memory 1100, one or more processors 1101, and one or more programs 1102, wherein the one or more programs are The following operations are performed when executed by the one or more processors:
  • Determining a plurality of sub-regions in the watermarking region of all frame images of the video determining binary pre-broadcast time information of the target image that currently needs to be watermarked, and bits corresponding to the binary pre-broadcast time information for each sub-region, wherein the sub-region
  • the number of the regions is not less than the number of bits of the binary pre-broadcast time information; according to the binary pre-broadcast time information, the specific parameter values of each sub-region are adjusted so that the parity values corresponding to the specific parameter values of each sub-region are The values of the bits of the binary pre-broadcast time information corresponding to the sub-areas are equal, so that the video display end determines the content of the target image according to a parity value corresponding to a specific parameter value of all sub-regions in the watermarking region of the target image.
  • the method for adding a watermark may adjust the parity value of the specific parameter of the sub-region in the watermarking region of the image to be watermarked according to the pre-broadcast time information, and each sub-region corresponds to the binary pre-broadcast time information. Relationship, so the decoding device can determine binary pre-broadcast time information based on the parity values of all sub-regions of the watermarked image.
  • another apparatus for determining information about a watermark in a video includes:
  • Memory 1200 one or more processors 1201, and one or more programs 1202, wherein the one or more programs, when executed by the one or more processors, perform the operations described below:
  • the parity value of the specific parameter value of each sub-area is adjusted by the encoding device according to the binary pre-broadcast time information; the specific parameter value of the same sub-area is equal to the parity value of the target parameter value.
  • the method for determining the watermark information in the video in the embodiment of the present application may obtain a one-digit value of the secondary pre-broadcast time information by determining the parity value of the target parameter of one sub-region in one frame image, and thus may be based on one frame.
  • the parity value of the target parameter of all sub-regions included in the image is used to obtain binary pre-broadcast information of the image of the frame.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Computer Security & Cryptography (AREA)
  • Image Processing (AREA)

Abstract

本申请实施例涉及视频领域,尤其涉及一种在视频中添加水印和确定水印的信息的方法和设备。用以解决现有技术将PTS编入视频文件高频域中,需要使用专用的解码器的,通用性较差的问题。本申请确定多个子区域;确定目标图像的二进制预播时间信息,以及每个子区域对应二进制预播时间信息的位;对每个子区域的特定参数值进行调整,以使视频显示端根据目标图像的所有子区域的特定参数的奇偶性数值确定目标图像的二进制预播时间信息。由于本申请实施例可以根据预播时间信息对要添加水印的图像的添加水印区域中子区域的特定参数的奇偶性数值进行调整,因此解码设备可以根据添加了水印的图像所有子区域的奇偶性数值确定二进制预播时间信息。

Description

一种在视频中添加水印和确定水印的信息的方法和设备
本申请要求在2015年12月04日提交中国专利局、申请号为201510885409.0、申请名称为“一种在视频中添加水印和确定水印的信息的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及视频技术领域,尤其涉及一种在视频中添加水印和确定水印的信息的方法和设备。
背景技术
随着网络速度的提高,人们越来越多的在网上观看视频节目,网络上视频的主要格式为H.264。网络质量会受到很多条件的影响(如天气、网络的载荷情况等),网络质量的好坏会对观看视频会造成很大的影响。因而,提供视频的服务器需要不断的与观看H.264视频的设备进行交互进行卡顿检测,以确定视频是否出现卡顿现象,若出现卡顿现象则提高网络信道的质量。
在卡顿检测中,一帧图像的PTS(Present Time Stamp,目前的时间戳)为重要指标。PTS代表一帧图像预计播放对应的时间,一帧图像的PTS与该帧图像实际播出的时间之间的差值即为视频播放的延迟时间,延迟时间越大,则卡顿现象越严重。因此,获得视频中一帧图像的PTS对确定视频是否卡顿很重要。
在实现本发明的过程中,发明人发现,目前获取视频中一帧H.264视频PTS的方法是在视频编码时,将视频每帧图像的PTS编入视频文件高频域中,之后播放视频的设备通过专用的解码器将每帧视频的PTS解码出来。因此,现有技术需要使用专用的解码器获取视频每帧图像的PTS,通用性较差的缺点。
发明内容
本申请实施例提供一种在视频中添加水印和确定水印的信息的方法和设 备,以解决现有向视频中添加包含PTS信息的水印的方法需要使用专用的解码器获取视频每帧图像的PTS,通用性较差的问题。
第一方面,本申请实施例提供了一种在视频中添加水印的方法,包括:
确定视频的所有帧图像的添加水印区域中的多个子区域;
确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;
根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
由于本申请实施例添加水印的方法可以根据预播时间信息对要添加水印的图像的添加水印区域中子区域的特定参数的奇偶性数值进行调整,并且每个子区域与二进制预播时间信息存在对应关系,因此解码设备可以根据添加了水印的图像所有子区域的奇偶性数值确定二进制预播时间信息。
可选的,根据当前需要添加水印的目标图像的预播时间信息,对所述目标图像的每个子区域的特定参数值进行调整,包括:
根据所述二进制预播时间信息,确定二进制变化时间信息;
根据子区域和二进制变化时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
将所述二进制变化时间信息中的位的数值作为对应子区域的特定参数值。
本申请实施例可以根据参考图像的选择方法对二进制预播时间信息确定与参考图像相对应的二进制变化时间信息,并根据二进制变化时间信息对特定参数进行调整,因此本申请实施例可以采用不同帧的图像作为参考图像。
可选的,所述特定参数值是根据所述目标图像和所述参考图像确定的;
根据所述二进制预播时间信息,确定二进制变化时间信息,包括:
若所述参考图像是视频的第一帧图像,则将所述二进制预播时间信息作为二进制变化时间信息;
若所述参考图像是视频中所述目标图像的前一帧图像,则将所述目标图 像前一帧图像的参考时间信息转换成二进制参考时间信息,根据所述二进制预播时间信息和所述二进制参考时间信息,确定二进制变化时间信息,其中前一帧图像的二进制参考时间信息为所述前一帧图像的二进制预播时间信息。
本申请实施例给出了参考图像为视频的第一帧图像和参考图像为目标图像前一帧图像确定二进制变化时间信息的两种具体方法,因此本申请实施例可以选用这两帧图像作为参考图像,更加灵活。
可选的,所述特定参数值为下列参数中的一种:
亮度值、色调值、色饱和度值、亮度残差值、色调残差值、色饱和度残差值。
本申请实施例可以通过对多种参数的调整对视频加入包含预播时间信息的水印,更加灵活。
可选的,所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种;
对所述参考图像的添加水印区域的每个子区域的参考参数值进行调整,使每个子区域的参考参数值都为偶数;
其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
由于本申请实施例视频播放设备的解码模块对一个子区域的参考参数值和特定参数值求和以获得这个子区域的目标参数值,而又将参考图像的每个子区域的参考参数值都调整为偶数,因此用户可以更方便的在编码前通过控制一个子区域的特定参数值的奇偶性来控制解码后得到的这个子区域的目标参数值的奇偶性。
第二方面,本申请实施例提供了一种确定视频中水印的信息的方法,包括:
根据解码过程中得到的目标图像的添加水印区域中每个子区域的特定参数值,确定每个子区域的目标参数值;
确定每个子区域的目标参数值的奇偶性数值;
根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值;
其中,同一个子区域的特定参数值和目标参数值的奇偶性数值相等,所述每个子区域的特定参数值是编码设备根据所述二进制预播时间信息调整的。
由于本申请实施例的确定视频中水印信息的方法可以通过判断一帧图像中的一个子区域的目标参数的奇偶性数值来获得二级制预播时间信息的一位数值,因此可以根据一帧图像中包含的所有子区域的目标参数的奇偶性数值来获得这帧图像的二进制预播信息。
可选的,根据确定的每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值,包括;
根据目标图像的水印区域中每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值;
其中,若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为1,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为0;或
若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为0,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为1。
由于本申请实施例根据子区域的目标参数值获得子区域的奇偶性数值,从而可以更准确的根据子区域的目标参数值确定子区域的奇偶性数值。
可选的,根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值,包括:
根据子区域和二进制预播时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值。
由于本申请实施例可以根据子区域奇偶性数值确定与子区域对应的二进制变化时间信息中的位的数值,因此可以更准确的确定二进制预播时间信息。
可选的,根据解码过程中得到的目标图像的添加水印区域中每个子区域的特定参数值,确定每个子区域的目标参数值,包括:
若所述特定参数值为亮度值、色调值、色饱和度值中的一种,则将所述特定参数值作为子区域的目标参数值;
若所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一 种,针对所述目标图像的一个子区域,根据所述子区域的特定参数值与所述子区域的参考参数值,确定所述目标图像的子区域的目标参数值;
其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
本申请实施例添加水印的方法提供了调整参数和调整参数的变化量的两种向视频加入预播时间信息水印,使用户可以根据情况可以更方便的选择适合的加入预播时间信息水印。
可选的,所述目标参数值为下列参数中的一种:
亮度值、色调值、色饱和度值。
第三方面,本申请实施例提供了一种在视频中添加水印的设备,包括:
子区域确定模块,用于确定视频的所有帧图像的添加水印区域中的多个子区域;
信息确定模块,用于确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;
调整模块,用于根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
可选的,所述调整模块,具体用于:
根据所述二进制预播时间信息,确定二进制变化时间信息;
根据子区域和二进制变化时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
将所述二进制变化时间信息中的位的数值作为对应子区域的特定参数值。
可选的,所述特定参数值是根据所述目标图像和所述参考图像确定的;
所述信息确定模块,具体用于:
若所述参考图像是视频的第一帧图像,则将所述二进制预播时间信息作为二进制变化时间信息;
若所述参考图像是视频中所述目标图像的前一帧图像,则将所述目标图像前一帧图像的参考时间信息转换成二进制参考时间信息,根据所述二进制预播时间信息和所述二进制参考时间信息,确定二进制变化时间信息,其中前一帧图像的二进制参考时间信息为所述前一帧图像的二进制预播时间信息。
可选的,所述特定参数值为下列参数中的一种:
亮度值、色调值、色饱和度值、亮度残差值、色调残差值、色饱和度残差值。
可选的,所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种;
所述调整模块还用于:
对所述参考图像的添加水印区域的每个子区域的参考参数值进行调整,使每个子区域的参考参数值都为偶数;
其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
第四方面,本申请实施例提供了一种确定视频中水印的信息的设备,包括:
参数确定模块,用于根据目标图像的添加水印区域中每个子区域的特定参数值确定每个子区域的目标参数值;
奇偶确定模块,用于确定每个子区域的目标参数值的奇偶性数值;
时间确定模块,用于根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值;
其中,所述每个子区域的特定参数值的奇偶性数值是编码设备根据所述二进制预播时间信息调整的;同一个子区域的特定参数值和目标参数值的奇偶性数值相等。
可选的,所述奇偶确定模块,具体用于:
根据目标图像的水印区域中每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值;
其中,若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为1,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数 值为0;或
若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为0,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为1。
可选的,所述时间确定模块,具体用于:
根据子区域和二进制预播时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值。
可选的,参数确定模块具体用于:
若所述特定参数值为亮度值、色调值、色饱和度值中的一种,则将所述特定参数值作为子区域的目标参数值;
若所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种,针对所述目标图像的一个子区域,根据所述子区域的特定参数值与所述子区域的参考参数值,确定所述目标图像的子区域的目标参数值;
其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
可选的,所述目标参数值为下列参数中的一种:
亮度值、色调值、色饱和度值。
第五方面,本申请实施例提供了另一种在视频中添加水印的设备,包括存储器、一个或多个处理器以及一个或多个程序,其中,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
确定视频的所有帧图像的添加水印区域中的多个子区域;确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
可选的,所述一个或多个程序在由所述一个或多个处理器执行时执行 下述操作:
根据所述二进制预播时间信息,确定二进制变化时间信息;根据子区域和二进制变化时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;将所述二进制变化时间信息中的位的数值作为对应子区域的特定参数值。
可选的,其特征在于,所述特定参数值是根据所述目标图像和所述参考图像确定的;
所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
若所述参考图像是视频的第一帧图像,则将所述二进制预播时间信息作为二进制变化时间信息;
若所述参考图像是视频中所述目标图像的前一帧图像,则将所述目标图像前一帧图像的参考时间信息转换成二进制参考时间信息,根据所述二进制预播时间信息和所述二进制参考时间信息,确定二进制变化时间信息,其中前一帧图像的二进制参考时间信息为所述前一帧图像的二进制预播时间信息。
可选的,其特征在于,所述特定参数值为下列参数中的一种:
亮度值、色调值、色饱和度值、亮度残差值、色调残差值、色饱和度残差值。
可选的,所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种;
所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
对所述参考图像的添加水印区域的每个子区域的参考参数值进行调整,使每个子区域的参考参数值都为偶数;
其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
第六方面,本申请实施例提供了另一种确定视频中水印的信息的设备,包括存储器、一个或多个处理器以及一个或多个程序,其中,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
根据目标图像的添加水印区域中每个子区域的特定参数值确定每个子区域的目标参数值;确定每个子区域的目标参数值的奇偶性数值;根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值;
其中,所述每个子区域的特定参数值的奇偶性数值是编码设备根据所述二进制预播时间信息调整的;同一个子区域的特定参数值和目标参数值的奇偶性数值相等。
可选的,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
根据目标图像的水印区域中每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值;
其中,若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为1,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为0;或
若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为0,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为1。
可选的,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
根据子区域和二进制预播时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值。
可选的,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作
若所述特定参数值为亮度值、色调值、色饱和度值中的一种,则将所述特定参数值作为子区域的目标参数值;
若所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种,针对所述目标图像的一个子区域,根据所述子区域的特定参数值与所述子区域的参考参数值,确定所述目标图像的子区域的目标参数值;
其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值, 特定参数为色饱和度残差值。
可选的,所述目标参数值为下列参数中的一种:
亮度值、色调值、色饱和度值。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例在视频中添加水印的方法示意图;
图2为本申请实施例子区域为一个宏块的示意图;
图3为本申请实施例添加水印区域划分子区域的示意图;
图4为本申请实施例宏块包含像素示意图;
图5(a)为本申请实施例添加水印区域的子区域大小相同的示意图;
图5(b)为本申请实施例添加水印区域的子区域大小不同的示意图;
图6为本申请实施例添加水印区域根据二进制预播时间信息调整示意图;
图7为本申请实施例确定水印信息的方法示意图;
图8为本申请实施例在视频中添加水印和确定水印中的信息的方法的整体流程示意图;
图9为本申请实施例在视频中添加水印的设备结构示意图;
图10为本申请实施例确定水印信息的设备结构示意图;
图11为本申请实施例另一种在视频中添加水印的设备结构示意图;
图12为本申请实施例另一种确定水印信息的设备结构示意图。
具体实施方式
本申请实施例提供一种在视频中添加水印的方法,按照相同的方式,确定视频的所有帧图像的添加水印区域中的多个子区域;确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整, 使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
由于本申请实施例添加水印的方法可以根据预播时间信息对要添加水印的图像的添加水印区域中子区域的特定参数的奇偶性数值进行调整,并且每个子区域与二进制预播时间信息存在对应关系,因此解码设备可以根据添加了水印的图像所有子区域的奇偶性数值确定二进制预播时间信息。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
如图1所示,本申请实施例提供一种在视频中添加水印的方法,包括:
步骤101,确定视频的所有帧图像的添加水印区域中的多个子区域;其中,每个子区域与二进制预播信息的一位相对应;
步骤102,确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;
步骤103,根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
本申请实施例添加水印的方法可以用于根据H.264标准进行编码的视频,也可以用于其他根据一帧图像生成其它帧图像的编码方式的视频。H.264标准是一种流行的编解码标准。添加水印的方法的执行主体可以是手机,电脑等具有视频编码功能的任何设备。
本申请实施例添加到水印中的信息为二进制预播时间信息,即将网络视频中一帧图像预计播放时间转化为二进制数字得到的数值。视频播放设备可以将视频的一帧图像的预播时间信息与实际播放的时间进行比较,以确定视 频是否卡顿,并将确定的卡顿信息反馈给提供视频的服务器,服务器根据卡顿信息调整网络带宽,改善视频播放设备播放视频的卡顿状况。
实际应用中,二级制预播时间信息的最低位代表的时间可以是1ms,也可以是其它时间(如0.1ms)。例如,预播时间信息为1000ms,二进制预播时间信息的最低位代表1ms,则转换的二进制预播时间信息为1111101000。
本申请实施例的添加水印区域为视频中内容相同的图像块。添加水印区域可以是LOGO(比如视频提供商徽标)区域,若视频为电视台录制的节目,添加水印区域,也可以是电视台的台标区域。添加水印区域的位置和范围可根据视频的情况在用于添加水印的设备(如电脑)中设定。
本申请实施例在添加水印区域中确定一个或者多个宏块作为子区域。根据H.264标准,一帧图像由多个宏块组成。添加水印区域为一帧图像中的一部分同样由多个宏块组成。宏块为由多个像素组成的图像块,调整图像时无法直接对单个像素进行调整,每次调整的最小单元为宏块。一个子区域可以为一个现成的宏块,也可以是在添加水印区域中划分成的,其中包括多个宏块。如图2所示,一帧图像的添加水印区域由4个相同大小的宏块组成,将其中每个宏块作为一个子区域。如图3所示,一帧图像的添加水印区域由4个相同大小的宏块组成,将添加水印区域划分成左右两个子区域,每个子区域包括两个宏块。
宏块按照像素的个数和排列分为五种:4x4,16x16,8x16,16x8和8x8,宏块为由像素组成的正方或者长方形矩阵,乘号前面的数字表示横向的像素数量,乘号后面的数字表示纵向的像素数量,最小的宏块为4x4。例如,如图4所示,一个宏块的规模为4x4。H.264编码的同一帧图像可采用不同大小的宏块。例如图像对比度高的区域采用的宏块较小,反之较大。
本申请实施例按照相同的方式确定视频中所有帧图像添加水印区域的子区域。例如,视频的第一帧图像的添加水印区域平均分为四个子区域,视频的第二帧图像的添加水印区域同样平均分为四个子区域。
实际应用中,可以选择添加水印区域所有的宏块用于确定子区域,也可以选择其中的一部分用于确定子区域。
可选的,将添加水印区域中一定数量的纯白色或纯黑色的宏块,作为子区域,其他的宏块不作为用于添加二进制预播时间的子区域。若采用这种方 法,纯白色或纯黑色的宏块的数量应大于或等于二进制预播时间信息的位数,否则应采用上文中从添加水印区域选择任意宏块作为子区域的方法。
添加水印区域中包含的子区域的大小可以相同,也可以不相同。例如,如图5(a)所示,添加水印区域中包含两个子区域,每个子区域为一个4x4宏块;例如,如图5(b)所示,添加水印区域包含两个子区域一个子区域为4x4宏块,另一个子区域为一个8x8宏块。
添加水印区域中的每个子区域可以与二进制预播时间信息中的一位建立对应关系。若一个子区域与二进制预播时间信息中的一位存在对应关系,则可以根据一帧图像的二进制预播时间信息中的一位的数值对这帧图像的这个子区域的特定参数值进行调整。子区域的个数应大于或等于二进制预播时间信息的位数。
若子区域的个数等于二进制预播时间信息的位数,则根据二进制预播时间信息中每位的数值分别对二进制预播时间信息的每位对应的子区域的特定参数值进行调整。例如,添加水印区域分为两个子区域:子区域1和子区域2。二进制预播时间信息的为两位数10。子区域1对应两位二进制预播时间信息的较低位,子区域2对应两位二进制预播时间信息的较高位。则根据1对子区域2的特定参数值进行调整,根据0对子区域1的特定参数值进行调整。
若子区域的个数大于二进制预播时间信息的位数,则根据二进制预播时间信息的每位的数值分别对与二进制预播时间信息的每位存在对应关系的子区域的特定参数值进行调整,并且不改变与二进制预播时间信息的每位不存在对应关系的子区域的特定参数值。例如,添加水印区域分为四个子区域:子区域1、子区域2、子区域3和子区域4。二进制预播时间信息的为两位数10。子区域1对应两位二进制预播时间信息的较低位,子区域2对应两位二进制预播时间信息的较高位。则根据1对子区域2的特定参数值进行调整,根据0对子区域1的特定参数值进行调整,保持子区域3和子区域4原有的特定参数值不变。
每个子区域在每帧图像中的位置和与二级制预播时间信息中一位的对应关系是在添加水印的设备和读取水印信息的设备中事先设定好的。两种设备中对每个子区域在每帧图像中的位置和与二级制预播时间信息中一位的对应关系的设定是相同的。
本申请实施例添加水印的方法是根据二进制预播时间信息对每个子区域的同一图像参数值(即特定参数值)进行调整。其中,特定参数值可以是YUV坐标系中的亮度值、色调值、色饱和度值、亮度残差值、色调残差值、色饱和度残差值中的一种。根据H.264标准,编码后的亮度值范围为0~255,色调值和色饱和度值的范围为0~127。亮度值的数值范围更大,更适合用于作为包含添加预播时间信息的特定参数值。调整图像的特定参数值的方法根据特定参数值的不同可以分为两种:
方法一、特定参数值为图像的参数值。
这种情况下,特定参数值为亮度值、色调值、色饱和度值中一种。
具体的,以特定参数值为亮度值,调整的区域为添加水印区域中的一个子区域为例,可以通过调整使这个一个子区域中的亮度的奇偶性数值与二进制预播时间信息中的一位的数值相等。其中,当一个子区域中所有像素的亮度参数值为奇数,则这个子区域的奇偶性数值为1;当一个子区域中所有像素的亮度参数值为偶数,则这个子区域的奇偶性数值为0;或者当一个子区域中所有像素的亮度参数值为奇数,则这个子区域的奇偶性数值为0;当一个子区域中所有像素的亮度参数值为偶数,则这个子区域的奇偶性数值为1。
根据奇偶性数值对子区域的亮度值进行调整按照正逻辑和负逻辑分为两种方式:
(1)正逻辑:
若子区域与二进制预播时间信息中的0相对应,可以将这个区域内所有像素的亮度值都调整为奇数;若子区域与二进制预播时间信息中的1相对应,可以将这个区域内所有的亮度值都调整为偶数。编码设备使用正逻辑,则无需对二进制编码信息进行处理。
例如,一个子区域包括两个像素点,像素点1的亮度值为2,像素点2的亮度值为3,要使子区域中包含0的信息,将一个子区域内所有像素的亮度值调整为偶数,则对像素点1的亮度值不进行调整,对像素点2的参数+1,调整后像素点1的亮度值为2,像素点2的亮度值为4,最终确定子区域的奇偶性数值可获得奇偶性数值为0。例如,如图6所示。根据二进制预播时间信息001111101000对包含4x4个子区域的添加水印区域的亮度参数值进行调整,添加水印区域内所有子区域的亮度值的奇偶性。其中,若一个子区域内所有的 像素点的亮度值为奇数,则该区域的奇偶性为“奇”;若一个子区域内所有的像素点的亮度值为偶数,则该区域的奇偶性为“偶”。
(2)负逻辑:
若子区域与二进制预播时间信息中的0相对应,可以将这个区域内所有像素的亮度值都调整为奇数;若子区域与二进制预播时间信息中的1相对应,将这个区域内所有的亮度值都调整为偶数。
负逻辑与正逻辑相反,正逻辑中1代表实际数字的1,负逻辑中的1代表实际数字的0。通过对一个多位的二进制负逻辑数字的每位数字取反,可以获得实际的数字。例如,负逻辑的“101”代表实际数字010。负逻辑中奇偶性与正逻辑中的奇偶性也是相反的。例如,负逻辑中1为偶数,0为奇数。
因此,若编码设备使用的逻辑为负逻辑,根据二进制编码信息按位取反,再根据取反后的二级制编码信息对子区域的特定参数值进行调整。例如,以调整负逻辑中一个像素点的亮度值为例,这个子区域对应负逻辑的二进制预播信息的位的值为1,则将该像素点的亮度值调整为偶数,该像素点的负逻辑亮度值为100,可以将亮度值调整为101。
本申请实施例对一个子区域的特定参数值进行调整后,子区域内所有像素点的特定参数值的奇偶性理论上应该是相同的。但由于编码和解码可能会出现数据失真,可能会出现一个子区域中有个别像素的特定参数值的奇偶性与子区域中的其它大部分特定参数值的奇偶性数值不同的情况。用户可以在确定水印信息的设备中设定一定比率,若子区域中的像素点的特定参数值为奇数超过一定比例(例如80%),则认为这个子区域的特定参数值的奇偶性数值为1(或0)。若子区域中的像素点的特定参数值为偶数超过一定比例(例如80%),则认为这个子区域的奇偶性数值为0(或1)。例如,一个子区域内包括16个像素点,根据二进制预播时间信息的一位对这16个像素点的亮度值调整,解码后得到16个像素点的亮度值中15个像素点的亮度值为偶数,1个像素点的亮度值为奇数,用户设定判断子区域的亮度值的奇偶性数值时若子区域内80%的像素点的亮度值的奇偶性相同则可根据这80%的像素点的奇偶性判断整个子区域的奇偶性数值,则这个子区域的奇偶性数值为0。
可选的,将一个子区域的亮度值的奇偶性数值调整为1,包括:
若子区域内的一个像素点的亮度值为奇数,则不对该像素点的亮度值进行调整;若子区域内的一个像素点的亮度值为偶数,则对这个像素点的亮度值+1;
将一个子区域的亮度值的奇偶性数值调整为0,包括:
若子区域内的一个像素点的亮度值为偶数,则不对该像素点的亮度值进行调整;若子区域内的一个像素点的亮度值为奇数,则对这个像素点的亮度值+1。
方法一中,编码设备在编码时保留视频的每帧图像的所有子区域的内容。视频播放设备的解码模块可以直接将解码前每帧图像的所有子区域的亮度值(即特定参数值)作为解码后每帧图像的所有子区域的亮度值(即目标参数值)。
方法二、特定参数值为参数的残差值。
这种情况下,特定参数值为亮度残差值、色调残差值、色饱和度残差值中一种。
根据H.264标准,编码设备可以对多帧图像中位置相同的内容相同或相近的图像块进行压缩,保留其中一帧图像的图像块作为参考,并保留其他帧图像的图像块与作为参考的这帧图像的图像块的差异。视频播放设备在对经过这种编码的视频进行解码时,可以根据作为参考的图像的图像块和其他帧图像的图像块与这帧图像的图像块的差异生成其他帧图像的图像块。
本申请实施例中特定参数值为一种参数的残差值,代表一帧图像(即目标图像)和作为这帧图像的参考的图像(即参考图像)相同位置的子区域的一种参数的变化量。
所有帧图像的添加水印区域的内容初始时相同。因此,初始状态下目标图像的所有子区域的特定参数值为0,若为负逻辑也可以为1。
以特定参数值为亮度残差值为例,本申请实施例根据二进制预播信息对特定参数值进行调整,使一个子区域的特定参数值的奇偶性数值与这个子区域对应的二进制预播信息的位的数值相等。调整的方法与方法一中相同,不在赘述。
可选的,对所述参考图像的添加水印区域的每个子区域的参考参数值进行调整,使每个子区域的参考参数值都为偶数。
其中,将参考图像的一个子区域的亮度值的调整为奇数,包括:
若子区域内的一个像素点的亮度值为奇数,则不对该像素点的亮度值进行调整;若子区域内的一个像素点的亮度值为偶数,则对这个像素点的亮度值+1;
其中,将参考图像的一个子区域的亮度值的调整为偶数,包括:
若子区域内的一个像素点的亮度值为偶数,则不对该像素点的亮度值进行调整;若子区域内的一个像素点的亮度值为奇数,则对这个像素点的亮度值+1。
当进行上述调整后,参考图像的添加水印区域中每个子区域内所有像素点的参考参数值都为偶数。视频播放设备可以根据对参考图像的一个子区域的参考参数值和目标图像的相同位置的子区域的特定参数值相加,得到目标图像的这个子区域的目标参数值。因此,在所有的参考参数值被调整为偶数的情况下,目标参数值的奇偶性与特定参数值的奇偶性是相同的。编码前调整目标图像的一个子区域的特定参数值的奇偶性,可以控制解码后目标图像的这个子区域的目标参数的奇偶性,即对应相同子区域的特定参数值的奇偶性数值与目标参数值的奇偶性数值相等。
实际应用中,以参考参数值是亮度,特定参数值是亮度残差值为例,调整目标图像一个子区域的亮度残差值可以分为三个步骤:
步骤一、调整参考图像的亮度值。
将参考图像的添加水印区域的所有像素的亮度值全部调整为偶数或奇数,调整方式与方法一中将一个子区域中所有像素的亮度值调整为偶数的方式相同,不再赘述。
可选的,若子区域全部为上文中从添加水印区域中选择的白色或者黑色宏块,则不需要执行步骤一。因为白色的宏块中所有像素点的亮度值都为255(都为奇数,编码设备使用负逻辑),黑色的宏块中所有像素点的亮度值都为0(都为偶数,编码设备使用正逻辑)。因此,这样选取子区域在方法二中无需执行步骤一(即将参考图像中的所有像素的参数调整为偶数)
步骤二、处理二进制预播时间信息。
本申请实施例在根据二进制预播时间信息对特定参数值进行调整之前根据参考图像的选择方法对二进制预播时间信息进行处理,得到二进制变化时间信息。二级制变化时间的位与二进制预播时间信息位数一一对应。例如二 级制预播时间信息为两位,最高位对应子区域2,最低位对应子区域1,二进制变化时间信息同样为两位,最高位对应子区域2,最低位对应子区域1。
本申请实施例确定二进制变化时间信息的方法根据选择参考图像的方式分为两种:
(1)视频的第一帧图像为参考图像。
若参考图像为视频的第一帧图像,则将二进制预播时间信息作为二进制变化时间信息。
(2)目标图像的前一帧图像作为参考图像。
可以将前一帧图像对应的二级制预播时间信息与目标图像的二级制预播时间信息进行运算(如异或),得出目标图像的预播时间信息相对于作为参考图像的前一帧图像的预播时间信息哪些位发生了变化,运算得到的结果作为二进制变化时间信息。例如,参考图像为视频的第一帧图像,二进制预播时间信息为1,则二进制变化时间信息为1。又例如,参考图像为目标图像的前一帧图像,目标图像的二进制预播时间信息为11,前一帧图像对应的二级制预播时间信息为10,则将11和10做异或运算,得到二进制变化时间信息为1。
步骤三、调整目标图像的亮度残差值。
根据子区域对应的二级制变化时间信息的位的数值确定与子区域对应的所有的残差块中所有像素的亮度残差值。H.264标准中对子区域的残差值进行控制的方式是对子区域对应的所有残差块内的数值进行调整。一个残差块固定为包含4x4个像素的残差值宏块,依照子区域的大小,一个子区域可以对应一个或多个残差块。
例如,一个子区域对应二级制变化时间信息中的一位数值1,该子区域对应4个残差块,每个残差块为4x4个像素构成,则将这四个残差块内共16个残差数值赋值为1。
本申请实施例添加水印信息的方法与根据H.264编码相关,可对编码的模式进行一定的设置以达到最好的效果。
可选的,调整编码的量化等级,将编码的“量化、变化、反量化、逆变换”设置为“无损的”。这样可以保证视频所有帧的图像在编码和解码过程中不会出现丢弃用于确定图像的预播时间信息的特定参数的残差值的情况。
可选的,设置生成目标图像子区域的宏块预测模式为“直接预测”(即P_10模式)。H.264标准中包括多种根据参考图像的图像块预测生成其它帧图像的图像块的预测模式。由于本申请实施例视频中的所有帧图像中添加水印区域内的内容是静止的,无需运动补偿,可以采用特定参数的残差值的直接预测模式即可。
可选的,根据目标图像中的子区域对应的特定参数值的残差值确定子区域的预测模式为P宏块预测模式。
本申请实施例水印添加设备对视频添加水印后,可采用现有的编码设备对添加了水印的视频进行编码。可获得符合H.264标准的编码视频。
如图7所示,本申请实施例提供一种确定视频中水印的信息的方法,包括:
步骤701,对目标图像解码后得到的目标图像的添加水印区域中每个子区域的目标参数值;
步骤702,根据确定的每个子区域的目标参数值,确定每个子区域的奇偶性数值;
步骤703,根据确定的每个子区域的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值;
其中,所述每个子区域的奇偶性数值是编码设备根据所述二进制预播时间信息调整的;
其中,确定水印的信息的方法的执行主体可以为视频播放设备,也可以是与视频播放设备可以进行通讯的服务器。
本申请实施例用于在视频播放设备的解码模块(如解码器芯片)对添加了水印的视频进行解码后,确定经过解码的视频中所有子区域的特定参数值。子区域与上文中添加水印方法中的子区域相对应。
若解码设备解码的视频为上文中添加水印的方法一中的视频
则解码设备可以直接将目标图像的每个子区域的特定参数值作为目标图像的每个子区域的目标参数值;若解码设备解码的视频为上文中添加水印的方法二中的视频,则解码设备可以根据参考图像每个子区域的参考参数值和目标图像每个子区域的特定参数值相加获得目标图像的每个子区域的目标参数值。
本申请实施例在获得每个子区域的目标参数值后,可以通过确定每个子区域的目标参数值的奇偶性数值确定每个子区域的对应的二进制预播信息的位的数值。其中,确定一个子区域的奇偶性数值,即确定这个子区域中所有像素的目标参数值的奇偶性。一个子区域的奇偶性数值与子区域内所有像素点的奇偶性的对应关系在上文添加水印的方法中有详细介绍,在此不再赘述。
在确定二进制预播时间信息后可以将二进制预播时间信息量化,乘以最低位代表的时间,得到预播时间信息。例如,得到二进制预播时间信息11_1110_1000后,将二进制预播时间信息乘以最低位代表的时间1ms得到目标图像的预播时间信息1000ms。
由于本申请实施例的确定视频中水印信息的方法可以通过判断一帧图像中的一个子区域的目标参数的奇偶性数值来获得二级制预播时间信息的一位数值,因此可以根据一帧图像中包含的所有子区域的目标参数的奇偶性数值来获得这帧图像的二进制预播信息。
如图8所示,本方法实施例在视频中添加水印的和确定水印中信息的方法的整体流程包括:
其中,步骤804给出根据二进制预播时间信息的一位调整一个子区域的特定参数的残差值的方法,本流程中需要多次执行直到根据整个二进制预播时间信息调整添加水印区域内所有的子区域的特定参数的残差值;同样,步骤805~807给出根据一个子区域的目标参数确定二进制预播时间信息的一位的方法,需要多次执行以根据所有的子区域的目标参数确定整个二进制预播时间信息。
步骤801,添加水印设备根据相同的方式,确定视频的所有帧图像的添加水印区域中的多个子区域;
步骤802,添加水印设备设定编码的预测模式为“直接预测”,特定参数值为“亮度值”;
步骤803,添加水印设备设置视频的第一帧图像为参考图像,并将参考图像所有子区域的亮度值调整为偶数;
步骤804,添加水印设备根据二进制预播时间信息确定二进制变化时间信息,并分别根据所述二进制变化时间信息中的每位的数值调整与二级制变化时间信息的位相对应的目标图像的每个子区域的亮度残差值;
步骤805,添加水印设备设定编码量化等级,将量化、变化、反量化、逆变换设置为无损的;
步骤806,编码设备根据添加水印设备的设置对视频进行编码,得到编码视频;
步骤807,解码设备对编码视频进行解码,得到解码视频;其中,解码视频中的目标图像的亮度值是由目标图像中这个子区域亮度残差值和参考图像相同位置的子区域的亮度值确定的;
步骤808,水印信息确定设备根据目标图像的子区域的亮度值确定所述目标图像的子区域的奇偶性数值;
步骤809,水印信息确定设备根据所述子区域的奇偶性数值确定二级制预播时间信息与所述子区域对应的位的数值,进而确定二级制预播时间信息。
由于本申请实施例添加水印的方法可以根据预播时间信息对要添加水印的图像的添加水印区域中子区域的特定参数的奇偶性数值进行调整,并且每个子区域与二进制预播时间信息存在对应关系,因此解码设备可以根据添加了水印的图像所有子区域的奇偶性数值确定二进制预播时间信息。并且通过判断一帧图像中的一个子区域的目标参数的奇偶性数值来获得二级制预播时间信息的一位数值,从而可以根据一帧图像中包含的所有子区域的目标参数的奇偶性数值来获得这帧图像的二进制预播信息。
基于同一发明构思,本申请实施例中还提供了在视频中添加水印的设备,由于该设备对应的方法是本申请实施例中的方法,并且方法解决问题的原理与本申请实施例的方法相似,因此该设备的实施可以参见方法的实施,重复之处不再赘述。
如图9所示,本申请实施例提供了一种在视频中添加水印的设备,包括:
子区域确定模块901,用于确定视频的所有帧图像的添加水印区域中的多个子区域;
信息确定模块902,用于确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;
调整模块903,用于根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图 像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
可选的,所述调整模块903,具体用于:
根据所述二进制预播时间信息,确定二进制变化时间信息;
根据子区域和二进制变化时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
将所述二进制变化时间信息中的位的数值作为对应子区域的特定参数值。
可选的,所述特定参数值是根据所述目标图像和所述参考图像确定的;
所述信息确定模块902,具体用于:
若所述参考图像是视频的第一帧图像,则将所述二进制预播时间信息作为二进制变化时间信息;
若所述参考图像是视频中所述目标图像的前一帧图像,则将所述目标图像前一帧图像的参考时间信息转换成二进制参考时间信息,根据所述二进制预播时间信息和所述二进制参考时间信息,确定二进制变化时间信息,其中前一帧图像的二进制参考时间信息为所述前一帧图像的二进制预播时间信息。
可选的,所述特定参数值为下列参数中的一种:
亮度值、色调值、色饱和度值、亮度残差值、色调残差值、色饱和度残差值。
可选的,所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种;
所述调整模块903还用于:
对所述参考图像的添加水印区域的每个子区域的参考参数值进行调整,使每个子区域的参考参数值都为偶数;
其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
由于本申请实施例添加水印的方法可以根据预播时间信息对要添加水印的图像的添加水印区域中子区域的特定参数的奇偶性数值进行调整,并且每个子区域与二进制预播时间信息存在对应关系,因此解码设备可以根据添加 了水印的图像所有子区域的奇偶性数值确定二进制预播时间信息。
如图10所示,本申请实施例提供了一种确定视频中水印的信息的设备,包括:
参数确定模块1001,用于根据目标图像的添加水印区域中每个子区域的特定参数值确定每个子区域的目标参数值;
奇偶确定模块1002,用于确定每个子区域的目标参数值的奇偶性数值;
时间确定模块1003,用于根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值;
其中,所述每个子区域的特定参数值的奇偶性数值是编码设备根据所述二进制预播时间信息调整的;同一个子区域的特定参数值和目标参数值的奇偶性数值相等。
可选的,所述奇偶确定模块1002,具体用于:
根据目标图像的水印区域中每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值;
其中,若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为1,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为0;或
若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为0,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为1。
可选的,所述时间确定模块1003,具体用于:
根据子区域和二进制预播时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值。
可选的,参数确定模块1001具体用于:
若所述特定参数值为亮度值、色调值、色饱和度值中的一种,则将所述特定参数值作为子区域的目标参数值;
若所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种,针对所述目标图像的一个子区域,根据所述子区域的特定参数值与所述子区域的参考参数值,确定所述目标图像的子区域的目标参数值;
其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考 参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
可选的,所述目标参数值为下列参数中的一种:
亮度值、色调值、色饱和度值。
由于本申请实施例的确定视频中水印信息的方法可以通过判断一帧图像中的一个子区域的目标参数的奇偶性数值来获得二级制预播时间信息的一位数值,因此可以根据一帧图像中包含的所有子区域的目标参数的奇偶性数值来获得这帧图像的二进制预播信息。
如图11所示,本申请实施例另一种在视频中添加水印的设备,包括存储器1100、一个或多个处理器1101以及一个或多个程序1102,其中,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
确定视频的所有帧图像的添加水印区域中的多个子区域;确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
由于本申请实施例添加水印的方法可以根据预播时间信息对要添加水印的图像的添加水印区域中子区域的特定参数的奇偶性数值进行调整,并且每个子区域与二进制预播时间信息存在对应关系,因此解码设备可以根据添加了水印的图像所有子区域的奇偶性数值确定二进制预播时间信息。
如图12所示,本申请实施例提供的另一种确定视频中水印的信息的设备,包括:
存储器1200、一个或多个处理器1201以及一个或多个程序1202,其中,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
根据目标图像的添加水印区域中每个子区域的特定参数值确定每个子区域的目标参数值;确定每个子区域的目标参数值的奇偶性数值;根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值;
其中,所述每个子区域的特定参数值的奇偶性数值是编码设备根据所述二进制预播时间信息调整的;同一个子区域的特定参数值和目标参数值的奇偶性数值相等。
由于本申请实施例的确定视频中水印信息的方法可以通过判断一帧图像中的一个子区域的目标参数的奇偶性数值来获得二级制预播时间信息的一位数值,因此可以根据一帧图像中包含的所有子区域的目标参数的奇偶性数值来获得这帧图像的二进制预播信息。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (30)

  1. 一种在视频中添加水印的方法,其特征在于,包括:
    确定视频的所有帧图像的添加水印区域中的多个子区域;
    确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;
    根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
  2. 如权利要求1中所述的方法,其特征在于,所述根据当前需要添加水印的目标图像的预播时间信息,对所述目标图像的每个子区域的特定参数值进行调整,包括:
    根据所述二进制预播时间信息,确定二进制变化时间信息;
    根据子区域和二进制变化时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
    将所述二进制变化时间信息中的位的数值作为对应子区域的特定参数值。
  3. 如权利要求2中所述的方法,其特征在于,所述特定参数值是根据所述目标图像和所述参考图像确定的;
    所述根据所述二进制预播时间信息,确定二进制变化时间信息,包括:
    若所述参考图像是视频的第一帧图像,则将所述二进制预播时间信息作为二进制变化时间信息;
    若所述参考图像是视频中所述目标图像的前一帧图像,则将所述目标图像前一帧图像的参考时间信息转换成二进制参考时间信息,根据所述二进制预播时间信息和所述二进制参考时间信息,确定二进制变化时间信息,其中前一帧图像的二进制参考时间信息为所述前一帧图像的二进制预播时间信息。
  4. 如权利要求1~3任一所述的方法,其特征在于,所述特定参数值为下列参数中的一种:
    亮度值、色调值、色饱和度值、亮度残差值、色调残差值、色饱和度残差值。
  5. 如权利要求4所述的方法,其特征在于,所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种;
    对所述参考图像的添加水印区域的每个子区域的参考参数值进行调整,使每个子区域的参考参数值都为偶数;
    其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
  6. 一种确定视频中水印的信息的方法,其特征在于,包括:
    根据解码过程中得到的目标图像的添加水印区域中每个子区域的特定参数值,确定每个子区域的目标参数值;
    确定每个子区域的目标参数值的奇偶性数值;
    根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值;
    其中,同一个子区域的特定参数值和目标参数值的奇偶性数值相等,所述每个子区域的特定参数值是编码设备根据所述二进制预播时间信息调整的。
  7. 如权利要求6所述的方法,其特征在于,所述根据确定的每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值,包括;
    根据目标图像的水印区域中每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值;
    其中,若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为1,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为0;或
    若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为0,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为1。
  8. 如权利要求6所述的方法,其特征在于,所述根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值,包括:
    根据子区域和二进制预播时间信息中的位的对应关系,确定所述每个子 区域对应的所述二进制变化时间信息中的位;
    根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值。
  9. 如权利要求6所述的方法,其特征在于,所述根据解码过程中得到的目标图像的添加水印区域中每个子区域的特定参数值,确定每个子区域的目标参数值,包括:
    若所述特定参数值为亮度值、色调值、色饱和度值中的一种,则将所述特定参数值作为子区域的目标参数值;
    若所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种,针对所述目标图像的一个子区域,根据所述子区域的特定参数值与所述子区域的参考参数值,确定所述目标图像的子区域的目标参数值;
    其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
  10. 如权利要求6~8任一所述的方法,其特征在于,所述目标参数值为下列参数中的一种:
    亮度值、色调值、色饱和度值。
  11. 一种在视频中添加水印的设备,其特征在于,包括:
    子区域确定模块,用于确定视频的所有帧图像的添加水印区域中的多个子区域;
    信息确定模块,用于确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;
    调整模块,用于根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
  12. 如权利要求11中所述的设备,其特征在于,所述调整模块,具体用于:
    根据所述二进制预播时间信息,确定二进制变化时间信息;
    根据子区域和二进制变化时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
    将所述二进制变化时间信息中的位的数值作为对应子区域的特定参数值。
  13. 如权利要求12中所述的设备,其特征在于,所述特定参数值是根据所述目标图像和所述参考图像确定的;
    所述信息确定模块,具体用于:
    若所述参考图像是视频的第一帧图像,则将所述二进制预播时间信息作为二进制变化时间信息;
    若所述参考图像是视频中所述目标图像的前一帧图像,则将所述目标图像前一帧图像的参考时间信息转换成二进制参考时间信息,根据所述二进制预播时间信息和所述二进制参考时间信息,确定二进制变化时间信息,其中前一帧图像的二进制参考时间信息为所述前一帧图像的二进制预播时间信息。
  14. 如权利要求11~13任一所述的设备,其特征在于,所述特定参数值为下列参数中的一种:
    亮度值、色调值、色饱和度值、亮度残差值、色调残差值、色饱和度残差值。
  15. 如权利要求14所述的设备,其特征在于,所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种;
    所述调整模块还用于:
    对所述参考图像的添加水印区域的每个子区域的参考参数值进行调整,使每个子区域的参考参数值都为偶数;
    其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
  16. 一种确定视频中水印的信息的设备,其特征在于,包括:
    参数确定模块,用于根据目标图像的添加水印区域中每个子区域的特定参数值确定每个子区域的目标参数值;
    奇偶确定模块,用于确定每个子区域的目标参数值的奇偶性数值;
    时间确定模块,用于根据确定的每个子区域的目标参数值的奇偶性数值, 确定与每个所述子区域对应的二进制预播时间信息的位的值;
    其中,所述每个子区域的特定参数值的奇偶性数值是编码设备根据所述二进制预播时间信息调整的;同一个子区域的特定参数值和目标参数值的奇偶性数值相等。
  17. 如权利要求16所述的设备,其特征在于,所述奇偶确定模块,具体用于:
    根据目标图像的水印区域中每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值;
    其中,若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为1,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为0;或
    若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为0,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为1。
  18. 如权利要求16所述的设备,其特征在于,所述时间确定模块,具体用于:
    根据子区域和二进制预播时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
    根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值。
  19. 如权利要求16所述的设备,其特征在于,参数确定模块具体用于:
    若所述特定参数值为亮度值、色调值、色饱和度值中的一种,则将所述特定参数值作为子区域的目标参数值;
    若所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种,针对所述目标图像的一个子区域,根据所述子区域的特定参数值与所述子区域的参考参数值,确定所述目标图像的子区域的目标参数值;
    其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
  20. 如权利要求16~19任一所述的设备,其特征在于,所述目标参数值为下列参数中的一种:
    亮度值、色调值、色饱和度值。
  21. 一种在视频中添加水印的设备,其特征在于,包括:
    存储器、一个或多个处理器以及一个或多个程序,其中,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
    确定视频的所有帧图像的添加水印区域中的多个子区域;确定当前需要添加水印的目标图像的二进制预播时间信息,以及每个子区域对应所述二进制预播时间信息的位,其中所述子区域的数量不小于所述二进制预播时间信息的位数;根据所述二进制预播时间信息,对每个子区域的特定参数值进行调整,使每个子区域的特定参数值对应的奇偶性数值与子区域对应的所述二进制预播时间信息的位的数值相等,以使视频显示端根据目标图像的添加水印区域中所有子区域的特定参数值对应的奇偶性数值确定所述目标图像的所述二进制预播时间信息。
  22. 如权利要求21中所述的设备,其特征在于,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
    根据所述二进制预播时间信息,确定二进制变化时间信息;根据子区域和二进制变化时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;将所述二进制变化时间信息中的位的数值作为对应子区域的特定参数值。
  23. 如权利要求22中所述的设备,其特征在于,所述特定参数值是根据所述目标图像和所述参考图像确定的;
    所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
    若所述参考图像是视频的第一帧图像,则将所述二进制预播时间信息作为二进制变化时间信息;
    若所述参考图像是视频中所述目标图像的前一帧图像,则将所述目标图像前一帧图像的参考时间信息转换成二进制参考时间信息,根据所述二进制预播时间信息和所述二进制参考时间信息,确定二进制变化时间信息,其中前一帧图像的二进制参考时间信息为所述前一帧图像的二进制预播时间信息。
  24. 如权利要求21~23任一所述的设备,其特征在于,所述特定参数值为下列参数中的一种:
    亮度值、色调值、色饱和度值、亮度残差值、色调残差值、色饱和度残 差值。
  25. 如权利要求24所述的设备,其特征在于,所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种;
    所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
    对所述参考图像的添加水印区域的每个子区域的参考参数值进行调整,使每个子区域的参考参数值都为偶数;
    其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
  26. 一种确定视频中水印的信息的设备,其特征在于,该设备包括:
    存储器、一个或多个处理器以及一个或多个程序,其中,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
    根据目标图像的添加水印区域中每个子区域的特定参数值确定每个子区域的目标参数值;确定每个子区域的目标参数值的奇偶性数值;根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值;
    其中,所述每个子区域的特定参数值的奇偶性数值是编码设备根据所述二进制预播时间信息调整的;同一个子区域的特定参数值和目标参数值的奇偶性数值相等。
  27. 如权利要求26所述的设备,其特征在于,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
    根据目标图像的水印区域中每个子区域的目标参数值,确定每个子区域的目标参数值的奇偶性数值;
    其中,若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为1,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为0;或
    若子区域的目标参数值为奇数,则子区域的目标参数值的奇偶性数值为0,若子区域的目标参数值为偶数,则子区域的目标参数值的奇偶性数值为1。
  28. 如权利要求26所述的设备,其特征在于,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:
    根据子区域和二进制预播时间信息中的位的对应关系,确定所述每个子区域对应的所述二进制变化时间信息中的位;
    根据确定的每个子区域的目标参数值的奇偶性数值,确定与每个所述子区域对应的二进制预播时间信息的位的值。
  29. 如权利要求26所述的设备,其特征在于,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作
    若所述特定参数值为亮度值、色调值、色饱和度值中的一种,则将所述特定参数值作为子区域的目标参数值;
    若所述特定参数值为亮度残差值、色调残差值、色饱和度残差值中的一种,针对所述目标图像的一个子区域,根据所述子区域的特定参数值与所述子区域的参考参数值,确定所述目标图像的子区域的目标参数值;
    其中,若所述参考参数值为亮度值,特定参数为亮度残差值;若所述参考参数值为色调值,特定参数为色调残差值;若所述参考参数值为色饱和度值,特定参数为色饱和度残差值。
  30. 如权利要求26~29任一所述的设备,其特征在于,所述目标参数值为下列参数中的一种:
    亮度值、色调值、色饱和度值。
PCT/CN2016/088954 2015-12-04 2016-07-06 一种在视频中添加水印和确定水印的信息的方法和设备 Ceased WO2017092320A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/247,862 US20170161862A1 (en) 2015-12-04 2016-08-25 Method and electronic device for adding watermark to video

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510885409.0 2015-12-04
CN201510885409.0A CN105898323A (zh) 2015-12-04 2015-12-04 一种在视频中添加水印和确定水印的信息的方法和设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/247,862 Continuation US20170161862A1 (en) 2015-12-04 2016-08-25 Method and electronic device for adding watermark to video

Publications (1)

Publication Number Publication Date
WO2017092320A1 true WO2017092320A1 (zh) 2017-06-08

Family

ID=57002133

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088954 Ceased WO2017092320A1 (zh) 2015-12-04 2016-07-06 一种在视频中添加水印和确定水印的信息的方法和设备

Country Status (3)

Country Link
US (1) US20170161862A1 (zh)
CN (1) CN105898323A (zh)
WO (1) WO2017092320A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112837202A (zh) * 2021-01-26 2021-05-25 支付宝(杭州)信息技术有限公司 基于隐私保护的水印图像的生成、攻击溯源方法及装置
CN113014926A (zh) * 2021-04-30 2021-06-22 北京汇钧科技有限公司 视频的转码方法、装置、电子设备及存储介质

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525900A (zh) * 2018-12-21 2019-03-26 广州华多网络科技有限公司 在视频中添加水印的方法、装置、终端及存储介质
CN115866356B (zh) * 2019-04-28 2025-04-22 腾讯科技(深圳)有限公司 一种视频的水印添加方法、装置、设备及存储介质
CN110634095B (zh) * 2019-08-02 2023-08-08 北京大米科技有限公司 水印添加方法、水印识别方法、装置和电子设备
CN111031378B (zh) * 2019-12-20 2022-04-05 山东浪潮超高清视频产业有限公司 一种视频打点和记录epg信息的方法
CN113364932B (zh) * 2020-03-04 2022-09-06 浙江宇视科技有限公司 水印的添加方法、装置、存储介质及设备
CN111953994B (zh) * 2020-08-31 2021-08-06 威创集团股份有限公司 一种视频水印添加方法和装置
CN113825013B (zh) * 2021-07-30 2023-11-14 腾讯科技(深圳)有限公司 图像显示方法和装置、存储介质及电子设备
CN113810781B (zh) * 2021-11-17 2022-04-26 三节课信息咨询(北京)有限公司 视频处理方法、装置、视频追踪方法、装置及存储介质
CN115314754A (zh) * 2022-06-17 2022-11-08 网易(杭州)网络有限公司 交互控件的显示控制方法、装置和电子设备

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174425A1 (en) * 2000-10-26 2002-11-21 Markel Steven O. Collection of affinity data from television, video, or similar transmissions
JP2006270634A (ja) * 2005-03-24 2006-10-05 Victor Co Of Japan Ltd デジタル放送同期再生装置、ストリーム同期再生装置及びストリーム同期再生システム
CN101047833A (zh) * 2007-02-09 2007-10-03 浪潮电子信息产业股份有限公司 一种基于数字水印和双向机顶盒的节目监视管理系统
CN103283251A (zh) * 2010-12-26 2013-09-04 Lg电子株式会社 广播服务发送方法、广播服务接收方法和广播服务接收设备
CN104244033A (zh) * 2014-09-03 2014-12-24 乐视致新电子科技(天津)有限公司 视频播放方法和装置、智能终端
CN104519372A (zh) * 2014-12-19 2015-04-15 深圳市九洲电器有限公司 一种流媒体播放的切换方法和系统
CN104639955A (zh) * 2015-03-09 2015-05-20 德科仕通信(上海)有限公司 检测mpeg2-ts vbr码流质量问题的方法
CN104918133A (zh) * 2014-03-12 2015-09-16 北京视联动力国际信息技术有限公司 一种视联网中视频流的播放方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6208735B1 (en) * 1997-09-10 2001-03-27 Nec Research Institute, Inc. Secure spread spectrum watermarking for multimedia data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174425A1 (en) * 2000-10-26 2002-11-21 Markel Steven O. Collection of affinity data from television, video, or similar transmissions
JP2006270634A (ja) * 2005-03-24 2006-10-05 Victor Co Of Japan Ltd デジタル放送同期再生装置、ストリーム同期再生装置及びストリーム同期再生システム
CN101047833A (zh) * 2007-02-09 2007-10-03 浪潮电子信息产业股份有限公司 一种基于数字水印和双向机顶盒的节目监视管理系统
CN103283251A (zh) * 2010-12-26 2013-09-04 Lg电子株式会社 广播服务发送方法、广播服务接收方法和广播服务接收设备
CN104918133A (zh) * 2014-03-12 2015-09-16 北京视联动力国际信息技术有限公司 一种视联网中视频流的播放方法和装置
CN104244033A (zh) * 2014-09-03 2014-12-24 乐视致新电子科技(天津)有限公司 视频播放方法和装置、智能终端
CN104519372A (zh) * 2014-12-19 2015-04-15 深圳市九洲电器有限公司 一种流媒体播放的切换方法和系统
CN104639955A (zh) * 2015-03-09 2015-05-20 德科仕通信(上海)有限公司 检测mpeg2-ts vbr码流质量问题的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112837202A (zh) * 2021-01-26 2021-05-25 支付宝(杭州)信息技术有限公司 基于隐私保护的水印图像的生成、攻击溯源方法及装置
CN112837202B (zh) * 2021-01-26 2022-04-08 支付宝(杭州)信息技术有限公司 基于隐私保护的水印图像的生成、攻击溯源方法及装置
CN113014926A (zh) * 2021-04-30 2021-06-22 北京汇钧科技有限公司 视频的转码方法、装置、电子设备及存储介质
CN113014926B (zh) * 2021-04-30 2023-04-07 北京汇钧科技有限公司 视频的转码方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN105898323A (zh) 2016-08-24
US20170161862A1 (en) 2017-06-08

Similar Documents

Publication Publication Date Title
WO2017092320A1 (zh) 一种在视频中添加水印和确定水印的信息的方法和设备
CN105052143B (zh) 对多层vdr译码中的感知量化的视频内容进行编码
CN108063976B (zh) 一种视频处理方法及装置
WO2020119449A1 (zh) 色度块的预测方法和装置
KR102523233B1 (ko) 컬러 픽처를 디코딩하는 방법 및 디바이스
RU2013152741A (ru) Способ и устройство для генерирования сигнала кодирования изображения
CN109391846B (zh) 一种自适应模式选择的视频加扰方法及装置
CN116405686A (zh) 图像重建方法和装置
TWI882138B (zh) 圖像編碼方法、圖像解碼方法及相關裝置
KR102537393B1 (ko) Hdr 이미지를 재구성하기 위한 방법 및 디바이스
US20230370600A1 (en) A method and apparatus for encoding and decoding one or more views of a scene
TWI709330B (zh) 調色板解碼的裝置和方法
US12526426B2 (en) Tracking sample completion in video coding
US9607349B2 (en) Method and device for determining a set of modifiable elements in a group of pictures
CN112204971A (zh) 视频图像编码方法、设备及可移动平台
WO2020103800A1 (zh) 视频解码方法和视频解码器
CN106454348A (zh) 一种视频编解码方法和装置
US20170111645A1 (en) Methods, Receiving Device and Sending Device For Managing a Picture
CN106412595B (zh) 用于编码高动态范围帧以及施加的低动态范围帧的方法和设备
CN113366842B (zh) 基于内容层的视频压缩的系统和方法
CN103024384A (zh) 一种视频编码、解码方法及装置
CN110049347B (zh) 在直播界面配置图像的方法、系统、终端和装置
CN118524195A (zh) 一种色调映射方法及装置
CN101083768A (zh) 处理视频数据的编码器和编码方法及解码器和解码方法
De Praeter et al. Simultaneous encoder for high-dynamic-range and low-dynamic-range video

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: 16869633

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: 16869633

Country of ref document: EP

Kind code of ref document: A1