CN112991135B - Video watermarking method, device, computer equipment and computer storage medium - Google Patents

Video watermarking method, device, computer equipment and computer storage medium Download PDF

Info

Publication number
CN112991135B
CN112991135B CN201911289650.1A CN201911289650A CN112991135B CN 112991135 B CN112991135 B CN 112991135B CN 201911289650 A CN201911289650 A CN 201911289650A CN 112991135 B CN112991135 B CN 112991135B
Authority
CN
China
Prior art keywords
data
preset
frame data
watermark
video
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.)
Active
Application number
CN201911289650.1A
Other languages
Chinese (zh)
Other versions
CN112991135A (en
Inventor
周雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201911289650.1A priority Critical patent/CN112991135B/en
Priority to PCT/CN2020/135639 priority patent/WO2021115422A1/en
Publication of CN112991135A publication Critical patent/CN112991135A/en
Application granted granted Critical
Publication of CN112991135B publication Critical patent/CN112991135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video superimposed watermarking method, a device, computer equipment and a computer storage medium, wherein the video superimposed watermarking method comprises the following steps: extracting frame data of a video, performing preset coding format conversion processing on the frame data, and performing preset data format arrangement processing to obtain converted frame data; image synthesis is carried out by utilizing the converted frame data and watermark data in the preset data format, so as to obtain synthesized frame data; and carrying out inverse processing of the preset coding format conversion and inverse processing of the preset data format arrangement on the synthesized frame data to generate the frame data with watermark. According to the video watermarking method, the frame data is subjected to preset coding format conversion processing and data format arrangement processing, and watermarking is performed, so that the watermarking efficiency of the video watermarking can be improved.

Description

Video watermarking method, device, computer equipment and computer storage medium
Technical Field
The present invention relates to the field of image processing, and in particular, to a video watermarking method, apparatus, computer device, and computer storage medium.
Background
Currently, in order to prevent the video from being stolen by others, copyrighters of the video generally add translucent watermarks at designated positions of the video. The watermark is an effective method for protecting information safety, realizing anti-counterfeiting traceability and copyright protection on the premise of not affecting the original effect of the video.
In the existing watermarking method, opencv (Open Source Computer Vision Library ) is generally adopted to realize superposition of video and watermark images. But the speed of using opencv is very slow and the watermark addition efficiency is relatively low.
Disclosure of Invention
In view of the above, the present invention provides a video watermarking method, apparatus, computer device and computer storage medium, so as to improve the efficiency of video watermarking.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
A video watermarking method, comprising:
extracting frame data of a video, performing preset coding format conversion processing on the frame data, and performing preset data format arrangement processing to obtain converted frame data;
image synthesis is carried out by utilizing the converted frame data and watermark data in the preset data format, so as to obtain synthesized frame data;
and carrying out inverse processing of the preset coding format conversion and inverse processing of the preset data format arrangement on the synthesized frame data to generate the frame data with watermark.
Preferably, in the video watermarking method, the method further includes:
and when the video is played, replacing corresponding frame data in a video playing buffer by using the frame data with the watermark.
Preferably, in the video watermarking method, the watermark data is consistent with the data format arrangement mode of the converted frame data.
Preferably, in the video watermarking method, the step of performing image synthesis by using the converted frame data and preset watermark data to obtain synthesized frame data includes:
Calculating coordinates of the preset watermark when the preset watermark is synthesized in the converted frame data according to the image sizes of the converted frame data and the preset watermark data and boundary parameters of the preset watermark data;
and synthesizing the preset watermark data onto the converted frame data through a preset algorithm according to the coordinates to generate the synthesized frame data.
Preferably, in the video watermarking method, the preset encoding format is an RGBA encoding format; the formula of the preset algorithm comprises:
v256-vA=vAb;vR=vR1×vAb+vR2×vA;vG=vG1×vAb+vG2×vA;
vB=vB1×vAb+vB2×vA;
Wherein v256 is a predetermined vector, and each element value is 256; vA is a vector of a channel A of preset watermark data; vR, vG and vB are respectively synthesized channel R value, channel G value and channel B value; vR1, vG1 and vB1 are respectively a channel R vector, a channel G vector and a channel B vector which are obtained from the converted frame data according to the coordinates and the watermark size; vR2, vG2, and vB2 preset the channel R vector, the channel G vector, and the channel B vector of the watermark data, respectively.
Preferably, in the video watermarking method, the preset algorithm is executed on a CDSP processor by using HVX instructions.
Preferably, in the video watermarking method, the "performing image synthesis by using the converted frame data and preset watermark data" to obtain synthesized frame data further includes:
And when the step length of the preset watermark data is determined not to be aligned with the preset bits, performing de-duplication and complement processing on the preset watermark on the synthesized frame data.
The invention also provides a video superposition watermarking device, comprising:
the frame data conversion module is used for extracting frame data of the video, carrying out preset coding format conversion processing on the frame data, and carrying out preset data format arrangement processing to obtain converted frame data;
the image synthesis module is used for carrying out image synthesis by utilizing the converted frame data and watermark data in the preset data format to obtain synthesized frame data;
and the inverse conversion module is used for carrying out inverse processing of the preset coding format conversion on the synthesized frame data and carrying out inverse processing of the preset data format arrangement to generate the frame data with watermark.
The invention also provides a computer device comprising a memory for storing a computer program and a processor which runs the computer program to cause the computer device to perform the video watermarking method.
The invention also provides a computer storage medium storing a computer program which, when executed by a processor, implements the video watermarking method.
The invention provides a video watermarking method, which comprises the following steps: extracting frame data of a video, performing preset coding format conversion processing on the frame data, and performing preset data format arrangement processing to obtain converted frame data; image synthesis is carried out by utilizing the converted frame data and watermark data in the preset data format, so as to obtain synthesized frame data; the method for video watermarking of the invention carries out the inverse processing of the preset coding format conversion and the inverse processing of the preset data format arrangement on the synthesized frame data to generate the frame data with watermark.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope of the present invention. Like elements are numbered alike in the various figures.
Fig. 1 is a flowchart of a video watermarking method according to embodiment 1 of the present invention;
fig. 2 is a flowchart of another video watermarking method according to embodiment 1 of the present invention;
Fig. 3 is a flowchart of image synthesis using preset watermark data provided in embodiment 2 of the present invention;
fig. 4 is a flowchart of another image synthesis using preset watermark data provided in embodiment 2 of the present invention;
fig. 5 is a flowchart of a video superimposed watermarking apparatus according to embodiment 3 of the present invention;
Fig. 6 is a flowchart of an image synthesizing module of a video superimposed watermarking apparatus according to embodiment 3 of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present invention, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the invention belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the invention.
Example 1
Fig. 1 is a flowchart of a video watermarking method according to embodiment 1 of the present invention, where the method includes the following steps:
Step S11: extracting frame data of video, performing preset coding format conversion processing on the frame data, and performing preset data format arrangement processing to obtain converted frame data.
In the embodiment of the invention, the watermark is superimposed in the video to mark the source of the video and prevent other people from using the video at will to perform other activities or business use, thereby bringing legal trouble or economic loss to video authors. When the video watermarking operation is needed in the computer equipment, firstly, frame data needing to be watermarked is extracted, for example, when the watermarking is needed in a certain time period of the video, the frame data in the time period can be extracted, and watermark watermarking processing is carried out on each frame of video picture in the time period, or when the watermarking is needed in the whole video, watermark watermarking processing is carried out on each frame of picture of the whole video.
In the embodiment of the present invention, when the frame data of the extracted video is in a YUV coding format or other coding formats, the frame data needs to be subjected to a preset coding format conversion process, and the coding format is converted into a coding format consistent with the watermark data, for example, may be converted into an RGBA coding format. After converting to the RGBA coding format, a preset data format arrangement process is also required, for example, the data format is arranged into RRRR … GGGG … BBBB … AAAA, so that when watermark data is subsequently superimposed, a HVX (Hexagon vector expansion) instruction is used for calculation.
In the embodiment of the present invention, the foregoing process of performing the preset encoding format conversion process and the preset data format arrangement process may be implemented by using an algorithm or an application program, for example, an application program for performing conversion and arrangement may be set in a computer device, after a video to be subjected to watermark superposition is input, the preset encoding format conversion may be performed on frame data in the video, and the preset data format arrangement process may be performed, so as to finally generate converted frame data. Meanwhile, the process of performing the preset encoding format conversion process and the preset data format arrangement process can also be implemented by HVX instructions.
Step S12: and performing image synthesis by using the converted frame data and watermark data in the preset data format to obtain synthesized frame data.
In the embodiment of the invention, after the converted frame data is obtained, the converted frame data and the preset watermark data are utilized to carry out image synthesis, and the watermark is superimposed on the preset position on the video picture. The preset watermark data is consistent with the coding format and the data format arrangement mode of the converted frame data, so that the image synthesis process is performed by using HVX instructions, and when the data format arrangement mode of the watermark data is inconsistent with the converted frame data, the watermark data can be subjected to data format arrangement processing and then image synthesis. In the process of superimposing watermark data on frame data, the coordinates of watermark data superposition need to be calculated first, after the coordinates of watermark data superposition are calculated, the preset watermark data are superimposed to converted frame data through a preset synthesis algorithm, and an image synthesis process is performed, so that synthesized frame data is finally obtained. The whole process of image synthesis can be performed on a CDSP (Compute Hexagon DIGITAL SIGNAL Processor) by utilizing HVX instructions to efficiently synthesize frame data and eliminate fillet saw teeth of the watermark.
In the embodiment of the present invention, the above-mentioned image synthesis process may be implemented by using an algorithm or an application program, for example, an application program for watermark image synthesis may be set in a computer device, and after converted frame data is obtained, preset watermark data is superimposed on a preset position of the converted frame data, so that a corresponding watermark is displayed on a video frame corresponding to the converted frame data.
Step S13: and carrying out inverse processing of the preset coding format conversion and inverse processing of the preset data format arrangement on the synthesized frame data to generate the frame data with watermark.
In the embodiment of the invention, the synthesized data obtained after the watermark data is superimposed is in the preset coding format, so that the synthesized frame data is required to be converted back to the original coding format of the video, the video can be correctly played, and other people are prevented from extracting the watermark from the video. Therefore, after the synthesized frame data with the watermark is obtained, the inverse process of the conversion of the preset encoding format is required, for example, when the conversion process is converted into RGBA, the inverse process is converted into YUV from RGBA, and the frame data with the watermark is finally generated. The above-mentioned inverse processing process can be implemented by using algorithm or application program, for example, an inverse processing application program can be set in the computer equipment, after the frame data with watermark is obtained, the frame data with watermark is undergone the process of inverse processing of preset coding format, and converted into original coding format of video so as to obtain the video with watermark. Meanwhile, the process of performing the preset encoding format inversion processing process can also be realized by HVX instructions.
Fig. 2 is a flowchart of another video watermarking method according to embodiment 1 of the present invention, where the method further includes the following steps:
step S14: and when the video is played, replacing corresponding frame data in a video playing buffer by using the frame data with the watermark.
In the embodiment of the invention, when the video to be superimposed with the watermark is played, the corresponding frame data can be replaced by the frame data with the watermark in the video playing buffer, so that the watermark is displayed in the played video picture. Meanwhile, when frame data are extracted to carry out watermark superposition processing, only frame data of a partial time period of the video can be extracted to carry out watermark superposition, so that the watermark appears in a picture of the corresponding partial time period in the playing process of the video, the time for the watermark to appear is adjusted, and a user can obtain good video watching experience.
Example 2
Fig. 3 is a flowchart of image synthesis using preset watermark data provided in embodiment 2 of the present invention, and the method includes the following steps:
Step S31: and calculating coordinates of the preset watermark data when the preset watermark data is synthesized in the converted frame data according to the image sizes of the converted frame data and the preset watermark data and boundary parameters of the preset watermark data.
In the embodiment of the invention, before the preset watermark data is synthesized to the converted frame data, the coordinates of the watermark on the converted frame data to be synthesized are calculated. Wherein the boundary parameters of the preset watermark data comprise the distance between the edge of the watermark and the boundary of the video, for example the distance between the left edge of the watermark and the left boundary of the video is 10 pixels, and the pixel distances between the other edges and boundaries, in order to define the position of the watermark in the video picture. The boundary parameters of the above-mentioned pre-watermark data may be specified by the user who superimposes the watermark in the video, or may be generated by the computer device through a rule stored in advance, which is not limited herein. Wherein the coordinates include the start coordinates of the watermark data synthesis process.
Step S32: and synthesizing the preset watermark data onto the converted frame data through a preset algorithm according to the coordinates to generate the synthesized frame data.
In the embodiment of the invention, after the coordinates of the preset watermark data synthesized by the converted frame data are calculated, the preset watermark data can be synthesized to the coordinates of the converted frame data by using a preset algorithm in the calculation and equipment. Wherein, when the preset encoding format is an RGBA encoding format, the formula of the preset algorithm includes:
v256-vA=vAb;vR=vR1×vAb+vR2×vA;vG=vG1×vAb+vG2×vA;
vB=vB1×vAb+vB2×vA;
Wherein v256 is a predetermined vector, and each element value is 256; vA is a vector of a channel A of preset watermark data; vR, vG and vB are respectively synthesized channel R value, channel G value and channel B value; vR1, vG1 and vB1 are respectively a channel R vector, a channel G vector and a channel B vector which are obtained from the converted frame data according to the coordinates and the watermark size; vR2, vG2, and vB2 preset the channel R vector, the channel G vector, and the channel B vector of the watermark data, respectively.
The preset algorithm is executed on the CDSP processor by utilizing HVX instructions so as to improve the efficiency of watermark synthesis.
Fig. 4 is a flowchart of another image synthesis using preset watermark data provided in embodiment 2 of the present invention, and the method further includes the following steps:
Step S33: and when the step length of the preset watermark data is determined not to be aligned with the preset bits, performing de-duplication and complement processing on the preset watermark on the synthesized frame data.
In the embodiment of the invention, for example, when the compensation of the preset watermark data is not 1024bit alignment, the preset watermark needs to be subjected to de-duplication and complement processing. Specifically, in the foregoing preset algorithm process, 128 elements in each channel are selected by using the vector to calculate each calculation process, so that the processing of performing the de-duplication and complement is performed by selecting only the last vector, that is, the 128 elements of the last vectors of the R channel, the G channel and the B channel are performed, where the processing of performing the de-duplication and complement is not performed by the a channel. Specifically, the method comprises the following steps:
1. obtaining a last vector;
2. Applying for an array of 128 bytes, assigning values of elements from 0 to stride%128 (stride is a step length) of the array to be-1, and assigning values of elements from stride%128 to the end of the array to be 0, so as to obtain a vector vP;
3. The vector vP is used to make an equality determination with a vector v0 with all 0 elements to obtain Q1, and the specific HVX instruction is: HVX _ VectorPred Q1 =q6_q_ vcmp _eq_ VbVb (vP, v 0); that is, an element bit equal to 0 in vP, the corresponding element bit in Q1 is 1, otherwise 0;
4. Performing replacement operation on the vP to obtain vP2, and enabling all bits with the vP element value of 0 to be punched to be moved to the head; for example, when vP is-1-1-1-100, vP2 is 00-1-1-1-1, and the specific HVX instruction is: vp2=q6_v_ vror _vr (vP 1, width 2);
5. the vector vP2 and the vector v0 are used for performing equality determination to obtain Q2, and the specific HVX instruction is: HVX _ VectorPred Q2 =q6_q_ vcmp _eq_ VbVb (vP 2, v 0);
6. if vR2 is the last vector in the channel of the predetermined watermark data R, the instruction vr=
The q6_v_ vmux _ QVV (Q, vR1, vR) takes the synthesized value of the R channel, the instruction means that Q is an element bit of 1, the element bit value of vR takes the element bit value of vR1, otherwise vR is taken, so that overlapping pixel points and pixel points which do not need to be overlapped are eliminated.
Example 3
Fig. 5 is a flowchart of a video superimposed watermarking apparatus according to embodiment 3 of the present invention.
The video superimposition watermarking apparatus 500 includes:
The frame data conversion module 510 is configured to extract frame data of a video, perform a preset encoding format conversion process on the frame data, and perform a preset data format arrangement process to obtain converted frame data;
an image synthesis module 520, configured to perform image synthesis by using the converted frame data and preset watermark data, so as to obtain synthesized frame data;
the inverse conversion module 530 is configured to perform inverse processing of the preset encoding format conversion on the synthesized frame data, and perform inverse processing of the preset data format arrangement, so as to generate frame data with watermark;
A watermark frame replacement module 540, configured to replace corresponding frame data in the video with the watermarked frame data.
As shown in fig. 6, the image composition module 520 includes:
A synthetic coordinate calculating unit 521, configured to calculate coordinates of the preset watermark synthesized by the converted frame data according to the image sizes of the converted frame data and the preset watermark data, and boundary parameters of the preset watermark data;
A watermark data synthesis unit 522, configured to synthesize the preset watermark data onto the coordinates of the converted frame data by using a preset algorithm, and generate the synthesized frame data.
In the embodiment of the present invention, the detailed functional descriptions of the above modules and units may refer to the content of the corresponding parts in the foregoing embodiment, which is not repeated herein.
In addition, the invention also provides computer equipment, which can comprise a smart phone, a tablet personal computer, a vehicle-mounted computer, intelligent wearing equipment and the like. The computer device comprises a memory operable to store a computer program and a processor operable to cause the computer device to perform the functions of the above-described method or the above-described modules of the video-superimposed watermarking apparatus by running the computer program.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer device (such as audio data, phonebooks, etc.), and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The present embodiment also provides a computer storage medium storing a computer program used in the above computer device.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in various embodiments of the invention may be integrated together to form a single part, or the modules may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A method of video watermarking, comprising:
extracting frame data of a video, performing preset coding format conversion processing on the frame data, and performing preset data format arrangement processing to obtain converted frame data;
Image synthesis is carried out by utilizing the converted frame data and watermark data in the preset data format, so as to obtain synthesized frame data; the watermark data in the preset data format is consistent with the coding format and the data format arrangement mode of the converted frame data;
and carrying out inverse processing of the preset coding format conversion and inverse processing of the preset data format arrangement on the synthesized frame data to generate the frame data with watermark.
2. The video watermarking method of claim 1, further comprising:
and when the video is played, replacing corresponding frame data in a video playing buffer by using the frame data with the watermark.
3. The video watermarking method according to claim 1, wherein the step of performing image synthesis using the converted frame data and watermark data in the predetermined data format to obtain synthesized frame data includes:
Calculating coordinates of the preset watermark data when the preset watermark data is synthesized in the converted frame data according to the image sizes of the converted frame data and the preset watermark data and boundary parameters of the preset watermark data; wherein, the preset watermark data is watermark data in the preset data format;
and synthesizing the preset watermark data onto the converted frame data through a preset algorithm according to the coordinates to generate the synthesized frame data.
4. A video watermarking method according to claim 3, wherein the predetermined coding format is an RGBA coding format; the formula of the preset algorithm comprises:
v256-vA=vAb;vR=vR1×vAb+vR2×vA;vG=vG1×vAb+vG2×vA;
vB=vB1×vAb+vB2×vA;
Wherein v256 is a predetermined vector, and each element value is 256; vA is a vector of a channel A of preset watermark data; vR, vG and vB are respectively synthesized channel R value, channel G value and channel B value; vR1, vG1 and vB1 are respectively a channel R vector, a channel G vector and a channel B vector which are obtained from the converted frame data according to the coordinates and the watermark size; vR2, vG2, and vB2 preset the channel R vector, the channel G vector, and the channel B vector of the watermark data, respectively.
5. A video watermarking method according to claim 3, wherein the preset algorithm is executed on a CDSP processor using HVX instructions.
6. A video watermarking method according to claim 3, wherein the "image synthesizing using the converted frame data and watermark data in the predetermined data format" further comprises:
And when the step length of the preset watermark data is determined not to be aligned with the preset bits, performing de-duplication and complement processing on the preset watermark on the synthesized frame data.
7. A video-superimposed watermarking apparatus, comprising:
the frame data conversion module is used for extracting frame data of the video, carrying out preset coding format conversion processing on the frame data, and carrying out preset data format arrangement processing to obtain converted frame data;
the image synthesis module is used for carrying out image synthesis by utilizing the converted frame data and watermark data in the preset data format to obtain synthesized frame data; wherein, the watermark data is consistent with the coding format and the data format arrangement mode of the converted frame data;
and the inverse conversion module is used for carrying out inverse processing of the preset coding format conversion on the synthesized frame data and carrying out inverse processing of the preset data format arrangement to generate the frame data with watermark.
8. A computer device comprising a memory for storing a computer program and a processor that runs the computer program to cause the computer device to perform the video watermarking method according to any of claims 1 to 6.
9. A computer storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the video watermarking method according to any of claims 1 to 6.
CN201911289650.1A 2019-12-13 2019-12-13 Video watermarking method, device, computer equipment and computer storage medium Active CN112991135B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911289650.1A CN112991135B (en) 2019-12-13 2019-12-13 Video watermarking method, device, computer equipment and computer storage medium
PCT/CN2020/135639 WO2021115422A1 (en) 2019-12-13 2020-12-11 Video and watermark superposing method and apparatus, computer device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911289650.1A CN112991135B (en) 2019-12-13 2019-12-13 Video watermarking method, device, computer equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN112991135A CN112991135A (en) 2021-06-18
CN112991135B true CN112991135B (en) 2024-05-07

Family

ID=76329616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911289650.1A Active CN112991135B (en) 2019-12-13 2019-12-13 Video watermarking method, device, computer equipment and computer storage medium

Country Status (2)

Country Link
CN (1) CN112991135B (en)
WO (1) WO2021115422A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596497A (en) * 2021-07-28 2021-11-02 新华智云科技有限公司 Multi-channel live video synchronization method and system based on hidden watermark
CN114598938A (en) * 2022-03-30 2022-06-07 合肥高维数据技术有限公司 Video invisible watermark embedding method and system based on GPU
CN115147627B (en) * 2022-09-01 2022-11-18 深流微智能科技(深圳)有限公司 Visual print processing method, device, terminal and storage medium for verifying credibility of video

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5666161A (en) * 1993-04-26 1997-09-09 Hitachi, Ltd. Method and apparatus for creating less amount of compressd image data from compressed still image data and system for transmitting compressed image data through transmission line
CN106507130A (en) * 2016-11-24 2017-03-15 成都天脉拓道科技有限公司 Method and the watermark stacking apparatus of watermark superpose on yuv frame
CN109413508A (en) * 2018-10-26 2019-03-01 广州虎牙信息科技有限公司 Method, apparatus, equipment, plug-flow method and the live broadcast system of image blend
CN109446827A (en) * 2018-11-01 2019-03-08 东莞华贝电子科技有限公司 Data encryption/decryption method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5666161A (en) * 1993-04-26 1997-09-09 Hitachi, Ltd. Method and apparatus for creating less amount of compressd image data from compressed still image data and system for transmitting compressed image data through transmission line
CN106507130A (en) * 2016-11-24 2017-03-15 成都天脉拓道科技有限公司 Method and the watermark stacking apparatus of watermark superpose on yuv frame
CN109413508A (en) * 2018-10-26 2019-03-01 广州虎牙信息科技有限公司 Method, apparatus, equipment, plug-flow method and the live broadcast system of image blend
CN109446827A (en) * 2018-11-01 2019-03-08 东莞华贝电子科技有限公司 Data encryption/decryption method and system

Also Published As

Publication number Publication date
WO2021115422A1 (en) 2021-06-17
CN112991135A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112991135B (en) Video watermarking method, device, computer equipment and computer storage medium
US11023618B2 (en) Systems and methods for detecting modifications in a video clip
KR100841848B1 (en) Electronic watermark detecting method, apparatus and recording medium for recording program
JP3431593B2 (en) Content generation device, digital watermark detection device, content generation method, digital watermark detection method, and recording medium
US8570360B2 (en) Stereoscopic parameter embedding device and stereoscopic image reproducer
US8442262B2 (en) Method and system to process a digital image
US20070236513A1 (en) Image Blending System, Method and Video Generation System
JP6282095B2 (en) Image processing apparatus, image processing method, and program.
JP5949481B2 (en) Image processing method, program, and apparatus
US9639910B2 (en) System for embedding data
EP1437897A2 (en) Methods and apparatus for embedding and detecting digital watermarks
CN105611268B (en) Information processing method and electronic equipment
US7068810B2 (en) Methods and apparatus for embedding data and for detecting and recovering embedded data
JP2002314798A (en) Embedding data in material
JP2020503746A5 (en)
Mathew et al. Reversible data hiding in encrypted images by active block exchange and room reservation
JP2009289112A (en) Work information providing device, work information providing method and program
JP2013150203A (en) Image processing program, device and method
CN111028135B (en) Image file repairing method
JP2004179804A (en) Transmission/reception system for encrypted information, transmission/reception method therefor, and program for embedding encrypted information
KR20210066825A (en) Coding and decoding of omnidirectional video
JP6494817B2 (en) Image processing apparatus, image processing method, and program.
CN115439795B (en) Video coding method, medium and equipment related to portrait
JP2006129463A (en) Stereoscopic viewing parameter storage medium
KR20130065277A (en) Video water marking inserting/detecting apparatus using modulation of time horizon

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant