Component display method and device, equipment and medium

By automatically detecting and correcting errors to handle component display exceptions, the problem of component display lag in video viewing scenarios is solved, the user experience is improved, and efficient processing of component display is achieved.

CN119025208APending Publication Date: 2024-11-26BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411114573.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Unusual situations are prone to occur when displaying components in video viewing scenarios, which affects the user experience. The existing technology relies on users to actively feedback to deal with problems.

Method used

Provide a component display method, which can obtain the display location information of target components and other components, perform abnormal detection, automatically perform error correction processing, and send abnormal information to the server for analysis and processing, realizing automatic detection and correction during component display wrong.

Benefits of technology

Discover and handle exceptions in a timely manner during component display, which improves component display effect, reduces user feedback dependence, and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025208A_ABST
    Figure CN119025208A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a component display method and device, equipment and a medium, and the method comprises the steps: obtaining a target component, a displayed component in a target page where the target component is located, and the display position information of an icon relative to a screen in response to a display triggering operation of the target component; performing component anomaly detection based on the target component, the displayed component and the display position information of the icon relative to the screen, and determining a component anomaly detection result; if it is determined that the component anomaly detection result is that the abnormal component exists, the abnormal component in the target page is subjected to error correction processing and displayed, and anomaly information of the abnormal component is sent to the server side for anomaly analysis processing. According to the method and the device, automatic detection and error correction during component display are realized, online component display abnormities are found and processed in time, the method and the device do not depend on user feedback, and problems are efficiently processed, so that the component display effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a component display method, device, equipment and medium. Background Art

[0002] With the development of technology, video watching has become an increasingly important form of entertainment for people. In the video watching scene, various components with different functions can be displayed. However, if abnormal situations occur during the display of these components, they can only rely on users' active feedback, and the problem handling is relatively delayed, which affects the user experience. Summary of the invention

[0003] In order to solve the above technical problems, the present disclosure provides a component display method, device, equipment and medium.

[0004] The present disclosure provides a component display method, the method comprising:

[0005] In response to a display triggering operation on a target component, obtaining display position information of the target component, components displayed in a target page where the target component is located, and icons relative to the screen;

[0006] Perform component anomaly detection based on the target component, the displayed component, and display position information of the icon relative to the screen, and determine a component anomaly detection result;

[0007] If it is determined that the component anomaly detection result shows that an abnormal component exists, error correction processing is performed on the abnormal component in the target page and it is displayed, and the abnormal information of the abnormal component is sent to the server for abnormal analysis processing.

[0008] The present disclosure also provides a component display device, the device comprising:

[0009] An acquisition module, configured to acquire, in response to a display trigger operation on a target component, display position information of the target component, components displayed in a target page where the target component is located, and icons relative to the screen;

[0010] A detection module, configured to perform component anomaly detection based on the target component, the displayed component, and display position information of the icon relative to the screen, and determine a component anomaly detection result;

[0011] The error correction module is used to perform error correction processing on the abnormal component in the target page and display it if it is determined that the component abnormality detection result is that an abnormal component exists, and send the abnormal information of the abnormal component to the server for abnormality analysis processing.

[0012] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the component display method provided in the embodiment of the present disclosure.

[0013] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the component display method provided by the embodiment of the present disclosure.

[0014] The technical solution provided by the embodiment of the present disclosure has the following advantages over the prior art: the component display solution provided by the embodiment of the present disclosure, in response to the display trigger operation of the target component, obtains the display position information of the target component, the displayed components and icons in the target page where the target component is located relative to the screen; performs component anomaly detection based on the display position information of the target component, the displayed components and icons relative to the screen, and determines the component anomaly detection result; if it is determined that the component anomaly detection result is that there is an abnormal component, the abnormal component in the target page is corrected and displayed, and the abnormal information of the abnormal component is sent to the server for abnormal analysis and processing. With the above technical solution, after the component is displayed and triggered, the display position information of all components and icons on the page where the component is located can be obtained, and component anomaly detection can be performed according to the display position information. When an abnormal component is detected, the abnormal component can be corrected and displayed, and the abnormal information is sent to the server for analysis and processing, realizing automatic detection and error correction when the component is displayed, timely discovering and processing the abnormal display of online components, not relying on user feedback, and efficiently handling problems, thereby improving the component display effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] 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 accompanying 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.

[0016] Figure 1 A schematic diagram of a flow chart of a component display method provided in an embodiment of the present disclosure;

[0017] Figure 2 A schematic diagram of an abnormal scene view provided by an embodiment of the present disclosure;

[0018] Figure 3 A schematic diagram of another abnormal scene view provided by an embodiment of the present disclosure;

[0019] Figure 4 A schematic diagram of another abnormal scene view provided in an embodiment of the present disclosure;

[0020] Figure 5 A flowchart of another component display method provided in an embodiment of the present disclosure;

[0021] Figure 6 A schematic diagram of another abnormal scene view provided by an embodiment of the present disclosure;

[0022] Figure 7 A schematic diagram of another abnormal scene view provided in an embodiment of the present disclosure;

[0023] Figure 8 A schematic diagram of a component display process provided by an embodiment of the present disclosure;

[0024] Fig. 9 A structural schematic diagram of a component display device provided in an embodiment of the present disclosure;

[0025] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] 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.

[0027] 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.

[0028] 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.

[0029] 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.

[0030] 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".

[0031] 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.

[0032] In order to solve the problem of delayed exception handling in component display in the related art, an embodiment of the present disclosure provides a component display method, which is introduced below in conjunction with a specific embodiment.

[0033] Figure 1 The present invention provides a flowchart of a component display method provided by an embodiment of the present invention. The method can be executed by a component display device, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method includes:

[0034] Step 101: In response to a display triggering operation on a target component, display position information of the target component, displayed components and icons in a target page where the target component is located relative to the screen is obtained.

[0035] Among them, the component can be an interface element with a specific function in the user interface (UI), for example, the component can include an information card, a button, etc., and the information card or button can jump to the corresponding page or external application after being clicked by the user. The target component can be the component that needs to be displayed at present, and the number of target components can be one or more, with no specific limit. The display trigger operation can be an operation to trigger the display of the target component, that is, an operation to initialize the target component. The display trigger operation of different components can be different. For example, when a component is displayed synchronously with the page, the display trigger operation of the component is the display operation of the page. When a component is displayed after a page is displayed for 3 seconds, the display trigger operation of the component is 3 seconds after the page is displayed.

[0036] The target page may be the page where the target component is located. The specific business scenario of the page is not limited. The embodiment of the present disclosure takes the video scenario as an example. Taking the target page including a video as an example, the video may be a short video whose playback time is less than or equal to the time threshold. The displayed component may be a component that has been displayed on the target page before the display trigger operation of the target component. The number of displayed components is not limited. The icon may be an element that follows the display when the display is initialized in the target page. The icon may also be regarded as a type of component. The icon may include a top tab bar, a bottom tab bar, an avatar icon, a comment icon, etc. The top tab bar and the bottom tab bar may be used to switch between different functional pages or different contents. For example, the bottom tab bar may support users to switch between multiple functional pages such as the home page, the friend page, and the message page. The display location information may include the display coordinates of the target component, the displayed component, and the icon relative to the screen.

[0037] Specifically, when the component display device receives a display trigger operation for the target component, it can obtain the display coordinates of the target component relative to the screen, the displayed components and images in the target page where the target component is located relative to the screen, that is, the display position information. Specifically, the display position information can be obtained from the module that controls the rendering and display in the background before the target component is displayed.

[0038] Step 102: Perform component anomaly detection based on the target component, displayed components, and display position information of the icon relative to the screen, and determine a component anomaly detection result.

[0039] Component abnormality detection can be a detection of whether there are any abnormalities in the display effect of the component before and during the display, and can include detection of dimensions such as the position, content, and color of the component. The component abnormality detection result can include the presence of an abnormal component or the detection passing. In the embodiment of the present disclosure, if there are no abnormal components after all the detection methods set for component abnormality detection have been passed, it can be determined that the detection has passed.

[0040] Specifically, the component display device can perform component anomaly detection in the position dimension of the target page based on the display position information of the target component, the displayed component, and the icon relative to the screen, which can specifically include detecting whether there is overlap, exceeding the screen, not displayed, etc., to determine the component anomaly detection result.

[0041] In some embodiments, component anomaly detection is performed based on the display position information of the target component, displayed components and icons relative to the screen, and the component anomaly detection result is determined, which may include: performing at least one of the following position judgments based on the display position information of the target component, displayed components and icons relative to the screen: judging whether there is position overlap between the target component, displayed components and icons, judging whether there are components beyond the screen between the target component and the displayed components, and judging whether the width and height of the target component are zero; determining the component anomaly detection result based on the result of at least one position judgment.

[0042] Among them, the position judgment can be the judgment included in the detection of the position dimension in the component abnormality detection, and the position judgment method can include multiple methods, which are set according to the actual situation. Position overlap can be the overlap of two or more elements in visual or layout. The out-of-screen component can be a component whose partial area is not displayed on the screen.

[0043] When the component display device performs component anomaly detection in the position dimension, it can perform at least one of the following position judgments based on the display position information of the target component, the displayed component, and the icon relative to the screen: based on the display coordinates of the target component, the displayed component, and the icon relative to the screen, determine whether there is an overlapping area in a group of two or more. When there is an overlapping area, there is a position overlap, otherwise there is no position overlap. Determine whether the display coordinates of the target component and the displayed component relative to the screen are negative. If so, there is a component that exceeds the screen; otherwise, there is no component that exceeds the screen. Determine the width and height of the target component to be displayed based on the display coordinates relative to the screen, and determine whether the width and height are zero.

[0044] Obtain the result of at least one of the above position judgments. If the result of at least one position judgment is yes, determine that the component abnormality detection result is that there is an abnormal component; if the results of all position judgments are no, then other methods of component abnormality detection can be continued. If there are no abnormal components in all tests, determine that the component abnormality detection result is that the test passed.

[0045] Step 103: If it is determined that the component anomaly detection result shows that an abnormal component exists, error correction processing is performed on the abnormal component in the target page and it is displayed, and the abnormal information of the abnormal component is sent to the server for abnormal analysis processing.

[0046] Among them, the abnormal component can be a component that has an abnormal problem during display. In the embodiment of the present disclosure, the abnormal component can be a target component or a component that has been displayed on the target page. The displayed component may become an abnormal component due to the display abnormality caused by the execution of corresponding functional logic.

[0047] In some embodiments, determining that a component abnormality detection result is the presence of an abnormal component may include: if at least one result of a position judgment includes at least one of the following: the presence of a position overlap, the presence of a component beyond the screen, and the width and / or height of a target component is zero, then determining that the component abnormality detection result is the presence of an abnormal component, and determining the overlapping component, the component beyond the screen, and / or the target component corresponding to the position overlap as an abnormal component.

[0048] The out-of-screen component may be a component that is not displayed on the screen in some areas, and the number of out-of-screen components may be one or more. The overlapping component may be a component that overlaps with other components or icons, and the number of overlapping components may be one or more. Specifically, when the component display device determines the component abnormality detection result based on the result of at least one position judgment, if the result of at least one position judgment includes at least one of the existence of position overlap, the existence of an out-of-screen component, and the width and / or height of the target component being zero, the component abnormality detection result may be determined as the existence of an abnormal component, and the position judgment result may be determined as the corresponding component as an abnormal component, that is, the overlapping component corresponding to the position overlap, the out-of-screen component, and / or the target component may be determined as an abnormal component. Afterwards, the component display device may perform error correction processing on the abnormal component, and render and display the target page including the abnormal component after error correction processing, at which time the target page also includes the target component, and at the same time, the relevant information of the abnormal component may be obtained and sent to the server as abnormal information for abnormal analysis processing, and the server may be set in the cloud, which is only an example.

[0049] In some embodiments, error correction processing includes hiding or moving. For example, when the abnormal component includes two overlapping components with overlapping positions, the error correction processing may be to hide the overlapping component with an earlier display time among the two overlapping components; when the abnormal component includes an overlapping component that overlaps with the target icon position, the overlapping component is moved until it does not overlap with the target icon position, and the specific moving direction and moving distance may be set according to actual conditions; when the abnormal component is an out-of-screen component, the out-of-screen component may be hidden or moved until the entire area of ​​the out-of-screen component is within the screen; when the abnormal component is a target component, since the target component should have been displayed but was not, error correction processing may not be performed. In the above scheme, online bottom-up error correction processing may be performed for abnormal components that have abnormalities during component display, so that component display abnormalities can be resolved as quickly as possible, reducing the negative impact of abnormal components on user viewing and improving component display effects.

[0050] In some embodiments, the abnormal information of the abnormal component includes at least one of the following: basic attribute information of the abnormal component, display coordinates of the abnormal component and its associated icons relative to the screen, the size of the screen, and identification information of the main content of the target page. The basic attribute information of the abnormal component includes information such as the identity document (ID) and text of the abnormal component; the associated icon can be an icon associated with the display abnormality of the abnormal component, for example, the associated icon can be an icon with a position overlap with the abnormal component; the main content of the target page can include video, text, etc., and the embodiment of the present disclosure takes the main content as a video as an example, in which case the identification information of the main content can be a video ID. Optionally, the abnormal information can also include an abnormality type, which can be determined based on the abnormal component. In the embodiment of the present disclosure, the abnormality type can include two types: position abnormality and content abnormality. Position abnormality can include position overlap, exceeding the screen, no display, etc., and content abnormality can include missing text, mismatch with the main content, etc.

[0051] In some embodiments, the abnormal analysis process includes at least one of the following: drawing an abnormal scene view of abnormal components, clustering abnormal components according to at least one factor, issuing an alarm when the number of abnormal components of the target factor reaches a quantity threshold within a preset time, and performing analysis based on abnormal information through debugging.

[0052] Among them, the abnormal analysis processing can be the automatic analysis, alarm and other processing automatically performed by the server according to the abnormal information of the abnormal component, and can include multiple processing methods, which are set according to the actual situation. The abnormal scenario view can be a view obtained by reproducing the scene of the abnormal problem when the abnormal component is displayed, which can intuitively reflect the abnormal situation of the abnormal component. Factors can be relevant information when the abnormal component is displayed. Factors can include the identification of the component, the identification of the main content, etc. A factor can represent a sub-scenario. The target factor can be a key focus factor set according to business needs, which can include one or more. The preset time and quantity threshold can be set according to the actual situation, and dynamic configuration is supported. For example, the preset time can be 1 hour and the quantity threshold is 100.

[0053] After the server receives the abnormal information of the abnormal component sent by the client, it can perform at least one of the following abnormal analysis and processing: draw the corresponding abnormal scene view according to the abnormal information of the abnormal group, so that the relevant personnel can quickly know the abnormal situation; cluster the abnormal components according to at least one factor, and cluster the abnormal components with the same factor together, so as to converge the abnormal problem to a more accurate sub-scenario, which is convenient for subsequent problem analysis; obtain the number of abnormal components of the target factor once at a preset interval, and determine whether the number reaches the number threshold. If so, send an alarm message to the business personnel corresponding to the abnormal component, and the alarm message may include the abnormal information of the abnormal component, the above-mentioned abnormal scene view, etc., so that the business personnel can find the problem of the abnormal component in the first time and solve it efficiently; reproduce the problem on the client based on the abnormal information of the abnormal component, and analyze the cause of the abnormality through debugging. After obtaining the relevant information of the abnormal component sent by the client, the server can automatically perform a series of analysis and processing, automatically reproduce the abnormal effect, and efficiently analyze the problem, quickly find the cause and solve it.

[0054] For example, Figure 2 A schematic diagram of an abnormal scene view provided by an embodiment of the present disclosure, such as Figure 2 As shown, the figure shows an abnormal scene view of an abnormal type of location overlap in a location abnormality. In the figure, component 201 and component 202 are two overlapping components with overlapping positions, and there is an overlapping area between the two components. For example, Figure 3 A schematic diagram of another abnormal scene view provided by an embodiment of the present disclosure, such as Figure 3 As shown, the figure shows an abnormal scene view of an abnormal type of position abnormality exceeding the screen, and the left part of the component 301 in the figure exceeds the screen. Figure 4 A schematic diagram of another abnormal scene view provided by an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the figure shows an abnormal scene view that is not displayed in the abnormality type of location abnormality. Component 401 in the figure is the target component. The target component is displayed and the triggering operation should be displayed on the target page. The dotted line of component 401 indicates that it is not displayed because the width and / or height is zero.

[0055] The component display scheme provided by the embodiment of the present disclosure, in response to the display trigger operation of the target component, obtains the display position information of the target component, the displayed components and icons in the target page where the target component is located relative to the screen; performs component anomaly detection based on the display position information of the target component, the displayed components and icons relative to the screen, and determines the component anomaly detection result; if it is determined that the component anomaly detection result is that there is an abnormal component, the abnormal component in the target page is corrected and displayed, and the abnormal information of the abnormal component is sent to the server for abnormal analysis and processing. By adopting the above technical scheme, after the component is displayed and triggered, the display position information of all components and icons on the page where the component is located can be obtained, and component anomaly detection can be performed based on the display position information. When an abnormal component is detected, the abnormal component can be corrected and displayed, and the abnormal information is sent to the server for analysis and processing, which realizes automatic detection and error correction when the component is displayed, timely discovers and handles online component display anomalies, does not rely on user feedback, and efficiently handles problems, thereby improving the component display effect.

[0056] For example, Figure 5 A flowchart of another component display method provided by an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, in a feasible implementation manner, the component display method may further include:

[0057] Step 501: Obtain component content information of a target component and displayed components, and the main text of the main content of a target page.

[0058] Among them, component content information can be a general term for information related to the text, color and other content included in a component. In the embodiment of the present disclosure, the component content information can include component text and coordinates, coordinates of pure color areas, where the pure color area can be an area with a single color greater than the area threshold, and the area threshold can be set according to actual conditions, for example, the area threshold can be set to one-third of the component area, which is only an example. The main content of the target page can be the content that the target page focuses on displaying or the content with the largest display area, for example, the target page is a video page, the main content is a video, the target page is a document page, and the main content is text; the main text of the main content can be all the text content included in the main content. In the embodiment of the present disclosure, the main content of the target page includes a video as an example, and the main text of the main content is the video text information of the video. The video text information can include the video title, the account name of the video, the description text of the video, the text obtained by identifying the video, etc. For example, when the main content of the target page is an introduction video of A milk, the main text of the main content includes the video title of the introduction video, the account name of A, the description text of the introduction video, and the text obtained by identifying the introduction video through image-to-text technology, etc.

[0059] Specifically, when the component display device performs component anomaly detection, it can also use image-to-text technology to identify the target component and the displayed component to obtain component text information of the target component and the displayed component. The image-to-text technology here can be, for example, optical character recognition (OCR) technology; and obtain the main text of the main content of the target page for subsequent use.

[0060] Step 502: Based on the component content information of the target component and the displayed component, and the main text, component anomaly detection is performed on the target component and the displayed component, respectively, to determine the component anomaly detection result.

[0061] Specifically, the component display device can perform component anomaly detection in the content dimension of the target page based on the target component, component content information of the displayed component, and the main text. Specifically, it can include detecting whether the text of each component matches the main content, detecting whether there is a pure color area in the component, and identifying that the pure color area includes text, etc., to determine the component anomaly detection result.

[0062] In some embodiments, based on the target component, component content information of the displayed component, and the main text, component anomaly detection is performed on the target component and the displayed component respectively, and the component anomaly detection result is determined, including: performing at least one of the following content judgments on each component in the target component and the displayed component: judging whether the component text in the component content information of the component successfully matches the main text, and judging whether the solid color area of ​​the component includes text; and determining the component anomaly detection result of the component based on the result of at least one content judgment. Optionally, determining that the component anomaly detection result is that an abnormal component exists includes: if at least one component in the target component and the displayed component fails to match the main text and / or the solid color area does not include text, then determining the component anomaly detection result is that an abnormal component exists, and determining the at least one component as an abnormal component.

[0063] When the component display device performs component anomaly detection in the content dimension of the target page, it can perform at least one of the following content judgments on each component of the target component and the displayed components: match the component text in the component content information of the component with the main text to determine whether the match is successful. The specific matching process can be to extract the keywords corresponding to the component text and the main text respectively, and match the keywords of the component text with the keywords of the main text one by one. Here, if the similarity of the two keywords is greater than the similarity threshold, it means that the match is successful. If there is no successful match between a keyword of the component text and a keyword of the main text, the component text of the component fails to match the main text; otherwise, the component text of the component successfully matches the main text. Determine whether the solid color area of ​​the component includes text. Specifically, it can be determined whether there is overlap based on the coordinates of the solid color area of ​​the component and the coordinates of the component text. If so, it means that the solid color area includes text, otherwise, it means that the solid color area does not include text.

[0064] Obtain the result of at least one of the above content judgments for each component. If there is at least one component for which the result of at least one of the above content judgments is negative, that is, there is at least one component whose component text fails to match the main text and / or the solid color area does not include text, then it can be determined that the component abnormality result is the existence of an abnormal component, and the at least one component is determined to be an abnormal component; if the result of at least one of the above content judgments for all components is yes, then other methods of component abnormality detection can be continued. If there is no abnormal component in all detections, the component abnormality detection result is determined to be a passed detection.

[0065] Afterwards, the component display device can perform error correction processing on the above-mentioned abnormal component. When the abnormal component is a component whose component text fails to match the main text and / or the solid color area does not include text, the error correction processing can be to hide the abnormal component; and render and display the target page including the abnormal component after the error correction processing. At this time, the target page also includes the target component. At the same time, the relevant information of the abnormal component can also be obtained and sent to the server as exception information for exception analysis and processing.

[0066] For example, Figure 6 A schematic diagram of another abnormal scene view provided by an embodiment of the present disclosure is shown as follows: Figure 6 As shown, the figure shows an abnormal scene view in which the abnormal type is a missing text in a content abnormality. In the figure, component 601 includes a solid color area 602 with missing text. The solid color area should have a problem, but it is not displayed normally.

[0067] Optionally, after the server receives the abnormal information of the abnormal component sent by the client, for the abnormal component whose abnormal type is the lack of text in the content abnormality, the abnormal analysis process may also include obtaining the corresponding standard rendering according to the identifier of the abnormal component, judging whether the solid color area lacking text of the abnormal component needs to display text according to the standard rendering, if not, it means that the solid color area lacking text does not need text when the standard effect of the abnormal component is displayed, and the detection of the abnormal component in the component abnormality detection rule can be changed, and the abnormal type of the lack of text in the content abnormality of the abnormal component is not reported. The rules for component abnormality detection in the disclosed embodiment can be changed dynamically to improve the flexibility of dynamic adjustment of component abnormality detection and the accuracy of detection.

[0068] For example, Figure 7 A schematic diagram of another abnormal scene view provided in an embodiment of the present disclosure is shown as follows: Figure 7 As shown, the figure takes the main content as a video as an example to show the abnormal scene view in which the abnormal type is a content abnormality that does not match the main content. In the figure, the component text of component 701 fails to match the video text information of the video.

[0069] In the above scheme, component anomaly detection can include content dimension detection based on the above position dimension detection, which can specifically include whether the text matches the main text successfully and / or whether the solid color area includes text. Through the detection of the content dimension, component display anomalies in the content dimension can be discovered in time, further ensuring the correctness of the content displayed by the component and improving the component display effect.

[0070] In some embodiments, the component display method may further include: performing a component anomaly detection operation for the target page at a preset time interval. The preset time may be the interval time for periodic component anomaly detection after the target page is displayed, and the specific preset time may be set according to actual conditions, for example, the preset time is set to 30 seconds. The component display device may perform the component anomaly detection operation disclosed in the above embodiment at a preset time interval after the target page is displayed, and avoid component anomalies such as abnormal position and abnormal content of the component display caused by other logics after the component display through periodic detection, thereby further ensuring the correctness of the component display.

[0071] Next, the component display method provided by the embodiment of the present disclosure is further described by a specific example. Figure 8 A schematic diagram of a component display process provided by an embodiment of the present disclosure, such as Figure 8As shown in the figure, the specific component display process is demonstrated by taking the target page as a page including a video as an example: the current page initializes the target component; component anomaly detection; determines whether there is an abnormal component, and if so, obtains the abnormal information of the abnormal component, reports it to the cloud, and triggers the bottom-up logic, that is, the above-mentioned error correction processing; otherwise, returns to perform periodic component anomaly detection according to the preset time.

[0072] The detection timing of component anomaly detection may include actively triggering detection before component initialization display, and subsequently triggering detection once at each preset interval. The rules for component anomaly detection may include: obtaining the display coordinates of each component in the target page relative to the screen, as well as the display coordinates of the target page icon relative to the screen, the component content information of each component, and the main text of the main content, and performing at least one of the following detections: determining whether there is position overlap between components and icons, whether there is a component that exceeds the screen, whether there is a component whose width and / or height is zero, whether the component text in the component content information of each component fails to match the main text, whether the solid color area of ​​each component does not include text, etc. If the result of at least one detection is yes, it is determined that the component anomaly detection result is that there is an abnormal component, and a comprehensive error correction process can be triggered according to the abnormal type of the abnormal component, for example: if there is an overlap between two components, the client can hide the component that appears first and only display the component that appears later; if the component and the icon overlap, the client can move the component up to the icon; if part of the component exceeds the screen, either hide the component or move the component into the screen; if the component text and video text information of the component are inconsistent, hide the component; if there is no text in the solid color area of ​​the component, hide the component; and send the abnormal information of the abnormal component to the server.

[0073] The server automatically analyzes and automatically alarms according to the abnormal information of the abnormal component. The automatic analysis process may include: according to the component ID, text, coordinates, size, screen size, and abnormal type of the uploaded abnormal component, the abnormal scene can be automatically reproduced and the abnormal scene view can be drawn; for the abnormal type of the solid color area of ​​the abnormal component that does not include text, the standard effect of the component will be queried according to the component ID to confirm whether the text is not required or the text is displayed normally. If the standard effect is that the text is not required, then the rule change will be issued and the abnormal type of the abnormal component will no longer be reported; during analysis, the server can cluster according to the component ID, video ID, information ID or abnormal type, so as to facilitate the convergence of the problem to a more accurate sub-scene and facilitate problem analysis; output an overall abnormal report at a set interval, distinguish the situation of each sub-scene, and send it to the corresponding business party at a fixed time, and the set time can be one day. The automatic alarm process may include: when the problem of a sub-scene reaches a certain level, such as 100 / hour (dynamic configuration can be supported), the alarm information will be automatically sent to the corresponding business party immediately; according to the abnormal information of the abnormal component, the problem can be reproduced locally to analyze the cause through debugging.

[0074] The component display scheme of the disclosed embodiment realizes that when a component display anomaly occurs, the client can collect and report relevant information of the corresponding component and the main content of the page where it is located. After the server collects this information, the abnormal effect can be reproduced quickly and automatically. The disclosure mainly targets at least one of the following abnormal situations of the component: when multiple components are displayed in a scene, there may be overlap between components; when only one component is displayed, it may also overlap with other existing views; part of the content of the component appears outside the screen; the text on the component, except for the title, is not displayed; the text content of the component does not match the current main content, for example, when the main content is a video, the text of the component does not match the text of the video, and the text of account B appears in the video of account A; the component has triggered the display logic, but the height or width is 0, resulting in a failure to display normally, etc. The above-mentioned component display anomalies can be monitored and corrected online, and the abnormal information can be automatically collected and reported. The server can perform efficient analysis and automatic alarms, conduct subsequent statistics and targeted processing, and promptly discover online component display anomalies without relying on user feedback. It supports client-side error correction and restores the impact of UI problems on user experience. It can efficiently analyze problems, facilitate cause identification and resolution, and reduce negative impacts.

[0075] Fig. 9 This is a schematic diagram of the structure of a component display device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Fig. 9 As shown, the device comprises:

[0076] The acquisition module 901 is used to acquire, in response to a display triggering operation on a target component, display position information of the target component, components displayed in a target page where the target component is located, and icons relative to the screen;

[0077] A detection module 902 is used to perform component anomaly detection based on the target component, the displayed component, and the display position information of the icon relative to the screen, and determine a component anomaly detection result;

[0078] The error correction module 903 is used to perform error correction processing on the abnormal component in the target page and display it if it is determined that the component abnormality detection result is that an abnormal component exists, and send the abnormal information of the abnormal component to the server for abnormality analysis processing.

[0079] Optionally, the detection module 902 is specifically used for:

[0080] According to the display position information of the target component, the displayed component and the icon relative to the screen, at least one of the following position judgments is performed: judging whether there is position overlap between the target component, the displayed component and the icon, judging whether there are components beyond the screen of the target component and the displayed component, and judging whether the width and height of the target component are zero;

[0081] A component abnormality detection result is determined based on the result of the at least one position judgment.

[0082] Optionally, the error correction module 903 is used to:

[0083] If the result of at least one position judgment includes at least one of the following: there is position overlap, there is a component that exceeds the screen, and the width and / or height of the target component is zero, then the component abnormality detection result is determined to be the existence of an abnormal component, and the overlapping component corresponding to the position overlap, the component that exceeds the screen, and / or the target component are determined as the abnormal component.

[0084] Optionally, the device further includes another detection module, including:

[0085] The first unit is used to obtain the target component, component content information of the displayed component, and the main text of the main content of the target page;

[0086] The second unit is used to perform component anomaly detection on the target component and the displayed component based on the component content information of the target component and the displayed component, and the main text, and determine the component anomaly detection result.

[0087] Optionally, the second unit is used to:

[0088] Perform at least one of the following content judgments on each of the target component and the displayed components: judging whether the component text in the component content information of the component successfully matches the main text, and judging whether the solid color area of ​​the component includes text;

[0089] A component anomaly detection result of the component is determined according to a result of the at least one content judgment.

[0090] Optionally, the error correction module 903 is used to:

[0091] If the component text of at least one component among the target component and the displayed components fails to match the main text and / or the solid color area does not include text, the component abnormality detection result is determined to be the existence of an abnormal component, and the at least one component is determined to be an abnormal component.

[0092] Optionally, the main content of the target page includes a video, and the main text of the main content is video text information of the video.

[0093] Optionally, the device further comprises a periodic module, configured to:

[0094] The component anomaly detection operation is performed once for the target page at a preset time interval.

[0095] Optionally, the error correction process includes hiding or moving, and the abnormal information of the abnormal component includes at least one of the following: basic attribute information of the abnormal component, display coordinates of the abnormal component and its associated icon relative to the screen, the size of the screen, and identification information of the main content of the target page.

[0096] Optionally, the abnormal analysis processing includes at least one of the following: drawing an abnormal scene view of the abnormal component, clustering the abnormal components according to at least one factor, issuing an alarm when the number of abnormal components of the target factor reaches a quantity threshold within a preset time, and performing analysis based on the abnormal information through debugging.

[0097] The component display device provided in the embodiments of the present disclosure can execute the component display method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0098] The embodiments of the present disclosure further provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the component display method provided by any embodiment of the present disclosure.

[0099] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.

[0100] The following specific reference Fig.10 , which shows a schematic diagram of the structure of an electronic device 1000 suitable for implementing the embodiment of the present disclosure. The electronic device 1000 in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 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.

[0101] like Fig.10 As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0102] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 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 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 1000 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.

[0103] 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 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the component display method of the embodiment of the present disclosure are executed.

[0104] 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.

[0105] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0106] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0107] 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: in response to the display trigger operation of the target component, obtains the display position information of the target component, the displayed components and the icons in the target page where the target component is located relative to the screen; performs component anomaly detection based on the display position information of the target component, the displayed components and the icons relative to the screen, and determines the component anomaly detection result; if it is determined that the component anomaly detection result is the existence of an abnormal component, performs error correction processing on the abnormal component in the target page and displays it, and sends the abnormal information of the abnormal component to the server for abnormal analysis processing.

[0108] 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., through the Internet using an Internet service provider).

[0109] 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.

[0110] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0111] 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.

[0112] 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.

[0113] 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 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.

[0114] 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.

[0115] 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.

[0116] Although the subject matter has been described in language specific to structural features and / or methodological logical 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.

Claims

1. A component display method, characterized in that: include: In response to a display triggering operation on a target component, obtaining display position information of the target component, components displayed in a target page where the target component is located, and icons relative to the screen; Perform component anomaly detection based on the target component, the displayed component, and display position information of the icon relative to the screen, and determine a component anomaly detection result; If it is determined that the component anomaly detection result shows that an abnormal component exists, error correction processing is performed on the abnormal component in the target page and it is displayed, and the abnormal information of the abnormal component is sent to the server for abnormal analysis processing.

2. The method according to claim 1, characterized in that Performing component anomaly detection based on the target component, the displayed component, and the display position information of the icon relative to the screen, and determining a component anomaly detection result, includes: According to the display position information of the target component, the displayed component and the icon relative to the screen, at least one of the following position judgments is performed: judging whether there is position overlap between the target component, the displayed component and the icon, judging whether there are components beyond the screen of the target component and the displayed component, and judging whether the width and height of the target component are zero; A component abnormality detection result is determined based on the result of the at least one position judgment.

3. The method according to claim 2, characterized in that Determining that the component abnormality detection result is that an abnormal component exists includes: If the result of at least one position judgment includes at least one of the following: there is position overlap, there is a component that exceeds the screen, and the width and / or height of the target component is zero, then the component abnormality detection result is determined to be the existence of an abnormal component, and the overlapping component corresponding to the position overlap, the component that exceeds the screen, and / or the target component are determined as the abnormal component.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining component content information of the target component and the displayed component, and the main text of the main content of the target page; Based on the target component, the component content information of the displayed component, and the main text, component anomaly detection is performed on the target component and the displayed component respectively to determine a component anomaly detection result.

5. The method according to claim 4, characterized in that Based on the target component, the component content information of the displayed component, and the main text, component anomaly detection is performed on the target component and the displayed component respectively, and a component anomaly detection result is determined, including: Perform at least one of the following content judgments on each of the target component and the displayed components: judging whether the component text in the component content information of the component successfully matches the main text, and judging whether the solid color area of ​​the component includes text; A component anomaly detection result of the component is determined according to a result of the at least one content judgment.

6. The method according to claim 5, characterized in that Determining that the component abnormality detection result is that an abnormal component exists includes: If the component text of at least one component among the target component and the displayed components fails to match the main text and / or the solid color area does not include text, the component abnormality detection result is determined to be the existence of an abnormal component, and the at least one component is determined to be an abnormal component.

7. The method according to claim 4, characterized in that The main content of the target page includes a video, and the main text of the main content is the video text information of the video.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: The component anomaly detection operation is performed once for the target page at a preset time interval.

9. The method according to claim 1, characterized in that: The error correction process includes hiding or moving, and the abnormal information of the abnormal component includes at least one of the following: basic attribute information of the abnormal component, display coordinates of the abnormal component and its associated icon relative to the screen, the size of the screen, and identification information of the main content of the target page.

10. The method according to claim 1, characterized in that The abnormal analysis process includes at least one of the following: drawing an abnormal scene view of the abnormal component, clustering the abnormal components according to at least one factor, issuing an alarm when the number of abnormal components of the target factor reaches a quantity threshold within a preset time, and performing analysis based on the abnormal information through debugging.

11. A component display device, characterized in that: include: An acquisition module, configured to acquire, in response to a display triggering operation on a target component, display position information of the target component, components displayed in a target page where the target component is located, and icons relative to the screen; A detection module, configured to perform component anomaly detection based on the target component, the displayed component, and display position information of the icon relative to the screen, and determine a component anomaly detection result; The error correction module is used to perform error correction processing on the abnormal component in the target page and display it if it is determined that the component abnormality detection result is that an abnormal component exists, and send the abnormal information of the abnormal component to the server for abnormality analysis processing.

12. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the component display method described in any one of claims 1-10 above.

13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the component display method described in any one of claims 1 to 10.

Citation Information

Cited By

  • Page error correction method and device and electronic equipment

    CN119759637A

  • Page error correction method, device and electronic device

    CN119759637B