WO2020062744A1 - 视频水印添加方法以及装置、电子设备及存储介质 - Google Patents
视频水印添加方法以及装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2020062744A1 WO2020062744A1 PCT/CN2019/073196 CN2019073196W WO2020062744A1 WO 2020062744 A1 WO2020062744 A1 WO 2020062744A1 CN 2019073196 W CN2019073196 W CN 2019073196W WO 2020062744 A1 WO2020062744 A1 WO 2020062744A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video frame
- watermark
- target video
- pixel
- target
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 7
- 238000004422 calculation algorithm Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000011156 evaluation Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 241000023320 Luma <angiosperm> Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234345—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/186—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
- H04N19/467—Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234309—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2347—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
- H04N21/4382—Demodulation or channel decoding, e.g. QPSK demodulation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440245—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8358—Generation of protective data, e.g. certificates involving watermark
Definitions
- Embodiments of the present disclosure relate to the field of Internet technologies, and for example, to a video watermark processing method and device, an electronic device, and a storage medium.
- the blind watermark refers to a watermark that is normally invisible to humans and can only be made visible by special methods. .
- a common method for adding a blind watermark is to transform an image from the time domain to the frequency domain by Fourier transform, add a watermark to the image in the frequency domain, and then transform the image from the frequency domain to the time domain by inverse Fourier transform. Get a watermark image.
- this method to add a blind watermark when the image is converted from the time domain to the frequency domain, the entire image needs to be converted, which requires a large amount of calculation and the conversion process is complicated.
- Embodiments of the present disclosure provide a method and device for adding a video watermark, an electronic device, and a storage medium, so as to overcome the shortcomings in the related art of adding a large amount of calculation and complicated conversion process when adding a video watermark in the frequency domain.
- An embodiment of the present disclosure provides a method for adding a video watermark.
- the method includes:
- An embodiment of the present disclosure further provides a video watermark adding device, which includes:
- a conversion module configured to convert image data of a target video frame from an RGB format to a YUV format
- An offset module configured to superimpose a preset number of offset values for pixel values of pixels corresponding to the shape of the watermark to be added on the target video frame in the YUV format;
- the encoding module is configured to encode a target video frame after superimposing the offset value.
- An embodiment of the present disclosure further provides an electronic device, including:
- One or more processing devices are One or more processing devices;
- a storage device configured to store one or more programs
- the one or more processing devices When the one or more programs are executed by the one or more processing devices, the one or more processing devices enable the video watermark adding method according to any embodiment of the present disclosure.
- An embodiment of the present disclosure also provides a computer-readable storage medium on which a computer program is stored.
- the program is executed by a processing device, the method for adding a video watermark according to any of the embodiments of the present disclosure is implemented.
- FIG. 1a is a flowchart of a video watermark adding method according to an embodiment of the present disclosure
- FIG. 1b is a schematic diagram of a watermark provided by the disclosed embodiment
- FIG. 2 is a flowchart of a video watermark adding method according to an embodiment of the present disclosure
- FIG. 3 is a flowchart of a video watermark adding method according to an embodiment of the present disclosure
- FIG. 4 is a schematic structural diagram of a video watermark adding device according to an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
- FIG. 1a is a flowchart of a video watermark adding method according to an embodiment of the present disclosure. This embodiment is applicable to a case of adding a video watermark to a video.
- the method may be performed by a video watermark adding device, which may be implemented in software and hardware It can be implemented in at least one of the methods and can be configured in an electronic device. As shown in FIG. 1a, the method includes: step S110, step S120, and step S130.
- step S110 the image data of the target video frame is converted from the RGB format to the YUV format.
- the target video frame is a video frame to be added with a watermark determined from the original video, and when determining the target video frame, for example, one of the following rules 1) -3) may be used for extraction.
- the target video frames are extracted every predetermined number of frames, and the specific several frames may be extracted according to actual needs.
- the target video frames may be extracted every 5 frames.
- All the video frames in the preset time period are used as the target video frames. For example, all the video frames within 3 seconds of the head, tail and middle of the original video can be selected as the target video frames.
- RGB format data The three channels of RGB can be converted into one channel representing brightness (Y, also known as Luma) and two channels representing chromaticity (UV, also known as Chroma) through mathematical formulas, so as to realize conversion of image data in RGB format.
- Image data in YUV format for easy transmission.
- the video is currently stored, it is usually compressed and encoded based on the YUV color space.
- step S120 in the YUV format, a preset number of offset values are superimposed on the pixel values of the pixel points corresponding to the shape of the watermark to be added on the target video frame.
- the shape of the watermark to be added is determined by processing the watermark to be added. For example, by determining that an image composed of pixels whose watermark data is not zero is the shape of the watermark to be added, for example, the watermark shown in FIG. It is determined that the characters composed of pixels with non-zero pixel data in the rectangular frame are "2", that is, "2" is the shape to be added with a watermark. Determining the pixel points corresponding to the shape of the watermark to be added on the target video frame, and superimposing the pixel values of the pixel points by a preset number of offset values, thereby adding a watermark.
- a watermark can be added by superimposing a preset number of offset values on U-channel data or V-channel data of pixels corresponding to the shape of the watermark to be added on the target video frame.
- the preset number may be exemplarily any value between 1-3.
- step S130 the target video frame after the offset value is superimposed is encoded.
- the target video frame in the YUV format with the offset value superimposed it can be directly encoded and compressed for storage or release of subsequent videos.
- the image data of the target video frame is converted from the RGB format to the YUV format, and in the YUV format, the U of the pixel points corresponding to the shape of the watermark to be added to the target video frame is U
- the channel data or the V channel data is superimposed with a preset number of offset values to achieve the addition of a video watermark, and the target video frame after superimposing the offset value may be compression-encoded. Therefore, without time-domain and frequency-domain conversion, real-time video watermarking is added, the complexity of the watermarking process is reduced, and the efficiency of video watermarking is improved.
- FIG. 2 illustrates a flowchart of a video watermark adding method provided by an embodiment of the present disclosure.
- the step of adding a preset number of offset values to the pixel values of the pixel points corresponding to the shape of the watermark to be added on the target video frame includes steps S210 and S220.
- step S210 a target area for adding a watermark in the target video frame is determined.
- the target area is a corresponding area on the image of the target video frame determined according to the display content on the user operation interface displaying the target video frame.
- the target area to be watermarked is determined on the target video frame in the YUV format.
- the target area may be a corresponding area on the image of the target video frame determined according to the display content on the user interface (UI) displaying the target video frame. For example, the place where the text on the UI interface is more concentrated is displayed in The corresponding area on the image of the target video frame is used as the target area.
- UI user interface
- step S220 in the YUV format, a preset number of offset values are superimposed on the pixel values of the pixel points corresponding to the shape of the watermark to be added to the target region of the target video frame.
- the pixel points corresponding to the shape of the watermark to be added in the target area are determined, and the pixel values of the pixel points are superimposed with a preset number of offset values.
- a preset number of offset values may be superimposed on U channel data or V channel data of pixels corresponding to the shape of the watermark to be added on the target video frame, where the preset number may be exemplarily Any value between 1-3.
- a pixel point in the target area is darker in color, and its neighboring pixel point is lighter in color, and the pixel point may not be shifted. That is, in order to avoid affecting the original image and ensure the invisibility of the watermark, it is necessary to determine in advance whether the pixels corresponding to the shape of the watermark to be added in the target area meet the conditions for offsetting. For example, if the difference between the pixel values of the pixel points in the target region and the average of the pixel values of multiple pixel points in its neighborhood does not exceed a preset threshold, an offset value is superimposed on the pixel points.
- the preset threshold is 10
- the U / V channel data pixel value of a certain pixel is 128, the average of the pixel values of multiple pixels in the neighborhood of the pixel is 100, and the difference is 28 is greater than the preset threshold of 10, so This pixel does not need to be offset.
- a target area is determined on the target video frame in the YUV format, which is the U-channel data or V-channel of the pixel points corresponding to the shape of the watermark to be added on the target video frame.
- the data is superimposed with a preset number of offset values, so that the addition of a watermark can be achieved.
- the embodiment of the present disclosure does not need to convert the image data of the video frame to the frequency domain, and can realize real-time addition of a video watermark in the video frame in the time domain. Therefore, without time-domain and frequency-domain conversion, it is only necessary to perform format conversion and offset on the image data in the target area to achieve real-time video watermarking, reduce the complexity of the watermarking process, and increase the video addition. The efficiency of watermarking.
- FIG. 3 a flowchart of a method for adding a video watermark according to an embodiment of the present disclosure is shown. As shown in FIG. 3, the method includes steps S310 to S340.
- step S310 the image data of the target video frame is converted from the RGB format to the YUV format.
- step S320 in the YUV format, a preset number of offset values are superimposed on the pixel values of the pixel points corresponding to the shape of the watermark to be added on the target video frame.
- step S330 the target video frame after the offset value is superimposed is converted and encoded.
- step S340 when watermark detection is required, the image data of the watermarked target video frame is read and decoded, and the U-channel data or V-channel data in the YUV format obtained after decoding is extracted, and the watermark is detected by increasing the contrast. Existence.
- video watermarks need to be detected.
- the image data of one or more target video frames that have been watermarked is read and decoded.
- UV data or V channel data in YUV format by increasing the contrast.
- the contrast can be increased to 30%, and the presence of a watermark can be viewed with the naked eye to implement authentication.
- FIG. 4 shows a schematic structural diagram of a video watermark adding device according to an embodiment of the present disclosure. This embodiment is applicable to a case where a blind watermark is added to a recorded video.
- the video watermark adding device includes a conversion module 410, an offset module 420, and an encoding module 430.
- the conversion module 410 is configured to convert the image data of the target video frame from the RGB format to the YUV format.
- the offset module 420 is configured to superimpose a preset number of offset values for the pixel values of the pixels corresponding to the shape of the watermark to be added on the target video frame in the YUV format.
- the encoding module 430 is configured to encode a target video frame after superimposing the offset value.
- the offset module after the conversion module converts the image data of the target video frame from the RGB format to the YUV format, the offset module superimposes a preset number of pixel values of the pixel points corresponding to the shape of the watermark to be added on the target video frame.
- the offset value can be used to add a watermark.
- the encoding module encodes and compresses the target video frame superimposed with the offset value to facilitate subsequent transmission. In this way, without performing time-domain and frequency-domain conversion, real-time video watermarking is added, the complexity of the watermarking process is reduced, and the efficiency of video watermarking is improved.
- the target video frame is a video frame to be watermarked from the original video according to one of the following rules: video frames extracted every predetermined number of frames, all Video frames or video frames drawn by a random algorithm.
- the offset module is configured to determine a target area for adding a watermark in the target video frame, wherein the target area is determined according to display content on a user operation interface displaying the target video frame. A corresponding area on the image of the target video frame; a preset number of offset values are superimposed on the pixel values of the pixel points corresponding to the shape of the watermark to be added to the target area of the target video frame.
- the offset module is further configured to superimpose a preset number of offset values on U channel data or V channel data of the pixel points corresponding to the shape of the watermark to be added on the target video frame.
- the pixel point with the superimposed offset value further has the following feature: the pixel value of the pixel point is not more than a preset threshold compared with the average value of the pixel values of multiple pixel points in its neighborhood.
- the device further includes: a detection module.
- the detection module is configured to read and decode the image data of the watermarked target video frame when watermark detection is needed, extract the U-channel data or V-channel data in the YUV format after decoding, and increase the contrast to detect the watermark. Existence.
- the video watermark adding device provided by the embodiment of the present disclosure can execute the video watermark adding method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
- FIG. 5 illustrates a schematic structural diagram of an electronic device (such as a terminal device or a server) 500 suitable for implementing the embodiments of the present disclosure.
- the terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, Personal Digital Assistants (PDAs), tablet computers (Portable Android Devices, PADs), and portable multimedia players. (Portable Media Player, PMP, mobile terminal such as car navigation terminal) and fixed terminals such as digital television (TV), desktop computer, etc.
- PDAs Personal Digital Assistants
- PMP Portable Multimedia Player
- PMP mobile terminal such as car navigation terminal
- fixed terminals such as digital television (TV), desktop computer, etc.
- the electronic device shown in FIG. 5 is only an example and should not be handled. The functions and scope of use of the embodiments of the present disclosure bring any limitation.
- the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be based on a program stored in a read-only memory (ROM) 502 or from a storage device. 508 Loads a program into Random Access Memory (RAM) 503 to perform various appropriate actions and processes. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored.
- the processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504.
- An input / output (I / O) interface 505 is also connected to the bus 504.
- the following devices can be connected to the I / O interface 505: including input devices 506 such as a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc .; including, for example, a liquid crystal display (Liquid Crystal Display, LCD) Output devices 507, speakers, vibrators, etc .; including storage devices 508 such as magnetic tapes, hard disks, etc .; and communication devices 509.
- the communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data.
- FIG. 5 shows the electronic device 500 having various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or provided instead.
- the process described above with reference to the flowchart may be implemented as a computer software program.
- embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing a method shown in a flowchart.
- the computer program may be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502.
- the processing device 501 the above functions defined in the method of the embodiment of the present disclosure are executed.
- the computer-readable medium of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
- the computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Erasable Programmable Read Only Memory (EPROM or Flash), optical fiber, Compact Disc Read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or any suitable device described above The combination.
- a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal that is contained in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
- the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: electric wires, optical cables, radio frequency (RF), or any suitable combination of the foregoing.
- the computer-readable medium may be included in the electronic device, or it may exist alone without being assembled into the electronic device.
- the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet Protocol addresses; and sends to the node evaluation device including the at least two A node evaluation request for an Internet Protocol address, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained The Internet Protocol address indicates an edge node in the content distribution network.
- the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is configured to: receive a node evaluation request including at least two Internet Protocol addresses; and Among the at least two Internet protocol addresses, an Internet protocol address is selected; the selected Internet protocol address is returned; wherein the received Internet protocol address indicates an edge node in the content distribution network.
- Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including programming languages such as Java, Smalltalk, C ++, and also conventional Procedural programming language-such as "C" or similar programming language.
- the program code can be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer, partly on a remote computer, or entirely on a remote computer or server.
- the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN)-or it can be connected to an external computer ( (E.g. using an Internet service provider to connect via the Internet).
- LAN local area network
- WAN wide area network
- each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, which contains one or more functions to implement a specified logical function Executable instructions.
- the functions noted in the blocks may also occur in a different order than those marked in the drawings. For example, two successively represented boxes may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved.
- each block of at least one of the block diagrams and flowcharts, and the combination of the blocks of at least one of the block diagrams and flowcharts can be a dedicated hardware-based system that performs a specified function or operation To achieve, or can be implemented by a combination of dedicated hardware and computer instructions.
- the units described in the embodiments of the present disclosure may be implemented by software or hardware.
- the name of the unit does not constitute a limitation on the unit itself in some cases.
- the first obtaining unit may also be described as a “unit for obtaining at least two Internet Protocol addresses”.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Editing Of Facsimile Originals (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
公开了一种视频水印添加方法、装置、电子设备及存储介质,其中,所述方法包括:将目标视频帧的图像数据从RGB格式转换到YUV格式;在所述YUV格式下,为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值;将叠加所述偏移值后的目标视频帧进行编码。
Description
本申请要求在2018年09月30日提交中国专利局、申请号为201811161606.8的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
本公开实施例涉及互联网技术领域,例如涉及一种视频水印处理方法以及装置、电子设备及存储介质。
当前,人们对版权的保护越来越重视,尤其是对音像作品、数字图书等。因此在不破坏原始作品的情况下,常通过添加盲水印的方式实现版权的防护与追踪,其中,所述盲水印是指正常情况下人感知不到的、且只有通过特殊方法才能显形的水印。
目前,常见的添加盲水印的方法是通过傅里叶变换将图像从时域变换到频域,在频域对图像添加水印,再通过傅里叶逆变换把图像从频域转换到时域,得到水印图像。然而利用这种方法添加盲水印,在将图像从时域转换到频域时,需要对整幅图像都进行转换,计算量大且转换过程复杂。
发明内容
本公开实施例提供一种视频水印添加方法以及装置、电子设备及存储介质,以克服相关技术中在频域添加视频水印时存在的计算量大且转换过程复杂的缺陷。
本公开实施例提供了一种视频水印添加方法,该方法包括:
将目标视频帧的图像数据从RGB格式转换到YUV格式;
在所述YUV格式下,为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值;
将叠加所述偏移值后的目标视频帧进行编码。
本公开实施例还提供了一种视频水印添加装置,该装置包括:
转换模块,设置为将目标视频帧的图像数据从RGB格式转换到YUV格式;
偏移模块,设置为在所述YUV格式下,为所述目标视频帧上与待添加水印 的形状对应的像素点的像素值叠加预设数量的偏移值;
编码模块,设置为将叠加所述偏移值后的目标视频帧进行编码。
本公开实施例还提供了一种电子设备,包括:
一个或多个处理装置;
存储装置,设置为存储一个或多个程序,
当所述一个或多个程序被所述一个或多个处理装置执行,使得所述一个或多个处理装置实现如本公开任一实施例所述的视频水印添加方法。
本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理装置执行时实现如本公开任一实施例所述的视频水印添加方法。
附图概述
图1a是本公开实施例提供的视频水印添加方法的流程图;
图1b是公开明实施例提供的水印的示意图;
图2是本公开实施例提供的视频水印添加方法的流程图;
图3是本公开实施例提供的视频水印添加方法的流程图;
图4是本公开实施例提供的视频水印添加装置的结构示意图;
图5是本公开实施例中的电子设备的结构示意图。
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本公开,而非对本公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。
图1a为本公开实施例提供的视频水印添加方法的流程图,本实施例可适用于为视频添加视频水印的情况,该方法可以由视频水印添加装置来执行,该装置可以采用软件和硬件中的至少之一的方式实现,并可配置于电子设备中。如图1a所示,该方法包括:步骤S110、步骤S120和步骤S130。
在步骤S110中,将目标视频帧的图像数据从RGB格式转换到YUV格式。
在本实施例中,所述目标视频帧为从原始视频中确定的待添加水印的视频帧,而在确定目标视频帧时,例如可按照如下规则1)-3)之一进行提取。
1)每隔预定数量的帧提取目标视频帧,而具体隔几帧提取可根据实际需求 确定,本实施例中,例如可每隔5帧提取目标视频帧。
2)预设时间段内所有的视频帧作为目标视频帧,例如可以选取原始视频中的头部、尾部和中间的3秒内所有的视频帧均为目标视频帧。
3)通过随机算法抽取的视频帧作为目标视频帧。
由于现代的显示器技术通过组合不同强度的红(Red)绿(Green)蓝(Blue)三原色,来达成几乎任何一种可见光的颜色。在图像储存中,可通过记录每个像素的红绿蓝强度,来记录图像。而提取的目标视频帧的图像数据也即是RGB格式数据。可通过数学公式将RGB三通道转换为一个代表亮度的通道(Y,又称为Luma),和两个代表色度的通道(UV,并称为Chroma),以此实现RGB格式的图像数据转换成YUV格式的图像数据,以便于传输。此外,目前对视频进行存储之前通常都是基于YUV色彩空间进行压缩编码。
在步骤S120中,在所述YUV格式下,为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值。
本实施例中,通过对待添加水印进行处理,确定待添加水印的形状,例如通过确定水印数据不为零的像素点组成的图像即为待添加水印的形状,例如图1b所示的水印,通过确定矩形框内像素数据不为零的像素点组成的字符为“2”,即“2”为待添加水印的形状。确定所述目标视频帧上与待添加水印的形状对应的像素点,并将所述像素点的像素值叠加预设数量的偏移值,即可实现水印的添加。由于水印添加是在所述YUV格式下进行的,而由于人眼对亮度变化比较敏感,对色彩变化不敏感,因此可通过修改U或V通道数据添加水印,从而在很大程度上确保水印的隐身性。因此具体实现时,可通过为所述目标视频帧上,与待添加水印的形状对应的像素点的U通道数据或V通道数据叠加预设数量的偏移值,以此实现水印的添加。其中,所述预设数量可以示例性的为1-3之间的任意值。
在步骤S130中,将叠加所述偏移值后的目标视频帧进行编码。
对于已叠加偏移值的YUV格式的目标视频帧,可直接对其进行编码压缩,以便后续视频的存储或发布。
本公开实施例中,通过将目标视频帧的图像数据从RGB格式转换到YUV格式,并在所述YUV格式下,为所述目标视频帧上,与待添加水印的形状对应的像素点的U通道数据或V通道数据叠加预设数量的偏移值,即可实现视频水印的添加,只需再将叠加所述偏移值后的目标视频帧进行压缩编码即可。由此, 在不进行时域和频域转换的情况下,实现实时的添加视频水印,降低添加水印过程的复杂度,提高添加视频水印的效率。
下面参考图2,其示出了本公开实施例提供的视频水印添加方法的流程图。如图2所示,所述为目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值,包括:步骤S210和步骤S220。
在步骤S210中,确定目标视频帧中用于添加水印的目标区域。
其中,所述目标区域为根据展示目标视频帧的用户操作界面上的显示内容所确定的在目标视频帧的图像上对应的区域。
本实施例中,将目标视频帧的图像数据从RGB格式转换到YUV格式后,在YUV格式的目标视频帧上确定要添加水印的目标区域,为确保水印的隐匿性和不影响视频主体的观看,目标区域可以为根据展示目标视频帧的用户界面(User Interface,UI)上的显示内容所确定的在目标视频帧的图像上对应的区域,例如可将UI界面上文字显示比较集中的地方在目标视频帧的图像上对应的区域作为目标区域。
在步骤S220中,在所述YUV格式下,为所述目标视频帧的目标区域上,与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值。
本实施例中,针对YUV格式下目标区域内的图像数据,确定目标区域内与待添加水印的形状对应的像素点,并将所述像素点的像素值叠加预设数量的偏移值。具体实施时,可通过为所述目标视频帧上,与待添加水印的形状对应的像素点的U通道数据或V通道数据叠加预设数量的偏移值,其中,预设数量可以示例性的为1-3之间的任意值。
在一实施例中,对于目标区域内比较凸显的像素点,例如目标区域内某一像素点色彩比较深,其邻域像素点色彩比较浅,可对该像素点不作偏移。也即是为了避免对原始图像产生影响,并保证水印的隐身性,需预先判断目标区域内与待添加水印的形状对应的像素点是否满足做偏移的条件。例如,如果目标区域内像素点的像素值与其邻域内多个像素点的像素值的平均值相比,差值不超过预设阈值,则对该像素点叠加偏移值。例如,预设阈值为10,某一像素点的U/V通道数据像素值为128,该像素点邻域内多个像素点的像素值的平均100,差值为28大于预设阈值10,因此该像素点不需要做偏移。
在本公开实施例中,在所述YUV格式的目标视频帧上确定一目标区域,为 所述目标视频帧的目标区域上,与待添加水印的形状对应的像素点的U通道数据或V通道数据叠加预设数量的偏移值,如此即可实现水印的添加。本公开实施例不需要将视频帧的图像数据转换到频域,在时域内即可实现在视频帧内实时添加视频水印。由此,在不进行时域和频域转换的情况下,只需对目标区域内的图像数据进行格式转换和偏移,实现实时的添加视频水印,降低添加水印过程的复杂度,提高添加视频水印的效率。
下面参考图3,其示出了本公开实施例提供的一种视频水印添加方法的流程图。如图3所示,所述方法包括:步骤S310至步骤S340。
在步骤S310中,将目标视频帧的图像数据从RGB格式转换到YUV格式。
在步骤S320中,在所述YUV格式下,为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值。
在步骤S330中,将叠加所述偏移值后的目标视频帧转换进行编码。
在步骤S340中,在需要检测水印时,读取已添加水印的目标视频帧的图像数据并进行解码,提取解码后得到的YUV格式的U通道数据或V通道数据,通过加大对比度以检测水印的存在性。
在一实施例中,针对判定侵权的情况,需要检测视频水印,根据选取目标视频帧的规则,读取已添加水印的一个或多个目标视频帧的图像数据并进行解码,提取解码后得到的YUV格式的U通道数据或V通道数据,通过加大对比度。例如,对比度加大到30%,通过肉眼即可观看水印是否存在,以此实现鉴权。
本公开实施例在鉴权的时候,只需提取解码后的YUV格式的图像数据中的U通道数据或V通道数据,并通过加大对比度的方式,即可检测视频中的水印,如此可实现视频的快速鉴权。
下面参考图4,其示出了本公开实施例提供的视频水印添加装置的结构示意图,本实施例可适用于为录制的视频添加盲水印的情况。如图3所示,视频水印添加装置包括:转换模块410、偏移模块420和编码模块430。
转换模块410,设置为将目标视频帧的图像数据从RGB格式转换到YUV格式。
偏移模块420,设置为在所述YUV格式下,为所述目标视频帧上与待添加 水印的形状对应的像素点的像素值叠加预设数量的偏移值。
编码模块430,设置为将叠加所述偏移值后的目标视频帧进行编码。
本实施例中,转换模块将目标视频帧的图像数据从RGB格式转换到YUV格式后,偏移模块为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值,即可实现水印的添加,编码模块将叠加所述偏移值后的目标视频帧进行编码压缩,便于后续传输。如此在不进行时域和频域转换的情况下,实现实时的添加视频水印,降低添加水印过程的复杂度,提高添加视频水印的效率。
在上述实施例的基础上,所述目标视频帧为按照如下规则之一从原始视频中确定的待添加水印的视频帧:每隔预定数量的帧提取的视频帧、预设时间段内所有的视频帧或通过随机算法抽取的视频帧。
在一实施例中,所述偏移模块设置为:确定目标视频帧中用于添加水印的目标区域,其中,所述目标区域为根据展示目标视频帧的用户操作界面上的显示内容所确定的在目标视频帧的图像上对应的区域;为所述目标视频帧的目标区域上,与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值。
在一实施例中,所述偏移模块还设置为:为所述目标视频帧上,与待添加水印的形状对应的像素点的U通道数据或V通道数据叠加预设数量的偏移值。
在一实施例中,所述叠加偏移值的像素点还具有如下特点:该像素点的像素值与其邻域内多个像素点的像素值的平均值相比,差值不超过预设阈值。
在一实施例中,所述装置还包括:检测模块。
检测模块,设置为在需要检测水印时,读取已添加水印的目标视频帧的图像数据并进行解码,提取解码后得到的YUV格式的U通道数据或V通道数据,通过加大对比度以检测水印的存在性。
本公开实施例所提供的视频水印添加装置可执行本公开任意实施例所提供的视频水印添加方法,具备执行方法相应的功能模块和有益效果。
下面参考图5,其示出了适于用来实现本公开实施例的电子设备(例如终端设备或服务器)500的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP、车载终端(例如车载导航终端)等的移动 终端以及诸如数字电视(Television,TV)、台式计算机等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(Read-Only Memory,ROM)502中的程序或者从存储装置508加载到随机访问存储器(Random Access Memory,RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储 器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取至少两个网际协议地址;向节点评价设备发送包括所述至少两个网际协议地址的节点评价请求,其中,所述节点评价设备从所述至少两个网际协议地址中,选取网际协议地址并返回;接收所述节点评价设备返回的网际协议地址;其中,所获取的网际协议地址指示内容分发网络中的边缘节点。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:接收包括至少两个网际协议地址的节点评价请求;从所述至少两个网际协议地址中,选取网际协议地址;返回选取出的网际协议地址;其中,接收到的网际协议地址指示内容分发网络中的边缘节点。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言-诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)-连接到用户计算机,或者,可以连接到 外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和流程图中至少之一的每个方框、以及框图和流程图中至少之一的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
Claims (14)
- 一种视频水印添加方法,包括:将目标视频帧的图像数据从RGB格式转换到YUV格式;在所述YUV格式下,为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值;将叠加所述偏移值后的目标视频帧进行编码。
- 根据权利要求1所述的方法,其中,所述目标视频帧为按照如下规则之一从原始视频中确定的待添加水印的视频帧:每隔预定数量的帧提取的视频帧、预设时间段内所有的视频帧和通过随机算法抽取的视频帧。
- 根据权利要求1所述的方法,其中,所述为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值,包括:确定目标视频帧中用于添加水印的目标区域,其中,所述目标区域为根据展示目标视频帧的用户操作界面上的显示内容所确定的在目标视频帧的图像上对应的区域;为所述目标视频帧的目标区域上,与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值。
- 根据权利要求1所述的方法,其中,所述为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值,包括:为所述目标视频帧上,与待添加水印的形状对应的像素点的U通道数据或V通道数据叠加预设数量的偏移值。
- 根据权利要求1-4中任一项所述的方法,其中,所述叠加偏移值的像素点还具有如下特点:所述像素点的像素值与其邻域内多个像素点的像素值的平均值相比,差值不超过预设阈值。
- 根据权利要求1所述的方法,还包括:在需要检测水印时,读取已添加水印的目标视频帧的图像数据并进行解码,提取解码后得到的YUV格式的U通道数据或V通道数据,通过加大对比度以检测水印的存在性。
- 一种视频水印添加装置,包括:转换模块,设置为将目标视频帧的图像数据从RGB格式转换到YUV格式;偏移模块,设置为在所述YUV格式下,为所述目标视频帧上与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值;编码模块,设置为将叠加所述偏移值后的目标视频帧进行编码。
- 根据权利要求7所述的装置,其中,所述目标视频帧为按照如下规则之一从原始视频中确定的待添加水印的视频帧:每隔预定数量的帧提取的视频帧、预设时间段内所有的视频帧和通过随机算法抽取的视频帧。
- 根据权利要求7所述的装置,其中,所述偏移模块设置为:确定目标视频帧中用于添加水印的目标区域,其中,所述目标区域为根据展示目标视频帧的用户界面UI上的显示内容所确定的在目标视频帧的图像上对应的区域;为所述目标视频帧的目标区域上,与待添加水印的形状对应的像素点的像素值叠加预设数量的偏移值。
- 根据权利要求7所述的装置,其中,所述偏移模块还设置为:为所述目标视频帧上,与待添加水印的形状对应的像素点的U通道数据或V通道数据叠加预设数量的偏移值。
- 根据权利要求7-10中任一项所述的装置,其中,所述叠加偏移值的像素点还具有如下特点:所述像素点的像素值与其邻域内多个像素点的像素值的平均值相比,差值不超过预设阈值。
- 根据权利要求7所述的装置,还包括:检测模块,设置为在需要检测水印时,读取已添加水印的目标视频帧的图像数据并进行解码,提取解码后得到的YUV格式的U通道数据或V通道数据,通过加大对比度以检测水印的存在性。
- 一种电子设备,包括:至少一个处理装置;存储装置,设置为存储一个或多个程序,当所述至少一个程序被所述至少一个处理装置执行,使得所述至少一个处理装置实现如权利要求1-6中任一项所述的视频水印添加方法。
- 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理装置执行时实现如权利要求1-6中任一项所述的视频水印添加方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/979,255 US11930202B2 (en) | 2018-09-30 | 2019-01-25 | Method and apparatus for video watermarking, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811161606.8A CN110971931A (zh) | 2018-09-30 | 2018-09-30 | 视频水印添加方法、装置、电子设备及存储介质 |
CN201811161606.8 | 2018-09-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020062744A1 true WO2020062744A1 (zh) | 2020-04-02 |
Family
ID=69950956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/073196 WO2020062744A1 (zh) | 2018-09-30 | 2019-01-25 | 视频水印添加方法以及装置、电子设备及存储介质 |
Country Status (3)
Country | Link |
---|---|
US (1) | US11930202B2 (zh) |
CN (1) | CN110971931A (zh) |
WO (1) | WO2020062744A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113377476A (zh) * | 2021-06-23 | 2021-09-10 | 北京百度网讯科技有限公司 | 界面显示方法、相关装置及计算机程序产品 |
CN115665422A (zh) * | 2022-10-24 | 2023-01-31 | 昆易电子科技(上海)有限公司 | 视频数据传输方法、系统、注入方法及电子设备 |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102707834B1 (ko) * | 2019-10-29 | 2024-09-19 | 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 | 루마 차이를 이용한 크로스 컴포넌트 적응적 루프 필터 |
CN111988672A (zh) * | 2020-08-13 | 2020-11-24 | 北京达佳互联信息技术有限公司 | 视频处理方法、装置、电子设备和存储介质 |
CN112040337B (zh) * | 2020-09-01 | 2022-04-15 | 腾讯科技(深圳)有限公司 | 视频的水印添加和提取方法、装置、设备及存储介质 |
CN112004148B (zh) * | 2020-09-02 | 2021-09-28 | 腾讯科技(深圳)有限公司 | 视频处理方法、装置、计算机设备及存储介质 |
CN113038141B (zh) * | 2021-03-26 | 2023-07-28 | 青岛海信移动通信技术有限公司 | 视频帧处理方法及电子设备 |
CN113343031B (zh) * | 2021-06-10 | 2023-03-24 | 浙江大华技术股份有限公司 | 数据添加方法及装置、存储介质、电子装置 |
CN113438549A (zh) * | 2021-06-22 | 2021-09-24 | 中国农业银行股份有限公司 | 视频添加水印的处理方法及装置 |
CN113453071B (zh) * | 2021-06-28 | 2022-09-30 | 杭州海康威视数字技术股份有限公司 | 数据叠加方法、装置及电子设备 |
CN113810722B (zh) * | 2021-09-15 | 2024-08-16 | 深圳先进技术研究院 | 一种基于关键帧选取和安全扩频技术的视频水印方法 |
CN114466181A (zh) * | 2021-12-29 | 2022-05-10 | 沈阳中科创达软件有限公司 | 一种视频异常检测方法、装置、设备和系统 |
CN114881981B (zh) * | 2022-05-19 | 2023-03-10 | 常州市新创智能科技有限公司 | 一种玻纤布面的蚊虫检测方法及装置 |
CN117974408A (zh) * | 2022-10-24 | 2024-05-03 | 抖音视界有限公司 | 图像水印处理方法及装置 |
CN115883923B (zh) * | 2023-02-21 | 2023-05-23 | 北京瑞博星航科技有限公司 | 基于时间贯序光谱指纹的终端播放状态监测系统和方法 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604647A (zh) * | 2003-09-29 | 2005-04-06 | 朗迅科技公司 | 给数字视频加水印的方案 |
US20130259294A1 (en) * | 2012-03-27 | 2013-10-03 | Infosys Limited | Method, system, and computer-readable medium for embedding and extracting a watermark in a video |
CN103458320A (zh) * | 2013-08-29 | 2013-12-18 | 上海美琦浦悦通讯科技有限公司 | 基于水印技术的版权控制系统及视频添加数字水印的方法 |
CN106507130A (zh) * | 2016-11-24 | 2017-03-15 | 成都天脉拓道科技有限公司 | 在yuv帧上叠加水印的方法及水印叠加装置 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060107056A1 (en) * | 2004-11-17 | 2006-05-18 | Dhiraj Bhatt | Techniques to manage digital media |
US20110126250A1 (en) * | 2007-06-26 | 2011-05-26 | Brian Turner | System and method for account-based storage and playback of remotely recorded video data |
CN101661608B (zh) * | 2009-08-31 | 2012-04-18 | 重庆大学 | 适合于互联网络的数字图像盲水印添加、提取和去除方法 |
CN101938618B (zh) * | 2010-08-17 | 2012-08-15 | 山东省计算中心 | 一种通用的视频数字水印方法 |
CN102905127B (zh) * | 2012-08-09 | 2015-03-25 | 山东师范大学 | 一种视频水印实现方法 |
TW201413637A (zh) * | 2012-09-28 | 2014-04-01 | Taiwan Secom Co Ltd | 嵌入及取出數位浮水印之方法 |
JP6620426B2 (ja) * | 2015-05-28 | 2019-12-18 | 富士通株式会社 | 情報検出装置、情報検出システム、情報検出プログラム、及び情報検出方法 |
CN106454182A (zh) * | 2016-10-26 | 2017-02-22 | 维沃移动通信有限公司 | 一种视频生成方法及移动终端 |
CN107749990B (zh) * | 2017-09-27 | 2021-02-19 | 深圳大学 | 一种基于数字水印的视频版权保护方法及装置 |
CN107911698B (zh) * | 2017-11-03 | 2019-07-05 | 清华大学深圳研究生院 | 视频数字水印信息的嵌入方法和检测方法 |
CN108174137A (zh) * | 2017-12-28 | 2018-06-15 | 浙江宇视科技有限公司 | 一种叠加视频水印防偷拍的方法及装置 |
-
2018
- 2018-09-30 CN CN201811161606.8A patent/CN110971931A/zh active Pending
-
2019
- 2019-01-25 WO PCT/CN2019/073196 patent/WO2020062744A1/zh active Application Filing
- 2019-01-25 US US16/979,255 patent/US11930202B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1604647A (zh) * | 2003-09-29 | 2005-04-06 | 朗迅科技公司 | 给数字视频加水印的方案 |
US20130259294A1 (en) * | 2012-03-27 | 2013-10-03 | Infosys Limited | Method, system, and computer-readable medium for embedding and extracting a watermark in a video |
CN103458320A (zh) * | 2013-08-29 | 2013-12-18 | 上海美琦浦悦通讯科技有限公司 | 基于水印技术的版权控制系统及视频添加数字水印的方法 |
CN106507130A (zh) * | 2016-11-24 | 2017-03-15 | 成都天脉拓道科技有限公司 | 在yuv帧上叠加水印的方法及水印叠加装置 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113377476A (zh) * | 2021-06-23 | 2021-09-10 | 北京百度网讯科技有限公司 | 界面显示方法、相关装置及计算机程序产品 |
CN113377476B (zh) * | 2021-06-23 | 2023-07-25 | 北京百度网讯科技有限公司 | 界面显示方法、相关装置及计算机程序产品 |
CN115665422A (zh) * | 2022-10-24 | 2023-01-31 | 昆易电子科技(上海)有限公司 | 视频数据传输方法、系统、注入方法及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN110971931A (zh) | 2020-04-07 |
US20200404309A1 (en) | 2020-12-24 |
US11930202B2 (en) | 2024-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020062744A1 (zh) | 视频水印添加方法以及装置、电子设备及存储介质 | |
TWI734978B (zh) | 用於執行高動態範圍視訊的色調映射的方法及裝置 | |
JP7065376B2 (ja) | 表示装置、変換装置、表示方法、および、コンピュータプログラム | |
WO2021175049A1 (zh) | 视频插帧方法及相关装置 | |
KR100351816B1 (ko) | 포맷 변환 장치 | |
WO2017032082A1 (zh) | 设置屏幕菜单的透明度的方法、装置以及音视频播放设备 | |
JP7359521B2 (ja) | 画像処理方法および装置 | |
WO2020107988A1 (zh) | 视频处理方法、装置、电子设备以及存储介质 | |
JP2016225965A (ja) | 表示方法および表示装置 | |
JP2015141333A (ja) | 画像処理装置、画像処理方法、表示装置、表示装置の制御方法、及び、プログラム | |
US10504263B2 (en) | Adaptive high dynamic range (HDR) tone mapping with overlay indication | |
US10360687B2 (en) | Detection and location of active display regions in videos with static borders | |
CN109597664A (zh) | 展示区域的背景配置方法、装置、设备及可读介质 | |
CN105491396A (zh) | 一种多媒体信息处理方法及服务器 | |
WO2020244553A1 (zh) | 字幕越界的处理方法、装置和电子设备 | |
WO2018000676A1 (zh) | 配置图像模式的方法及装置 | |
JP2022542789A (ja) | 監視システム及び方法 | |
WO2023160617A9 (zh) | 视频插帧处理方法、视频插帧处理装置和可读存储介质 | |
WO2020108060A1 (zh) | 视频处理方法、装置、电子设备以及存储介质 | |
CN111738951B (zh) | 图像处理方法及装置 | |
JP2023537319A (ja) | 適応型ビデオウォーターマークの適用のためのシステムおよび方法 | |
US20170161875A1 (en) | Video resolution method and apparatus | |
EP3582504B1 (en) | Image processing method, device, and terminal device | |
US20180047367A1 (en) | Adaptive color grade interpolation method and device | |
CN110582021B (zh) | 信息处理方法及装置、电子设备和存储介质 |
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: 19866471 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.07.2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19866471 Country of ref document: EP Kind code of ref document: A1 |