CN106933467A - Intelligent watermark moving method - Google Patents
Intelligent watermark moving method Download PDFInfo
- Publication number
- CN106933467A CN106933467A CN201710106102.5A CN201710106102A CN106933467A CN 106933467 A CN106933467 A CN 106933467A CN 201710106102 A CN201710106102 A CN 201710106102A CN 106933467 A CN106933467 A CN 106933467A
- Authority
- CN
- China
- Prior art keywords
- end points
- screen
- watermark
- picture
- range
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000006243 chemical reaction Methods 0.000 claims abstract description 7
- 230000006870 function Effects 0.000 claims description 33
- 230000008859 change Effects 0.000 claims description 13
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 3
- 238000010009 beating Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000035807 sensation Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 229910000831 Steel Inorganic materials 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/16—Program or content traceability, e.g. by watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2201/00—General purpose image data processing
- G06T2201/005—Image watermarking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The invention discloses a kind of intelligent watermark moving method, comprise the following steps:S1:Screen size is obtained, the width for calculating screen is high, and sets up reference axis;S2:The transparency of watermark picture is set;S3:The width for obtaining watermark picture is high, and high according to the width of the high and watermark picture wide of screen, and any end points is located at the position in screen on generation watermark picture at random;S4:Endpoint location according to obtaining draws watermark picture in screen;S5:It is randomly provided the time interval that watermark picture shows;S6:The changing value for obtaining end points is randomly provided, the position of the end points is reacquired;If the position obtained after conversion reacquires the position of the end points not in screen, until the end points is located in screen;S7:Repeat S4 S6.By the above method, random movement of the watermark picture on screen is capable of achieving, prevents other people from covering watermark with the form of mosaic, serve good tamper-proof effect.
Description
Technical field
The present invention relates to information Security Protection Technology field, more specifically, it relates to a kind of intelligent watermark moving method.
Background technology
With the development of society, multimedia technology is increasingly ripe, and the life of people increasingly be unable to do without electronic product, such as hand
Machine.Many people see video with mobile phone in one's spare time, or stroll social software, it is seen that when excellent video and picture, can be by it
Editing is simultaneously preserved.But either video or picture have its copyright, random editing and preservation have really invaded system
Author's copyright.So, in order to the video or picture that ensure oneself are not used arbitrarily, typically can be on video or picture
Watermark is set.
Watermark has two kinds, and one kind is that directly watermark information is hidden in host file, and the considerable of original document is not influenceed
Property and integrality, this watermark are embedded in algorithm, can be extracted when needing;Another watermark is direct
One jiao of video or picture can be displayed in, either editing, directly preservation or recording in addition, have the aobvious of watermark
Show, the performance of second watermark can more directly protect the copyright of video or picture.
But it is aimed at above-mentioned second watermark, one jiao of mobile phone is usually displayed in the form of static state, other people energy
It is enough that the watermark on editing, the video recorded or picture is directly stamped into mosaic in relevant position, by original watermark blurring
Change to evade liability for tort, such watermark does not have and antitheft is taken as using.
The content of the invention
In view of the shortcomings of the prior art, it is an object of the invention to provide a kind of intelligent watermark moving method, can
Make watermark random movement, so as to play it is antitheft be taken as use.
To achieve the above object, the invention provides following technical scheme:
A kind of intelligent watermark moving method, comprises the following steps:S1:Screen size is obtained, the width for calculating screen is high, and sets up seat
Parameter;S2:The transparency of watermark picture is set;S3:The width for obtaining the watermark picture is high, and according to the width height of screen and watermark
The width of picture is high, any end points on the watermark picture is generated at random and is located at the position in screen;S4:According to the end points position for obtaining
Put and the watermark picture is drawn in screen;S5:It is randomly provided the time interval that the watermark picture shows;S6:It is randomly provided
The changing value of end points is obtained, the position of the end points is reacquired;If the position obtained after conversion reacquires not in screen
The position of the end points, until the end points is located in screen;S7:After above-mentioned time interval, S4-S6 is repeated.
Further, the step S3 includes:S31:One of end points is selected, and limits the end points abscissa and vertical seat
Target span so that four end points of the watermark picture are respectively positioned in the screen;S32:It is random in the range of restriction
Obtain abscissa of the numerical value as taken end points;S33:The random vertical seat for obtaining numerical value as taken end points in the range of restriction
Mark;S34:Coordinate according to above-mentioned acquisition calculates the position of its excess-three coordinate.
Further, the step S6 comprises the following steps:S61:It is random to obtain changing value, change end points abscissa or
Person's ordinate, judges whether the coordinate value is located in the range of restriction;If not in the range of restriction, reacquiring changing value;
Otherwise enter next step;S62:Whether corresponding ordinate or abscissa are calculated according to different functions, the coordinate value is judged
In the range of restriction;If not in the range of restriction, re-operating S61;Otherwise enter step S7.
Further, the function includes power function, exponential function, logarithmic function, trigonometric function, antitrigonometric function, double
The curve of bent function or arc-function.
Compared with prior art, it is an advantage of the invention that:The size of screen and watermark picture is obtained, watermark figure is then selected
One of end points of piece, limits scope of the end points in screen so that remaining 3 position of end points of remaining watermark picture
In screen, can afterwards draw the initial position of the watermark picture;And after the random time, reacquire the horizontal stroke of the end points
The value of coordinate or ordinate, and the value of corresponding ordinate or abscissa is obtained according to certain function, watermark is shown again
The position of picture so that watermark picture is capable of any position being displayed on screen of not timing, can effectively prevent other people direct
The hiding way of mosaic is beaten, the copyright of author can be effectively protected.
To achieve the above object, the invention provides following technical scheme:
A kind of intelligent watermark moving method, comprises the following steps:S1’:Screen size is obtained, the width for calculating screen is high, and sets up
Reference axis, multiple regions are divided into by the screen;S2’:The width for obtaining the watermark picture is high, and width according to screen it is high and
The width of watermark picture is high, any end points on the watermark picture is generated at random and is located at the position in screen;S3’:Judge what is obtained
The corresponding region of end points, sets the corresponding transparency of watermark picture;S4’:Endpoint location according to obtaining is drawn in screen
The watermark picture;S5’:It is randomly provided the time interval that the watermark picture shows;S6’:It is randomly provided the change for obtaining end points
Change value, reacquires the position of the end points;If the position obtained after conversion reacquires the position of the end points not in screen
Put, until the end points is located in screen;S7’:After above-mentioned time interval, S3 '-S6 ' are repeated.
Further, the step S2 ' includes:S21’:One of end points is selected, and is limited the end points abscissa and is indulged
The span of coordinate so that four end points of the watermark picture are respectively positioned in the screen;S22’:In the range of restriction with
Machine obtains abscissa of the numerical value as taken end points;S23’:The random numerical value that obtains is used as the vertical of taken end points in the range of restriction
Coordinate;S24’:Coordinate according to above-mentioned acquisition calculates the position of its excess-three coordinate.
Further, the step S6 ' comprises the following steps:S61’:It is random to obtain changing value, change the abscissa of end points
Or ordinate, judge whether the coordinate value is located in the range of restriction;If not in the range of restriction, reacquiring change
Value;Otherwise enter next step;S62’:Corresponding ordinate or abscissa are calculated according to different functions, the coordinate value is judged
Whether it is located in the range of limiting;If not in the range of restriction, re-operating S61 ';Otherwise enter step S7 '.
Compared with prior art, it is an advantage of the invention that:Screen into multiple regions, the corresponding watermark of regional
The transparency of picture is different, and foreign body sensation when watching people screen is displayed in when on screen to reduce watermark;Selected watermark picture
One of end points, limit scope of the end points in screen so that the position of remaining 3 end points of remaining watermark picture is equal
The corresponding regional location of the endpoint location can then be judged in screen, the transparency of watermark picture is set, the water is drawn afterwards
The initial position of impression piece;And after the random time, reacquire the abscissa of the end points or the value of ordinate, and according to
Certain function obtains the value of corresponding ordinate or abscissa, rejudges the position of the end points and sets corresponding transparent
Degree, shows the position of watermark picture so that watermark picture being capable of being displayed on screen with different transparency not timings again
Any position, can effectively prevent other people from directly beating the hiding way of mosaic, can effectively protect the copyright of author, and less
Foreign body sensation when seeing screen of spectators.
To achieve the above object, the invention provides following technical scheme:
A kind of intelligent watermark moving method, comprises the following steps:S1’’:Screen size is obtained, the width for calculating screen is high, and sets up
Reference axis;S2’’:The width for obtaining the watermark picture is high, and high high with the width of watermark picture according to the width of screen, random generation
Any end points is located at the position in screen on the watermark picture;S3’’:Judge on screen with obtain end points opposite position
Color, sets the corresponding transparency of watermark picture;S4’’:Endpoint location according to obtaining draws the watermark figure in screen
Piece;S5’’:It is randomly provided the time interval that the watermark picture shows;S6’’:The changing value for obtaining end points is randomly provided, again
Obtain the position of the end points;If the position obtained after conversion reacquires the position of the end points, until the end not in screen
Point is located in screen;S7’’:After above-mentioned time interval, S3 ' '-S6 ' ' are repeated.
Further, the step S2 ' ' includes:S21’’:Select one of end points, and limit the end points abscissa and
The span of ordinate so that four end points of the watermark picture are respectively positioned in the screen;S22’’:Limiting scope
The interior random abscissa for obtaining numerical value as taken end points;S23’’:The random numerical value that obtains is used as taken end points in the range of restriction
Ordinate;S24’’:Coordinate according to above-mentioned acquisition calculates the position of its excess-three coordinate.
Further, the step S6 ' ' comprises the following steps:S61’’:It is random to obtain changing value, change the horizontal seat of end points
Mark or ordinate, judge whether the coordinate value is located in the range of restriction;If not in the range of restriction, reacquiring change
Value;Otherwise enter next step;S62’’:Corresponding ordinate or abscissa are calculated according to different functions, the coordinate value is judged
Whether it is located in the range of limiting;If not in the range of restriction, re-operating S61 ' ';Otherwise enter step S7 ' '.
Compared with prior art, it is an advantage of the invention that:The size of screen and watermark picture is obtained, watermark figure is then selected
One of end points of piece, limits scope of the end points in screen so that remaining 3 position of end points of remaining watermark picture
Can be in screen;The color that the end points goes out on the screen is read, according to the transparency of the color settings watermark picture, Zhi Houhua
Go out the initial position of the watermark picture;And after the random time, the abscissa of the end points or the value of ordinate are reacquired,
And according to the corresponding ordinate of certain function acquisition or the value of abscissa, rejudge the position of the end points and set corresponding
Transparency, shows the position of watermark picture again so that watermark picture can be displayed in screen with different transparency not timings
Any position on curtain, can effectively prevent other people from directly beating the hiding way of mosaic, can effectively protect the copyright of author, and
Foreign body sensation when seeing screen of less spectators.
Brief description of the drawings
Fig. 1 is the FB(flow block) of the embodiment of the present invention one;
Fig. 2 is the FB(flow block) of the embodiment of the present invention two;
Fig. 3 is the FB(flow block) of the embodiment of the present invention three.
Specific embodiment
For existing video or picture static watermark do not have it is good it is antitheft be taken as using, retouched referring now to schema
State various aspects.In the following description, for explanation purposes, many details are stated so as to provide to one or one with
The detailed understanding of upper aspect.It should be evident, however, that such aspect can be put into practice in the case of without these details.In other examples
In, well-known construction and device is shown in form of a block diagram to promote to describe these aspects.
Reference picture 1, a kind of intelligent watermark moving method, client is according to screen size, and the width for calculating screen is high, with
As a example by Android system mobile phone, the context classes that cell phone system inside can be called to provide, so as to obtain the hand in units of dp
Machine screen height wide, and it is screenWidth and screenHeight that the width of mobile phone screen and height are correspondingly arranged.Afterwards,
Upper left point using screen is wide as X-axis as origin, high as Y-axis, can obtain the coordinate of screen upper left point A(0,0), screen
The coordinate of lower-left point B(0,screenHeight), screen upper right point C coordinate(screenWidht,0)And screen lower-right most point
The coordinate of D(screenWidth,screenHeight), i.e., the scope that screen is located at the abscissa in reference axis is 0-
ScreenWidht, the scope of ordinate is 0- screenHeight.
The logo pictures comprising company information, personal information or other information that acquisition company ui is given are used as watermark figure
Piece, in the present embodiment, then the rectangular setting of watermark picture gives Bitmap classes with system, adjusts picture gradual change transparency,
Used in this implementation transparency for 10% watermark picture, the watermark picture of the transparency enables to the watermark picture in screen
When middle mobile, the observing effect of user is not interfered with, while mark effect can be played again.
Afterwards, the watermark picture resource that will set transparency is put into system imageview classes the inside, and calls
Imageview.getWidth () and imageView.getHeight (), obtains the width and height of picture, is set to
ImageViewWidth and imageViewHeight.Then, the generating random number class Random for being provided using system, generates water
The X-axis coordinate of impression piece upper left point A1 points:int a1=random.nextInt(0,screenWidth-
ImageViewWidth), the method can generate the one 0 integer a1 to screenWidth-imageViewWidth, prevent
Watermark picture on the width on the outside of screen.Wherein, 0<=a1<screenWidth-imageViewWidth.Similarly, make
The generating random number class Random provided with system, the Y-axis coordinate of generation watermark picture upper left point A1 points:int a2=
Random.nextInt (0, screenHeight-imageViewHeight), the method can generate one 0 and arrive
The integer a2 of screenHeight-imageViewHeight, prevent watermark picture exceeds screen outside in height.Wherein,
0<=a2<screenHeight-imageViewHeight。
Drawing principle according to android mobile phones for view.layout (int left, int top, int right,
Int bottom), i.e. the X-axis coordinate value of watermark picture upper left point A1 is come into as left, and Y-axis coordinate value comes into conduct
Top, the angle steel joint of the watermark picture is the X-axis coordinate d1=a1+imageViewWidth and its Y-axis coordinate d2=of its lower-right most point D1
A2+imageViewHeight, it is incoming respectively as right, bottom.When known to left, top, right, bottom, use
The drafting display mechanism that system is provided, imageView calls view.invalidate (), and watermark picture is shown for the first time
On screen.
In order that the watermark picture can not timing movement, prevent from artificially beating mosaic and hide static watermark, the water
Impression piece in dynamic set, i.e., the watermark picture can not timing shift one's position.Then, next, every time display picture after,
With the random several classes ofs of the Random time interval that one number of generation is moved as watermark picture at random.In the present embodiment, Random with
Machine several classes of generates 1 to 10 positive integer at random:Int time=random.nextInt (1,10), as the time that picture is moved
Interval, and initialization timer handler.postDelayed (runnable, time), the step after execution after time seconds
Suddenly.
A watermark picture upper left point A1 point coordinates changing values, in the present embodiment, int △ x=are generated at random with Random classes
Random.nextInt (- 10,10) as watermark picture upper left point A1 point X-axis coordinates changing value, and judge generation after value
Whether a1+ △ x are in the range of 0 to screenWidth-imageViewWidth, if within the range, obtaining in the same way
The changing value of watermark picture upper left point A1 point Y-axis coordinates, and judge whether the value a2+ △ y after generation arrive 0
In the range of screenHeight-imageViewHeight;Otherwise reacquire A1 point coordinates changing values, until its X-axis coordinate and
Y-axis coordinate is in the range of restriction.In another embodiment, it is interesting in order to increase the uncertain display of watermark picture, set
Function set list the inside comprising power function n0, exponential function n1, logarithmic function n2, trigonometric function n3, antitrigonometric function n4,
The correlation functions such as hyperbolic functions n5, the curve n6 of arc-function;Int △ x=are generated at random with Random classes
Then random.nextInt (- 10,10) judges A1 after generation as the changing value of watermark picture upper left point A1 point X-axis coordinates
Whether the value a1+ △ x of point X-axis exist in the range of 0 to screenWidth-imageViewWidth, such as, incoming picture upper left point
Whether A1 point X-axis coordinate a1+ △ x, randomly select above-mentioned one of function, obtain corresponding Y-axis coordinate a2, and judge a2
In the range of 0 to screenHeight-imageViewHeight, such as exist, take the value;Otherwise take set the inside letter at random again
Number generation y values, until the value is eligible.
Afterwards by the position display of qualified watermark picture on screen, and repeat it is above-mentioned randomly select the time and
The step of after it.
Aforesaid operations including restriction scope of the watermark picture upper left point in reference axis are determined according to selected point, other
In implementation, it would however also be possible to employ any point on screen as origin, due to the width of screen Gao Junke wide high and watermark picture
Know, watermark picture can be calculated in the position of the reference axis where screen and range of movement.Same reason, it is also possible to selected
The reference point of any end points on watermark picture as watermark picture in reference axis.
In other embodiments, when watching video or picture due to people, to the speed of each position on screen not
Together, so in order to preferably adapt to this difference, reference picture 2 will be divided into multiple regions, needed for regional correspondence on screen
Watermark picture transparency it is different.After the coordinate of watermark picture upper left point A1 has been chosen, judge that the point is located at that divide
In individual region, the transparency of watermark picture is set further according to the corresponding transparency in this region, then by the picture in screen
It has been shown that, next ibid operates.
In other embodiments, when watching video or picture due to people, to the speed of each position on screen not
Together, so in order to preferably adapt to this difference, reference picture 3, after the coordinate of watermark picture upper left point A1 has been chosen, on screen
Color corresponding with the position, the color is stated using RGB, the different transparency of different color correspondences, or a water
Color within the scope of the transparency correspondence one of impression piece, corresponding watermark picture transparency is obtained according to color, then should
Picture shows in screen, next ibid operates.
It will be appreciated that aspects described herein can be implemented with hardware, software, firmware or its any combinations.When with software reality
Shi Shi, the function can be as one or more instructions or code storage on computer-readable media or via computer
Readable media is launched.Computer-readable media includes both computer storage media and communication medium, and communication medium includes promotion
Computer program is sent to any media of another location from position.Storage media can be can be by universal or special calculating
Any useable medium that machine is accessed.By way of example, and not limitation, such computer-readable media may include RAM, ROM,
EEPROM, CD-ROM or other optical disk storage apparatus, disk storage device or other magnetic storage devices, or it is any other available
In carrying or storage in the required program code means of instruction or the form of data structure and can by universal or special computer or
The media that universal or special processor is accessed.Also, any connection is properly called computer-readable media.Software code can be deposited
Storage is in a memory cell and by computing device.Memory cell can be implemented in processor or outside processor, deposit
In the case that reservoir outside is implemented, it can be coupled to processor via various modes known in the art by correspondence.
Additionally, at least one processor can include operable one or more modules to perform functions described herein.Additionally,
The step of method or algorithm for being described with reference to aspects disclosed herein and/or action can be embodied directly in hardware, in by processor
Embodied in the software module of execution or in described a combination of both.Software module can reside within RAM memory, flash
Device, ROM memory, eprom memory, eeprom memory, register, hard disk, can be in removable disk, CD-ROM or technique
In the storage media of known any other form.Exemplary storage medium can be coupled to processor so that processor can be from depositing
Storage media read information and write information to storage media.
Although disclosure above discusses illustrative aspect, it should be noted that appended claims institute circle can not departed from
Various changes and modifications can be made herein in the case of the scope of fixed described aspect.Therefore, the set culvert of described aspect
All such change, modifications and variations that lid falls within the scope of appended claims.Although additionally, may be in the singular
The element of described aspect is described or claimed in, but except as expressly provided limited singular form, otherwise it is also contemplated that plural form.Separately
Outward, unless specified otherwise herein, otherwise any aspect all or part of can with any other aspect all or part of together with
Utilize.
For term "comprising" is used in detailed description or the claims, this term is set with similar to term " bag
Include " it is used as the mode explained during transition word in detail in the claims and is comprising boundary(inclusive).Additionally, as weighed
The sharp claim or term "or" that uses is intended to " nonexcludability or " in describing in detail.
Claims (10)
1. a kind of intelligent watermark moving method, it is characterised in that comprise the following steps:
S1:Screen size is obtained, the width for calculating screen is high, and sets up reference axis;
S2:The transparency of watermark picture is set;
S3:The width for obtaining the watermark picture is high, and high high with the width of watermark picture according to the width of screen, and the water is generated at random
Any end points is located at the position in screen on impression piece;
S4:Endpoint location according to obtaining draws the watermark picture in screen;
S5:It is randomly provided the time interval that the watermark picture shows;
S6:The changing value for obtaining end points is randomly provided, the position of the end points is reacquired;If the position obtained after conversion is not in screen
In curtain, then the position of the end points is reacquired, until the end points is located in screen;
S7:Repeat S4-S6.
2. intelligent watermark moving method according to claim 1, it is characterised in that the step S3 includes:
S31:One of end points is selected, and limits the span of the end points abscissa and ordinate so that the watermark figure
Four end points of piece are respectively positioned in the screen;
S32:The random abscissa for obtaining numerical value as taken end points in the range of restriction;
S33:The random ordinate for obtaining numerical value as taken end points in the range of restriction;
S34:Coordinate according to above-mentioned acquisition calculates the position of its excess-three coordinate.
3. intelligent watermark moving method according to claim 2, it is characterised in that the step S6 comprises the following steps:
S61:It is random to obtain changing value, change the abscissa or ordinate of end points, judge whether the coordinate value is located at what is limited
In the range of;If not in the range of restriction, reacquiring changing value;Otherwise enter next step;
S62:Corresponding ordinate or abscissa are calculated according to different functions, judges whether the coordinate value is located at the model for limiting
In enclosing;If not in the range of restriction, re-operating S61;Otherwise enter step S7.
4. intelligent watermark moving method according to claim 3, it is characterised in that the function includes power function, index
The curve of function, logarithmic function, trigonometric function, antitrigonometric function, hyperbolic functions or arc-function.
5. a kind of intelligent watermark moving method, it is characterised in that comprise the following steps:
S1’:Screen size is obtained, the width for calculating screen is high, and sets up reference axis, and the screen is divided into multiple regions;
S2’:The width for obtaining the watermark picture is high, and high high with the width of watermark picture according to the width of screen, described in random generation
Any end points is located at the position in screen on watermark picture;
S3’:Judge the corresponding region of end points for obtaining, the corresponding transparency of watermark picture is set;
S4’:Endpoint location according to obtaining draws the watermark picture in screen;
S5’:It is randomly provided the time interval that the watermark picture shows;
S6’:The changing value for obtaining end points is randomly provided, the position of the end points is reacquired;If the position obtained after conversion does not exist
In screen, then the position of the end points is reacquired, until the end points is located in screen;
S7’:Repeat S3 '-S6 '.
6. intelligent watermark moving method according to claim 5, it is characterised in that the step S2 ' includes:
S21’:One of end points is selected, and limits the span of the end points abscissa and ordinate so that the watermark figure
Four end points of piece are respectively positioned in the screen;
S22’:The random abscissa for obtaining numerical value as taken end points in the range of restriction;
S23’:The random ordinate for obtaining numerical value as taken end points in the range of restriction;
S24’:Coordinate according to above-mentioned acquisition calculates the position of its excess-three coordinate.
7. intelligent watermark moving method according to claim 6, it is characterised in that the step S6 ' comprises the following steps:
S61’:It is random to obtain changing value, change the abscissa or ordinate of end points, judge whether the coordinate value is located at what is limited
In the range of;If not in the range of restriction, reacquiring changing value;Otherwise enter next step;
S62’:Corresponding ordinate or abscissa are calculated according to different functions, judges whether the coordinate value is located at what is limited
In the range of;If not in the range of restriction, re-operating S61 ';Otherwise enter step S7 '.
8. a kind of intelligent watermark moving method, it is characterised in that comprise the following steps:
S1’’:Screen size is obtained, the width for calculating screen is high, and sets up reference axis;
S2’’:The width for obtaining the watermark picture is high, and high high with the width of watermark picture according to the width of screen, described in random generation
Any end points is located at the position in screen on watermark picture;
S3’’:Judge the color with acquisition end points opposite position on screen, the corresponding transparency of watermark picture is set;
S4’’:Endpoint location according to obtaining draws the watermark picture in screen;
S5’’:It is randomly provided the time interval that the watermark picture shows;
S6’’:The changing value for obtaining end points is randomly provided, the position of the end points is reacquired;If the position obtained after conversion does not exist
In screen, then the position of the end points is reacquired, until the end points is located in screen;
S7’’:Repeat S3 ' '-S6 ' '.
9. intelligent watermark moving method according to claim 8, it is characterised in that the step S2 ' ' includes:
S21’’:One of end points is selected, and limits the span of the end points abscissa and ordinate so that the watermark
Four end points of picture are respectively positioned in the screen;
S22’’:The random abscissa for obtaining numerical value as taken end points in the range of restriction;
S23’’:The random ordinate for obtaining numerical value as taken end points in the range of restriction;
S24’’:Coordinate according to above-mentioned acquisition calculates the position of its excess-three coordinate.
10. intelligent watermark moving method according to claim 9, it is characterised in that the step S6 ' ' includes following step
Suddenly:
S61’’:It is random to obtain changing value, change the abscissa or ordinate of end points, judge whether the coordinate value is located at and limit
In the range of;If not in the range of restriction, reacquiring changing value;Otherwise enter next step;
S62’’:Corresponding ordinate or abscissa are calculated according to different functions, judges whether the coordinate value is located at what is limited
In the range of;If not in the range of restriction, re-operating S61 ' ';Otherwise enter step S7 ' '.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710106102.5A CN106933467A (en) | 2017-02-25 | 2017-02-25 | Intelligent watermark moving method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710106102.5A CN106933467A (en) | 2017-02-25 | 2017-02-25 | Intelligent watermark moving method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106933467A true CN106933467A (en) | 2017-07-07 |
Family
ID=59423210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710106102.5A Pending CN106933467A (en) | 2017-02-25 | 2017-02-25 | Intelligent watermark moving method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106933467A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108322692A (en) * | 2018-02-26 | 2018-07-24 | 苏州科达科技股份有限公司 | Determination method, system, equipment and the storage medium of watermark embedded location in video |
CN108391078A (en) * | 2018-02-26 | 2018-08-10 | 苏州科达科技股份有限公司 | Determination method, system, equipment and the storage medium of watermark embedded location in video |
CN108810654A (en) * | 2018-07-12 | 2018-11-13 | 武汉斗鱼网络科技有限公司 | A kind of watermark adding method, device and electronic equipment |
CN109996028A (en) * | 2017-12-29 | 2019-07-09 | 浙江宇视科技有限公司 | Monitoring display equipment and watermark adding method |
CN110378831A (en) * | 2019-07-19 | 2019-10-25 | 百度在线网络技术(北京)有限公司 | The treating method and apparatus of watermark |
CN111247811A (en) * | 2018-12-24 | 2020-06-05 | 深圳市大疆创新科技有限公司 | Data processing method, unmanned aerial vehicle, glasses equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030046367A1 (en) * | 2001-08-31 | 2003-03-06 | Nec Corporation | Digital contents distribution system and digital contents distribution method |
CN1811788A (en) * | 2006-02-24 | 2006-08-02 | 无锡永中科技有限公司 | Method for generating dynamic watermark in electronic documents |
CN102685076A (en) * | 2011-03-16 | 2012-09-19 | 中国电信股份有限公司 | Online information protection method and device |
CN106060588A (en) * | 2016-06-19 | 2016-10-26 | 杭州阔知网络科技有限公司 | Video fingerprint generation method and system |
-
2017
- 2017-02-25 CN CN201710106102.5A patent/CN106933467A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030046367A1 (en) * | 2001-08-31 | 2003-03-06 | Nec Corporation | Digital contents distribution system and digital contents distribution method |
CN1811788A (en) * | 2006-02-24 | 2006-08-02 | 无锡永中科技有限公司 | Method for generating dynamic watermark in electronic documents |
CN102685076A (en) * | 2011-03-16 | 2012-09-19 | 中国电信股份有限公司 | Online information protection method and device |
CN106060588A (en) * | 2016-06-19 | 2016-10-26 | 杭州阔知网络科技有限公司 | Video fingerprint generation method and system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109996028A (en) * | 2017-12-29 | 2019-07-09 | 浙江宇视科技有限公司 | Monitoring display equipment and watermark adding method |
CN108322692A (en) * | 2018-02-26 | 2018-07-24 | 苏州科达科技股份有限公司 | Determination method, system, equipment and the storage medium of watermark embedded location in video |
CN108391078A (en) * | 2018-02-26 | 2018-08-10 | 苏州科达科技股份有限公司 | Determination method, system, equipment and the storage medium of watermark embedded location in video |
CN108322692B (en) * | 2018-02-26 | 2020-10-27 | 苏州科达科技股份有限公司 | Method, system, equipment and storage medium for determining watermark embedding position in video |
CN108391078B (en) * | 2018-02-26 | 2020-10-27 | 苏州科达科技股份有限公司 | Method, system, equipment and storage medium for determining watermark embedding position in video |
CN108810654A (en) * | 2018-07-12 | 2018-11-13 | 武汉斗鱼网络科技有限公司 | A kind of watermark adding method, device and electronic equipment |
CN111247811A (en) * | 2018-12-24 | 2020-06-05 | 深圳市大疆创新科技有限公司 | Data processing method, unmanned aerial vehicle, glasses equipment and storage medium |
CN110378831A (en) * | 2019-07-19 | 2019-10-25 | 百度在线网络技术(北京)有限公司 | The treating method and apparatus of watermark |
CN110378831B (en) * | 2019-07-19 | 2023-05-16 | 百度在线网络技术(北京)有限公司 | Watermark processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106933467A (en) | Intelligent watermark moving method | |
CN110555796B (en) | Image adjusting method, device, storage medium and equipment | |
CN104182718B (en) | A kind of man face characteristic point positioning method and device | |
JP6266656B2 (en) | System and method for resizing an image | |
KR20190133716A (en) | Selective application of reprojection processing to layer subregions to optimize late reprojection power | |
CN107018336A (en) | The method and apparatus of image procossing and the method and apparatus of Video processing | |
CN106331687B (en) | Method and apparatus for processing a portion of immersive video content according to a position of a reference portion | |
WO2020220516A1 (en) | Image generation network training and image processing methods, apparatus, electronic device and medium | |
CN104103089A (en) | Real-time soft shadow realization method based on image screen space | |
CN105913481B (en) | Shadow rendering apparatus and control method thereof | |
JP2023519728A (en) | 2D image 3D conversion method, apparatus, equipment, and computer program | |
CN104571887A (en) | Static picture based dynamic interaction method and device | |
CN108416722A (en) | A kind of method for displaying image, storage medium and terminal device | |
WO2022022260A1 (en) | Image style transfer method and apparatus therefor | |
CN112516595B (en) | Magma rendering method, device, equipment and storage medium | |
CN110458922B (en) | Graphics rendering method and related product | |
WO2020036214A1 (en) | Image generation device, and image generation method and program | |
Vasudevan et al. | Tangible images: runtime generation of haptic textures from images | |
CN105447010A (en) | Text rendering method and system | |
CN104574473A (en) | Method and device for generating dynamic effect on basis of static image | |
CN106843709A (en) | The method and apparatus that show object is shown according to real time information | |
CN108027646A (en) | A kind of terminal shows anti-fluttering method and device | |
CN113938666B (en) | Video data transmission method, device and storage medium based on key frames | |
US8982120B1 (en) | Blurring while loading map data | |
US20190005736A1 (en) | Method and apparatus for calculating a 3d density map associated with a 3d scene |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170707 |