CN106874167B - Display information detection method and device - Google Patents

Display information detection method and device Download PDF

Info

Publication number
CN106874167B
CN106874167B CN201611270755.9A CN201611270755A CN106874167B CN 106874167 B CN106874167 B CN 106874167B CN 201611270755 A CN201611270755 A CN 201611270755A CN 106874167 B CN106874167 B CN 106874167B
Authority
CN
China
Prior art keywords
display information
animation
time interval
set time
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611270755.9A
Other languages
Chinese (zh)
Other versions
CN106874167A (en
Inventor
汤奇峰
巫君平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingzan Advertising (shanghai) Co Ltd
Original Assignee
Jingzan Advertising (shanghai) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingzan Advertising (shanghai) Co Ltd filed Critical Jingzan Advertising (shanghai) Co Ltd
Priority to CN201611270755.9A priority Critical patent/CN106874167B/en
Publication of CN106874167A publication Critical patent/CN106874167A/en
Application granted granted Critical
Publication of CN106874167B publication Critical patent/CN106874167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3409Recording 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/3414Workload generation, e.g. scripts, playback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0242Determining effectiveness of advertisements
    • G06Q30/0245Surveys

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Game Theory and Decision Science (AREA)
  • Quality & Reliability (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method and a device for detecting display information are provided, wherein the method for detecting the display information comprises the following steps: creating at least one animation in the area where the display information is located, wherein each animation comprises at least one playing action; controlling the at least one animation to be played periodically; detecting the time interval between playing actions of each animation when playing, and comparing the time interval with set time after detecting the time interval each time; and determining whether the display information is in a visible area according to the comparison result of at least one comparison, wherein the visible area is within the range of a screen for presenting the display information. The technical scheme of the invention improves the accuracy of judging the visibility of the display information.

Description

Display information detection method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for detecting display information.
Background
When delivery of presentation information (e.g., notifications, newsfeeds, advertisements, etc.), there are a number of indicators to evaluate the effectiveness of the delivery. The visibility rate is an important evaluation index for evaluating the delivery effect. The visibility ratio is the ratio of the visibility number of the display information to the display number. Wherein, the one-time display of the display information means that the display information is displayed in a webpage or other pages; one-time visibility of the presentation information means that the presentation information is displayed on a screen (e.g., a screen of a computer, a smartphone, etc.) and can be viewed by a user. That is, the presentation information is considered invisible if it is outside the screen area or if the presentation information cannot be directly seen by the naked eye.
In the prior art, a mode of detecting whether display information is displayed visually is mainly realized by judging a position relation between a coordinate of the display information in a webpage and a webpage scroll bar; or adding additional judgment modes such as too fast rolling the screen, judging the transparency of the displayed information and the like.
However, in the detection mode in the prior art, under the condition that the page is minimized and the display information is shielded by other elements, the judgment result is not accurate; meanwhile, when a hypertext markup Language (HTML) element of another web page is embedded in one web page, the cross-domain of the embedded web page and the position of the display information in the embedded web page cannot be determined.
Disclosure of Invention
The invention solves the technical problem of how to improve the accuracy of judging the visibility of the display information.
In order to solve the above technical problem, an embodiment of the present invention provides a method for detecting display information, where the method for detecting display information includes:
creating at least one animation in the area where the display information is located, wherein each animation comprises at least one playing action; controlling the at least one animation to be played periodically; detecting the time interval between playing actions of each animation when playing, and comparing the time interval with set time after detecting the time interval each time; and determining whether the display information is in a visible area according to the comparison result of at least one comparison, wherein the visible area is within the range of a screen for presenting the display information.
Optionally, the determining whether the display information is in the visible region according to the comparison result of the at least one comparison includes: and determining whether the display information is in a visible area or not according to the comparison result of the single comparison, wherein if the detected time interval is less than the set time, the display information is determined to be in the visible area.
Optionally, the determining whether the display information is in the visible region according to the comparison result of the at least one comparison includes: and determining whether the display information is in a visible area or not according to the comparison result of the single comparison, wherein if the detected time interval is greater than or equal to the set time, the display information is determined to be in an invisible area.
Optionally, the determining whether the display information is in the visible region according to the comparison result of the at least one comparison includes: and determining whether the display information is in a visible area according to the comparison result of the multiple comparisons, wherein if the detected time interval is smaller than the set time and all the detected time intervals in the later set time period are smaller than the set time, determining that the display information is in the visible area.
Optionally, the determining whether the display information is in the visible region according to the comparison result of the at least one comparison includes: and if at least one time interval is greater than or equal to the set time in the set time period after the detected time interval is less than the set time, determining that the display information is in the invisible area.
Optionally, the detection method further includes: and determining whether the display information is in the visible region again according to the comparison result of a plurality of time intervals after the at least one time interval.
Optionally, the size of the animation is 1 × 1 pixel.
Optionally, the area where the display information is located is a quadrangle, and when the number of the at least one animation is multiple, the multiple animations are symmetrically arranged in the quadrangle.
Optionally, the creating at least one animation in the area where the display information is located includes: a plurality of animations is created symmetrically on two diagonal lines of the quadrangle.
Optionally, the symmetrically creating a plurality of animations on two diagonal lines of the quadrangle comprises: four animations are created symmetrically at the center of the quadrilateral and at the middle of the two diagonals between the four corners.
Optionally, the detection method further includes: removing all animations upon determining that the presentation information is in a visible region.
In order to solve the above technical problem, an embodiment of the present invention further discloses a device for detecting display information, where the device for detecting display information includes:
the animation creating unit is used for creating at least one animation in the area where the display information is located, and each animation comprises at least one playing action; a play control unit for controlling the at least one animation to be periodically played; the detection and comparison unit is used for detecting the time interval between playing actions of each animation during playing and comparing the time interval with set time after the time interval is obtained by each detection; and the determining unit is used for determining whether the display information is in a visible area according to the comparison result of at least one comparison, wherein the visible area is within the range of the screen displaying the display information.
Optionally, the determining unit includes: and the first determining subunit is used for determining whether the display information is in a visible area according to the comparison result of the single comparison, wherein if the detected time interval is less than the set time, the display information is determined to be in the visible area.
Optionally, the determining unit includes: and the first determining subunit is used for determining whether the display information is in a visible area according to the comparison result of the single comparison, wherein if the detected time interval is greater than or equal to the set time, the display information is determined to be in an invisible area.
Optionally, the determining unit includes: and the second determining subunit is used for determining whether the display information is in the visible area according to the comparison result of the multiple comparisons, wherein if the detected time interval is smaller than the set time and all the detected time intervals in the later set time period are smaller than the set time, the display information is determined to be in the visible area.
Optionally, the second determining subunit determines that the display information is in the invisible area when at least one time interval is greater than or equal to the set time in a set time period after the detected time interval is less than the set time.
Optionally, the determining unit determines whether the presentation information is in the visible region again according to a comparison result of a plurality of time intervals after the at least one time interval.
Optionally, the size of the animation is 1 × 1 pixel.
Optionally, the area where the display information is located is a quadrangle, and when the number of the at least one animation is multiple, the multiple animations are symmetrically arranged in the quadrangle.
Optionally, the animation creating unit symmetrically creates a plurality of animations on two diagonal lines of the quadrangle.
Optionally, the animation creating unit symmetrically creates four animations at a center of the quadrangle and a middle position of the two diagonal lines between the four corners.
Optionally, the detection apparatus further includes: and the removing unit is used for removing all animations after the display information is determined to be in the visible area.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the technical scheme of the invention is that at least one animation is created in the area where the display information is located, and each animation comprises at least one playing action; controlling the at least one animation to be played periodically; detecting the time interval between playing actions of each animation when playing, and comparing the time interval with set time after detecting the time interval each time; and determining whether the display information is in a visible area according to the comparison result of at least one comparison, wherein the visible area is within the range of a screen for presenting the display information. The technical scheme of the invention utilizes the characteristic that the Processing space of a Central Processing Unit (CPU for short) consumed when animation rendering is executed in a visible area and an invisible area is different, so that the time frequency of animation playing is different, at least one animation is created in the area where display information is located, the time interval between two playing actions of each animation is detected, and the time interval is compared with the set time, so that whether the display information is in the visible area is determined; the method avoids the mode that whether the display information is visible or not is judged through the coordinates in the prior art, can improve the accuracy of judging whether the display information is visible or not, and simultaneously enlarges the application scene of the detection method of the display information.
Further, it may be determined whether the presentation information is in a visible region according to a comparison result of the single comparison, wherein if the detected time interval is less than the set time, it is determined that the presentation information is in the visible region. The technical scheme of the invention determines whether the display information is in the visible area by adopting a single comparison result, and is simple and easy to implement.
Further, whether the display information is in the visible region or not may be determined according to the comparison result of the multiple comparisons, wherein if the detected time interval is smaller than the set time and all the detected time intervals in the later set time period are smaller than the set time, it is determined that the display information is in the visible region. According to the technical scheme, whether the display information is in the visible area or not is determined by adopting the comparison result of multiple comparisons, and compared with the comparison result which is used once, the accuracy of judging whether the display information is visible or not is further improved.
Drawings
Fig. 1 is a flowchart of a method for detecting display information according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for detecting presence information according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for detecting display information according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a detecting device for displaying information according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another information display detection apparatus according to an embodiment of the present invention.
Detailed Description
As described in the background art, in the detection mode of the prior art, the judgment result is inaccurate under the conditions that the page is minimized and the display information is shielded by other elements; meanwhile, when a HyperText Markup Language (HTML) element of another web page is embedded in one web page, the cross-domain of the embedded web page and the position of the display information in the embedded web page cannot be determined.
The embodiment of the invention utilizes the characteristic that the time frequency of animation playing is different due to different CPU processing spaces consumed when animation rendering is executed in a visible area and an invisible area, and detects the time interval between two playing actions of each animation by creating at least one animation in the area where the display information is located and comparing the time interval with the set time to determine whether the display information is in the visible area or not; the method avoids the mode that whether the display information is visible or not is judged through the coordinates in the prior art, can improve the accuracy of judging whether the display information is visible or not, and simultaneously enlarges the application scene of the detection method of the display information.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Fig. 1 is a flowchart of a method for detecting display information according to an embodiment of the present invention.
The method for detecting the display information shown in fig. 1 may include the following steps:
step S101: creating at least one animation in the area where the display information is located, wherein each animation comprises at least one playing action;
step S102: controlling the at least one animation to be played periodically;
step S103: detecting the time interval between playing actions of each animation when playing, and comparing the time interval with set time after detecting the time interval each time;
step S104: and determining whether the display information is in a visible area according to the comparison result of at least one comparison, wherein the visible area is within the range of a screen for presenting the display information.
It is understood that the presentation information may be delivered to the terminal device for presentation and presented on the screen of the terminal device. The visible area is positioned in the screen range for presenting the display information, and the invisible area is positioned outside the screen range for presenting the display information; since the user can only see the information presented within the screen, the visible area can be seen by the user and the invisible area cannot be seen by the user. Then, when the display information is in the visible area, the display information is visible; when the display information is in the invisible area, the display information is invisible.
In specific implementation, the display information may be released on a terminal device for display, and the terminal device may have a CPU. When the CPU processes the animation, the animation rendering operation can be performed on the animation, and when the animation is in a visible region and an invisible region, the processing space of the CPU consumed by the animation rendering operation is different, so that the time frequency of playing the animation is different.
It is possible to create at least one animation in the region where the presentation information is located in step S101, taking advantage of the above-mentioned characteristics. Then, in step S102, the at least one animation is controlled to be played periodically, i.e., a play action is formed. Further, in step S103, a time interval between the playing actions of each animation during playing is detected, and the time interval is compared with a set time after the time interval is detected each time. Wherein the time interval between playback actions may represent the playback frequency of the animation. That is, by comparing the detected time interval with the preset time, it is possible to distinguish whether the animation is in the visible region; since the animation is created in the region where the presentation information is located, if it is possible to distinguish whether the animation is in the visible region, it is also possible to determine whether the presentation information is in the visible region. Therefore, in step S104, it is determined whether the display information is in the visible region according to the comparison result of at least one comparison.
In a specific implementation, the number of animations created in step S101 may be one or more. Then, when the number of animations is plural, in step S104, it may be determined whether the presentation information is in the visible region according to the comparison result of at least one comparison of at least one animation. That is, it may be determined whether the presentation information is in the visible region according to the comparison result of at least one comparison of one animation; whether the display information is in the visible region or not can also be determined according to the comparison result of at least one comparison of the two animations; or determining whether the display information is in the visible region according to a comparison result of at least one comparison of the three animations, which is not limited in the embodiment of the present invention.
In a specific implementation, each animation may include one playing action, or may include a plurality of playing actions, for example, two, three, and so on. It will be appreciated by those skilled in the art that the animation according to the embodiments of the present invention may be a periodically circulating action element. Specifically, animation may be created by changing the display state in a loop, for example, from black to white, or from transparent to opaque, every 50 milliseconds, or the like. More specifically, the creation of the animation may be written and implemented using java script (javascript).
Specifically, in step S103, when detecting the time interval, the time stamps of the two playback actions may be detected first, and then the time interval may be obtained by subtracting the two time stamps. More specifically, when the animation is created using the java script, a programming language, that is, a timestamp function new Date (). getTime (), may be executed, a timestamp of a play action is recorded, and subtracted from a timestamp of a last play action to obtain a time interval.
The embodiment of the invention utilizes the characteristic that the time frequency of animation playing is different due to different CPU processing spaces consumed when animation rendering is executed in a visible area and an invisible area, and detects the time interval between two playing actions of each animation by creating at least one animation in the area where the display information is located and comparing the time interval with the set time to determine whether the display information is in the visible area or not; the method avoids the mode that whether the display information is visible or not is judged through the coordinates in the prior art, can improve the accuracy of judging whether the display information is visible or not, and simultaneously enlarges the application scene of the detection method of the display information.
Preferably, in order to enable the method for detecting the presentation information according to the embodiment of the present invention not to occupy too much processing space of the CPU and affect the overall performance of the CPU, once the presentation information is detected to be in the visible region, all animations may be removed. That is, it is determined whether the content is in the visible region only once for each presentation of the presentation content. Then all animations are removed if it is determined in step S103 that the presentation information is in the visible region. Further, since the CPU consumed for animation rendering of the animation is small when the animation is in the invisible region, if it is determined in step S103 that the presentation information is in the invisible region, the time interval between the respective play actions of each animation at the time of playing continues to be detected for determining whether the presentation information is in the visible region.
Preferably, in order to prevent the method for detecting the presentation information according to the embodiment of the present invention from occupying too much processing space of the CPU and affecting the overall performance of the CPU, the size of the animation may be set as small as possible, and then the size of the animation may be set to 1 × 1 pixel. Specifically, the animation may be a play action circularly displayed in 1 × 1 pixels.
Preferably, the area where the display information is located is a quadrangle, and when the number of the at least one animation is multiple, the multiple animations are symmetrically arranged in the quadrangle. According to the embodiment of the invention, the plurality of animations are symmetrically arranged in the region where the display information is located, so that the region where the display information is located can be equally divided into a plurality of parts, and further, when at least one part of the display information is located in the visible region, the display information is determined to be located in the visible region.
It is understood that, if the area where the presentation information is located is an irregular shape, the irregular shape may be equivalent to a quadrangle so as to symmetrically arrange a plurality of animations.
Preferably, a plurality of animations are created symmetrically on two diagonal lines of the quadrangle
Preferably, four animations are created symmetrically at the center of the quadrangle and at the middle position of the two diagonals between the four corners. That is, the embodiment of the present invention can equally divide the area where the presentation information is located into 16 parts by symmetrically creating four animations at the middle position of the two diagonal lines between the center of the quadrangle and the four corners, and thus it can be ensured that the presentation information is located in the visible area when at least 1/16 of the area where the presentation information is located is determined to be located in the visible area.
Fig. 2 is a flowchart of another method for detecting display information according to an embodiment of the present invention.
The method for detecting the display information shown in fig. 2 may include the following steps:
step S201: creating at least one animation in the area where the display information is located;
step S202: controlling the at least one animation to be played periodically;
step S203: detecting the time interval between playing actions of each animation when playing, and comparing the time interval with set time after detecting the time interval each time;
step S204: judging whether the detected time interval is smaller than the set time, if so, entering the step S205, otherwise, entering the step S206;
step S205: determining that the presentation information is in a visible region;
step S206: determining that the presentation information is in an invisible area.
Steps S201 to S203 of this embodiment can refer to steps S101 to S103 shown in fig. 1, and are not described herein again.
The embodiment may determine whether the presentation information is in the visible region according to the comparison result of the single comparison.
In a specific implementation, since the time interval is compared with the set time after the time interval is obtained in each detection in step S203, in step S204, it is determined whether the detected time interval is smaller than the set time after the time interval is obtained in each detection and the comparison is completed. Then, in step S205 and step S206, when the detected time interval is smaller than the set time, it is determined that the display information is in the visible region; and when the detected time interval is greater than or equal to the set time, determining that the display information is in the invisible area.
The embodiment of the invention determines whether the display information is in the visible region by adopting a single comparison result, and is simple and easy to implement.
In a specific implementation, the number of animations created in step S201 may be one or more. When the number of the animations is multiple, in step S204, it may be determined whether the detected time interval of at least one animation is less than a set time to determine whether the presentation information is in the visible region. That is, it is possible to determine whether the presentation information is in the visible region according to the comparison result of a single comparison of one animation; or determining whether the display information is in the visible region according to the comparison result of the single comparison of the two animations, that is, determining that the display information is in the visible region when the single comparison results of the two animations are both that the detected time interval is less than the set time, otherwise, determining that the display information is in the invisible region if the comparison result of the single comparison of one animation is that the detected time interval is greater than or equal to the set time; by analogy, whether the display information is in the visible region or not can also be determined according to the comparison result of the single comparison of the three animations, which is not limited in the embodiment of the present invention.
It should be noted that the set time may be adaptively configured according to an actual application environment, for example, 200 milliseconds or 400 milliseconds, which is not limited in this embodiment of the present invention.
Fig. 3 is a flowchart of another method for detecting display information according to an embodiment of the present invention.
The method for detecting the display information shown in fig. 3 may include the following steps:
step S301: creating at least one animation in the area where the display information is located;
step S302: controlling the at least one animation to be played periodically;
step S303: detecting the time interval between playing actions of each animation when playing, and comparing the time interval with set time after detecting the time interval each time;
step S304: judging whether the detected time interval is smaller than the set time, if so, entering step S305, otherwise, entering step S303;
step S305: judging whether all time intervals detected in a set time period after the detected time interval are smaller than the set time, if so, entering a step S306, otherwise, entering a step S307;
step S306: determining that the presentation information is in a visible region;
step S307: determining that the presentation information is in an invisible area.
The embodiment may determine whether the presentation information is in the visible region according to the comparison result of the multiple comparisons.
Steps S301 to S303 of the present embodiment can refer to steps S101 to S103 shown in fig. 1; step S304 can refer to step S204 shown in fig. 2, and is not described herein again.
In a specific implementation, in order to further improve the accuracy of determining whether the display information is visible, after the detected time interval is determined to be smaller than the set time in step S304, in step S305, it is determined whether all the detected time intervals within the set time period after the detected time interval are smaller than the set time. That is, when the detected time interval is smaller than the set time and all the detected time intervals in the later set time period are smaller than the set time, determining that the display information is in the visible area; and determining that the display information is in an invisible area when at least one time interval is greater than or equal to the set time in a set time period after the detected time interval is smaller than the set time.
In a specific implementation, if it is determined in step S306 that the display information is in the visible region, all animations can be removed, so as to avoid occupying too much processing space of the CPU and affecting the overall performance of the CPU. If the display information is determined to be in the invisible area in step S307, it is determined whether the display information is in the visible area again according to the comparison result of the plurality of time intervals after the at least one time interval. That is, if it is determined that the presentation information is in the invisible area, the execution of step S303, step S304, and step S305 is continued.
It should be understood by those skilled in the art that step S304 and step S305 may be combined in the following manner when implemented: judging whether all time intervals detected in a continuous period of time are smaller than the set time or not; the length of the period of time and the length of the set period of time may be configured according to an actual application environment, for example, may be 1 second, which is not limited in this embodiment of the present invention.
According to the invention, whether the display information is in the visible area is determined by adopting the comparison result of multiple comparisons, and compared with the comparison result of single use, the accuracy of judging whether the display information is visible is further improved. For example, in a scene where a website page displaying the display information scrolls and the display information is swiped quickly, the detection method for the display information in the embodiment shown in fig. 3 can be used to more accurately judge whether the display information is in a visible area.
In a specific implementation, the number of animations created in step S301 may be one or more. Then when the number of animations is multiple, the embodiment may use the comparison result of multiple comparisons to determine whether the presentation information is in the visible region. That is, whether the presentation information is in the visible region may be determined based on the comparison results of multiple comparisons of one animation; whether the display information is in the visible region or not can be determined according to the comparison result of multiple comparisons of the two animations, namely, when the comparison results of the multiple comparisons of the two animations are that the detected time interval is smaller than the set time, the display information is determined to be in the visible region, otherwise, if the comparison result of a single comparison of one animation is that the detected time interval is larger than or equal to the set time, the display information is determined to be in the invisible region; by analogy, whether the display information is in the visible region or not can also be determined according to the comparison result of multiple comparisons of the three animations, which is not limited in the embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a detection apparatus for displaying information according to an embodiment of the present invention.
The presentation information detection apparatus 40 shown in fig. 4 may include an animation creation unit 401, a playback control unit 402, a detection comparison unit 403, and a determination unit 404. Wherein:
the animation creating unit 401 is configured to create at least one animation in the area where the display information is located, where each animation includes at least one playing action;
the playing control unit 402 is used for controlling the at least one animation to be played periodically;
the detection comparing unit 403 is configured to detect a time interval between playing actions of each animation during playing, and compare the time interval with a set time after the time interval is detected each time;
the determining unit 404 is configured to determine whether the display information is in a visible region according to a comparison result of the at least one comparison, wherein the visible region is within a screen range where the display information is presented.
In a specific implementation, the animation creation unit 401 may create at least one animation in the area where the presentation information is located. Then, the play control unit 402 may control the at least one animation to be periodically played, that is, to form a play action. Further, the detection and comparison unit 403 may detect a time interval between playing actions during playing of each animation, and compare the time interval with a set time after each detection of the time interval. Wherein the time interval between playback actions may represent the playback frequency of the animation. That is, by comparing the detected time interval with the preset time, it is possible to distinguish whether the animation is in the visible region; since the animation is created in the region where the presentation information is located, if it is possible to distinguish whether the animation is in the visible region, it is also possible to determine whether the presentation information is in the visible region. The determining unit 404 may determine whether the presentation information is in the visible region according to the comparison result of the at least one comparison.
In a specific implementation, the number of animations created by the animation creation unit 401 may be one or multiple. Then, when the number of animations is multiple, the determination unit 404 may determine whether the presentation information is in the visible region according to the comparison result of at least one comparison of at least one animation. That is, it may be determined whether the presentation information is in the visible region according to the comparison result of at least one comparison of one animation; whether the display information is in the visible region or not can also be determined according to the comparison result of at least one comparison of the two animations; or determining whether the display information is in the visible region according to a comparison result of at least one comparison of the three animations, which is not limited in the embodiment of the present invention.
The embodiment of the invention utilizes the characteristic that the time frequency of animation playing is different due to different CPU processing spaces consumed when animation rendering is executed in a visible area and an invisible area, and detects the time interval between two playing actions of each animation by creating at least one animation in the area where the display information is located and comparing the time interval with the set time to determine whether the display information is in the visible area or not; the method avoids the mode that whether the display information is visible or not is judged through the coordinates in the prior art, can improve the accuracy of judging whether the display information is visible or not, and simultaneously enlarges the application scene of the detection method of the display information.
The detailed description of the embodiment of the present invention can refer to the related description of the embodiment shown in fig. 1, and is not repeated herein.
Fig. 5 is a schematic structural diagram of another information display detection apparatus according to an embodiment of the present invention.
The detection apparatus 50 for presentation information shown in fig. 5 may include an animation creating unit 501, a playback control unit 502, a detection comparing unit 503, a determining unit 504, and a removing unit 505; the determining unit 504 may include a first determining unit 5041 and a second determining unit 5042.
In this embodiment, the animation creating unit 501, the playing control unit 502, the detection comparing unit 503, and the determining unit 504 may refer to the animation creating unit 401, the playing control unit 402, the detection comparing unit 403, and the determining unit 404 of fig. 4, and are not described herein again.
In a specific implementation, the removing unit 505 is configured to remove all animations after determining that the display information is in the visible region, so as to avoid occupying too much processing space of the CPU and affecting the overall performance of the CPU. Further, since the CPU consumed for animation rendering of the animation is small when the animation is in the invisible region, if the determination unit 504 determines that the presentation information is in the invisible region, the detection and comparison unit 503 continues to detect the time interval between the respective playing actions of each animation when playing for determining whether the presentation information is in the visible region.
In a specific implementation, the first determining subunit 5041 is configured to determine whether the display information is in a visible area according to a comparison result of a single comparison, wherein if the detected time interval is smaller than the set time, it is determined that the display information is in the visible area. When the detected time interval is greater than or equal to the set time, the first determining subunit 5041 determines that the presentation information is in the invisible area.
The second determining subunit 5042 is configured to determine whether the display information is in a visible area according to the comparison result of the multiple comparisons, wherein if the detected time interval is smaller than the set time, and all the detected time intervals within a set time period are smaller than the set time, it is determined that the display information is in the visible area. The second determining subunit 5042 determines that the display information is in an invisible area when at least one time interval is greater than or equal to the set time in a set time period after the detected time interval is less than the set time.
The second determination subunit 5042 determines whether the presentation information is in the visible region by using the comparison result of the multiple comparisons, and further improves the accuracy of determining whether the presentation information is visible, compared to when a single comparison result is used.
It is to be understood that the determining unit 504 may selectively execute the first determining unit 5041 or the second determining unit 5042 when executed, and the embodiment of the present invention is not limited thereto.
The detailed description of the embodiments of the present invention can refer to the related descriptions of the embodiments shown in fig. 1, fig. 2, and fig. 3, and will not be repeated herein.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (22)

1. A method for detecting display information is characterized by comprising the following steps:
creating at least one animation in the area where the display information is located, wherein each animation comprises at least one playing action; controlling the at least one animation to be played periodically;
detecting the time interval between playing actions of each animation when playing, and comparing the time interval with set time after detecting the time interval each time;
and determining whether the display information is in a visible area according to the comparison result of at least one comparison, wherein the visible area is within the range of a screen for presenting the display information.
2. The detection method according to claim 1, wherein the determining whether the presentation information is in a visible region according to the comparison result of the at least one comparison comprises:
and determining whether the display information is in a visible area or not according to the comparison result of the single comparison, wherein if the detected time interval is less than the set time, the display information is determined to be in the visible area.
3. The detection method according to claim 1, wherein the determining whether the presentation information is in a visible region according to the comparison result of the at least one comparison comprises:
and determining whether the display information is in a visible area or not according to the comparison result of the single comparison, wherein if the detected time interval is greater than or equal to the set time, the display information is determined to be in an invisible area.
4. The detection method according to claim 1, wherein the determining whether the presentation information is in a visible region according to the comparison result of the at least one comparison comprises:
and determining whether the display information is in a visible area according to the comparison result of the multiple comparisons, wherein if the detected time interval is smaller than the set time and all the detected time intervals in the later set time period are smaller than the set time, determining that the display information is in the visible area.
5. The detection method according to claim 4, wherein the determining whether the presentation information is in a visible region according to the comparison result of the at least one comparison comprises:
and if the detected time interval is smaller than the set time and at least one time interval in all the detected time intervals in the set time period is larger than or equal to the set time, determining that the display information is in the invisible area.
6. The detection method according to claim 5, further comprising:
and determining whether the display information is in the visible region again according to the comparison result of a plurality of time intervals after the at least one time interval.
7. The detection method according to claim 1, wherein the size of the animation is 1x1 pixel.
8. The detection method according to claim 1, wherein the area where the presentation information is located is a quadrangle, and when the number of the at least one animation is plural, plural animations are symmetrically arranged in the quadrangle.
9. The detection method according to claim 8, wherein the creating at least one animation in the area where the presentation information is located comprises:
a plurality of animations is created symmetrically on two diagonal lines of the quadrangle.
10. The detection method according to claim 9, wherein said symmetrically creating a plurality of animations on two diagonals of said quadrilateral comprises:
and four animations are created on the two diagonal lines and are respectively and symmetrically arranged at the center of the quadrangle and the middle position between the four corners of the quadrangle.
11. The detection method according to any one of claims 2, 4 and 6, further comprising: removing all animations upon determining that the presentation information is in a visible region.
12. A device for detecting presence information, comprising:
the animation creating unit is used for creating at least one animation in the area where the display information is located, and each animation comprises at least one playing action;
a play control unit for controlling the at least one animation to be periodically played;
the detection and comparison unit is used for detecting the time interval between playing actions of each animation during playing and comparing the time interval with set time after the time interval is obtained by each detection; and the determining unit is used for determining whether the display information is in a visible area according to the comparison result of at least one comparison, wherein the visible area is within the range of the screen displaying the display information.
13. The detection apparatus according to claim 12, wherein the determination unit includes:
and the first determining subunit is used for determining whether the display information is in a visible area according to the comparison result of the single comparison, wherein if the detected time interval is less than the set time, the display information is determined to be in the visible area.
14. The detection apparatus according to claim 12, wherein the determination unit includes:
and the first determining subunit is used for determining whether the display information is in a visible area according to the comparison result of the single comparison, wherein if the detected time interval is greater than or equal to the set time, the display information is determined to be in an invisible area.
15. The detection apparatus according to claim 12, wherein the determination unit includes:
and the second determining subunit is used for determining whether the display information is in the visible area according to the comparison result of the multiple comparisons, wherein if the detected time interval is smaller than the set time and all the detected time intervals in the later set time period are smaller than the set time, the display information is determined to be in the visible area.
16. The detecting device according to claim 15, wherein if the detected time interval is smaller than the set time, and at least one of all the detected time intervals in a set time period thereafter is greater than or equal to the set time, it is determined that the display information is in the invisible area.
17. The detecting device according to claim 16, wherein the determining unit determines whether the presentation information is in the visible region again according to the comparison result of a plurality of time intervals after the at least one time interval.
18. The detection apparatus according to claim 12, wherein the size of the animation is 1x1 pixel.
19. The detecting device for detecting the rotation of a motor rotor according to claim 12, wherein the area where the display information is located is a quadrangle, and when the number of the at least one animation is plural, the plural animations are symmetrically arranged in the quadrangle.
20. The detecting device according to claim 19, wherein the animation creating unit symmetrically creates a plurality of animations on two diagonal lines of the quadrangle.
21. The detecting device according to claim 20, wherein the animation creating unit creates four animations on the two diagonal lines, the four animations being respectively symmetrically disposed at a center of the quadrangle and at a middle position between four corners.
22. The detection apparatus according to any one of claims 13, 15 and 17, further comprising: and the removing unit is used for removing all animations after the display information is determined to be in the visible area.
CN201611270755.9A 2016-12-30 2016-12-30 Display information detection method and device Active CN106874167B (en)

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 CN106874167A (en) 2017-06-20
CN106874167B true 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)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
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
CN102024486B (en) * 2010-09-14 2012-12-19 北京神州泰岳软件股份有限公司 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
CN106874167A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
US9805377B2 (en) Unified content visibility
US9756140B2 (en) Tracking user behavior relative to a network page
KR102047568B1 (en) Measuring web page rendering time
JP5324411B2 (en) Advertisement distribution apparatus, method and program
CN104679649B (en) A kind of software fluency method of testing and test device
US10564797B2 (en) Floating toolbar
JP2019537083A5 (en)
Stone Pixel perfect timing attacks with HTML5
CN105635848A (en) Bullet-screen display method and terminal
WO2014124417A1 (en) Comprehensive measurement of the opportunity to see online advertisements
CN110764986B (en) Page fluency detection method and device
EP3408752B1 (en) Object management and visualization using a computing device
US20170103430A1 (en) Responsive advertisement formats based on viewability pixel data
CN106648571B (en) Method and device for calibrating application interface
US20170139584A1 (en) User account switching interface
CN105879389B (en) Method and device for scaling and running webpage game display picture and game platform
CN106874167B (en) Display information detection method and device
JP6344024B2 (en) Read determination device, read determination method, and read determination program
US20150347354A1 (en) Discrete source code timelines
KR101294458B1 (en) Apparatus and method of inputting text in mobile device
CN107291452B (en) Display information awakening method and device, computer readable storage medium and terminal
CN110989895B (en) Control display state detection method and device
CN108282353A (en) Browse information content statistical method, device and electric terminal
US9128613B2 (en) Positioning clickable hotspots on a touchscreen display
KR20110117335A (en) Method for moving page using scroll bar

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