CN112616093A - Video watermark adding method, system, medium and electronic terminal - Google Patents

Video watermark adding method, system, medium and electronic terminal Download PDF

Info

Publication number
CN112616093A
CN112616093A CN202011474192.1A CN202011474192A CN112616093A CN 112616093 A CN112616093 A CN 112616093A CN 202011474192 A CN202011474192 A CN 202011474192A CN 112616093 A CN112616093 A CN 112616093A
Authority
CN
China
Prior art keywords
video stream
watermark
added
resolution
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.)
Pending
Application number
CN202011474192.1A
Other languages
Chinese (zh)
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.)
Chongqing Unisinsight Technology Co Ltd
Original Assignee
Chongqing Unisinsight Technology 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 Chongqing Unisinsight Technology Co Ltd filed Critical Chongqing Unisinsight Technology Co Ltd
Priority to CN202011474192.1A priority Critical patent/CN112616093A/en
Publication of CN112616093A publication Critical patent/CN112616093A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8358Generation of protective data, e.g. certificates involving watermark
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/913Television signal processing therefor for scrambling ; for copy protection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/913Television signal processing therefor for scrambling ; for copy protection
    • H04N2005/91307Television signal processing therefor for scrambling ; for copy protection by adding a copy protection signal to the video signal
    • H04N2005/91335Television signal processing therefor for scrambling ; for copy protection by adding a copy protection signal to the video signal the copy protection signal being a watermark

Abstract

The invention provides a video watermark adding method, a system, a medium and an electronic terminal, wherein the method comprises the following steps: acquiring the resolution of an original video stream and the canvas size of the original video stream; determining a mapping relation between the resolution of the original video stream and the canvas size of the original video stream; respectively acquiring the resolution of a video stream to be added and a watermark parameter corresponding to the video stream to be added; determining the canvas size of the video stream to be added according to the resolution and the mapping relation of the video stream to be added; adjusting the size of the video watermark according to the canvas size and the watermark parameter of the video stream to be added, and further adding the video watermark to the video stream to be added; the video watermark adding method determines the canvas size of the video stream to be added according to the resolution and the mapping relation of the video stream to be added, further adjusts the size of the video watermark, and adds the video watermark to the video stream to be added, so that the sizes of the watermarks are consistent when multiple paths of videos are displayed on the same display device at the same time.

Description

Video watermark adding method, system, medium and electronic terminal
Technical Field
The present invention relates to the field of electronics, and in particular, to a method, a system, a medium, and an electronic terminal for adding a video watermark.
Background
With the rapid development of the internet, data security is particularly important, leakage of important private data can cause very serious consequences, and adding watermarks to videos is one of effective schemes in order to prevent video data leakage and cause certain deterrence to a disclosure person. At present, a plurality of camera equipment are installed in the place of difference simultaneously mostly to monitored control system, carry out the coverage control of full scene, and the user can browse the video of multichannel simultaneously through the mode of split screen at the control client, however, there is certain difference in the resolution ratio of different videos, and the display effect that same watermark appears at the video of different resolution ratios is different, leads to browsing the video of a plurality of different watermark sizes simultaneously on the same picture like this, brings relatively poor visual experience for the user.
Disclosure of Invention
The invention provides a video watermark adding method, a video watermark adding system, a video watermark adding medium and an electronic terminal, and aims to solve the technical problem that in the prior art, watermarks displayed in videos with different resolutions of the same watermark are different in size display.
The video watermark adding method provided by the invention comprises the following steps:
acquiring the resolution of an original video stream and the canvas size of the original video stream;
determining a mapping relation between the resolution of the original video stream and the canvas size of the original video stream;
respectively acquiring the resolution of a video stream to be added and a watermark parameter corresponding to the video stream to be added;
determining the canvas size of the video stream to be added according to the resolution of the video stream to be added and the mapping relation;
and adjusting the size of the video watermark according to the canvas size of the video stream to be added and the watermark parameter, and further adding the video watermark to the video stream to be added.
Optionally, the step of determining the mapping relationship between the resolution of the original video stream and the canvas size of the original video stream includes:
acquiring first discrete point pair information according to the resolution of the original video stream, wherein the first discrete point pair information corresponds to the resolution of the original video stream;
determining a mapping relationship between the first discrete point pair information and a canvas size of the original video stream.
Optionally, the mathematical expression for determining the mapping relationship between the first discrete point pair information and the canvas size of the original video stream is as follows:
f(x)=a1w1(x)+a2w2(x)+…+aiwi(x),i=1...m
wherein the mathematical expression of the first discrete point pair information is: (x)i,yi),w1(x)、w2(x)...wi(x) For a preset set of linearly independent functions with respect to resolution, a1、a2...am(x) is the canvas size, m is the number of first discrete point pairs, and the mathematical expression of the linear independent function is: k is a radical ofix+bi,ki、biIs a preset linear independent constant;
the step of obtaining the characteristic coefficient comprises the following steps: and acquiring the characteristic coefficient by using a least square method according to the first discrete point pair information.
Optionally, the step of determining the size of the canvas of the video stream to be added according to the resolution of the video stream to be added and the mapping relationship includes:
acquiring second discrete point pair information according to the resolution of the video stream to be added, wherein the second discrete point pair information corresponds to the resolution of the video stream to be added;
and determining the size of the canvas of the video stream to be added according to the second discrete point pair information and the mapping relation.
Optionally, the adjusting the size of the video watermark according to the canvas size of the video stream to be added and the watermark parameter, and then the video watermarking on the video stream to be added includes:
determining a first watermark canvas according to the canvas size of the video stream to be added;
according to the watermark parameters, performing watermark drawing on the first watermark canvas to obtain a second watermark canvas;
constructing a first region bitmap;
binding the second watermark canvas to the first area bitmap to obtain a second area bitmap;
and binding the second region bitmap to a corresponding video channel, and adding a watermark to the video stream to be added.
Optionally, the step of performing watermark drawing on the first watermark canvas according to the watermark parameter includes:
acquiring the watermark density of the video stream to be added;
adjusting the watermark density according to the resolution and watermark parameters of the video stream to be added to obtain the adjusted watermark density;
determining initial position information of each watermark in the first watermark canvas according to the adjusted watermark density;
and according to the watermark parameters, the adjusted watermark density and the initial position information, performing watermark drawing on the first watermark canvas.
Optionally, the step of obtaining the resolution of the video stream to be added includes:
and acquiring a video stream to be added, decoding the video stream to be added, and acquiring the resolution of the video stream to be added.
Optionally, the watermark parameter includes at least one of: watermark content, tilt angle, watermark transparency.
Optionally, the step of obtaining the watermark content includes: acquiring a user name when a user logs in a terminal, and taking the user name as watermark content;
and when the user name of the login terminal is empty, taking the ID of the superior domain when the user logs in the terminal as watermark content.
Optionally, the step of obtaining the resolution of the video stream to be added includes:
acquiring an unclassified video stream;
judging whether the unclassified video stream needs to be encrypted or not, if so, directly encrypting the video stream, and if not, judging whether the unclassified video stream needs to be subjected to watermark addition or not;
and if the unclassified video stream needs to be subjected to watermark adding, taking the unclassified video stream as a video stream to be added.
The invention also provides a video watermark adding system, which comprises:
the pre-acquisition module is used for acquiring the resolution of the original video stream and the canvas size of the original video stream;
the preprocessing module is used for determining the mapping relation between the resolution of the original video stream and the canvas size of the original video stream;
the acquisition module is used for respectively acquiring the resolution of a video stream to be added and a watermark parameter corresponding to the video stream to be added;
the processing module is used for determining the canvas size of the video stream to be added according to the resolution of the video stream to be added and the mapping relation;
the watermark adding module is used for adjusting the size of the video watermark according to the canvas size of the video stream to be added and the watermark parameter, and further adding the video watermark to the video stream to be added; the pre-acquisition module, the pre-processing module, the acquisition module, the processing module and the watermark adding module are connected.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method as defined in any one of the above.
The present invention also provides an electronic terminal, comprising: a processor and a memory;
the memory is adapted to store a computer program and the processor is adapted to execute the computer program stored by the memory to cause the terminal to perform the method as defined in any one of the above.
The invention has the beneficial effects that: according to the video watermark adding method, the mapping relation between the resolution of the original video stream and the canvas size of the original video stream is determined, the canvas size of the video stream to be added is determined according to the resolution of the video stream to be added and the mapping relation, then video watermark adding is carried out on the video stream to be added, and the size of watermarks presented to a user is consistent when multiple paths of videos are displayed on the same display device at the same time by determining the canvas size of the video stream to be added, so that better visual experience is brought to a viewer.
Drawings
Fig. 1 is a flow chart of a video watermarking method according to an embodiment of the present invention;
fig. 2 is another flow chart of a video watermarking method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a video watermarking system according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
The inventor finds that at present, most modern video monitoring clients adopt a split-screen mode to simultaneously display multiple paths of video windows, and the video resolutions of different paths may be different. If the size of the watermark font set by the background is a fixed value, the size of the watermark font finally presented to the user is inconsistent through mapping of different resolutions, and particularly when multiple videos are displayed simultaneously, the experience effect of the user is poor, therefore, the inventor provides a video watermark adding method, the size of the canvas of the video stream to be added is determined according to the resolution of the video stream to be added and the mapping relation by determining the mapping relation between the resolution of the original video stream and the size of the canvas of the original video stream, the video watermark is further added to the video stream to be added, and the size of the canvas of the video stream to be added is determined, so that when multiple videos are displayed simultaneously on the same display device, the size of the watermark presented to the user is more consistent, and better visual experience is brought to a viewer.
As shown in fig. 1, the video watermarking method in this embodiment includes:
s101: acquiring the resolution of an original video stream and the canvas size of the original video stream; for example: acquiring a plurality of known resolutions of an original video stream and a canvas size corresponding to the original video stream, wherein the resolutions of the original video stream and the canvas size of the original video stream correspond;
s102: determining a mapping relation between the resolution of the original video stream and the canvas size of the original video stream; for example: acquiring discrete point pair information corresponding to the resolution of the original video stream according to the resolution of the original video stream, establishing a one-to-one mapping relation between the discrete point pair information and the canvas size of the original video stream, and providing a relation basis for determining the canvas size of the video stream to be added by establishing the one-to-one mapping relation between the discrete point pair information and the canvas size of the original video stream, so that the canvas size of the video stream to be added is convenient to adjust;
s103: respectively acquiring the resolution of a video stream to be added and a watermark parameter corresponding to the video stream to be added; for example: acquiring a video stream to be added, wherein the video stream to be added is a video stream determined to be added with a watermark, acquiring the resolution of the video stream to be added and watermark parameters corresponding to the video stream to be added, and the watermark parameters at least comprise one of the following parameters: watermark content, tilt angle, watermark transparency;
s104: determining the canvas size of the video stream to be added according to the resolution of the video stream to be added and the mapping relation; determining the canvas size corresponding to the resolution of the video stream to be added according to the resolution of the video stream to be added and the mapping relation, and taking the canvas size as the canvas size of the video stream to be added;
s105: adjusting the size of the video watermark according to the canvas size of the video stream to be added and the watermark parameter, and further adding the video watermark to the video stream to be added; for example: according to the canvas size of the video stream to be added, the canvas size of the video stream to be added is adjusted and updated, and according to the watermark parameter, the watermark is drawn on the canvas of the video stream to be added after adjustment, so that the watermark sizes of the videos with different resolutions displayed at the same window at the same time are similar or the same, and a better visual experience is brought to a viewer, if: acquiring the resolution ratios of a plurality of video streams to be added which are simultaneously displayed on the same window or the same display screen, determining the canvas size of each video stream to be added according to the resolution ratios and the mapping relations of the plurality of video streams to be added, wherein the mapping relations are obtained according to the known resolution ratios of a plurality of original video streams and the canvas sizes of the original video streams, adjusting and updating the canvas sizes of the video streams to be added according to the canvas sizes of the video streams to be added, further acquiring the canvas of the video streams to be added after adjustment, further performing watermark drawing on the canvas of the video streams to be added after adjustment according to the watermark parameters, wherein the canvas is the basis of watermark drawing, the size of the watermark is adjusted by adjusting the canvas size, the corresponding watermark is drawn according to the canvas size, and the watermark with the same parameters can be understood and set, the size that shows is different on the canvas of difference, and treats the canvas size that adds the video stream through the adjustment, can make the display effect of same watermark in the video of different resolutions similar or the same, and watermark phenomenon that the watermark is not of uniform size when avoiding the video of a plurality of resolutions difference that appear simultaneously on same window or same display screen improves viewer's the experience of watching and feels, and the accuracy is higher, and the enforceability is stronger.
As shown in fig. 2, in some embodiments, a video watermarking method includes:
s201: acquiring the resolution of an original video stream and the canvas size of the original video stream; for example: acquiring the resolution of a plurality of original video streams and the canvas size of the original video streams, wherein the resolution of the original video streams corresponds to the canvas size of the original video streams;
s202: acquiring first discrete point pair information according to the resolution of the original video stream, wherein the first discrete point pair information corresponds to the resolution of the original video stream;
s203: determining a mapping relationship between the first discrete point pair information and a canvas size of the original video stream; by determining the mapping relation between the first discrete point pair information and the canvas size of the original video stream, providing a corresponding relation for adjusting the canvas size of the video stream to be added, and further performing adaptive adjustment on the size of the video watermark according to the adjusted canvas size;
wherein the mathematical expression for determining the mapping relationship between the first discrete point pair information and the canvas size of the original video stream is:
f(x)=a1w1(x)+a2w2(x)+…+aiwi(x),i=1...m
wherein the mathematical expression of the first discrete point pair information is: (x)i,yi),w1(x)、w2(x)...wi(x) For a preset set of linearly independent functions with respect to resolution, a1、a2...am(x) is the canvas size, m is the number of first discrete point pairs, and the mathematical expression of the linear independent function is: k is a radical ofix+bi,ki、biIs a preset linear independent constant;
the step of obtaining the characteristic coefficient comprises the following steps: acquiring the characteristic coefficient by using a least square method according to the first discrete point pair information;
the step of obtaining the characteristic coefficients comprises:
using least squares as a mapping criterion, such that yi(i 1.. m) and f (x)) The sum of the squares of the distances of (a);
note the book
Figure BDA0002834581910000061
To ask for a1,a2,...,amTo minimize J, the necessary conditions of extreme value need to be utilized
Figure BDA0002834581910000062
From the above formula, one can obtain:
Figure BDA0002834581910000063
namely, it is
Figure BDA0002834581910000064
Recording:
Figure BDA0002834581910000065
A=[a1,...,am]T,Y=[y1,...,yn]T
then R isTRA=RTY, can obtain A ═ (R)TR)-1RTY, and then determining the characteristic coefficient;
s204: respectively acquiring the resolution of a video stream to be added and a watermark parameter corresponding to the video stream to be added; wherein the watermark parameters include at least one of: watermark content, tilt angle, watermark transparency; in some embodiments, the step of obtaining the watermarked content comprises: acquiring a user name when a user logs in a terminal, and taking the user name as watermark content; when the user name of the login terminal is empty, taking the ID of the superior domain when the user logs in the terminal as watermark content;
in some embodiments, the step of obtaining the resolution of the video stream to be added comprises, before:
acquiring an unclassified video stream;
judging whether the unclassified video stream needs to be encrypted or not, and if not, judging whether the unclassified video stream needs to be subjected to watermark addition or not; if the video needs to be encrypted, directly encrypting the unclassified video;
if the unclassified video stream needs to be subjected to watermark adding, taking the unclassified video stream as a video stream to be added;
decoding the video stream to be added, and using the decoded video stream to be added to superimpose a watermark, wherein the decoding mode for decoding the video stream to be added comprises the following steps: hard decoding or soft decoding; for example: decoding the video stream to be added through a decoding chip;
s205: acquiring second discrete point pair information according to the resolution of the video stream to be added, wherein the second discrete point pair information corresponds to the resolution of the video stream to be added;
s206: determining the canvas size of the video stream to be added according to the second discrete point pair information and the mapping relation;
s207: determining a first watermark canvas according to the canvas size of the video stream to be added, namely adjusting and updating the canvas of the video stream to be added according to the canvas size of the video stream to be added, and taking the adjusted canvas of the video stream to be added as the first watermark canvas;
s208: acquiring the watermark density of the video stream to be added;
s209: adjusting the watermark density according to the resolution and watermark parameters of the video stream to be added to obtain the adjusted watermark density; the watermark density is adjusted through the resolution ratio of the video stream to be added and the watermark parameter, so that the display of the watermark is smoother and more attractive, and the dynamic adjustment of the watermark density is realized; in some embodiments, the watermark density may be adjusted by a density function according to the resolution of the video stream to be added;
s210: determining initial position information of each watermark in the first watermark canvas according to the adjusted watermark density;
s211: according to the watermark parameters, the adjusted watermark density and the initial position information, performing watermark drawing on the first watermark canvas to obtain a second watermark canvas;
in some embodiments, the step of performing watermark drawing on the first watermark canvas according to the watermark parameter, the adjusted watermark density and the start position information includes:
determining the line spacing and the column spacing of the watermark according to the adjusted watermark density, wherein the line spacing between adjacent lines is the same, and the column spacing between adjacent columns is the same;
the start position of the watermark at the beginning of the adjacent row has a preset distance in the direction of the column of the watermark, and the start position of the watermark at the beginning of the adjacent column has a preset distance in the direction of the row of the watermark, for example: the position of the watermarks at the beginning of two adjacent lines of watermarks has a half column spacing difference along the column direction of the watermarks, so that the watermarks are obliquely arranged, and then the watermarks are drawn on the first watermark canvas according to the watermark parameters, the adjusted watermark density and the initial position information;
s212: constructing a first region bitmap; the region bitmap is composed of a plurality of pixel points, when the watermark is constructed, the watermark font is developed on the basis, and the watermark font is constructed by modifying the colors of different pixel points in the region bitmap;
s213: binding the second watermark canvas to the first area bitmap to obtain a second area bitmap;
s214: and binding the second region bitmap to a corresponding video channel, and adding a watermark to the video stream to be added. In some embodiments, after the second region bitmap is bound to the corresponding video channel, the video stream to be added may be encoded by an encoding chip, and video stream information is restored to complete video watermarking.
As shown in fig. 3, this embodiment further provides a video watermarking system, including:
the pre-acquisition module is used for acquiring the resolution of the original video stream and the canvas size of the original video stream;
the preprocessing module is used for determining the mapping relation between the resolution of the original video stream and the canvas size of the original video stream;
the acquisition module is used for respectively acquiring the resolution of a video stream to be added and a watermark parameter corresponding to the video stream to be added;
the processing module is used for determining the canvas size of the video stream to be added according to the resolution of the video stream to be added and the mapping relation;
the watermark adding module is used for adjusting the size of the video watermark according to the canvas size of the video stream to be added and the watermark parameter, and further adding the video watermark to the video stream to be added; the pre-acquisition module, the pre-processing module, the acquisition module, the processing module and the watermark adding module are sequentially connected. The method comprises the steps of determining the mapping relation between the resolution ratio of an original video stream and the canvas size of the original video stream, determining the canvas size of the video stream to be added according to the resolution ratio of the video stream to be added and the mapping relation, further performing video watermark adding on the video stream to be added, and enabling the size of watermarks presented to a user to be consistent when multiple paths of videos are displayed on the same display device simultaneously by determining the canvas size of the video stream to be added, so that better visual experience is brought to a viewer.
The present embodiment also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements any of the methods in the present embodiments.
The present embodiment further provides an electronic terminal, including: a processor and a memory;
the memory is used for storing computer programs, and the processor is used for executing the computer programs stored by the memory so as to enable the terminal to execute the method in the embodiment.
The computer-readable storage medium in the present embodiment can be understood by those skilled in the art as follows: all or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The electronic terminal provided by the embodiment comprises a processor, a memory, a transceiver and a communication interface, wherein the memory and the communication interface are connected with the processor and the transceiver and are used for completing mutual communication, the memory is used for storing a computer program, the communication interface is used for carrying out communication, and the processor and the transceiver are used for operating the computer program so that the electronic terminal can execute the steps of the method.
In this embodiment, the Memory may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (13)

1. A video watermarking method, comprising:
acquiring the resolution of an original video stream and the canvas size of the original video stream;
determining a mapping relation between the resolution of the original video stream and the canvas size of the original video stream;
respectively acquiring the resolution of a video stream to be added and a watermark parameter corresponding to the video stream to be added;
determining the canvas size of the video stream to be added according to the resolution of the video stream to be added and the mapping relation;
and adjusting the size of the video watermark according to the canvas size of the video stream to be added and the watermark parameter, and further adding the video watermark to the video stream to be added.
2. The video watermarking method according to claim 1, wherein the step of determining the mapping relationship between the resolution of the original video stream and the canvas size of the original video stream comprises:
acquiring first discrete point pair information according to the resolution of the original video stream, wherein the first discrete point pair information corresponds to the resolution of the original video stream;
determining a mapping relationship between the first discrete point pair information and a canvas size of the original video stream.
3. The video watermarking method according to claim 2, wherein the mathematical expression for determining the mapping relationship between the first discrete point pair information and the canvas size of the original video stream is:
f(x)=a1w1(x)+a2w2(x)+…+aiwi(x),i=1...m
wherein the mathematical expression of the first discrete point pair information is: (x)i,yi),w1(x)、w2(x)...wi(x) For a preset set of linearly independent functions with respect to resolution, a1、a2...am(x) is the canvas size, m is the number of first discrete point pairs, and the mathematical expression of the linear independent function is: k is a radical ofix+bi,ki、biIs a preset linear independent constant;
the step of obtaining the characteristic coefficient comprises the following steps: and acquiring the characteristic coefficient by using a least square method according to the first discrete point pair information.
4. The video watermarking method according to claim 1, wherein the step of determining the canvas size of the video stream to be added according to the resolution of the video stream to be added and the mapping relationship comprises:
acquiring second discrete point pair information according to the resolution of the video stream to be added, wherein the second discrete point pair information corresponds to the resolution of the video stream to be added;
and determining the size of the canvas of the video stream to be added according to the second discrete point pair information and the mapping relation.
5. The video watermarking method according to claim 1, wherein the step of adjusting the size of the video watermark according to the canvas size of the video stream to be added and the watermark parameter, and further performing video watermarking on the video stream to be added comprises:
determining a first watermark canvas according to the canvas size of the video stream to be added;
according to the watermark parameters, performing watermark drawing on the first watermark canvas to obtain a second watermark canvas;
constructing a first region bitmap;
binding the second watermark canvas to the first area bitmap to obtain a second area bitmap;
and binding the second region bitmap to a corresponding video channel, and adding a watermark to the video stream to be added.
6. The video watermarking method according to claim 5, wherein the step of performing watermarking on the first watermarking canvas according to the watermarking parameter comprises:
acquiring the watermark density of the video stream to be added;
adjusting the watermark density according to the resolution and watermark parameters of the video stream to be added to obtain the adjusted watermark density;
determining initial position information of each watermark in the first watermark canvas according to the adjusted watermark density;
and according to the watermark parameters, the adjusted watermark density and the initial position information, performing watermark drawing on the first watermark canvas.
7. The video watermarking method according to claim 1, wherein the step of obtaining the resolution of the video stream to be added comprises:
and acquiring a video stream to be added, decoding the video stream to be added, and acquiring the resolution of the video stream to be added.
8. The video watermarking method of claim 1, wherein the watermark parameters include at least one of: watermark content, tilt angle, watermark transparency.
9. The video watermarking method according to claim 8, wherein the step of obtaining the watermark content includes: acquiring a user name when a user logs in a terminal, and taking the user name as watermark content;
and when the user name of the login terminal is empty, taking the ID of the superior domain when the user logs in the terminal as watermark content.
10. The video watermarking method according to claim 1, wherein the step of obtaining the resolution of the video stream to be added is preceded by:
acquiring an unclassified video stream;
judging whether the unclassified video stream needs to be encrypted or decrypted, and if not, judging whether the unclassified video stream needs to be subjected to watermark addition;
and if the unclassified video stream needs to be subjected to watermark adding, taking the unclassified video stream as a video stream to be added.
11. A video watermarking system, comprising:
the pre-acquisition module is used for acquiring the resolution of the original video stream and the canvas size of the original video stream;
the preprocessing module is used for determining the mapping relation between the resolution of the original video stream and the canvas size of the original video stream;
the acquisition module is used for respectively acquiring the resolution of a video stream to be added and a watermark parameter corresponding to the video stream to be added;
the processing module is used for determining the canvas size of the video stream to be added according to the resolution of the video stream to be added and the mapping relation;
the watermark adding module is used for adjusting the size of the video watermark according to the canvas size of the video stream to be added and the watermark parameter, and further adding the video watermark to the video stream to be added; the pre-acquisition module, the pre-processing module, the acquisition module, the processing module and the watermark adding module are connected.
12. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 10.
13. An electronic terminal, comprising: a processor and a memory;
the memory is adapted to store a computer program and the processor is adapted to execute the computer program stored by the memory to cause the terminal to perform the method according to any of claims 1 to 10.
CN202011474192.1A 2020-12-14 2020-12-14 Video watermark adding method, system, medium and electronic terminal Pending CN112616093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011474192.1A CN112616093A (en) 2020-12-14 2020-12-14 Video watermark adding method, system, medium and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011474192.1A CN112616093A (en) 2020-12-14 2020-12-14 Video watermark adding method, system, medium and electronic terminal

Publications (1)

Publication Number Publication Date
CN112616093A true CN112616093A (en) 2021-04-06

Family

ID=75234211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011474192.1A Pending CN112616093A (en) 2020-12-14 2020-12-14 Video watermark adding method, system, medium and electronic terminal

Country Status (1)

Country Link
CN (1) CN112616093A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113362215A (en) * 2021-06-07 2021-09-07 展讯通信(上海)有限公司 Image processing method, apparatus, device, storage medium, and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125607A1 (en) * 1996-11-12 2009-05-14 Rhoads Geoffrey B Methods and Arrangements Employing Digital Content Items
CN109327727A (en) * 2018-11-20 2019-02-12 网宿科技股份有限公司 Live streaming method for stream processing and plug-flow client in a kind of WebRTC
CN109614317A (en) * 2018-11-12 2019-04-12 平安科技(深圳)有限公司 Electronic device, ui testing method and storage medium
CN110059274A (en) * 2019-03-15 2019-07-26 平安普惠企业管理有限公司 Front end picture amplifying method, device, computer equipment and storage medium
WO2019194900A1 (en) * 2018-04-06 2019-10-10 Hewlett-Packard Development Company, L.P. Watermarking digital content
CN111327963A (en) * 2018-12-17 2020-06-23 北京京东尚科信息技术有限公司 Watermark embedding and extracting method, device and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125607A1 (en) * 1996-11-12 2009-05-14 Rhoads Geoffrey B Methods and Arrangements Employing Digital Content Items
WO2019194900A1 (en) * 2018-04-06 2019-10-10 Hewlett-Packard Development Company, L.P. Watermarking digital content
CN109614317A (en) * 2018-11-12 2019-04-12 平安科技(深圳)有限公司 Electronic device, ui testing method and storage medium
CN109327727A (en) * 2018-11-20 2019-02-12 网宿科技股份有限公司 Live streaming method for stream processing and plug-flow client in a kind of WebRTC
CN111327963A (en) * 2018-12-17 2020-06-23 北京京东尚科信息技术有限公司 Watermark embedding and extracting method, device and equipment
CN110059274A (en) * 2019-03-15 2019-07-26 平安普惠企业管理有限公司 Front end picture amplifying method, device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A. KERBICHE ET AL.: "Robust Video Watermarking Approach Based on Crowdsourcing and Hybrid Insertion", 《2017 INTERNATIONAL CONFERENCE ON DIGITAL IMAGE COMPUTING: TECHNIQUES AND APPLICATIONS (DICTA)》 *
彭勃: "基于MPEG视频的数字水印技术研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑(月刊),2005年第06期》 *
黄志洪: "基于DCT的数字图像水印技术的研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑(月刊),2011年第12期》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113362215A (en) * 2021-06-07 2021-09-07 展讯通信(上海)有限公司 Image processing method, apparatus, device, storage medium, and program product
CN113362215B (en) * 2021-06-07 2022-12-06 展讯通信(上海)有限公司 Image processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6564464B2 (en) Video program segment detection
RU2738693C1 (en) Methods for encoding, decoding and displaying high-dynamic range images
TW522296B (en) Communication apparatus, communication method, and recording medium used therewith
JP3697344B2 (en) Image verification device
CN112561766B (en) Image steganography and extraction method and device and electronic equipment
US11514554B2 (en) Method to generate additional level of detail when zooming in on an image
Cetin et al. A new steganography algorithm based on color histograms for data embedding into raw video streams
EP3734979A1 (en) Video transmission method, client, and server
JP2007035038A (en) Method for generating sequence of reduced images from sequence of source images
US10313763B2 (en) Method and apparatus for requesting and receiving selected segment streams based on projection information
US20150117515A1 (en) Layered Encoding Using Spatial and Temporal Analysis
US20200366938A1 (en) Signal encoding
CN111932432A (en) Blind watermark implanting method, blind watermark detecting method, blind watermark implanting device, blind watermark detecting equipment and storage medium
Mhala et al. Contrast enhancement of progressive visual secret sharing (pvss) scheme for gray-scale and color images using super-resolution
Memon et al. Reversible watermarking method based on adaptive thresholding and companding technique
CN111757172A (en) HDR video acquisition method, HDR video acquisition device and terminal equipment
US20180220120A1 (en) Method and system for constructing view from multiple video streams
CN112616093A (en) Video watermark adding method, system, medium and electronic terminal
CN113538287A (en) Video enhancement network training method, video enhancement method and related device
Miura et al. Data hiding technique for omnidirectional JPEG images displayed on VR spaces
TW202203643A (en) Method for transmitting reduced depth information and electronic system
CN111065000B (en) Video watermark processing method, device and storage medium
CN115293994B (en) Image processing method, image processing device, computer equipment and storage medium
US20130156255A1 (en) Method and system for performing transcoding resistant watermarking
CN110113595B (en) Method and device for converting 2D video into 3D video and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210406

RJ01 Rejection of invention patent application after publication