CN112733053A - Page detection method and device, electronic equipment and computer readable medium - Google Patents

Page detection method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112733053A
CN112733053A CN202011632926.4A CN202011632926A CN112733053A CN 112733053 A CN112733053 A CN 112733053A CN 202011632926 A CN202011632926 A CN 202011632926A CN 112733053 A CN112733053 A CN 112733053A
Authority
CN
China
Prior art keywords
display
information
page
target
layer
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
Application number
CN202011632926.4A
Other languages
Chinese (zh)
Other versions
CN112733053B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011632926.4A priority Critical patent/CN112733053B/en
Publication of CN112733053A publication Critical patent/CN112733053A/en
Application granted granted Critical
Publication of CN112733053B publication Critical patent/CN112733053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a page detection method, a page detection device, electronic equipment and a computer readable medium. One embodiment of the method comprises: in response to the fact that the time for loading the target page is larger than a set time threshold, obtaining current display layer information of the target page, wherein the display layer information is used for representing at least one display layer included in the target page; determining validity information and attribute information of the at least one display layer based on the display layer information; and determining the display effect of the target page based on the effectiveness information and the attribute information of the at least one display layer. The embodiment improves the objectivity of judging the display effect of the target page, and is beneficial to improving the detection accuracy and timeliness of the display effect of the target page.

Description

Page detection method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a page detection method, a page detection device, electronic equipment and a computer readable medium.
Background
With the development of network technology, the information that the page can show is more and more abundant. In order to improve the information amount and the display effect of the page, the structure of the page is more and more complex. Correspondingly, the terminal device consumes more data when loading the page, and the time for loading the page is longer.
Because terminal devices have differences in hardware, software, network connection state and the like, the loading time of the same page on different devices is different, and the experience of users is greatly different due to different loading times. When the loading time exceeds a certain time, there is a high possibility that the user directly abandons the loading of the page. In order to improve the loading effect of the page and improve the matching degree of the page to various terminal devices, the display effect of the page on the terminal devices needs to be acquired. However, the existing method usually adopts a method of intercepting an image to obtain the display effect of a page, and the data volume of the image is large, so that a lot of computing resources and network bandwidth are occupied when the image is intercepted or transmitted to a server, the data processing speed of terminal equipment is further reduced, and the page loading effect is further reduced. Due to the fact that the data of the image is large, the time required for the server to receive the image is long, and therefore timeliness of the display effect corresponding to the image received by the server is reduced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a page detection method, apparatus, electronic device and computer readable medium to solve the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a page detection method, including: in response to the fact that the time for loading the target page is larger than a set time threshold, obtaining current display layer information of the target page, wherein the display layer information is used for representing at least one display layer included in the target page; determining validity information and attribute information of the at least one display layer based on the display layer information; and determining the display effect of the target page based on the effectiveness information and the attribute information of the at least one display layer.
In a second aspect, some embodiments of the present disclosure provide a page detection method, including: receiving display effect information and terminal identifications corresponding to a target page at a plurality of terminals, wherein the display effect information comprises page effective display information and corresponding display effects of the terminals after the target page is loaded for a preset time; determining a mapping relation between a display effect corresponding to each terminal identifier and a display effect threshold according to the display effect information corresponding to the plurality of terminals and the terminal identifiers; wherein the display effect threshold is derived based on the page effective display information.
In a third aspect, some embodiments of the present disclosure provide a page detection apparatus, including: the display layer information acquisition unit is configured to respond to the condition that the time for loading the target page is greater than a set time threshold value, and acquire the current display layer information of the target page, wherein the display layer information is used for representing at least one display layer included in the target page; an information determination unit configured to determine validity information and attribute information of the at least one display layer based on the display layer information; a page detection unit configured to determine a display effect of the target page based on the validity information and the attribute information of the at least one display layer.
In a fourth aspect, some embodiments of the present disclosure provide a page detection apparatus, including: the first information receiving unit is configured to receive display effect information and terminal identifications corresponding to a target page at a plurality of terminals, wherein the display effect information comprises page effective display information and corresponding display effects of the terminals after the target page is loaded for a preset time; the mapping relation determining unit is configured to determine a mapping relation between a display effect corresponding to each terminal identifier and a display effect threshold according to the display effect information corresponding to the plurality of terminals and the terminal identifiers; wherein the display effect threshold is derived based on the page effective display information.
In a fifth aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a memory on which one or more programs are stored, the one or more programs, when executed by the one or more processors, causing the one or more processors to perform the page detection method of the first aspect or the page detection method of the second aspect.
In a sixth aspect, some embodiments of the present disclosure provide a computer readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the page detection method of the first aspect or the page detection method of the second aspect.
One of the above-described various embodiments of the present disclosure has the following advantageous effects: when the time for loading the target page is greater than a set time threshold, acquiring the current display layer information of the target page, and timely acquiring the display condition of the target page on a terminal; then, the effectiveness information and the attribute information of the at least one display layer are determined based on the display layer information, so that the objectivity of judging the display effect of the target page is improved; and finally, determining the display effect of the target page based on the validity information and the attribute information of at least one display layer, so that the detection accuracy and timeliness of the display effect of the target page can be improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of an application scenario of a page detection method of some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a page detection method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a page detection method according to the present disclosure;
FIG. 4 is a flow diagram of still further embodiments of a page detection method according to the present disclosure;
FIG. 5 is a schematic diagram of another application scenario of a page detection method according to the present disclosure;
FIG. 6 is a schematic block diagram of some embodiments of a page detection apparatus according to the present disclosure;
FIG. 7 is a schematic block diagram of some embodiments of a page detection apparatus according to the present disclosure;
FIG. 8 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure;
FIG. 9 is a schematic view of a display page of a target page and corresponding multiple display layer structures;
fig. 10 is a grid diagram of a screen.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of an application scenario of a page detection method of some embodiments of the present disclosure.
In the application scenario of fig. 1, first, a terminal device 101 (e.g., a smart phone, a tablet computer, etc.) may receive a target page sent by a server 102, where the target page includes at least one display layer. Such as the first display layer 1011, the second display layer 1012, the third display layer 1013, and the fourth display layer 1014 in fig. 1. The first display layer 1011 may be a caption, the second display layer 1012 may be an image corresponding to the caption, the third display layer 1013 may be a page background template, and the fourth display layer 1014 may be a background backplane. The first display layer 1011 is at the top of the target page and the fourth display layer 1014 is at the bottom of the target page. The second display layer 1012 and the third display layer 1013 are distributed in the order of numbers between the first display layer 1011 and the fourth display layer 1014.
The loading effect of the target page on the terminal device 101 may be different due to the hardware, software, network data transmission speed, and the like of the terminal device 101. Also, the target page typically contains multiple display layers superimposed on each other, and different display layers may contain different information. The display effect of different information on the target page has relevance to the hardware and software of the terminal device 101. In order to detect the display effect of the target page on the terminal device 101, the terminal device 101 may obtain the current display layer information of the target page when the time for loading the target page is greater than the set time threshold. The set time threshold may be an average time for different types of terminal devices to normally open the target page under the conditions that a network is unobstructed, the terminal devices do not have a large amount of data processing, and the like. That is, the set time threshold may be considered to be related only to the terminal device itself. Therefore, the display effect of the target page on the terminal equipment can be objectively judged. The display layer information is used for representing at least one display layer included in the target page. At this time, each display layer in the at least one display layer may or may not have the corresponding content loaded. The terminal device 101 may determine validity information and attribute information of at least one display layer according to the display layer information, and determine a display effect of the target page according to the validity information and the attribute information. The validity information may represent a current display effect of the corresponding display layer. The validity information may include a valid layer and an invalid layer. The effective layer can be a display layer containing useful information such as characters and images for showing to a user; the invalidation layer may be a display layer containing information such as page background map, page borders, advertisement pages, etc. The attribute information may be used to characterize the display layer identifier of the corresponding display layer and the position information of the display layer on the target page. The display layer identifier may be used to characterize a hierarchical ordering of the corresponding display layer on the target page.
The server 102 may be hardware or software. When the server 102 is hardware, it may be implemented as a distributed cluster composed of a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When the server 102 is embodied as software, it may be installed in the hardware devices listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices 101 and servers 102 in fig. 1 is merely illustrative. There may be any number of terminal devices 101 and servers 102, as desired for implementation.
With continued reference to fig. 2, fig. 2 illustrates a flow 200 of some embodiments of a page detection method according to the present disclosure. The page detection method comprises the following steps:
step 201, in response to that the time for loading the target page is greater than a set time threshold, acquiring the current display layer information of the target page.
In some embodiments, the execution subject of the page detection method (e.g., the terminal device 101 shown in fig. 1) may receive the target page from the server 102 through a wired connection or a wireless connection. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
The execution subject may load the target page at different times for various reasons, such as hardware, software, and network. In order to obtain the display effect of the target page on the execution main body, when the time for loading the target page exceeds a set time threshold, the execution main body may obtain current display layer information of the target page. The set time threshold may be set according to actual needs, for example, the set time threshold may be 5 seconds. The display layer information may be used to characterize at least one display layer included in the target page.
Step 202, determining validity information and attribute information of the at least one display layer based on the display layer information.
In some embodiments, the execution subject may analyze at least one display layer included in the display layer information, and may determine validity information and attribute information of each display layer. And the validity information is used for representing the current validity of the corresponding display layer. For example, when a display layer contains useful information to be presented to a user, then the validity information of the display layer may be a valid layer; when a display layer does not contain useful information, the validity information of the display layer may be an invalid layer. The attribute information may be used to characterize the display layer identifier of the corresponding display layer and the position information of the display layer on the target page. The display layer identifier may be used to characterize a hierarchical ordering of the corresponding display layer on the target page.
Step 203, determining the display effect of the target page based on the validity information and the attribute information of the at least one display layer.
In some embodiments, after obtaining the validity information and the attribute information of at least one display layer, the execution main body may comprehensively consider the validity information and the attribute information of each display layer, and further determine the current display effect of the display page. As shown in fig. 9, the target page includes a display layer 901, a display layer 902, and a display layer 903. The display layer 901 may be a floating advertisement window containing advertisement images, and the validity information thereof may be an invalid layer; the display layer 902 may contain useful information such as text information, and the validity information may be a valid layer; the display layer 903 may contain a background map of the target page, and the validity information thereof may be an invalid layer. The attribute information of the display layer 901 may be "1" and "empty". Where "1" is a display layer identifier ("1" in the right display layer 901 in fig. 9), indicating that the display layer 901 is on the first layer (topmost layer) of the target page; "empty" may indicate position information indicating that the position of the display layer 901 on the target page is not fixed. The attribute information of the display layer 902 may be "2" and "xx 1, yy 1". Where "2" is a display layer identification ("2" in the right display layer 902 in fig. 9), indicating that the display layer 902 is on the second layer (middle layer) of the target page; "xx 1, yy 1" may represent position information indicating that the position of the display layer 902 on the target page is a first rectangular region constituted by an abscissa "xx 1" and an ordinate "yy 1". The display layer 902 contains text information and may be located in the middle of the target page. The attribute information of the display layer 903 may be "3" and "xx 2, yy 2". Wherein "3" is a display layer identifier ("3" in the right display layer 903 in fig. 9), indicating that the display layer 903 is on the third layer (the lowest layer) of the target page; "xx 2, yy 2" may indicate position information indicating that the position of the display layer 903 on the target page is a second rectangular region constituted by an abscissa "xx 2" and an ordinate "yy 2". The display layer 903 is typically a background layer of the target page, and thus, the second rectangular area may be the display area of the entire target page, and the second rectangular area is larger than the first rectangular area. When the display layer 901, the display layer 902, and the display layer 903 of the target page are all displayed normally, the user can acquire useful information from the display layer 902. At this time, the display effect of the target page may be normal display. However, due to software and hardware of each terminal device, the display layer 902 may not normally display after the loading time exceeds the set time threshold, or the display layer 902 may be normally displayed but blocked by the display layer 901. At this time, the display effect of the target page may be a white screen. Wherein the white screen can be used to indicate that the display layer 902 is not normally displayed or is occluded.
According to the page detection method disclosed by some embodiments of the disclosure, when the time for loading the target page is greater than a set time threshold, the current display layer information of the target page is acquired, and the display condition of the target page on the terminal can be acquired in time; then, the effectiveness information and the attribute information of the at least one display layer are determined based on the display layer information, so that the objectivity of judging the display effect of the target page is improved; and finally, determining the display effect of the target page based on the validity information and the attribute information of at least one display layer, so that the detection accuracy and timeliness of the display effect of the target page can be improved.
With continued reference to fig. 3, fig. 3 illustrates a flow 300 of some embodiments of a page detection method according to the present disclosure. The page detection method comprises the following steps:
step 301, in response to that the time for loading the target page is greater than a set time threshold, obtaining the current display layer information of the target page.
Step 302, determining validity information and attribute information of the at least one display layer based on the display layer information.
The contents of step 301 and step 302 are the same as those of step 201 and step 202, and are not described in detail here.
In some optional implementations of some embodiments, the determining the validity information of the at least one display layer based on the display layer information may include:
the method comprises the first step of detecting the display content of the display layer.
In order to detect the validity of the display layer, the execution body needs to detect the display content of the display layer. The display content may be various types of information. For example, the display content may be pictures, text, video, pattern textures, and the like.
A second section that judges validity information of the display layer as a valid layer in response to the display content belonging to a target information type; otherwise, judging the validity information of the display layer as an invalid layer.
When the display content is of the target information type, it is indicated that the display layer has displayed information that is valid for the user. At this time, the execution body may determine that the validity information of the display layer is a valid layer. Wherein the target information type may include at least one of: text, images, etc. When the display content does not belong to the target information type, it is indicated that the display layer does not display information effective for the user. The execution subject may determine that the validity information of the display layer is an invalid layer.
Step 303, in response to that the validity information of at least one of the display layers is an invalid layer, determining page valid display information of the target page based on the attribute information of at least one of the display layers.
When the validity information of all the display layers is valid, the target page at the moment is completely and normally displayed. And when the validity information of at least one display layer is an invalid layer, indicating that some display layers do not normally display corresponding display contents. At this time, the execution body needs to determine page effective display information of the target page according to the attribute information of the display layer. The page effective display information may be display area information, information obtained by rasterizing a display area, or the like. The target page shown in fig. 9, which includes a display layer 901, a display layer 902, and a display layer 903, is also taken as an example. The display layer 901, the display layer 902 and the display layer 903 are sequentially a top layer, a middle layer and a bottom layer of the target page. The display layers 901, 902, and 903 may be arranged at the same position. The user sees first display layer 901, then display layer 902, and finally display layer 903. When the display layer 901 is not normally displayed, the display layer 901 is an invalid layer. When the position of the display layer 901 appears directly above the display layer 902 and the useful information of the display layer 902 is occluded, the execution main body may determine the page effective display information of the target page according to the ratio of the area of the useful information of which the display layer 902 is not occluded to the page area occupied by all the useful information of the display layer 902. At this time, the page effective display information is display area information. In practice, the area randomness of the occluded useful information is large, and the randomness of the page area occupied by the useful information is also large. To this end, the executing agent may grid the page into a plurality of display regions in advance (for example, the target page is generally rectangular, and the executing agent may grid the page into 4 identical small rectangular regions), and when more than half of the area of the small rectangular region is occluded, it may be considered that the small rectangular region is occluded. Therefore, the effectiveness of the effective display information of the page can be ensured on the premise of simplifying the calculation process of the effective display information of the page.
And step 304, determining the display effect of the target page according to the page effective display information.
After the effective page display information is obtained, the execution main body can process the effective page display information so as to determine the display effect of the target page.
In some optional implementations of some embodiments, the determining page effective display information of the target page based on the attribute information of at least one of the display layers may include:
in a first step, a target display layer is determined in the at least one display layer based on the display layer identification.
The attribute information may include a display layer identifier and position information of the display layer on the target page. The display layer identifier may be used to characterize a hierarchical ordering of the corresponding display layer on the target page. The execution subject may determine a target display layer of the at least one display layer based on the display layer identification. In practice, if a certain display layer contains useful information when being displayed normally, but the display layer does not display the useful information normally when the time for loading the target page is greater than the set time threshold, the display layer is also an invalid layer. That is, the active layer is determined by whether the display layer contains useful information. To this end, the execution main body may set an active layer of the normal display as a target display layer according to the display layer identification. Meanwhile, the execution main body needs to set an invalid layer above the target display layer of the valid layers as the target display layer as well. That is, the target display layer includes an active layer for normal display and an inactive layer above the active layer, and the inactive layer below the active layer for normal display may be disregarded. For example, the target page may include display layer 1, display layer 2, display layer 3, and display layer 4. The display layer 1, the display layer 2, the display layer 3 and the display layer 4 are sequentially a first layer, a second layer, a third layer and a fourth layer according to the sequence. The first layer being highest and the fourth layer being lowest. The display layer 1 and the display layer 3 may be inactive layers; the display layer 2 and the display layer 4 may be effective layers. When the effective layer exists above the ineffective layer and the effective layer does not exist below the ineffective layer, the ineffective layer can be ignored, and the target display layer only comprises the effective layer above the ineffective layer. When an effective layer exists above an ineffective layer and an effective layer exists below the ineffective layer, the shielding condition of the ineffective layer to the effective layer below needs to be considered, and the target display layer comprises the effective layers above and below and the ineffective layer. When there is no valid layer above the invalid layer, there is a valid layer below the invalid layer, and it is necessary to consider the shielding situation of the invalid layer from the valid layer below, and the target display layer includes the valid layer below and the invalid layer.
And secondly, determining page effective display information of the target page according to the position information of the target display layer.
The display positions of the display layers in the target page may be different, and the different display positions may cause shielding between the display layers and the like. Therefore, the execution body can determine the page effective display information of the target page according to the position information of the target display layer. Taking fig. 9 as an example, the target page includes a display layer 901, a display layer 902, and a display layer 903. The display layer 901 is a top layer, contains advertisement images, and can be an invalid layer; the display layer 902 is an intermediate layer, contains useful information, and can be an active layer; the display layer 903 is a bottom layer, and may contain a page background image, and may be an invalid layer. When the display layer 902 is normally displayed, the corresponding target display layer includes the display layer 901 and the display layer 902. Because the display layer 901 is moved and displayed on the target page, the display layer 901 may have different shielding effects on the display layer 902 at different positions, and thus the obtained page effective display information of the target page is different. For example, when the display layer 901 is close to the edge position of the target page, the area of the display layer 901 shielding the display layer 902 is minimum. When the display layer 901 is close to the middle position of the target page, the area of the display layer 901 shielding the display layer 902 is the largest. The execution subject may determine that the page valid display information of the target page may be a ratio of an area of the display layer 902 that is not occluded to an overall area of the display layer 902.
In some optional implementations of some embodiments, the determining a target display layer in the at least one display layer based on the display layer identification may include: and inquiring the target display layer identification of the effective layer in the at least one display layer, and determining the at least one target display layer through the target display layer identification.
In order to determine the display effect of the target page, the execution subject needs to identify the effective layer. The execution subject may query the target display layer identifier of the active layer and determine the target display layer according to the target display layer identifier.
In some optional implementations of some embodiments, the determining, according to the position information of the target display layer, page effective display information of the target page may include:
firstly, determining the position relation between the target display layers according to the position information of each target display layer in the at least one target display layer.
The target page comprises a plurality of display layers, and when an invalid layer exists, the display contents of the display layers can be blocked. Accordingly, the execution body can determine the positional relationship between the target display layers from the positional information of each target display layer. Wherein the positional relationship may include overlapping or non-overlapping.
And secondly, responding to the position relation of overlapping, and determining page effective display information of the target page according to the effective display information of each target display layer in the at least one target display layer.
When the position relation is non-overlapping, the execution body can directly determine the effective display information of the page according to the current effective layer. When the position relationship is overlapping, the execution subject needs to comprehensively determine the effective display information of the page according to the effective display information of each target display layer. As shown in fig. 9, the display layer 901 and the display layer 902 are in an overlapping relationship, the display layer 901 is on the display layer 902, and the display layer 901 blocks the display of useful information of the display layer 902. The valid display information of the target display layer is the useful information on the display layer 902 that is not occluded. The execution body may set a ratio of an area occupied by the useful information that is not blocked on the display layer 902 to the entire area of the display layer 902 as the page effective display information of the target page.
In some optional implementations of some embodiments, the determining the page effective display information of the target page according to the effective display information of each of the at least one target display layer may include:
first, a first number of the cells corresponding to the display layer after the at least one target display layer is overlapped is determined.
In order to facilitate recognition of the display effect of the display layer, the display area of the screen may be divided into a set number of cells, and the actual display area is represented by the number of cells. The execution body may determine a first number of the cells corresponding to the overlapped display layer. Thus, the data processing speed can be greatly accelerated. The cells may be rectangular regions obtained by equally dividing the display region. Since the size of the display area is fixed, the area of each cell is known accordingly. As shown in fig. 10, the execution body may divide the display area of the screen into 8 units of the same area. The display layer 1002 containing useful information occupies 6 cells when not covered by the display layer 1001, and occupies 5 cells when covered by the display layer 1001. In this way, it can be determined that the first number of cells corresponding to the overlapped display layer is 5.
And secondly, determining a second number of units corresponding to the at least one display layer.
Based on the same processing, the execution principal may determine a second number of cells corresponding to the at least one display layer. As shown in fig. 10, the second number of cells corresponding to the display layer is 6.
And thirdly, determining the effective display information of the page according to the first number of units and the second number of units.
The execution body may calculate the page effective display information by the first number of cells and the second number of cells. For example, the execution body may calculate a ratio of the first number and the second number, and set the ratio as the page effective display information. Also taking fig. 10 as an example, when the first number of cells is 5 and the second number of cells is 6, the page effective display information may be 5/6 ≈ 0.83.
In some optional implementation manners of some embodiments, the determining the display effect of the target page according to the page effective display information may include: responding to the fact that the effective area rate of the page is smaller than a display effect threshold value, and enabling the display effect to be a white screen; otherwise, the display effect is normal display.
The page effective display information may include the page effective area rate. The execution subject may compare the page effective area rate with a preset display effect threshold. When the effective area rate of the page is smaller than the display effect threshold value, it indicates that the currently displayed effective content of the target page is too little, and the execution main body may mark the display effect as a white screen. Otherwise, when the page effective area rate is larger than or equal to the display effect threshold, it indicates that the effective content currently displayed on the target page is enough, and the execution main body can mark the display effect as normal display.
With continued reference to fig. 4, fig. 4 illustrates a flow 400 of some embodiments of a page detection method according to the present disclosure. The page detection method comprises the following steps:
step 401, receiving display effect information and terminal identifications corresponding to a plurality of terminals of a target page.
In some embodiments, the execution subject of the page detection method (e.g., the server 102 shown in fig. 1) may receive at least one display effect value from the terminal device 101 through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
The execution body may receive display effect information and terminal identifiers sent by the terminal device 101 and corresponding to the target page at the multiple receiving terminal devices 101. The display effect information may include page effective display information and a corresponding display effect of the terminal after the target page is loaded for a preset time.
Step 402, determining a mapping relation between a display effect corresponding to each terminal identifier and a display effect threshold according to the display effect information corresponding to the plurality of terminals and the terminal identifiers.
The execution main body can count the display effect information and the terminal identification, and further can determine the mapping relation between the display effect and the display effect threshold value. Wherein the display effect threshold may be obtained based on the page effective display information. For example, the execution main body receives 1000 pieces of display effect information, and obtains a distribution diagram corresponding to the 1000 pieces of display effect information. The abscissa of the distribution diagram can be a value interval of the display effect information; the ordinate of the distribution map may be the number of the display effect information in the corresponding value section. The execution main body may determine at least one target value interval with the largest amount of display effect information from the distribution map, and determine the display effect threshold based on the at least one target value interval. For example, when there are two target value intervals, the average of the two target value intervals may be set as the display effect threshold. The mapping relationship between the display effect and the display effect threshold may be: when the display effect is larger than the display effect threshold value, the target page is normally displayed on the terminal; and when the display effect is less than or equal to the display effect threshold value, displaying the target page as a white screen.
In some optional implementation manners of some embodiments, the determining, according to the display effect information and the terminal identifiers corresponding to the multiple terminals, a mapping relationship between a display effect corresponding to each terminal identifier and a display effect threshold may include the following steps:
the method comprises the following steps that firstly, display effect information corresponding to each terminal identification is determined based on the terminal identification.
The display effect information sent by the terminal and the terminal identification have a corresponding relation, and the execution main body can determine the corresponding display effect information according to the terminal identification.
And secondly, aiming at any one terminal identifier, determining a plurality of effective display area rates corresponding to the display effect based on the display effect information of the terminal identifier.
For any terminal identifier, the execution main body may determine an effective display area rate corresponding to the display effect according to the display effect information of the terminal identifier. In this way, a plurality of effective display area ratios of a plurality of terminals can be obtained. The page effective display information may include a page effective area rate. The execution subject may calculate an effective display area rate corresponding to the display effect according to the page effective area rate.
And thirdly, counting the effective display area rates, and determining the mapping relation between the display effect and the display effect threshold value.
And after obtaining the plurality of effective display area rates, the execution main body determines the mapping relation between the display effect and the display effect threshold value according to the statistics of the effective display area rates. For example, the execution subject may divide the plurality of effective display area rates into a plurality of display area rate sections and determine a relationship of the display area rate sections to the display effect, and may further determine a mapping relationship of the display effect to the display effect threshold.
In some optional implementations of some embodiments, the method may further include:
the method comprises the first step of receiving effective display information of a page to be processed of a target page sent by a target terminal.
The execution subject may determine the display effect threshold according to the received display effect information and the terminal identifier. In addition, the execution main body can also directly receive effective display information of the pages to be processed of the target pages sent by the target terminal.
And secondly, determining the display effect of the target page on the target terminal according to the display effect threshold and the effective display information of the page to be processed.
The execution main body can judge the effective display information of the page to be processed according to the display effect threshold value. When the effective display information of the page to be processed is greater than or equal to the display effect threshold value, the target page can be considered to be normally displayed on the target terminal; otherwise, the display effect of the target page on the target terminal can be considered as a white screen. Thereafter, the execution body may return the display effect to the corresponding target terminal. The target terminal can judge the target page according to the display effect and send the judgment result to the execution main body.
Fig. 5 is a schematic diagram of another application scenario of the page detection method of the present disclosure.
In the application scenario of fig. 5, a plurality of terminal devices 101 each load the same target page, and obtain display effect information according to the method in the embodiments of fig. 2 to fig. 4. After that, the display effect information is transmitted to the server 102. The server 102 processes the received display effect information to obtain an effective display area rate corresponding to each display effect information, and then performs statistics on the effective display area rates to obtain a statistical data table, as shown in table 1.
Figure BDA0002875412760000151
TABLE 1
Wherein x is used for representing the value range of the effective display area rate; g (x) is used for representing the number of the effective display area ratios which are larger than the value range x of the effective display area ratio; and f (x) is used for representing the number of the effective display area ratios between the effective display area ratio value range x and the effective display area ratio value range x + 1.
As can be seen from table 1, the number of pieces of display effect information in the effective display area ratio range of 0 to 10% is 410. The number of the display effect information in the effective display area ratio value range of 70% -80% is 306. The server 102 may set the average of the two effective display area rate value ranges as the display effect threshold. Specifically, the execution main body may set the effective display area ratio value range of 0-10% as 0%, set the effective display area ratio value range of 70% -80% as 70%, and then obtain the display effect threshold value after averaging. Namely, the values of the display effect threshold are as follows:
Figure BDA0002875412760000161
the mapping relationship between the display effect and the display effect threshold may be: when certain display effect information is smaller than a display effect threshold value, the target page can be judged to be displayed as a white screen within a set time threshold value range; when certain display effect information is larger than or equal to the display effect threshold, the target page can be judged to be displayed as a non-white screen within the set time threshold range.
With further reference to fig. 6, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a page detection apparatus, which correspond to those shown in fig. 2, and which may be applied in various electronic devices.
As shown in fig. 6, the page detection apparatus 600 of some embodiments includes: a display layer information acquisition unit 601, an information determination unit 602, and a page detection unit 603. The display layer information obtaining unit 601 is configured to, in response to that a time for loading a target page is greater than a set time threshold, obtain current display layer information of the target page, where the display layer information is used to represent at least one display layer included in the target page; an information determining unit 602 configured to determine validity information and attribute information of the at least one display layer based on the display layer information; a page detection unit 603 configured to determine a display effect of the target page based on the validity information and the attribute information of the at least one display layer.
In an optional implementation manner of some embodiments, the information determining unit 602 may include: a display content detection subunit (not shown in the figure) and a validity judgment subunit (not shown in the figure). Wherein the display content detection subunit is configured to detect the display content of the display layer; a validity judgment subunit configured to judge validity information of the display layer as a valid layer in response to the display content belonging to a target information type; otherwise, judging the validity information of the display layer as an invalid layer; wherein the target information type comprises at least one of: characters and images.
In an optional implementation manner of some embodiments, the page detecting unit 603 may include: a page effective display information determining sub-unit (not shown in the drawings) and a display effect determining sub-unit (not shown in the drawings). The page valid display information determining subunit is configured to determine, in response to the validity information of at least one of the display layers being an invalid layer, page valid display information of the target page based on the attribute information of at least one of the display layers; a display effect determination subunit configured to determine a display effect of the target page according to the page effective display information.
In an optional implementation manner of some embodiments, the attribute information includes a display layer identifier and position information of a display layer on the target page, where the display layer identifier is used to represent a hierarchical ordering of the corresponding display layer on the target page; the page effective display information determining subunit may include: a target display layer determination module (not shown in the figure) and a page effective display information determination module (not shown in the figure). Wherein the target display layer determination module is configured to determine a target display layer in the at least one display layer based on the display layer identification; the page effective display information determining module is configured to determine page effective display information of the target page according to the position information of the target display layer.
In an optional implementation of some embodiments, the target display layer determining module may include: and a target display layer determination sub-module (not shown in the figure) configured to query the target display layer identifier of the active layer in the at least one display layer, and determine at least one target display layer through the target display layer identifier.
In an optional implementation manner of some embodiments, the page valid display information determining module may include: a positional relationship determination sub-module (not shown in the figure) and a page effective display information determination sub-module (not shown in the figure). Wherein the position relation determining submodule is configured to determine a position relation between the target display layers according to the position information of each target display layer in the at least one target display layer, and the position relation comprises overlapping or non-overlapping; and the page effective display information determining sub-module is configured to determine the page effective display information of the target page according to the effective display information of each target display layer in the at least one target display layer in response to the position relation being the overlapping.
In an alternative implementation of some embodiments, the display area of the screen is divided into a set number of cells; and, the page valid display information determination sub-module may include: a first unit determining module (not shown), a second unit determining module (not shown) and a page effective display information determining module (not shown). The first unit determining module is configured to determine a first number of units corresponding to the overlapped display layers of the at least one target display layer; a second cell determining module configured to determine a second number of the cells corresponding to the at least one display layer; a page effective display information determining module configured to determine the page effective display information according to the first number of the cells and the second number of the cells.
In an optional implementation manner of some embodiments, the page effective display information includes the page effective area rate, and the display effect determination subunit may include: a display effect determination module (not shown in the figures) configured to respond to the page effective area rate being less than a display effect threshold, the display effect being a white screen; otherwise, the display effect is normal display.
It will be understood that the elements described in the apparatus 600 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 600 and the units included therein, and are not described herein again.
With further reference to fig. 7, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a page detection apparatus, which correspond to those shown in fig. 4, and which may be applied in various electronic devices.
As shown in fig. 7, the page detecting apparatus 700 of some embodiments includes: a first information receiving unit 701 and a mapping relation determining unit 702. The first information receiving unit 701 is configured to receive display effect information and terminal identifiers corresponding to a target page at a plurality of terminals, where the display effect information includes page effective display information and corresponding display effects of the terminals after the terminals load the target page for a preset time; a mapping relation determining unit 702, configured to determine, according to the display effect information and the terminal identifiers corresponding to the plurality of terminals, a mapping relation between a display effect corresponding to each of the terminal identifiers and a display effect threshold; wherein the display effect threshold is derived based on the page effective display information.
In an optional implementation manner of some embodiments, the page effective display information includes a page effective area rate, and the mapping relationship determining unit 702 may include: a display effect information determining subunit (not shown in the figure), an effective display area rate determining subunit (not shown in the figure), and a mapping relation determining subunit (not shown in the figure). The display effect information determining subunit is configured to determine, based on the terminal identifiers, display effect information corresponding to each terminal identifier; an effective display area rate determining subunit configured to determine, for any one of the terminal identifiers, a plurality of effective display area rates corresponding to the display effect based on the display effect information of the terminal identifier; a mapping relation determining subunit configured to count the plurality of effective display area rates, and determine a mapping relation between the display effect and the display effect threshold.
In an optional implementation manner of some embodiments, the page detecting apparatus 700 may further include: a second information receiving unit (not shown in the figure) and a display effect recognition unit (not shown in the figure). The second information receiving unit is configured to receive effective display information of a to-be-processed page of the target page sent by a target terminal; and the display effect identification unit is configured to determine the display effect of the target page on the target terminal according to the display effect threshold and the effective display information of the page to be processed.
It will be understood that the units described in the apparatus 700 correspond to the various steps in the method described with reference to fig. 4. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 700 and the units included therein, and will not be described herein again.
As shown in fig. 8, an electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 8 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 808, or installed from the storage device 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to the fact that the time for loading the target page is larger than a set time threshold, obtaining current display layer information of the target page, wherein the display layer information is used for representing at least one display layer included in the target page; determining validity information and attribute information of the at least one display layer based on the display layer information; and determining the display effect of the target page based on the effectiveness information and the attribute information of the at least one display layer.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a display layer information acquisition unit, an information determination unit, and a page detection unit. Where the names of the cells do not in some cases constitute a limitation of the cell itself, for example, the page detection unit may also be described as a "cell for determining a display effect".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
According to one or more embodiments of the present disclosure, there is provided a page detection method including: in response to the fact that the time for loading the target page is larger than a set time threshold, obtaining current display layer information of the target page, wherein the display layer information is used for representing at least one display layer included in the target page; determining validity information and attribute information of the at least one display layer based on the display layer information; and determining the display effect of the target page based on the effectiveness information and the attribute information of the at least one display layer.
According to one or more embodiments of the present disclosure, the determining validity information of the at least one display layer based on the display layer information includes: detecting display content of the display layer; responding to the display content belonging to the target information type, and judging the validity information of the display layer as a valid layer; otherwise, judging the validity information of the display layer as an invalid layer; wherein the target information type comprises at least one of: characters and images.
According to one or more embodiments of the present disclosure, the determining the display effect of the target page based on the validity information and the attribute information of the at least one display layer includes: in response to the fact that the validity information of at least one display layer is an invalid layer, determining page valid display information of the target page based on the attribute information of at least one display layer; and determining the display effect of the target page according to the page effective display information.
According to one or more embodiments of the present disclosure, the attribute information includes a display layer identifier and position information of a display layer on the target page, where the display layer identifier is used to represent a hierarchical ordering of the corresponding display layer on the target page; the determining of the page effective display information of the target page based on the attribute information of at least one display layer comprises: determining a target display layer in the at least one display layer based on the display layer identification; and determining page effective display information of the target page according to the position information of the target display layer.
According to one or more embodiments of the present disclosure, the determining a target display layer in the at least one display layer based on the display layer identification comprises: and inquiring the target display layer identification of the effective layer in the at least one display layer, and determining the at least one target display layer through the target display layer identification.
According to one or more embodiments of the present disclosure, the determining page effective display information of the target page according to the position information of the target display layer includes: determining a position relationship between the target display layers according to the position information of each target display layer in the at least one target display layer, wherein the position relationship comprises overlapping or non-overlapping; and in response to the position relation being the overlapping, determining page effective display information of the target page according to the effective display information of each target display layer in the at least one target display layer.
According to one or more embodiments of the present disclosure, a display area of the screen is divided into a set number of cells; and determining page effective display information of the target page according to the effective display information of each target display layer in the at least one target display layer, including: determining a first number of the cells corresponding to the display layer after the at least one target display layer is overlapped; determining a second number of the cells corresponding to the at least one display layer; and determining the effective display information of the page according to the first number of the units and the second number of the units.
According to one or more embodiments of the present disclosure, the determining the display effect of the target page according to the page effective display information includes: responding to the fact that the effective area rate of the page is smaller than a display effect threshold value, and enabling the display effect to be a white screen; otherwise, the display effect is normal display.
According to one or more embodiments of the present disclosure, there is provided a page detection method including: receiving display effect information and terminal identifications corresponding to a target page at a plurality of terminals, wherein the display effect information comprises page effective display information and corresponding display effects of the terminals after the target page is loaded for a preset time; determining a mapping relation between a display effect corresponding to each terminal identifier and a display effect threshold according to the display effect information corresponding to the plurality of terminals and the terminal identifiers; wherein the display effect threshold is derived based on the page effective display information.
According to one or more embodiments of the present disclosure, the determining a mapping relationship between a display effect corresponding to each of the terminal identifiers and a display effect threshold according to the display effect information corresponding to the plurality of terminals and the terminal identifiers includes: determining display effect information corresponding to each terminal identifier based on the terminal identifiers; aiming at any terminal identification, determining a plurality of effective display area rates corresponding to the display effect based on the display effect information of the terminal identification; and counting the effective display area rates, and determining the mapping relation between the display effect and the display effect threshold value.
According to one or more embodiments of the present disclosure, the method further comprises: receiving effective display information of a page to be processed of the target page sent by a target terminal; and determining the display effect of the target page on the target terminal according to the display effect threshold and the effective display information of the page to be processed.
According to one or more embodiments of the present disclosure, there is provided a page detecting apparatus including: the display layer information acquisition unit is configured to respond to the condition that the time for loading the target page is greater than a set time threshold value, and acquire the current display layer information of the target page, wherein the display layer information is used for representing at least one display layer included in the target page; an information determination unit configured to determine validity information and attribute information of the at least one display layer based on the display layer information; a page detection unit configured to determine a display effect of the target page based on the validity information and the attribute information of the at least one display layer.
According to one or more embodiments of the present disclosure, the information determining unit includes: a display content detection subunit configured to detect display content of the display layer; a validity judgment subunit configured to judge validity information of the display layer as a valid layer in response to the display content belonging to a target information type; otherwise, judging the validity information of the display layer as an invalid layer; wherein the target information type comprises at least one of: characters and images.
According to one or more embodiments of the present disclosure, the page detection unit includes: a page valid display information determining subunit configured to determine, in response to the validity information of at least one of the display layers being an invalid layer, page valid display information of the target page based on the attribute information of the at least one of the display layers; a display effect determination subunit configured to determine a display effect of the target page according to the page effective display information.
According to one or more embodiments of the present disclosure, the attribute information includes a display layer identifier and position information of a display layer on the target page, where the display layer identifier is used to represent a hierarchical ordering of the corresponding display layer on the target page; the page effective display information determining subunit includes: a target display layer determination module configured to determine a target display layer among the at least one display layer based on the display layer identification; the page effective display information determining module is configured to determine page effective display information of the target page according to the position information of the target display layer.
According to one or more embodiments of the present disclosure, the target display layer determining module includes: and the target display layer determining sub-module is configured to query the target display layer identification of the effective layer in the at least one display layer and determine at least one target display layer through the target display layer identification.
According to one or more embodiments of the present disclosure, the page effective display information determining module includes: a position relation determining sub-module configured to determine a position relation between the target display layers according to the position information of each of the at least one target display layer, the position relation including overlapping or non-overlapping; and the page effective display information determining sub-module is configured to determine the page effective display information of the target page according to the effective display information of each target display layer in the at least one target display layer in response to the position relation being the overlapping.
According to one or more embodiments of the present disclosure, a display area of the screen is divided into a set number of cells; and the page effective display information determining submodule comprises: a first cell determining module configured to determine a first number of the cells corresponding to the display layers after the at least one target display layer is overlapped; a second cell determining module configured to determine a second number of the cells corresponding to the at least one display layer; a page effective display information determining module configured to determine the page effective display information according to the first number of the cells and the second number of the cells.
According to one or more embodiments of the present disclosure, the page effective display information includes the page effective area rate, and the display effect determining subunit includes: a display effect determination module configured to respond to the page effective area rate being less than a display effect threshold, the display effect being a white screen; otherwise, the display effect is normal display.
According to one or more embodiments of the present disclosure, there is provided a page detecting apparatus including: the first information receiving unit is configured to receive display effect information and terminal identifications corresponding to a target page at a plurality of terminals, wherein the display effect information comprises page effective display information and corresponding display effects of the terminals after the target page is loaded for a preset time; the mapping relation determining unit is configured to determine a mapping relation between a display effect corresponding to each terminal identifier and a display effect threshold according to the display effect information corresponding to the plurality of terminals and the terminal identifiers; wherein the display effect threshold is derived based on the page effective display information.
According to one or more embodiments of the present disclosure, the page effective display information includes a page effective area rate, and the mapping relation determining unit includes: a display effect information determination subunit configured to determine, based on the terminal identifiers, display effect information corresponding to each of the terminal identifiers; an effective display area rate determining subunit configured to determine, for any one of the terminal identifiers, a plurality of effective display area rates corresponding to the display effect based on the display effect information of the terminal identifier; a mapping relation determining subunit configured to count the plurality of effective display area rates, and determine a mapping relation between the display effect and the display effect threshold.
According to one or more embodiments of the present disclosure, the apparatus further comprises: the second information receiving unit is configured to receive effective display information of a to-be-processed page of the target page sent by a target terminal; and the display effect identification unit is configured to determine the display effect of the target page on the target terminal according to the display effect threshold and the effective display information of the page to be processed.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (15)

1. A page detection method comprises the following steps:
in response to the fact that the time for loading the target page is larger than a set time threshold, obtaining current display layer information of the target page, wherein the display layer information is used for representing at least one display layer included in the target page;
determining validity information and attribute information of the at least one display layer based on the display layer information;
and determining the display effect of the target page based on the effectiveness information and the attribute information of the at least one display layer.
2. The method of claim 1, wherein said determining validity information for the at least one display layer based on the display layer information comprises:
detecting display content of the display layer;
responding to the display content belonging to the target information type, and judging the validity information of the display layer as a valid layer; otherwise, judging the validity information of the display layer as an invalid layer; wherein the target information type comprises at least one of: characters and images.
3. The method according to claim 1 or 2, wherein the determining the display effect of the target page based on the validity information and the attribute information of the at least one display layer comprises:
in response to the fact that the validity information of at least one display layer is an invalid layer, determining page valid display information of the target page based on the attribute information of at least one display layer;
and determining the display effect of the target page according to the page effective display information.
4. The method according to claim 3, wherein the attribute information comprises display layer identifiers and position information of the display layers on the target page, and the display layer identifiers are used for representing the hierarchical ordering of the corresponding display layers on the target page;
the determining of the page effective display information of the target page based on the attribute information of at least one display layer comprises:
determining a target display layer in the at least one display layer based on the display layer identification;
and determining page effective display information of the target page according to the position information of the target display layer.
5. The method of claim 4, wherein the determining a target display layer in the at least one display layer based on the display layer identification comprises:
and inquiring the target display layer identification of the effective layer in the at least one display layer, and determining the at least one target display layer through the target display layer identification.
6. The method of claim 5, wherein the determining page valid display information of the target page according to the position information of the target display layer comprises:
determining a position relationship between the target display layers according to the position information of each target display layer in the at least one target display layer, wherein the position relationship comprises overlapping or non-overlapping;
and in response to the position relation being the overlapping, determining page effective display information of the target page according to the effective display information of each target display layer in the at least one target display layer.
7. The method of claim 6, wherein a display area of the screen is divided into a set number of cells; and
the determining the page effective display information of the target page according to the effective display information of each target display layer in the at least one target display layer includes:
determining a first number of the cells corresponding to the display layer after the at least one target display layer is overlapped;
determining a second number of the cells corresponding to the at least one display layer;
and determining the effective display information of the page according to the first number of the units and the second number of the units.
8. The method of claim 7, wherein the page effective display information comprises the page effective area rate, and the determining the display effect of the target page according to the page effective display information comprises:
responding to the fact that the effective area rate of the page is smaller than a display effect threshold value, and enabling the display effect to be a white screen; otherwise, the display effect is normal display.
9. A page detection method comprises the following steps:
receiving display effect information and terminal identifications corresponding to a target page at a plurality of terminals, wherein the display effect information comprises page effective display information and corresponding display effects of the terminals after the target page is loaded for a preset time;
determining a mapping relation between a display effect corresponding to each terminal identifier and a display effect threshold according to the display effect information corresponding to the plurality of terminals and the terminal identifiers; wherein the display effect threshold is derived based on the page effective display information.
10. The method according to claim 9, wherein the page effective display information includes a page effective area rate, and the determining, according to the display effect information corresponding to the plurality of terminals and the terminal identifiers, a mapping relationship between a display effect corresponding to each of the terminal identifiers and a display effect threshold includes:
determining display effect information corresponding to each terminal identifier based on the terminal identifiers;
aiming at any terminal identification, determining a plurality of effective display area rates corresponding to the display effect based on the display effect information of the terminal identification;
and counting the effective display area rates, and determining the mapping relation between the display effect and the display effect threshold value.
11. The method of claim 10, wherein the method further comprises:
receiving effective display information of a page to be processed of the target page sent by a target terminal;
and determining the display effect of the target page on the target terminal according to the display effect threshold and the effective display information of the page to be processed.
12. A page detection apparatus, comprising:
the display layer information acquisition unit is configured to respond to the condition that the time for loading the target page is greater than a set time threshold value, and acquire the current display layer information of the target page, wherein the display layer information is used for representing at least one display layer included in the target page;
an information determination unit configured to determine validity information and attribute information of the at least one display layer based on the display layer information;
a page detection unit configured to determine a display effect of the target page based on the validity information and the attribute information of the at least one display layer.
13. A page detection apparatus, comprising:
the first information receiving unit is configured to receive display effect information and terminal identifications corresponding to a target page at a plurality of terminals, wherein the display effect information comprises page effective display information and corresponding display effects of the terminals after the target page is loaded for a preset time;
the mapping relation determining unit is configured to determine a mapping relation between a display effect corresponding to each terminal identifier and a display effect threshold according to the display effect information corresponding to the plurality of terminals and the terminal identifiers; wherein the display effect threshold is derived based on the page effective display information.
14. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8 or the method of any one of claims 9-11.
15. A computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements the method of any of claims 1 to 8 or the method of any of claims 9 to 11.
CN202011632926.4A 2020-12-31 2020-12-31 Page detection method, page detection device, electronic equipment and computer readable medium Active CN112733053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011632926.4A CN112733053B (en) 2020-12-31 2020-12-31 Page detection method, page detection device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011632926.4A CN112733053B (en) 2020-12-31 2020-12-31 Page detection method, page detection device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112733053A true CN112733053A (en) 2021-04-30
CN112733053B CN112733053B (en) 2023-06-27

Family

ID=75608437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011632926.4A Active CN112733053B (en) 2020-12-31 2020-12-31 Page detection method, page detection device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112733053B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010218522A (en) * 2009-03-17 2010-09-30 Yahoo Japan Corp Web page display method using plug-in of browser
CN104346088A (en) * 2013-07-29 2015-02-11 华为技术有限公司 Page switching method and device
CN105607917A (en) * 2014-11-19 2016-05-25 阿里巴巴集团控股有限公司 Page loading method and device
CN108920653A (en) * 2018-07-03 2018-11-30 武汉斗鱼网络科技有限公司 A kind of page generation method, device, server and storage medium
CN110162726A (en) * 2019-05-09 2019-08-23 腾讯科技(深圳)有限公司 Loading method, device and the storage medium of page resource
CN110286977A (en) * 2019-06-06 2019-09-27 Oppo广东移动通信有限公司 Display methods and Related product
CN110457613A (en) * 2019-05-24 2019-11-15 平安普惠企业管理有限公司 Page data loading control method, device, computer equipment and storage medium
CN111367606A (en) * 2020-03-03 2020-07-03 北京奇艺世纪科技有限公司 Application page display method, device, terminal and medium
CN111450529A (en) * 2020-05-06 2020-07-28 网易(杭州)网络有限公司 Game map acquisition method and device, storage medium and electronic device
CN111857915A (en) * 2020-07-06 2020-10-30 北京字节跳动网络技术有限公司 Application page display method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010218522A (en) * 2009-03-17 2010-09-30 Yahoo Japan Corp Web page display method using plug-in of browser
CN104346088A (en) * 2013-07-29 2015-02-11 华为技术有限公司 Page switching method and device
CN105607917A (en) * 2014-11-19 2016-05-25 阿里巴巴集团控股有限公司 Page loading method and device
CN108920653A (en) * 2018-07-03 2018-11-30 武汉斗鱼网络科技有限公司 A kind of page generation method, device, server and storage medium
CN110162726A (en) * 2019-05-09 2019-08-23 腾讯科技(深圳)有限公司 Loading method, device and the storage medium of page resource
CN110457613A (en) * 2019-05-24 2019-11-15 平安普惠企业管理有限公司 Page data loading control method, device, computer equipment and storage medium
CN110286977A (en) * 2019-06-06 2019-09-27 Oppo广东移动通信有限公司 Display methods and Related product
CN111367606A (en) * 2020-03-03 2020-07-03 北京奇艺世纪科技有限公司 Application page display method, device, terminal and medium
CN111450529A (en) * 2020-05-06 2020-07-28 网易(杭州)网络有限公司 Game map acquisition method and device, storage medium and electronic device
CN111857915A (en) * 2020-07-06 2020-10-30 北京字节跳动网络技术有限公司 Application page display method and device

Also Published As

Publication number Publication date
CN112733053B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN111784712B (en) Image processing method, device, equipment and computer readable medium
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN113721807B (en) Information display method and device, electronic equipment and storage medium
CN113313804B (en) Image rendering method and device, electronic equipment and storage medium
CN110705511A (en) Blurred image recognition method, device, equipment and storage medium
CN113521728A (en) Cloud application implementation method and device, electronic equipment and storage medium
CN111461968A (en) Picture processing method and device, electronic equipment and computer readable medium
US20240086389A1 (en) Method, device and apparatus for spreadsheet importing, and medium
CN111461965B (en) Picture processing method and device, electronic equipment and computer readable medium
CN114510299A (en) Method, device and storage medium for processing artificial intelligence service
CN112733053B (en) Page detection method, page detection device, electronic equipment and computer readable medium
CN113808134B (en) Oil tank layout information generation method, oil tank layout information generation device, electronic apparatus, and medium
CN114125485B (en) Image processing method, device, equipment and medium
CN112732457B (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN111368557B (en) Video content translation method, device, equipment and computer readable medium
CN111680754B (en) Image classification method, device, electronic equipment and computer readable storage medium
CN113850055A (en) Data processing method, device, storage medium and product
CN113792869A (en) Video processing method and device based on neural network chip and electronic equipment
CN112162682A (en) Content display method and device, electronic equipment and computer readable storage medium
CN112163176A (en) Data storage method and device, electronic equipment and computer readable medium
CN112070034A (en) Image recognition method and device, electronic equipment and computer readable medium
CN112579962A (en) Webpage color adjusting method and device, electronic equipment and computer readable medium
CN111835917A (en) Method, device and equipment for showing activity range and computer readable medium
CN111461964A (en) Picture processing method and device, electronic equipment and computer readable medium
CN110633121A (en) Interface rendering method and device, terminal equipment and 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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant