CN106874167A - The detection method and device of exhibition information - Google Patents
The detection method and device of exhibition information Download PDFInfo
- Publication number
- CN106874167A CN106874167A CN201611270755.9A CN201611270755A CN106874167A CN 106874167 A CN106874167 A CN 106874167A CN 201611270755 A CN201611270755 A CN 201611270755A CN 106874167 A CN106874167 A CN 106874167A
- Authority
- CN
- China
- Prior art keywords
- exhibition information
- animation
- detection
- time interval
- visibility region
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3414—Workload generation, e.g. scripts, playback
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0242—Determining effectiveness of advertisements
- G06Q30/0245—Surveys
Abstract
The detection method and device of a kind of exhibition information, the detection method of exhibition information include:At least one animation is created in region residing for exhibition information, each animation includes at least one playback action;Play with controlling at least one animation cycle;Time interval of each animation when playing between each playback action is detected, and after detection obtains the time interval every time, the time interval and setting time is compared;According to the comparative result for comparing at least one times, whether the exhibition information is determined in visibility region, wherein, the visibility region is in the screen ranges that the exhibition information is presented.Technical solution of the present invention improves the judgement visible accuracy of exhibition information.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of exhibition information detection method and device.
Background technology
When exhibition information (such as notice, news push, advertisement etc.) is delivered, have a series of index to assess dispensing
Effect.Wherein, it is seen that rate is that an important evaluation index of effect is delivered for assessing.Seen rate is the visible number of exhibition information
With the ratio of displaying number.Wherein, the once displaying of exhibition information refers to that exhibition information is illustrated in webpage or other pages;Exhibition
Show that the once visible of information refers to that exhibition information is displayed in screen (such as screen of the equipment such as computer, smart mobile phone), and
Can be seen by the user.If that is, exhibition information is outside screen area scope, or naked eyes are not directly visible exhibition
Show the situation of information, then it is assumed that exhibition information is invisible.
In the prior art, whether the mode of the visible displaying of exhibition information is detected, mainly by judging exhibition information in net
The position relationship of coordinate and webpage scroll bar in page;Or add roll screen too fast and judge that exhibition information transparency etc. is attached
Plus judgment mode.
But, the detection mode of prior art is in the situation that the page is minimized and exhibition information is blocked by other elements
Under, judged result is inaccurate;Meanwhile, the HyperText Markup Language (HyperText of embedded another webpage in a webpage
Markup Language, HTML) element when, the position of the exhibition information in the cross-domain and embedded webpage of embedded webpage is by nothing
Method determines.
The content of the invention
Present invention solves the technical problem that being how to improve the judgement visible accuracy of exhibition information.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of detection method of exhibition information, exhibition information
Detection method includes:
At least one animation is created in region residing for exhibition information, each animation includes at least one playback action;Control
Play with making at least one animation cycle;Between detecting time of each animation when playing between each playback action
Every, and after detection obtains the time interval every time, the time interval and setting time are compared;According at least one
Whether the secondary comparative result for comparing, determine the exhibition information in visibility region, wherein, the visibility region is in and institute is presented
State in the screen ranges of exhibition information.
Optionally, whether the comparative result that the basis compares at least one times, determine the exhibition information in visual field
Domain includes:Whether the comparative result compared according to single determines the exhibition information in visibility region, wherein, if detected
The time interval for arriving is less than the setting time, it is determined that the exhibition information is in the visibility region.
Optionally, whether the comparative result that the basis compares at least one times, determine the exhibition information in visual field
Domain includes:Whether the comparative result compared according to single determines the exhibition information in visibility region, wherein, if detected
The time interval for arriving is more than or equal to the setting time, it is determined that the exhibition information is in invisible area.
Optionally, whether the comparative result that the basis compares at least one times, determine the exhibition information in visual field
Domain includes:Whether comparative result according to repeatedly comparing determines the exhibition information in visibility region, wherein, if detected
The time interval for arriving is less than the setting time, and all time intervals for obtaining of detection are small in setting time section after
In the setting time, it is determined that the exhibition information is in the visibility region.
Optionally, whether the comparative result that the basis compares at least one times, determine the exhibition information in visual field
Domain includes:If in the setting time section after the time interval that detection is obtained is less than the setting time, there is at least one
Individual time interval is more than or equal to the setting time, it is determined that the exhibition information is in invisible area.
Optionally, the detection method also includes:Again according to the multiple times after at least one time interval
Whether the comparative result at interval, determine the exhibition information in visibility region.
Optionally, the size of the animation is 1 × 1 pixel.
Optionally, region residing for the exhibition information is quadrangle, many when the quantity of at least one animation is for multiple
Individual animation position is symmetrically disposed in the quadrangle.
Optionally, at least one animation that created in region residing for exhibition information includes:The two of the quadrangle
Multiple animations are symmetrically created on bar diagonal.
Optionally, the multiple animations that symmetrically created on two diagonal of the quadrangle include:Described four
Two cornerwise centre positions between the center of side shape and four angles symmetrically create four animations.
Optionally, the detection method also includes:After it is determined that the exhibition information is in visibility region, remove all dynamic
Draw.
In order to solve the above technical problems, the embodiment of the invention also discloses a kind of detection means of exhibition information, displaying letter
The detection means of breath includes:
Animation creation unit, to create at least one animation in region residing for exhibition information, each animation is included extremely
A few playback action;Playing control unit, is used to play with controlling at least one animation cycle;Detection is more single
Unit, is used to detect time interval of each animation when playing between each playback action, and when detection obtains described every time
Between be spaced after, the time interval and setting time are compared;Determining unit, to according to the comparing compared at least one times
As a result, whether the exhibition information is determined in visibility region, wherein, the visibility region is in and the exhibition information is presented
In screen ranges.
Optionally, the determining unit includes:First determination subelement, the comparative result to be compared according to single determines
Whether the exhibition information is in visibility region, wherein, if the time interval that detection is obtained is less than the setting time, really
The fixed exhibition information is in the visibility region.
Optionally, the determining unit includes:First determination subelement, the comparative result to be compared according to single determines
Whether the exhibition information is in visibility region, wherein, if the time interval that detection is obtained is more than or equal to the setting time,
Then determine that the exhibition information is in invisible area.
Optionally, the determining unit includes:Second determination subelement, to be determined according to the comparative result for repeatedly comparing
Whether the exhibition information is in visibility region, wherein, if the time interval that detection is obtained is less than the setting time, and
All time intervals that detection is obtained in setting time section afterwards are respectively less than the setting time, it is determined that the exhibition information
In the visibility region.
Optionally, second determination subelement setting after the time interval that detection is obtained is less than the setting time
Fix time in section, when there is at least one time interval more than or equal to the setting time, it is determined that the exhibition information is in
Invisible area.
Optionally, the determining unit is again according to the ratio of the multiple time intervals after at least one time interval
Whether relatively result, determine the exhibition information in visibility region.
Optionally, the size of the animation is 1 × 1 pixel.
Optionally, region residing for the exhibition information is quadrangle, many when the quantity of at least one animation is for multiple
Individual animation position is symmetrically disposed in the quadrangle.
Optionally, the animation creation unit symmetrically creates multiple animations on two diagonal of the quadrangle.
Optionally, two diagonal of the animation creation unit between the center of the quadrangle and four angles
Centre position symmetrically create four animations.
Optionally, the detection means also includes:Unit is removed, to it is determined that the exhibition information is in visibility region
Afterwards, all animations are removed.
Compared with prior art, the technical scheme of the embodiment of the present invention has the advantages that:
Technical solution of the present invention creates at least one animation in region residing for exhibition information, and each animation includes at least one
Individual playback action;Play with controlling at least one animation cycle;Detect each animation each playback action when playing
Between time interval, and every time detection obtain the time interval after, the time interval and setting time are compared
Compared with;According to the comparative result for comparing at least one times, whether the exhibition information is determined in visibility region, wherein, it is described visible
Region is in the screen ranges that the exhibition information is presented.Technical solution of the present invention is rendered in visibility region and not using animation
The treatment space of the central processing unit (Central Processing Unit, abbreviation CPU) that visibility region is consumed when performing is not
Together, the characteristic for causing the time-frequency of animation broadcasting different, by creating at least one animation in region residing for exhibition information, detection
Time interval between two playback actions of each animation, and be compared with setting time, determine whether exhibition information is in
Visibility region;Avoid and judge by coordinate in the prior art the whether visible mode of exhibition information, judgement exhibition can be improved
Show the whether visible accuracy of information, while expanding the application scenarios of the detection method of exhibition information.
Further, it is possible to whether the comparative result compared according to single determines the exhibition information in visibility region, its
In, if the time interval that detection is obtained is less than the setting time, it is determined that the exhibition information is in the visibility region.
Whether technical solution of the present invention determines the exhibition information in visibility region by the comparative result using single, simple easily real
Apply.
Further, it is possible to whether the exhibition information is determined in visibility region according to the comparative result for repeatedly comparing, its
In, if the time interval that obtains of detection is less than the setting time, and the institute that detection is obtained in setting time section after
There is time interval to be respectively less than the setting time, it is determined that the exhibition information is in the visibility region.The technology of the present invention side
Whether case determines the exhibition information in visibility region by the comparative result that use is repeatedly compared, compared to use single
Whether comparative result, further increases the judgement visible accuracy of exhibition information.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the detection method of exhibition information of the embodiment of the present invention;
Fig. 2 is the flow chart of the detection method of embodiment of the present invention another kind exhibition information;
Fig. 3 is the flow chart of the detection method of the embodiment of the present invention another exhibition information;
Fig. 4 is a kind of structural representation of the detection means of exhibition information of the embodiment of the present invention;
Fig. 5 is the structural representation of the detection means of embodiment of the present invention another kind exhibition information.
Specific embodiment
As described in the background art, the detection mode of prior art is minimized in the page and exhibition information is by other elements
In the case of blocking, judged result is inaccurate;Meanwhile, the HyperText Markup Language of embedded another webpage in a webpage
During (HyperText Markup Language, HTML) element, the exhibition information in the cross-domain and embedded webpage of embedded webpage
Position will be unable to determine.
The embodiment of the present invention renders the treatment of the CPU consumed when visibility region and invisible area are performed using animation
Space is different, the different characteristic of the time-frequency for causing animation to be played, and is moved by creating at least one in region residing for exhibition information
Draw, detect the time interval between each two playback actions of animation, and be compared with setting time, determine that exhibition information is
It is no in visibility region;Avoid and judge by coordinate in the prior art the whether visible mode of exhibition information, can improve
Whether the visible accuracy of exhibition information is judged, while expanding the application scenarios of the detection method of exhibition information.
It is understandable to enable the above objects, features and advantages of the present invention to become apparent, below in conjunction with the accompanying drawings to the present invention
Specific embodiment be described in detail.
Fig. 1 is a kind of flow chart of the detection method of exhibition information of the embodiment of the present invention.
The detection method of the exhibition information shown in Fig. 1 may comprise steps of:
Step S101:At least one animation is created in region residing for exhibition information, each animation is broadcast including at least one
Put action;
Step S102:Play with controlling at least one animation cycle;
Step S103:Time interval of each animation when playing between each playback action is detected, and is being detected every time
After obtaining the time interval, the time interval and setting time are compared;
Step S104:According to the comparative result for comparing at least one times, whether the exhibition information is determined in visibility region,
Wherein, the visibility region is in the screen ranges that the exhibition information is presented.
It is understood that exhibition information can be launched being shown on the terminal device, and it is illustrated in terminal device
Screen on.Visibility region is in the screen ranges that the exhibition information is presented, and invisible area is in and the displaying is presented
Outside the screen ranges of information;By user is only capable of seeing the information shown in screen ranges, thus visibility region can by with
See that invisible area can not be seen by the user in family.So, when exhibition information is in visibility region, exhibition information is visible
's;When exhibition information is in invisible area, exhibition information is sightless.
In specific implementation, exhibition information can be launched and be shown on the terminal device, and terminal device can possess
CPU.And CPU can carry out animation Rendering operations when animation is processed to animation, and animation Rendering operations be in animation it is visible
When region and invisible area, the treatment space of the CPU for being consumed is different, and the time-frequency for causing animation to be played is different.
Therefore above-mentioned characteristic can be utilized, in step S101, at least one animation is created in region residing for exhibition information.
Then, in step s 102, control at least one animation cycle ground to play, that is, form playback action.And then
In step S103, time interval of each animation when playing between each playback action is detected, and institute is obtained in detection every time
After stating time interval, the time interval and setting time are compared.Wherein, the time interval between playback action can be with
Represent the broadcasting frequency of animation.That is, being compared by the time interval and Preset Time that detect, can distinguish dynamic
Draw and whether be in visibility region;Because animation is created in region residing for exhibition information, so if animation can be distinguished
Whether visibility region is in, then whether exhibition information can also be determined in visibility region.Therefore in step S104, according at least
Whether the comparative result for once comparing, determine the exhibition information in visibility region.
In specific implementation, the quantity of the animation created in step S101 can be one, or multiple.So exist
The quantity of animation for it is multiple when, in step S104, can according to the comparative result for comparing at least one times of at least one animation,
Determine the exhibition information whether in visibility region.That is, can be according to a ratio for comparing at least one times of animation
Whether relatively result, determine the exhibition information in visibility region;Can also be according to two ratios for comparing at least one times of animation
Whether relatively result, determine the exhibition information in visibility region;Or according to three comparings compared at least one times of animation
As a result, whether the exhibition information is determined in visibility region, and the embodiment of the present invention is without limitation.
In specific implementation, each animation can include a playback action, it is also possible to including multiple playback actions, such as two
It is individual, three etc..It will be apparent to a skilled person that animation alleged by the embodiment of the present invention can be a kind of periodicity following
The action element of ring.Specifically, can be by the change dispaly state that circulates come making of cartoon, for example, every 50 milliseconds from black
Become white, or become opaque etc. from transparent.More specifically, the establishment of animation can use Java script
(javascript) write and realize.
Specifically, in step s 103, when detection time is spaced, two timestamps of playback action can be first detected,
Then two timestamps are subtracted each other and obtains time interval.More specifically, when the establishment of the animation is compiled using the Java script
When writing, can be with configuration processor language, namely timestamp function new Date () .getTime (), the time of recording played action
Stamp, and subtract each other with the timestamp of last playback action, to obtain time interval.
The embodiment of the present invention renders the treatment of the CPU consumed when visibility region and invisible area are performed using animation
Space is different, the different characteristic of the time-frequency for causing animation to be played, and is moved by creating at least one in region residing for exhibition information
Draw, detect the time interval between each two playback actions of animation, and be compared with setting time, determine that exhibition information is
It is no in visibility region;Avoid and judge by coordinate in the prior art the whether visible mode of exhibition information, can improve
Whether the visible accuracy of exhibition information is judged, while expanding the application scenarios of the detection method of exhibition information.
Preferably, in order that the detection method of the exhibition information of the embodiment of the present invention is not take up the treatment sky of excessive CPU
Between, the overall performance of CPU being influenceed, once detecting exhibition information is in visibility region, all animations can be removed.Namely
Say, whether the only displaying each time to showing content judges once be in visibility region.So, if determined in step s 103
The exhibition information is in visibility region, then remove all animations.Further, because animation is in invisible area,
The CPU that consumption is rendered to the animation of animation is smaller, therefore, if it is invisible to determine that the exhibition information is in step s 103
Region, then continue to detect time interval of each animation when playing between each playback action, for determining exhibition information
Whether visibility region is in.
Preferably, in order that the detection method of the exhibition information of the embodiment of the present invention is not take up the treatment sky of excessive CPU
Between, the overall performance of CPU is influenceed, what can be set the size of animation is as far as possible small, then can be 1 × 1 by the size of animation
Pixel.Specifically, the animation can be the playback action that circulation is displayed in 1x1 pixels.
Preferably, region residing for the exhibition information is quadrangle, many when the quantity of at least one animation is for multiple
Individual animation position is symmetrically disposed in the quadrangle.The embodiment of the present invention is symmetrically disposed on displaying by by multiple animations
Region residing for information so that if region residing for exhibition information can be divided into stem portion, and then cause in exhibition information extremely
When a few part is in visibility region, determine that exhibition information is in visibility region.
If it is understood that region residing for exhibition information be irregular shape, can be equivalent by irregular shape
It is quadrangle, in order to be symmetrically arranged multiple animations.
Preferably, multiple animations are symmetrically created on two diagonal of the quadrangle
Preferably, the two cornerwise centre positions between the center of the quadrangle and four angles are symmetrically
Create four animations.That is, the embodiment of the present invention is right by described two between the center of quadrangle and four angles
The centre position of linea angulata symmetrically creates four animations, region residing for exhibition information can be divided into 16 parts, that
Can ensure that 1/16 of region residing at least exhibition information is determined during in visibility region, determine that exhibition information is in described
Visibility region.
Fig. 2 is the flow chart of the detection method of embodiment of the present invention another kind exhibition information.
The detection method of the exhibition information shown in Fig. 2 may comprise steps of:
Step S201:At least one animation is created in region residing for exhibition information;
Step S202:Play with controlling at least one animation cycle;
Step S203:Time interval of each animation when playing between each playback action is detected, and is being detected every time
After obtaining the time interval, the time interval and setting time are compared;
Step S204:Whether the time interval that obtains of detection is judged less than setting time, if it is, into step
S205, otherwise into step S206;
Step S205:Determine that the exhibition information is in visibility region;
Step S206:Determine that the exhibition information is in invisible area.
The step of the present embodiment, S201 to step S203 can refer to the step S101 to step S103 shown in Fig. 1, herein not
Repeat again.
Whether the comparative result that the present embodiment can compare according to single determines the exhibition information in visibility region.
In specific implementation, due to step S203 every time detection obtain the time interval after, by the time interval with
Setting time is compared, therefore in step S204, after the completion of detection every time obtains the time interval and compares, judges
Whether the time interval that detection is obtained is less than setting time.Then in step S205 and step S206, when detection is obtained
Between interval less than setting time when, determine exhibition information be in visibility region;Set detecting that the time interval for obtaining is more than or equal to
When fixing time, determine that exhibition information is in invisible area.
Whether the embodiment of the present invention determines the exhibition information in visibility region, letter by the comparative result using single
It is single easily to implement.
In specific implementation, the quantity of the animation for creating in step s 201 can be one, or multiple.So exist
When the quantity of animation is for multiple, in step S204, it can be determined that whether the time interval that the detection of at least one animation is obtained
Less than setting time, to be used to determine the exhibition information whether in visibility region.That is, can be according to an animation
The comparative result that compares of single, determine the exhibition information whether in visibility region;Can also be according to two lists of animation
Whether the secondary comparative result for comparing, determine the exhibition information in visibility region, that is, in two ratios of the single of animation
When relatively result is " time interval that detection is obtained is less than setting time ", determine that the exhibition information is in visibility region, instead
It, is " when the time interval that detection is obtained is more than or equal to setting if there is the comparative result that the single of an animation compares
Between ", it is determined that the exhibition information is in invisible area;By that analogy, it is also possible to what the single according to three animations compared
Whether comparative result, determine the exhibition information in visibility region, and the embodiment of the present invention is without limitation.
It should be noted that setting time can carry out the configuration of adaptability according to actual applied environment, for example can be with
It it is 200 milliseconds or 400 milliseconds, the embodiment of the present invention is without limitation.
Fig. 3 is the flow chart of the detection method of the embodiment of the present invention another exhibition information.
The detection method of the exhibition information shown in Fig. 3 may comprise steps of:
Step S301:At least one animation is created in region residing for exhibition information;
Step S302:Play with controlling at least one animation cycle;
Step S303:Time interval of each animation when playing between each playback action is detected, and is being detected every time
After obtaining the time interval, the time interval and setting time are compared;
Step S304:Whether the time interval that obtains of detection is judged less than setting time, if it is, into step
S305, otherwise into step S303;
Step S305:Between judging all times that detection is obtained in the setting time section after the time interval that detection is obtained
The setting time every whether respectively less than, if it is, into step S306, otherwise into step S307;
Step S306:Determine that the exhibition information is in visibility region;
Step S307:Determine that the exhibition information is in invisible area.
Whether the present embodiment can determine the exhibition information in visibility region according to the comparative result for repeatedly comparing.
The step of the present embodiment, S301 to step S303 can refer to the step S101 to step S103 shown in Fig. 1;Step
S304 can refer to the step S204 shown in Fig. 2, and here is omitted.
In specific implementation, whether the visible accuracy of exhibition information is judged in order to further improve, judged in step S304
After the time interval that detection is obtained is less than setting time, in step S305, the setting after the time interval obtained to detection
Whether all time intervals that detection is obtained in the time period are respectively less than setting time is judged.Namely when detection is obtained
Between interval be less than the setting time, and in setting time section after all time intervals for obtaining of detection be respectively less than it is described
During setting time, it is determined that the exhibition information is in the visibility region;The time interval obtained in detection sets less than described
In setting time section after fixing time, when there is at least one time interval more than or equal to the setting time, it is determined that institute
State exhibition information and be in invisible area.
In specific implementation, if determining that the exhibition information is in visibility region in step S306, can remove described
All animations, it is to avoid take the treatment space of excessive CPU, influence the overall performance of CPU.If in step S307, it is determined that
After the exhibition information is in invisible area, again according to the multiple time intervals after at least one time interval
Whether comparative result, determine the exhibition information in visibility region.That is, if it is determined that exhibition information is in invisible
Region, then continue executing with step S303, step S304 and step S305.
It will be apparent to a skilled person that step S304 and step S305 are in the specific implementation, it is also possible to merge
It is in the following manner:Judge whether all time intervals that detection is obtained in continuous a period of time are respectively less than the setting time;
The length of the length of described a period of time and setting time section can be configured according to actual applied environment, for example may be used
To be 1 second, the embodiment of the present invention is without limitation.
The present invention determines that whether the exhibition information, in visibility region, is compared by using the comparative result for repeatedly comparing
In the comparative result using single, whether the judgement visible accuracy of exhibition information is further increased.For example, showing in display
The Website page of information is rolled, under the scene that exhibition information is quickly streaked, using the detection of the exhibition information of embodiment illustrated in fig. 3
Whether method, can more accurately judge exhibition information in visibility region.
In specific implementation, the quantity of the animation created in step S301 can be one, or multiple.So exist
When the quantity of animation is for multiple, the present embodiment can determine whether the exhibition information is in using the comparative result for repeatedly comparing
Visibility region.That is, can determine whether the exhibition information is located according to a comparative result for repeatedly comparing of animation
In visibility region;According to the comparative results for repeatedly comparing of two animations whether the exhibition information can also be determined in can
See region, that is, be " when the time interval that detection is obtained is less than setting in the comparative result for repeatedly comparing of two animations
Between " when, determine that the exhibition information is in visibility region, whereas if the comparative result compared in the presence of the single of an animation
It is " time interval that detection is obtained is more than or equal to setting time ", it is determined that the exhibition information is in invisible area;With this
Analogize, it is also possible to according to three comparative results for repeatedly comparing of animation, whether determine the exhibition information in visibility region,
The embodiment of the present invention is without limitation.
Fig. 4 is a kind of structural representation of the detection means of exhibition information of the embodiment of the present invention.
The detection means 40 of the exhibition information shown in Fig. 4 can include animation creation unit 401, playing control unit 402,
Detection comparing unit 403 and determining unit 404.Wherein:
To create at least one animation in region residing for exhibition information, each animation includes animation creation unit 401
At least one playback action;
Playing control unit 402 is used to play with controlling at least one animation cycle;
Detect that comparing unit 403 is used to detect time interval of each animation when playing between each playback action, and
After detection obtains the time interval every time, the time interval and setting time are compared;
Whether determining unit 404 is according to the comparative result that compares at least one times, determining the exhibition information in can
See region, wherein, the visibility region is in the screen ranges that the exhibition information is presented.
In specific implementation, animation creation unit 401 can create at least one animation in region residing for exhibition information.So
Afterwards, playing control unit 402 is played in which can control at least one animation cycle, that is, forms playback action.Enter
And detect that comparing unit 403 can detect time interval of each animation when playing between each playback action, and each
After detection obtains the time interval, the time interval and setting time are compared.Wherein, between playback action when
Between interval can represent the broadcasting frequency of animation.That is, be compared by the time interval and Preset Time that detect,
Whether animation can be distinguished in visibility region;Because animation is created in region residing for exhibition information, so if can
Whether to distinguish animation in visibility region, then whether exhibition information can also be determined in visibility region.Therefore determining unit 404
According to the comparative result for comparing at least one times whether the exhibition information can be determined in visibility region.
In specific implementation, the quantity of the animation that animation creation unit 401 is created can be one, or multiple.That
When the quantity of animation is for multiple, determining unit 404 can be according to the comparing knot for comparing at least one times of at least one animation
Really, determine the exhibition information whether in visibility region.That is, can comparing at least one times according to animation
Whether comparative result, determine the exhibition information in visibility region;Can also comparing at least one times according to two animations
Whether comparative result, determine the exhibition information in visibility region;Or according to three ratios for comparing at least one times of animation
Whether relatively result, determine the exhibition information in visibility region, and the embodiment of the present invention is without limitation.
The embodiment of the present invention renders the treatment of the CPU consumed when visibility region and invisible area are performed using animation
Space is different, the different characteristic of the time-frequency for causing animation to be played, and is moved by creating at least one in region residing for exhibition information
Draw, detect the time interval between each two playback actions of animation, and be compared with setting time, determine that exhibition information is
It is no in visibility region;Avoid and judge by coordinate in the prior art the whether visible mode of exhibition information, can improve
Whether the visible accuracy of exhibition information is judged, while expanding the application scenarios of the detection method of exhibition information.
The specific embodiment of the embodiment of the present invention can refer to the associated description of embodiment illustrated in fig. 1, and here is omitted.
Fig. 5 is the structural representation of the detection means of embodiment of the present invention another kind exhibition information.
The detection means 50 of the exhibition information shown in Fig. 5 can include animation creation unit 501, playing control unit 502,
Detection comparing unit 503, determining unit 504 and removal unit 505;Determining unit 504 can include the first determining unit 5041
With the second determining unit 5042.
In the present embodiment, animation creation unit 501, playing control unit 502, detection comparing unit 503 and determining unit
504 animation creation unit 401, playing control unit 402, detection comparing unit 403 and the determining units 404 that can refer to Fig. 4, this
Place repeats no more.
In specific implementation, remove unit 505 and be used to after it is determined that the exhibition information is in visibility region, remove the institute
There is animation, to avoid the treatment space of the CPU for taking excessive, influence the overall performance of CPU.Further, because animation is not
During visibility region, the CPU that consumption is rendered to the animation of animation is smaller, therefore, if it is determined that unit 504 determines the exhibition information
In invisible area, then detect comparing unit 503 continue to detect each animation when playing between each playback action when
Between be spaced, for determine exhibition information whether be in visibility region.
In specific implementation, the first determination subelement 5041 determines the displaying letter to the comparative result compared according to single
Whether breath is in visibility region, wherein, if the time interval that detection is obtained is less than the setting time, it is determined that the displaying
Information is in the visibility region.First determination subelement 5041 is when the time interval that detection is obtained is more than or equal to the setting
Between when, it is determined that the exhibition information be in invisible area.
Second determination subelement 5042 determines whether the exhibition information is in the comparative result that basis repeatedly compares
Visibility region, wherein, if the time interval that detection is obtained is less than the setting time, and the interior inspection of setting time section after
The all time intervals for measuring are respectively less than the setting time, it is determined that the exhibition information is in the visibility region.The
Two determination subelements 5042 are in the setting time section after the time interval that obtains of detection is less than the setting time, exist to
When a few time interval is more than or equal to the setting time, it is determined that the exhibition information is in invisible area.
Second determination subelement 5042 determines whether the exhibition information is in by using the comparative result for repeatedly comparing
Whether visibility region, compared to the comparative result using single, further increases the judgement visible accuracy of exhibition information.
It is understood that determining unit 504 is upon execution, the first determining unit 5041 or the can be optionally performed
Two determining units 5042, the embodiment of the present invention is without limitation.
The specific embodiment of the embodiment of the present invention can refer to the associated description of Fig. 1, Fig. 2 and embodiment illustrated in fig. 3, herein
Repeat no more.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completed with instructing the hardware of correlation by program, the program can be stored in computer-readable recording medium, to store
Medium can include:ROM, RAM, disk or CD etc..
Although present disclosure is as above, the present invention is not limited to this.Any those skilled in the art, are not departing from this
In the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
The scope of restriction is defined.
Claims (22)
1. a kind of detection method of exhibition information, it is characterised in that including:
At least one animation is created in region residing for exhibition information, each animation includes at least one playback action;
Play with controlling at least one animation cycle;
Detect each animation play when each playback action between time interval, and every time detection obtain the time between
Every rear, the time interval and setting time are compared;
According to the comparative result for comparing at least one times, whether the exhibition information is determined in visibility region, wherein, it is described visible
Region is in the screen ranges that the exhibition information is presented.
2. detection method according to claim 1, it is characterised in that the comparative result that the basis compares at least one times,
Determine whether the exhibition information includes in visibility region:
Whether the comparative result compared according to single determines the exhibition information in visibility region, wherein, if detection is obtained
Time interval be less than the setting time, it is determined that the exhibition information be in the visibility region.
3. detection method according to claim 1, it is characterised in that the comparative result that the basis compares at least one times,
Determine whether the exhibition information includes in visibility region:
Whether the comparative result compared according to single determines the exhibition information in visibility region, wherein, if detection is obtained
Time interval be more than or equal to the setting time, it is determined that the exhibition information be in invisible area.
4. detection method according to claim 1, it is characterised in that the comparative result that the basis compares at least one times,
Determine whether the exhibition information includes in visibility region:
Whether comparative result according to repeatedly comparing determines the exhibition information in visibility region, wherein, if detection is obtained
Time interval be less than the setting time, and all time intervals for obtaining of detection are respectively less than in setting time section after
The setting time, it is determined that the exhibition information is in the visibility region.
5. detection method according to claim 4, it is characterised in that the comparative result that the basis compares at least one times,
Determine whether the exhibition information includes in visibility region:
If in the setting time section after the time interval that detection is obtained is less than the setting time, when having at least one
Between interval be more than or equal to the setting time, it is determined that the exhibition information be in invisible area.
6. detection method according to claim 5, it is characterised in that also include:
Again according to the comparative result of the multiple time intervals after at least one time interval, the exhibition information is determined
Whether visibility region is in.
7. detection method according to claim 1, it is characterised in that the size of the animation is 1 × 1 pixel.
8. detection method according to claim 1, it is characterised in that region residing for the exhibition information is quadrangle, institute
When stating the quantity of at least one animation for multiple, multiple animation positions are symmetrically disposed in the quadrangle.
9. detection method according to claim 8, it is characterised in that described to be created at least in region residing for exhibition information
One animation includes:
Multiple animations are symmetrically created on two diagonal of the quadrangle.
10. detection method according to claim 9, it is characterised in that described on two diagonal of the quadrangle
Symmetrically creating multiple animations includes:
Two cornerwise centre positions between the center of the quadrangle and four angles symmetrically create four and move
Draw.
11. detection method according to claim 2,4 and 6 any one, it is characterised in that also include:
After it is determined that the exhibition information is in visibility region, all animations are removed.
A kind of 12. detection means of exhibition information, it is characterised in that including:
Animation creation unit, to create at least one animation in region residing for exhibition information, each animation includes at least one
Individual playback action;
Playing control unit, is used to play with controlling at least one animation cycle;
Detection comparing unit, is used to detect time interval of each animation when playing between each playback action, and each
After detection obtains the time interval, the time interval and setting time are compared;
Determining unit, whether according to the comparative result for comparing at least one times, to determine the exhibition information in visibility region,
Wherein, the visibility region is in the screen ranges that the exhibition information is presented.
13. detection means according to claim 12, it is characterised in that the determining unit includes:
Whether the first determination subelement, the comparative result to be compared according to single determines the exhibition information in visual field
Domain, wherein, if the time interval that detection is obtained is less than the setting time, it is determined that the exhibition information is in described visible
Region.
14. detection means according to claim 12, it is characterised in that the determining unit includes:
Whether the first determination subelement, the comparative result to be compared according to single determines the exhibition information in visual field
Domain, wherein, if the time interval that detection is obtained is more than or equal to the setting time, it is determined that the exhibition information is in can not
See region.
15. detection means according to claim 12, it is characterised in that the determining unit includes:
Second determination subelement, to be determined the exhibition information whether in visual field according to the comparative result for repeatedly comparing
Domain, wherein, if the time interval that obtains of detection is less than the setting time, and detection is obtained in setting time section after
All time intervals be respectively less than the setting time, it is determined that the exhibition information be in the visibility region.
16. detection means according to claim 15, it is characterised in that second determination subelement is obtained in detection
There is at least one time interval and set more than or equal to described in time interval less than in the setting time section after the setting time
When fixing time, it is determined that the exhibition information is in invisible area.
17. detection means according to claim 16, it is characterised in that the determining unit is again at least one according to
Whether the comparative result of the multiple time intervals after individual time interval, determine the exhibition information in visibility region.
18. detection means according to claim 12, it is characterised in that the size of the animation is 1 × 1 pixel.
19. detection means according to claim 12, it is characterised in that region residing for the exhibition information is quadrangle,
When the quantity of at least one animation is for multiple, multiple animation positions are symmetrically disposed in the quadrangle.
20. detection means according to claim 19, it is characterised in that the animation creation unit is in the quadrangle
Multiple animations are symmetrically created on two diagonal.
21. detection means according to claim 20, it is characterised in that the animation creation unit is in the quadrangle
Two cornerwise centre positions between center and four angles symmetrically create four animations.
22. detection means according to claim 13,15 and 17 any one, it is characterised in that also include:
Unit is removed, after it is determined that the exhibition information is in visibility region, to remove all animations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611270755.9A CN106874167B (en) | 2016-12-30 | 2016-12-30 | Display information detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611270755.9A CN106874167B (en) | 2016-12-30 | 2016-12-30 | Display information detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106874167A true CN106874167A (en) | 2017-06-20 |
CN106874167B CN106874167B (en) | 2020-03-13 |
Family
ID=59164259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611270755.9A Active CN106874167B (en) | 2016-12-30 | 2016-12-30 | Display information detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106874167B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6490370B1 (en) * | 1999-01-28 | 2002-12-03 | Koninklijke Philips Electronics N.V. | System and method for describing multimedia content |
US20070244900A1 (en) * | 2005-02-22 | 2007-10-18 | Kevin Hopkins | Internet-based search system and method of use |
CN102024486A (en) * | 2010-09-14 | 2011-04-20 | 北京神州泰岳软件股份有限公司 | Animation expression picture play method and system |
CN105045655A (en) * | 2015-05-15 | 2015-11-11 | 广东小天才科技有限公司 | Application resource loading method and apparatus |
-
2016
- 2016-12-30 CN CN201611270755.9A patent/CN106874167B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6490370B1 (en) * | 1999-01-28 | 2002-12-03 | Koninklijke Philips Electronics N.V. | System and method for describing multimedia content |
US20070244900A1 (en) * | 2005-02-22 | 2007-10-18 | Kevin Hopkins | Internet-based search system and method of use |
CN102024486A (en) * | 2010-09-14 | 2011-04-20 | 北京神州泰岳软件股份有限公司 | Animation expression picture play method and system |
CN105045655A (en) * | 2015-05-15 | 2015-11-11 | 广东小天才科技有限公司 | Application resource loading method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN106874167B (en) | 2020-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10564797B2 (en) | Floating toolbar | |
CN104679649B (en) | A kind of software fluency method of testing and test device | |
JP5324411B2 (en) | Advertisement distribution apparatus, method and program | |
JP6214547B2 (en) | Measuring the rendering time of a web page | |
Stone | Pixel perfect timing attacks with HTML5 | |
CN105635848A (en) | Bullet-screen display method and terminal | |
JP2007111568A5 (en) | ||
CN110764986B (en) | Page fluency detection method and device | |
CN105612474B (en) | The identification methods and its equipment stared more | |
US20140111524A1 (en) | Method and terminal for displaying an animation | |
CN105183474B (en) | The method and apparatus that waterfall-type picture is shown | |
US10099118B2 (en) | Interface for advancing game by touch input, and terminal | |
JP2017148481A5 (en) | ||
WO2009130110A3 (en) | Proactive image reminding and selection method | |
CN106874167A (en) | The detection method and device of exhibition information | |
JP2008199366A (en) | Information processor, information processing method, program, and recording medium | |
JP6344024B2 (en) | Read determination device, read determination method, and read determination program | |
JP2015529914A (en) | Data visualization method and system | |
CN105808051B (en) | Image processing method and electronic equipment | |
JP5192597B1 (en) | Moving image region determination apparatus or method thereof | |
US20150347354A1 (en) | Discrete source code timelines | |
CN106557529A (en) | Jump page methods of exhibiting and device in page jump | |
CN110989895B (en) | Control display state detection method and device | |
CN106406676B (en) | A kind of interface display method | |
CN112569594B (en) | Game model information display method and device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |