Content detection method and device, readable medium and electronic equipment
By receiving and traversing the view information of the terminal device, automatically detecting and sending relevant view information to the server, the problem of high view hierarchy occluding low view views at view hierarchy is solved, efficient and automated content detection is achieved, and user experience and terminal device performance is improved.
Patent Information
- Application Number
- CN202311514981.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2025-05-16
AI Technical Summary
In the display page, views with a high view level may obscure views with a low view level, causing some or all of the displayed content to be invisible, affecting the user experience.
By receiving the first view information and the second view information sent by the terminal device, the view levels of all views are traversed, and the second view information with a view level higher than the first view is automatically detected and sent to the server. The server determines the content detection result based on this information, and represents whether the displayed content in the first view is blocked by the display content in the second view.
No screenshot processing is required, which reduces the complexity of content detection, improves content detection efficiency, automates content detection, avoids manual intervention, improves content detection accuracy, and reduces the use of terminal equipment computing resources, and improves the processing performance and user experience of terminal equipment.
Smart Images

Figure CN120010966A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a content detection method, device, readable medium and electronic device. Background Art
[0002] A display page generally includes multiple views, and the view levels of different views can be the same or different. When the view levels of different views are different, a view with a higher view level will block some views with a lower view level, causing part or all of the displayed content in the view with a lower view level to be invisible. Summary of the invention
[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, the present disclosure provides a content detection method, the method comprising:
[0005] receiving first view information and second view information sent by a terminal device, wherein the first view information and the second view information are sent when the terminal device displays a first view by traversing the view hierarchy of all views displayed by the terminal device and when the traversal result indicates that there is a second view with a higher view hierarchy than the first view, the first view is used to display target content, the first view information is view information of the first view, and the second view information is view information of the second view;
[0006] A content detection result is determined according to the first view information and the second view information, where the content detection result is used to indicate whether displayed content in the first view is blocked by displayed content in the second view.
[0007] In a second aspect, the present disclosure provides another content detection method, the method comprising:
[0008] In response to a first view for displaying target content existing in the second display page, traversing the view hierarchy of all views in the second display page;
[0009] When the traversal result indicates that there is a second view with a higher view level than the first view in the second display page, the first view information of the first view and the second view information of the second view are sent to the server, so that the server determines a content detection result based on the first view information and the second view information, and the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
[0010] In a third aspect, the present disclosure provides a content detection device, the device comprising:
[0011] a receiving module, configured to receive first view information and second view information sent by a terminal device, wherein the first view information and the second view information are sent when the terminal device displays a first view by traversing the view hierarchy of all views displayed by the terminal device and when the traversal result indicates that there is a second view with a higher view hierarchy than the first view, the first view is used to display target content, the first view information is view information of the first view, and the second view information is view information of the second view;
[0012] The first determination module is used to determine a content detection result according to the first view information and the second view information, wherein the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
[0013] In a fourth aspect, the present disclosure provides another content detection device, the device comprising:
[0014] A traversal module, configured to traverse the view hierarchy of all views in the second display page in response to the presence of a first view for displaying target content in the second display page;
[0015] A sending module is used to send first view information of the first view and second view information of the second view to a server when a traversal result indicates that there is a second view with a higher view hierarchy than the first view in the second display page, so that the server determines a content detection result based on the first view information and the second view information, and the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
[0016] In a fifth aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of any one of the methods described in the first aspect.
[0017] In a sixth aspect, the present disclosure provides an electronic device, including:
[0018] a storage device having a computer program stored thereon;
[0019] A processing device is used to execute the computer program in the storage device to implement the steps of any one of the methods in the first aspect.
[0020] Through the above technical solution, when the first view information and the second view information sent by the terminal device are received, the content detection result used to characterize whether the display content in the first view is blocked by the display content in the second view can be determined according to the first view information and the second view information. Compared with the method of determining the content detection result by manually taking screenshots of the display page in the related art, the solution provided by the present disclosure can be processed without screenshots, thereby reducing the complexity of content detection and improving the efficiency of content detection. In addition, since the first view information and the second view information are traversed by the terminal device when the first view is displayed, and the view hierarchy of all views displayed by the terminal device is automatically sent when the traversal result indicates that there is a second view with a higher view hierarchy than the first view. Compared with the related art that requires the user to manually feedback the content blocking situation online, the solution provided by the present disclosure can automatically detect the content, thereby avoiding manual intervention and improving the accuracy of content detection. In addition, since the terminal device does not perform the process of content detection, it can avoid a large amount of computing resources of the terminal device, thereby improving the processing performance and user experience of the terminal device.
[0021] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0023] Figure 1 is a flow chart of a content detection method according to an exemplary embodiment of the present disclosure;
[0024] Figure 2 is a timing diagram of a content detection method according to an exemplary embodiment of the present disclosure;
[0025] Figure 3 is a flow chart showing another content detection method according to an exemplary embodiment of the present disclosure;
[0026] Figure 4 is a structural block diagram of a content detection device according to an exemplary embodiment of the present disclosure;
[0027] Figure 5 is a structural block diagram of another content detection device according to an exemplary embodiment of the present disclosure;
[0028] Figure 6 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0030] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0031] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0035] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0036] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0037] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0038] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0039] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0040] As mentioned in the background technology, a display page generally includes multiple views, and the view levels of different views can be the same or different. When the view levels of different views are different, a view with a higher view level may block part of a view with a lower view level, thereby causing part of the displayed content in the view with a lower view level to be invisible, affecting the user experience.
[0041] To overcome the above technical problems, related technologies generally detect content based on the following three methods:
[0042] Method 1: Before the display page goes online, that is, when the display page is in the testing stage, the content detection result is determined by manually taking screenshots of the display page. This detection method requires screenshot processing, which makes the detection process cumbersome and affects the efficiency of content detection. On the other hand, this detection method requires manual participation, which affects the accuracy of content detection.
[0043] Method 2: After the display page is online, the user provides feedback based on the display of the content on the page. This detection method relies on the user's willingness to provide feedback, resulting in low content detection accuracy.
[0044] Method 3: After the display page is online, the terminal device performs content detection based on the exposure area and / or exposure duration of the view. However, when there are many view levels or many views in the display page, the complexity of traversing and calculating the views will increase exponentially with the view levels and the number of views, which will occupy a large amount of computing resources of the terminal device, affecting the performance of the terminal device and the user experience.
[0045] In view of this, the present disclosure provides a content detection method, device, readable medium and electronic device to overcome the above technical problems.
[0046] The embodiments of the present disclosure are further explained below with reference to the accompanying drawings.
[0047] Figure 1 is a flowchart of a content detection method according to an exemplary embodiment of the present disclosure, referring to Figure 1 , the method may include the following steps:
[0048] S101: Receive first view information and second view information sent by a terminal device, wherein the first view information and the second view information are sent when the terminal device displays a first view by traversing a view hierarchy of all views displayed by the terminal device and when a traversal result indicates that there is a second view with a higher view hierarchy than the first view, the first view is used to display target content, the first view information is view information of the first view, and the second view information is view information of the second view.
[0049] It should be understood that the target content can be determined according to actual conditions. For example, the target display content can be information promotion content or content that users are interested in, etc. The embodiments of the present disclosure do not impose any limitation on this.
[0050] S102: Determine a content detection result according to the first view information and the second view information, where the content detection result is used to indicate whether displayed content in the first view is blocked by displayed content in the second view.
[0051] Through the above technical solution, when the first view information and the second view information sent by the terminal device are received, the content detection result used to characterize whether the display content in the first view is blocked by the display content in the second view can be determined according to the first view information and the second view information. Compared with the method of determining the content detection result by manually taking screenshots of the display page in the related art, the solution provided by the present disclosure can be processed without screenshots, thereby reducing the complexity of content detection and improving the efficiency of content detection. In addition, since the first view information and the second view information are traversed by the terminal device when the first view is displayed, and the view hierarchy of all views displayed by the terminal device is automatically sent when the traversal result indicates that there is a second view with a higher view hierarchy than the first view. Compared with the related art that requires the user to manually feedback the content blocking situation online, the solution provided by the present disclosure can automatically detect the content, thereby avoiding manual intervention and improving the accuracy of content detection. In addition, since the terminal device does not perform the process of content detection, it can avoid a large amount of computing resources of the terminal device, thereby improving the processing performance and user experience of the terminal device.
[0052] In a possible implementation manner, determining a content detection result according to the first view information and the second view information may include:
[0053] A first display page is determined according to the first view information and the second view information; and a content detection result is determined according to the first display page.
[0054] Among them, the first view information and the second view information can be determined according to the content detection method, and the embodiments of the present disclosure do not impose any restrictions on this. For example, when the content detection method is to restore the first display page of the first view and the second view in the terminal device, and perform content detection through the restored first display page, the first view information may include the view size, view position, view level, and display content of the first view. Similarly, the second view information may include the view size, view position, view level, and display content of the second view. Thus, the first display page of the first view and the second view in the terminal device can be restored according to the first view information and the second view information, and then content detection can be performed according to the first display page to determine whether the display content in the first view is blocked by the display content in the second view.
[0055] In a possible implementation manner, in order to avoid leakage of user information, the user information in the first view and the second view may be desensitized to obtain a first desensitized view and a second desensitized view that do not contain user information, and then the page is restored according to the first desensitized view, the second desensitized view, the first view information and the second view information to obtain a first display page of the first view and the second view in the terminal device.
[0056] The manner of desensitizing the user information in the first view and the second view may be determined according to actual conditions, and the embodiments of the present disclosure do not impose any limitation on this.
[0057] In a possible implementation, the user information can be desensitized based on data replacement, or the data in the user information can be desensitized based on data masking. For example, the data sequence ******* in the user information can be converted into a sequence *xxxxx*, etc.
[0058] In a possible implementation, in order to improve the efficiency of desensitizing user information, view desensitization rules for characterizing the correspondence between desensitized views and view names can be pre-set, so that after obtaining the view name, the corresponding desensitized view can be quickly obtained according to the view name and the view desensitization rules.
[0059] That is, according to an embodiment of the present disclosure, determining the first display page according to the first view information and the second view information may include:
[0060] A first desensitized view is determined according to a preset view desensitization rule and the view name in the first view information, and a second desensitized view is determined according to the view desensitization rule and the view name in the second view information, wherein the view desensitization rule is used to characterize the correspondence between the desensitized view and the view name, and the desensitized view is a view that does not contain user information; a first display page is determined according to the first desensitized view, the second desensitized view, the first view information, and the second view information.
[0061] Among them, the representation method of view desensitization rules can be set according to actual conditions. For example, the view desensitization rules can be expressed as: {desensitized view, view name}, or as: desensitized view: view name, or can be expressed in the form of a table, etc. The present disclosed embodiment does not impose any restrictions on this.
[0062] After determining the first display page, the display area of the first display page and the total display area of the first view and the second view may be determined first, and then the content detection result may be determined by comparing the display area of the first display page with the total display area. That is, when the display area of the first display page is equal to the total display area, it is determined that the display content in the first view is not blocked by the display content in the second view. When the display area of the first display page is smaller than the total display area, it is determined that the display content in the first view is blocked by the display content in the second view.
[0063] In a possible implementation manner, in order to avoid leakage of user information and reduce the amount of computation for content detection, after desensitizing the user information in the first view and the second view to obtain the first desensitized view and the second desensitized view without user information, the first desensitized view is rendered in color to obtain the target desensitized view. Thus, after determining the first display page according to the target desensitized view, the second desensitized view, the first view information and the second view information, the content detection result can be determined according to the area of the target display color area in the first display page and the area of the first view.
[0064] That is, in a possible implementation manner, determining the first display page according to the first view information and the second view information may include:
[0065] A first desensitized view is determined according to a preset view desensitization rule and the view name in the first view information, and a second desensitized view is determined according to the view desensitization rule and the view name in the second view information, wherein the view desensitization rule is used to characterize the correspondence between the desensitized view and the view name, and the desensitized view is a view that does not contain user information; the first desensitized view is rendered according to a preset target display color to obtain a target desensitized view; a first display page is determined according to the target desensitized view, the second desensitized view, the first view information, and the second view information.
[0066] It should be understood that the target display color can be set according to actual conditions, for example, it can be set to yellow, red or green, etc., and the embodiments of the present disclosure do not impose any limitations on this.
[0067] In addition, it should be understood that the manner of desensitizing the user information in the first view and the second view, and the manner of expressing the view desensitization rules can refer to the relevant description, which will not be repeated here.
[0068] In a possible implementation manner, determining a content detection result according to the first display page may include:
[0069] Determine a target display size of a target display color area in the first display page; and when the target display size is smaller than the display size in the first view information, determine that a content detection result is used to characterize that display content in the first view is obscured by display content in the second view.
[0070] Among them, the method for determining the target display size of the target display color area can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. In a possible implementation, in order to improve the accuracy of content detection, the target display color can be set to red, and after obtaining the display page, the display page is converted from the red, green, blue (Red, Green, Blue, RGB) color space to the hue, saturation, value (Hue, Saturation, Value, HSV) color space where the red hue value is more obvious, and then the image segmentation technology is used to extract the binary image of the red area according to the red hue range in the HSV color space. Finally, the contour detection is performed on the advance binary image, and the corresponding area is calculated to obtain the target display size of the target display color area.
[0071] After obtaining the target display size, the target display size is compared with the display size in the first view information to obtain a content detection result. That is, when the target display size is equal to the display size in the first view information, it is determined that the display content in the first view is not blocked by the display content in the second view. When the target display size is smaller than the display size in the first view information, it is determined that the display content in the first view is blocked by the display content in the second view.
[0072] Through the above technical solution, when performing content detection, only the target display size of the target display color area can be calculated, thereby reducing the amount of calculation and improving content detection efficiency.
[0073] In a possible implementation, the method may further include:
[0074] When the content detection result indicates that the display content in the first view is obscured by the display content in the second view, and the second view is one, determine a first obstruction number of times the display content in the second view obscures the display content in the first view; when the first obstruction number is greater than or equal to a preset obstruction number threshold, transmit the second view information to the alarm platform so that the alarm platform processes the second view.
[0075] Among them, the occlusion times threshold can be set to 3 times, 5 times or 10 times according to the situation, and the embodiment of the present disclosure does not impose any limitation on this.
[0076] In this embodiment, by determining the first occlusion times of the display content in the second view causing the display content in the first view to be occluded, and when the first occlusion times is greater than or equal to a preset occlusion times threshold, the second view information is transmitted to the alarm platform. In this way, only the second views that appear frequently or frequently are processed, thereby reducing the processing cost.
[0077] In a possible implementation, the method may further include:
[0078] When the content detection result indicates that the display content in the first view is obstructed by the display content in the second view, and there are multiple second views, determine the target view that causes the obstruction of the display content in the first view; determine a second obstruction number at which the display content in the target view obstructs the display content in the first view; and when the second obstruction number is greater than or equal to a preset obstruction number threshold, transmit the view information of the target view to the alarm platform, so that the alarm platform processes the target view.
[0079] It should be understood that a display page generally may include multiple views, and the view levels of different views may be the same or different. When the view levels of different views are different, according to the view position of the view, a view with a high view level may cause occlusion to a view with a low view level. That is to say, when there are multiple second views, not every display content in the second view will cause occlusion to the display content in the first view. Therefore, in order to avoid misprocessing the second view, in this embodiment, when the content detection result indicates that the display content in the first view is blocked by the display content in the second view, and there are multiple second views, the target view that causes occlusion to the display content in the first view is first determined, and then the second occlusion times of the display content in the target view blocking the display content in the first view are counted, and when the second occlusion times are greater than or equal to the preset occlusion times threshold, the target view information is transmitted to the alarm platform. In this way, only target views with high frequency or frequent occurrence can be processed, reducing the processing cost.
[0080] In order to more clearly understand the content detection method of the present disclosure, the present disclosure is explained below through specific examples.
[0081] like Figure 2 As shown, the server may include a view desensitization platform, a page processing platform, a content detection platform, and an alarm platform.
[0082] When there is a first view for displaying the target content in the terminal device, the terminal device traverses the view hierarchy of all views, and when the traversal result indicates that there is a second view with a higher view hierarchy than the first view in the terminal device, the first view information of the first view and the second view information of the second view are sent to the view desensitization platform.
[0083] The view desensitization platform obtains the first view name of the first view from the first view information, and determines the first desensitized view according to the first view name and the pre-stored view desensitization rule, and after determining the first desensitized view, renders the first desensitized view according to the preset target display color to obtain the target desensitized view, and obtains the second view name of the second view from the second view information, and determines the second desensitized view according to the second view name and the pre-stored view desensitization rule. Finally, the target desensitized view, the second desensitized view, the first view information, and the second view information are transmitted to the page processing platform.
[0084] The page processing platform simulates a first display page according to the target desensitized view, the second desensitized view, the first view information and the second view information, and transmits the simulated first display page to the content detection platform.
[0085] The content detection platform detects the content according to the first display page, determines the content detection result, and transmits the content detection result to the page processing platform when the content detection result indicates that the display content in the first view is blocked by the display content in the second view.
[0086] On the one hand, the page processing platform generates a problem record based on the content detection results and reports it to the corresponding responsible person. On the other hand, it determines the number of times the display content in the target view (the view that obstructs the display content in the first view) obstructs the display content in the first view based on the content detection results. When the number of obstructions exceeds the preset obstruction threshold, the view information of the target view is uploaded to the alarm platform.
[0087] The alarm platform processes the corresponding view according to the view information of the target view, and goes back online to the terminal device after processing.
[0088] Based on the same concept, the present disclosure also provides a content detection method, such as Figure 3 As shown, the method may include:
[0089] S301: In response to a first view for displaying target content existing in a second display page, traverse the view hierarchy of all views in the second display page.
[0090] It should be understood that the second display page is the display page currently being displayed.
[0091] In addition, it should be understood that the target content can be determined according to actual conditions. For example, the target display content can be information promotion content or content that users are interested in, etc. The embodiments of the present disclosure do not impose any limitations on this.
[0092] S302: When the traversal result indicates that there is a second view with a higher view hierarchy than the first view in the second display page, first view information of the first view and second view information of the second view are sent to the server, so that the server determines a content detection result based on the first view information and the second view information, and the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
[0093] Through the above technical solution, when there is a first view for displaying the target content in the second display page, the view hierarchy of all views in the second display page can be traversed, and when the traversal result indicates that there is a second view with a higher view hierarchy than the first view in the second display page, the first view information of the first view and the second view information of the second view are sent to the server, so that the server determines the content detection result according to the first view information and the second view information. Compared with the related art that requires users to manually feedback the content occlusion situation online, the solution provided by the present disclosure can automatically detect the content, thereby avoiding manual intervention and improving the accuracy of content detection. In addition, since the terminal device does not perform the content detection process, it can avoid a large amount of computing resources of the terminal device, thereby improving the processing performance and user experience of the terminal device.
[0094] In a possible implementation manner, sending the first view information of the first view and the second view information of the second view to the server may include:
[0095] For each preset sending time, all the first view information and the second view information between the last sending time and the current sending time are sent to the server, or,
[0096] The number of traversals to the second view is determined, and when the number of traversals is greater than or equal to a preset traversal number threshold, the first view information of the first view and the second view information of the second view obtained in each traversal are sent to the server.
[0097] It should be understood that the preset sending time can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the terminal device can transmit the first view information and the second view information to the server once every half an hour. Specifically, before the sending time is reached, if the traversal result represents that there is a second view with a higher view level than the first view in the display page, the first view information of the first view and the view information of the second view can be recorded, and when the sending time is reached, all the first view information and the second view information recorded between the last sending time and the current sending time are transmitted to the server together.
[0098] In addition, it should be understood that the preset traversal times threshold can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the terminal device can transmit the first view information and the second view information to the server once when it traverses to the second view for the fifth time, that is, when it traverses to the second view for the fifth time and there is a second view with a higher view level than the first view. Specifically, when the preset traversal times threshold is not reached, if the traversal result indicates that there is a second view with a higher view level than the first view in the display page, the first view information and the second view information of the first view can be recorded, and when the preset traversal times threshold is reached, the first view information and the second view information obtained by 5 traversals can be sent to the server.
[0099] Through the above technical solution, the recorded first view information and the second view information can be sent to the server at a preset sending time, or the recorded first view information and the second view information can be sent to the server when the recorded first view information and the second view information reach a certain number. This can reduce the number of communications between the terminal device and the server and the number of times the terminal device establishes a communication connection with the server, thereby reducing the resource usage of the terminal device and improving the processing performance of the terminal device.
[0100] Based on the same concept, the embodiment of the present disclosure also provides a content detection device, such as Figure 4 As shown, the device may include:
[0101] A receiving module 401 is configured to receive first view information and second view information sent by a terminal device, wherein the first view information and the second view information are sent when the terminal device displays a first view by traversing the view hierarchy of all views displayed by the terminal device, and when the traversal result indicates that there is a second view with a higher view hierarchy than the first view, the first view is used to display target content, the first view information is view information of the first view, and the second view information is view information of the second view;
[0102] The first determination module 402 is used to determine a content detection result according to the first view information and the second view information, where the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
[0103] Through the above technical solution, when the first view information and the second view information sent by the terminal device are received, the content detection result used to characterize whether the display content in the first view is blocked by the display content in the second view can be determined according to the first view information and the second view information. Compared with the method of determining the content detection result by manually taking screenshots of the display page in the related art, the solution provided by the present disclosure can be processed without screenshots, thereby reducing the complexity of content detection and improving the efficiency of content detection. In addition, since the first view information and the second view information are traversed by the terminal device when the first view is displayed, and the view hierarchy of all views displayed by the terminal device is automatically sent when the traversal result indicates that there is a second view with a higher view hierarchy than the first view. Compared with the related art that requires the user to manually feedback the content blocking situation online, the solution provided by the present disclosure can automatically detect the content, thereby avoiding manual intervention and improving the accuracy of content detection. In addition, since the terminal device does not perform the process of content detection, it can avoid a large amount of computing resources of the terminal device, thereby improving the processing performance and user experience of the terminal device.
[0104] In a possible implementation, the first determining module may include:
[0105] A first determining unit, configured to determine a first display page according to the first view information and the second view information;
[0106] The second determining unit is used to determine a content detection result according to the first display page.
[0107] In a possible implementation manner, the first determining unit may include:
[0108] a first determining subunit, configured to determine a first desensitized view according to a preset view desensitization rule and a view name in the first view information, and to determine a second desensitized view according to the view desensitization rule and the view name in the second view information, wherein the view desensitization rule is used to characterize a correspondence between a desensitized view and a view name, and the desensitized view is a view that does not contain user information;
[0109] The second determining subunit is used to determine a first display page according to the first desensitized view, the second desensitized view, the first view information and the second view information.
[0110] In a possible implementation manner, the first determining unit may include:
[0111] a third determining subunit, configured to determine a first desensitized view according to a preset view desensitization rule and the view name in the first view information, and to determine a second desensitized view according to the view desensitization rule and the view name in the second view information, wherein the view desensitization rule is used to characterize a correspondence between a desensitized view and a view name, and the desensitized view is a view that does not contain user information;
[0112] a rendering subunit, configured to render the first desensitized view according to a preset target display color to obtain a target desensitized view,
[0113] The fourth determining subunit is used to determine a first display page according to the target desensitized view, the second desensitized view, the first view information and the second view information.
[0114] In a possible implementation manner, the second determining unit may include:
[0115] A fifth determining subunit, configured to determine a target display size of a target display color area in the first display page;
[0116] The sixth determining subunit is configured to, when the target display size is smaller than the display size in the first view information, determine that the content detection result is used to indicate that the display content in the first view is blocked by the display content in the second view.
[0117] In a possible implementation, the device may further include:
[0118] a second determining module, configured to determine a first occlusion count caused by the display content in the second view to occlude the display content in the first view when the content detection result indicates that the display content in the first view is occluded by the display content in the second view, and there is only one second view;
[0119] The first transmission module is used to transmit the second view information to the alarm platform when the first occlusion times is greater than or equal to a preset occlusion times threshold, so that the alarm platform processes the second view.
[0120] In a possible implementation, the device may further include:
[0121] a third determining module, configured to determine a target view that blocks the display content in the first view when the content detection result indicates that the display content in the first view is blocked by the display content in the second view, and there are multiple second views;
[0122] A fourth determining module, configured to determine a second occlusion count of occlusions caused by the display content in the target view to the display content in the first view;
[0123] The second transmission module is used to transmit the view information of the target view to the alarm platform when the second occlusion number is greater than or equal to a preset occlusion number threshold, so that the alarm platform processes the target view.
[0124] Based on the same concept, the embodiment of the present disclosure also provides a content detection device, such as Figure 5 As shown, the device may include:
[0125] A traversal module 501, configured to traverse the view hierarchy of all views in the second display page in response to the presence of a first view for displaying target content in the second display page;
[0126] A sending module 502 is used to send the first view information of the first view and the second view information of the second view to the server when the traversal result indicates that there is a second view with a higher view level than the first view in the second display page, so that the server determines the content detection result according to the first view information and the second view information, and the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
[0127] Through the above technical solution, when there is a first view for displaying the target content in the second display page, the view hierarchy of all views in the second display page can be traversed, and when the traversal result indicates that there is a second view with a higher view hierarchy than the first view in the second display page, the first view information of the first view and the second view information of the second view are sent to the server, so that the server determines the content detection result according to the first view information and the second view information. Compared with the related art that requires users to manually feedback the content occlusion situation online, the solution provided by the present disclosure can automatically detect the content, thereby avoiding manual intervention and improving the accuracy of content detection. In addition, since the terminal device does not perform the content detection process, it can avoid a large amount of computing resources of the terminal device, thereby improving the processing performance and user experience of the terminal device.
[0128] In a possible implementation, the sending module may include:
[0129] a first sending unit, configured to send all the first view information and the second view information between a previous sending time and a current sending time to a server for each preset sending time, or,
[0130] The second sending unit is used to determine the number of traversals to the second view, and when the number of traversals is greater than or equal to a preset traversal number threshold, send the first view information of the first view and the second view information of the second view obtained in each traversal to the server.
[0131] Based on the same concept, an embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of any one of the methods described in the first aspect are implemented.
[0132] Based on the same concept, the embodiment of the present disclosure further provides an electronic device, including:
[0133] a storage device having a computer program stored thereon;
[0134] A processing device is used to execute the computer program in the storage device to implement the steps of any one of the methods in the first aspect.
[0135] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0136] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0137] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0138] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0139] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0140] In some embodiments, any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) can be used for communication, and can be interconnected with any form or medium of digital data communication (e.g., communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), internets (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 networks.
[0141] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0142] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: receives first view information and second view information sent by a terminal device, wherein the first view information and the second view information are sent when the terminal device displays a first view by traversing the view hierarchy of all views displayed by the terminal device, and when the traversal result indicates that there is a second view with a view hierarchy higher than the first view, the first view is used to display target content, the first view information is the view information of the first view, and the second view information is the view information of the second view; and determines a content detection result based on the first view information and the second view information, and the content detection result is used to indicate whether the displayed content in the first view is blocked by the displayed content in the second view.
[0143] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: in response to the presence of a first view for displaying target content in a display page, traverses the view hierarchy of all views in the display page; when the traversal result indicates that there is a second view in the display page with a view hierarchy higher than the first view, sends first view information of the first view and second view information of the second view to a server, so that the server determines a content detection result based on the first view information and the second view information, and the content detection result is used to indicate whether the display content in the first view is obscured by the display content in the second view.
[0144] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0145] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0146] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.
[0147] The functions described above herein 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0148] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0149] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0150] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0151] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A content detection method, characterized in that: The method comprises: receiving first view information and second view information sent by a terminal device, wherein the first view information and the second view information are sent when the terminal device displays a first view by traversing the view hierarchy of all views displayed by the terminal device and when the traversal result indicates that there is a second view with a higher view hierarchy than the first view, the first view is used to display target content, the first view information is view information of the first view, and the second view information is view information of the second view; A content detection result is determined according to the first view information and the second view information, where the content detection result is used to indicate whether displayed content in the first view is blocked by displayed content in the second view.
2. The method according to claim 1, characterized in that The determining a content detection result according to the first view information and the second view information includes: Determining a first display page according to the first view information and the second view information; A content detection result is determined according to the first display page.
3. The method according to claim 2, characterized in that The determining a first display page according to the first view information and the second view information includes: Determine a first desensitized view according to a preset view desensitization rule and the view name in the first view information, and determine a second desensitized view according to the view desensitization rule and the view name in the second view information, wherein the view desensitization rule is used to characterize the correspondence between the desensitized view and the view name, and the desensitized view is a view that does not contain user information; A first display page is determined according to the first desensitized view, the second desensitized view, the first view information, and the second view information.
4. The method according to claim 2, characterized in that: The determining a first display page according to the first view information and the second view information includes: Determine a first desensitized view according to a preset view desensitization rule and the view name in the first view information, and determine a second desensitized view according to the view desensitization rule and the view name in the second view information, wherein the view desensitization rule is used to characterize the correspondence between the desensitized view and the view name, and the desensitized view is a view that does not contain user information; Rendering the first desensitized view according to a preset target display color to obtain a target desensitized view; A first display page is determined according to the target desensitized view, the second desensitized view, the first view information and the second view information.
5. The method according to claim 4, characterized in that The determining of the content detection result according to the first display page includes: Determining a target display size of a target display color area in the first display page; When the target display size is smaller than the display size in the first view information, determining the content detection result is used to indicate that the display content in the first view is blocked by the display content in the second view.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the content detection result indicates that the display content in the first view is blocked by the display content in the second view, and there is only one second view, determining a first blocking number of times that the display content in the second view blocks the display content in the first view; When the first occlusion times is greater than or equal to a preset occlusion times threshold, the second view information is transmitted to an alarm platform so that the alarm platform processes the second view.
7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the content detection result indicates that the display content in the first view is blocked by the display content in the second view, and there are multiple second views, determining a target view that blocks the display content in the first view; Determine a second occlusion count in which the display content in the target view occludes the display content in the first view; When the second occlusion number is greater than or equal to a preset occlusion number threshold, the view information of the target view is transmitted to an alarm platform, so that the alarm platform processes the target view.
8. A content detection method, characterized in that: The method comprises: In response to a first view for displaying target content existing in a second display page, traversing a view hierarchy of all views in the second display page; When the traversal result indicates that there is a second view with a higher view level than the first view in the second display page, the first view information of the first view and the second view information of the second view are sent to the server, so that the server determines a content detection result based on the first view information and the second view information, and the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
9. The method according to claim 8, characterized in that The sending the first view information of the first view and the second view information in the second view to the server includes: For each preset sending time, all the first view information and the second view information between the last sending time and the current sending time are sent to the server, or, The number of traversals to the second view is determined, and when the number of traversals is greater than or equal to a preset traversal number threshold, the first view information of the first view and the second view information of the second view obtained in each traversal are sent to the server.
10. A content detection device, characterized in that: The device comprises: a receiving module, configured to receive first view information and second view information sent by a terminal device, wherein the first view information and the second view information are sent when the terminal device displays a first view by traversing the view hierarchy of all views displayed by the terminal device and when the traversal result indicates that there is a second view with a higher view hierarchy than the first view, the first view is used to display target content, the first view information is view information of the first view, and the second view information is view information of the second view; The first determination module is used to determine a content detection result according to the first view information and the second view information, wherein the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
11. A content detection device, characterized in that: The device comprises: A traversal module, configured to traverse the view hierarchy of all views in the second display page in response to the presence of a first view for displaying target content in the second display page; A sending module is used to send first view information of the first view and second view information of the second view to a server when a traversal result indicates that there is a second view with a higher view hierarchy than the first view in the second display page, so that the server determines a content detection result based on the first view information and the second view information, and the content detection result is used to indicate whether the display content in the first view is blocked by the display content in the second view.
12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 9 are implemented.
13. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 9.