Automated Detection Method, Device, Equipment and Storage Medium for Danmu Display
An automated method using image recognition to verify pop-up comment display in video platforms addresses inefficiencies in manual verification, enhancing accuracy and efficiency in testing user identity and color settings.
Patent Information
- Application Number
- CN202010848886.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-21
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2040-08-21
AI Technical Summary
In the prior art, the barrage display test is inefficient and has low accuracy, and requires a lot of manual intervention and repetitive work. It is difficult to quickly and accurately verify whether the barrage display is correct before the system version is released.
By obtaining the target image of the target client, identifying the barrage element, and comparing it with the expected barrage element attribute information, we automatically detect whether there are errors in the barrage display process, and use the barrage interface protocol to generate barrage interface parameters to display barrage on the client, simplifying the test process.
It improves the efficiency and accuracy of barrage detection, reduces manual intervention, saves time, simplifies the barrage display process, and improves the user experience.
Smart Images

Figure CN114078244B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to an automated detection method, device, equipment and storage medium for bullet screen display. Background Art
[0002] With the development of Internet technology, people increasingly like to turn on the bullet screen function when watching dramas, movies and live videos on the Internet, in order to watch the bullet screens published by other users, or actively publish bullet screens and enjoy the fun brought by this interactive experience. When users send bullet screens, there are situations where they display identity information through the bullet screens, such as may display some account level information, or there are situations where the bullet screen content is set to different colors. In the prior art, before different system versions are released, it is necessary to test the main functions of the system, and whether the bullet screen can be successfully displayed is an important test process.
[0003] Currently, when testing bullet screens, send bullet screens through an account with identity information or special operations, and then the human eye is used to identify whether the corresponding bullet screen display is accurate. The repetitive work is large, it takes a lot of time, and both the efficiency and accuracy are relatively low. Summary of the Invention
[0004] Embodiments of this application provide an automated detection method, device, equipment and storage medium for bullet screen display, which are used to improve the efficiency and accuracy of bullet screen testing.
[0005] In the first aspect of this application, an automated detection method for bullet screen display is provided, including:
[0006] Obtain a target image of a target bullet screen displayed on a target interface of a target client;
[0007] Identify bullet screen elements in the target image;
[0008] When the identified bullet screen elements are inconsistent with the bullet screen elements indicated by the bullet screen element attribute information corresponding to the target bullet screen, it is indicated that the bullet screen display is incorrect, where the bullet screen element attribute information corresponding to the target bullet screen includes the attributes of the bullet screen elements and the corresponding attribute values.
[0009] In the second aspect of this application, an automated detection device for bullet screen display is provided, including:
[0010] An obtaining unit, configured to obtain a target image of a target bullet screen displayed on a target interface of a target client;
[0011] An identifying unit, configured to identify bullet screen elements in the target image;
[0012] An indication unit, configured to indicate a display error of a barrage when the recognized barrage element is inconsistent with the barrage element indicated by the barrage element attribute information corresponding to the target barrage, where the barrage element attribute information corresponding to the target barrage includes the attribute of the barrage element and the corresponding attribute value.
[0013] In a third aspect of the present application, there is provided a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the method of the first aspect is implemented.
[0014] In a fourth aspect of the present application, there is provided a computer-readable storage medium storing computer instructions. When the computer instructions run on a computer, the computer is caused to execute the method as in the first aspect.
[0015] Since the embodiments of the present application adopt the above technical solutions, they have at least the following technical effects:
[0016] The embodiments of the present application can obtain a target image of a target barrage displayed on a target interface of a target client and can recognize the barrage elements in the target image. In this way, the barrage elements of the displayed target barrage can be compared with the barrage elements indicated by the barrage element attribute information. According to whether the recognized barrage elements are consistent with the barrage elements indicated by the barrage element attribute information corresponding to the target barrage, it is possible to detect whether an error occurs in the display process of the target barrage. Compared with the related art that requires manual detection, the embodiments of the present application greatly improve the efficiency and accuracy of barrage detection and save time. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0018] Figure 1 It is a schematic diagram of an application scenario applicable to the embodiments of the present application;
[0019] Figure 2 It is a flowchart of an automated detection method for barrage display in the embodiments of the present application;
[0020] Figure 3 It is an example diagram of a target interface of a client provided by the embodiments of the present application for displaying a barrage;
[0021] Figure 4 It is an example diagram of a target interface of a client provided by the embodiments of the present application for displaying a barrage;
[0022] Figure 5 Schematic diagram of a medal with special rank attributes provided by an embodiment of the present application;
[0023] Figure 6 Schematic diagram of a medal with account rank attributes provided by an embodiment of the present application;
[0024] Figure 7 Schematic diagram of the method flow for a bullet screen to display a target bullet screen on a target interface of a target client according to bullet screen interface parameters in an embodiment of the present application;
[0025] Figure 8 Schematic diagram of the display of a medal bullet screen corresponding to a json string provided by an embodiment of the present application;
[0026] Figure 9 Schematic diagram of the process of an automated detection method for bullet screen display in an embodiment of the present application;
[0027] Figure 10 Schematic diagram of the structure of an automated detection device for bullet screen display in an embodiment of the present application;
[0028] Figure 11 Schematic diagram of the structure of a computing device in an embodiment of the present application. Detailed implementation manners
[0029] To make the objectives, technical solutions and advantages of the present application clearer and more understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the application. Without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other arbitrarily. And although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here.
[0030] The terms "first" and "second" in the description and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "including" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application may represent at least two, for example, it may be two, three or more, and the embodiments of the present application do not make limitations.
[0031] To facilitate those skilled in the art to better understand the technical solutions of the present application, the technical terms involved in the present application are described below.
[0032] Barrage and medal barrage. Barrage refers to the comment subtitles that pop up when watching videos or other content on the Internet. It can be displayed on the user's viewing screen in a scrolling or stationary manner, or in a chat area outside the video or other dynamic content area in a scrolling or stationary manner. Among them, other content includes but is not limited to various static and dynamic content, such as static content like articles and news content, and dynamic content like some scrolling pictures. Optionally, comment subtitles can also pop up on other content such as a music player interface.
[0033] Medal barrage is a special type of barrage that contains medals indicating the identity information of the user account. The barrage elements of the medal barrage include but are not limited to medals, user account information, and comment information in the barrage. Among them, medals mainly include multiple types such as level medals, team medals, and achievement medals. Each medal is represented by a different pattern. The colors of the patterns of each type of medal are the same, or the colors of the medals change gradually as the medal level changes. Each type of medal also has the same or similar outlines in shape. Specifically, the shape of the medal also includes numbers or words used to represent level information, etc.
[0034] During the process of watching videos or other dynamic content, users can watch the barrages posted by other users and also send barrages. The barrages sent will also be seen by other users to achieve interaction during the video viewing process.
[0035] Interface (Application Programming Interface, API), barrage interface protocol, and barrage interface parameters: An interface is a set of predefined functions or an agreement for the connection of different components of a software system. It is used to provide a set of routines for applications and developers to access based on a certain software or hardware without having to access the source code or understand the details of the internal working mechanism. In the embodiments of the present application, the barrage interface is used to display barrages on the target interface of the client. Among them, the barrage interface has a corresponding barrage interface protocol. The barrage interface protocol indicates the attribute information of the barrage elements of the target barrage, the IP (Internet Protocol) address of the background barrage server corresponding to the client, and the module method name used to indicate the barrage indication operation, so as to generate barrage interface parameters and instruct the client to perform corresponding barrage display according to the barrage interface parameters.
[0036] System Testing: It is the testing of the entire system, regarding hardware, software, and operators as a whole to check if there are any discrepancies with the system specification. System testing can uncover errors in system analysis and design. For example, security testing is to test whether the security measures are perfect and can ensure that the system is not illegally invaded. Another example is stress testing, which tests whether the system can still operate normally under normal data volume and overloaded volume (such as multiple users accessing simultaneously). During the process of bullet screen display, user identity information is involved, and it is necessary to determine whether the bullet screen display is accurate through system testing.
[0037] Automation: It can achieve the purpose of automatically verifying certain main functional logics through scripted operation.
[0038] RGB (Red, Blue, Green, the three primary colors of red, blue, and green): The RGB color model is a color standard in the industrial field. It obtains various colors through the changes of the three color channels of red (R), green (G), and blue (B) and their mutual superposition. Common images are three-channel images, and a pixel point needs to be described by three dimensions of red (R), green (G), and blue (B). The principle of RGB is defined based on physical light emission, and RGB exactly corresponds to the three primary colors of light.
[0039] Image Recognition: It refers to the technology of using a computer to process, analyze, and understand images to identify various different patterns of targets and objects, and it is a practical application of deep learning algorithms. The traditional image recognition process is divided into four steps: image acquisition → image preprocessing → feature extraction → image recognition. In the embodiments of this application, at least two images can be input into the image recognition algorithm to determine whether one image exists in another image.
[0040] Application, that is, application program, is a computer program that can complete one or more operations. Generally, it has a visual display interface and can interact with users. For example, electronic maps and calendars can all be called applications. Among them, some applications need to be installed on the terminal device used by the user before they can be used, while some do not require application installation. For example, various small programs and web pages in certain social applications. Small programs can be used without downloading and installation. Users can open the application by scanning or searching.
[0041] A client, also known as a user terminal, refers to a program that provides local services corresponding to a server. Except for some applications that only run locally, it is generally installed on ordinary client machines and needs to cooperate with the server to run. After the development of the Internet, common clients include web browsers used for the World Wide Web, email clients for sending and receiving emails, and instant messaging client software. For this type of application, corresponding servers and service programs in the network are required to provide services such as database services and email services. Therefore, a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application.
[0042] The design concept of this application will be described below.
[0043] Before the release of each new version of the system, a round of tests on the main functions of the system is required. Among them, since the process of barrage display involves the identity information of user accounts and some operation settings, whether the barrage can be successfully displayed is also an important test process.
[0044] Taking the barrage display in a live broadcast room as an example, after a user posts a barrage, the barrages displayed on the application interface include different medals, the nickname of the user account, and the specific barrage content. During the system testing process, testers mainly send barrages by finding user accounts with medals, and then use their eyes to identify whether the interface display of the corresponding barrage is accurate. Secondly, whenever the functional logic of the medal barrage changes, such as adding a new type of medal, a new barrage test is required. In the related technology, when conducting barrage tests, the following problems mainly exist: every time the system is tested or the functional logic of the barrage changes, a complete barrage test process needs to be carried out, and there are many repetitive manual intervention tasks; the medal patterns to be verified are also relatively complex, and testers need to be fully familiar with the display styles and orders of each medal, and the verification process is inefficient; when encountering abnormal display of the barrage interface, testers need to manually organize the screenshot information of the abnormal display of the barrage interface and the log information of the barrage, which is time-consuming.
[0045] In order to improve the efficiency and accuracy of bullet screen testing and save time, an automated detection method, device, equipment, and storage medium for bullet screen display are proposed in the embodiments of the present application. The present application can generate corresponding bullet screen interface parameters through bullet screen element attribute information and bullet screen interface protocols, so that the background server can display bullet screens on the target interface of the corresponding client according to the bullet screen interface parameters. The attribute information of the bullet screen element includes attributes and attribute values, and the attribute values can be set according to the actual needs of those skilled in the art. Therefore, different bullet screens can be displayed by freely setting different attribute values, which greatly simplifies the process of bullet screen display compared with the prior art. Moreover, the present application can determine whether the bullet screen display is accurate by identifying the bullet screen elements on the target interface of the client and comparing the bullet screen elements indicated by the bullet screen element attribute information with the identified bullet screen elements. This greatly improves the efficiency and accuracy of bullet screen detection compared with the prior art that requires manual detection.
[0046] Among them, the present application can not only be applied to the process of bullet screen testing, simplifying the bullet screen detection process by freely setting bullet screens and identifying bullet screen elements for comparison, but also in the actual process of sending bullet screens, the bullet screens can be detected through the solution proposed in the present application to determine whether the bullet screen display is accurate. As an optional implementation manner, bullet screen detection can be performed at a preset time interval or according to a preset time point. For example, bullet screen detection can be set to be performed three times a week, and each detection is at a fixed time point on the same day. During the detection process, the corresponding bullet screen elements are found through the identity information of the user account, and then the found bullet screen elements are compared with the bullet screen elements identified during the display process of the target interface of the client. If they are inconsistent, it is determined that there is an abnormality in the bullet screen display process, so as to further improve the bullet screen display effect and enhance the user experience.
[0047] To better understand the technical solutions provided in the embodiments of the present application, the following briefly introduces the application scenarios applicable to the technical solutions provided in the embodiments of the present application. It should be noted that the following introduced application scenarios are only for explaining the embodiments of the present application and not for limitation. In specific implementation, the technical solutions provided in the embodiments of the present application can be flexibly applied according to actual needs.
[0048] Reference Figure 1, which is a schematic diagram of the application scenario of the automated detection method for bullet screen display provided by the embodiments of the present application. This application scenario includes multiple terminal devices 101 and a server 102. Among them, the terminal devices 101 and the server 102 are connected through a wireless or wired communication network. The terminal devices 101 include, but are not limited to, desktop computers, mobile phones, mobile computers, tablet computers, media players, smart wearable devices, smart TVs, in-vehicle devices, personal digital assistants (PDAs), and other electronic devices. The server 102 can be a single server, a server cluster composed of several servers, or a cloud computing center.
[0049] A client is installed in the terminal device 101, and the client is provided with a video playback service by the server 102. The client in the terminal device 101 can be a browser client, a video application client, etc., and such clients are provided with a video playback service by the server 102. Of course, the client in the terminal device 101 can also be a video player that can provide a playback service without being connected to the network. Such a client can be used to play videos stored in the storage space of the terminal device 101, or can both have an independent playback function and use the video playback service provided by the server 102. The embodiments of the present application do not make specific limitations on this.
[0050] Users can access the server 102 through the client installed in the terminal device 101, so as to use the video playback service provided by the server 102. For example, the terminal device 101 can access the server 102 through a video application client, and can also access the portal website of the server 102 through a browser client.
[0051] The present application can also obtain the log information of the bullet screens sent by users through the server 102, so as to obtain the attribute information of the bullet screen elements. Through the attribute information of the bullet screen elements and the bullet screen interface protocol, bullet screen interface parameters can be generated. Among them, the bullet screen interface parameters include the attribute information of the bullet screen elements, the address information of the server 102, and the function indication information indicating that the bullet screen interface parameters are used to send bullet screens. The server 102 can perform bullet screen display on the client of the terminal device according to the bullet screen interface parameters.
[0052] As another alternative implementation, the user can also input the barrage information to be published through the client during the video viewing process. The client records the video corresponding to the barrage information and the release time point, and uploads them to the server 102. The server 102 can display the barrage on the client of the terminal according to the barrage information input by the user. During the process of barrage display on the client, the client captures an image including the barrage and sends the captured image to the server 102. The server 102 can identify the barrage elements in the captured image through an image recognition algorithm and compare them with the barrage elements indicated by the barrage element attribute information to determine whether the barrage display is incorrect.
[0053] Of course, the method provided by the embodiments of the present application is not limited to Figure 1 the application scenarios shown. It can also be used in other possible application scenarios, and the embodiments of the present application do not impose any restrictions. For Figure 1 the functions that can be achieved by each device in the application scenarios shown will be described together in the subsequent method embodiments, and will not be elaborated here too much.
[0054] To further illustrate the technical solutions provided by the embodiments of the present application, the following will be described in detail in conjunction with the drawings and specific implementation manners. Although the embodiments of the present application provide method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or non-creative labor. In steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present application. When the method is actually processed or the device executes, it can be executed in the method order shown in the embodiments or drawings or executed in parallel.
[0055] The present application provides an automated detection method for barrage display. This method can be executed by a barrage test server, for example, by Figure 1 the server 102 in Figure 2 shown. The automated detection method for barrage display provided by the embodiments of the present application is as Figure 2 shown in the flowchart described below.
[0056] Step S201, obtain a target image that displays a target barrage on a target interface of a target client;
[0057] The structure of the bullet screen includes, but is not limited to, graphic identifiers for displaying user account identity information, the nicknames of the accounts, and the comment information in the bullet screen, etc. Among them, the graphic identifiers include, but are not limited to, medals. For the convenience of description, the bullet screen that needs to verify whether the display is accurate is called the target bullet screen. The medals for displaying user account identity information, user account information, and the comment information in the bullet screen are called bullet screen elements. It should be noted that in the embodiments of this application, the video playback page of the target client needs to be instructed to display the target bullet screen according to the attribute information of the bullet screen elements corresponding to the target bullet screen.
[0058] The bullet screen element attribute information includes the attributes of the bullet screen elements and the corresponding attribute values. If the bullet screen element is a medal for displaying user account identity information, the attributes corresponding to the bullet screen element can be, but are not limited to, level attributes, team attributes, etc. The attribute value corresponding to the level attribute is a specific numerical value, which can take a number within a range. For example, the value of the level attribute can be set to an integer between [1, 60]; the attribute value corresponding to the team attribute can include, but is not limited to, the nickname of the team and the level of the team. Among them, the nickname of the team can include, but is not limited to, the name set for the user, etc. It should be noted that the images corresponding to the above different medals are all different when displayed; if the bullet screen element is account information, the attributes corresponding to the bullet screen element can be, but are not limited to, the user's nickname or the user's account. Among them, the attribute value corresponding to the user's nickname includes, but is not limited to, the name set for the user, and the attribute value corresponding to the user's account is generally the account for logging in to the client, which can be, but is not limited to, the user's social account or the user's mobile phone number, etc.; if the bullet screen element is the comment information in the bullet screen, the attribute of the bullet screen element is the comment information, and the attribute value of the bullet screen element is the information input by the user.
[0059] In the embodiments of this application, according to the identity information of the user account, the medals have different patterns and different display orders, and according to the identity information of the user account, the user's nickname, the user's account, and the comment information of the bullet screen may have different display effects. The specific different display effects may be related to the level of the user account or related to the user's settings. For example, if the user's level is relatively high, when displaying the user account, the user's nickname, or the comment information, different colors may be displayed, or it may also be through the user's settings to set the comment information to different formats such as a flashing format, etc. The embodiments of this application do not make any limitations in this regard.
[0060] For ease of description, in the embodiments of the present application, the client interacting with the server is referred to as the target client. The target client includes, but is not limited to, a client with video playback function. Among them, for different target clients, the target interface may include, but is not limited to, a video playback interface, a music playback interface, a picture display interface, etc. These target interfaces also include various control buttons for controlling the playback, pause, etc. of the content. It should be noted that for different contents in the same client, the target interface is also different. For example, for an information client, the information content may be presented in the form of a video or a picture. Then, the interface corresponding to the video-type information content is the video playback interface, and the interface corresponding to the picture-and-text type information content is the picture display interface. As an alternative implementation, the target bullet screen can be displayed at a fixed position in the video playback screen of the target interface. Taking the video playback interface as an example, it can be displayed in the upper half area of the video playback screen, or displayed in other areas except the video playback screen, such as the chat area or the comment area, etc., which is not limited here. As Figure 3 shown, if the video playback screen in the current interface is maximized, the target bullet screen can be displayed in the upper half of the video playback screen. As Figure 4 shown, if the video screen in the current target interface only occupies a part of the overall target interface area, the target bullet screen can be displayed in the chat area of the target interface. It should be noted that during the bullet screen test process, the number of bullet screens on the target interface of the target client is 1. This is because subsequent identification of bullet screen elements in the target bullet screen is required. If there are more than 2 target bullet screens in the video screen, it is also necessary to distinguish which target bullet screen the identified bullet screen element belongs to, increasing the process in the test process.
[0061] In the embodiments of the present application, it is necessary to compare the bullet screen elements indicated by the bullet screen element attribute information with the bullet screen elements of the target bullet screen displayed in the video playback screen of the client to determine whether the bullet screen display is accurate. Therefore, first, it is necessary to instruct the video playback screen of the target client to display the target bullet screen. In the embodiments of the present application, the bullet screen information can be directly input on the interface of the target client through the corresponding user account, and the target bullet screen can be displayed on the interface of the target client according to the bullet screen function logic and the bullet screen server. As another alternative implementation, the target bullet screen can be displayed on the target interface of the target client through the bullet screen interface parameters.
[0062] In the embodiments of the present application, the client needs to capture a target image to obtain a target image including the barrage elements of the target barrage displayed in the video playback screen. Specifically, since the client may need to display the target barrage in a scrolling manner after receiving the instruction to send a barrage, if the target image is captured immediately, a target image including an incomplete target barrage may be captured. Therefore, the present application can be set to capture the target image within a preset time period after instructing the client to display the target barrage, and multiple target images can be captured continuously to ensure that a target image including the complete target barrage can be obtained.
[0063] Step S202: Identify the barrage elements in the target image;
[0064] In the embodiments of the present application, the barrage elements in the target image can be identified by, but not limited to, an image recognition method, so as to compare the barrage elements in the target image with the barrage elements indicated by the barrage element attribute information, and determine whether the barrage display is incorrect according to the comparison result.
[0065] Step S203: When the identified barrage elements are inconsistent with the barrage elements indicated by the barrage element attribute information corresponding to the target barrage, indicate that the barrage display is incorrect, where the barrage element attribute information corresponding to the target barrage includes the attributes of the barrage elements and the corresponding attribute values.
[0066] In the embodiments of the present application, it is necessary to first obtain the set of barrage elements indicated by each barrage element attribute information, that is, the barrage elements that need to be tested to determine whether the display is accurate. After obtaining the barrage element attribute information of the target barrage, the corresponding barrage elements are extracted from the set of barrage elements according to the barrage elements indicated by the barrage element attribute information.
[0067] In the embodiments of the present application, the following method can be used to determine that the identified barrage elements are inconsistent with the barrage elements indicated by the barrage element attribute information:
[0068] 1) If any of the barrage elements indicated by the barrage element attribute information does not exist in the target image, the identified barrage elements are inconsistent with the barrage elements indicated by the barrage element attribute information;
[0069] If the attribute values of the barrage elements include different patterns, etc., it is possible to determine whether the barrage elements indicated by the barrage element attribute information are consistent with the barrage elements in the target image according to the color or shape of the patterns. It should be noted that the shape of the barrage element includes but is not limited to the outline and text of the barrage element. Since there are some barrage elements that can determine whether the recognized barrage elements are consistent with the barrage elements indicated by the barrage element attribute information only through the shape or color, when comparing any barrage element indicated by the barrage element attribute information and the barrage elements in the target image, a threshold can be set respectively for the similarity between the shape of the barrage element indicated by the barrage element attribute information and the shape of the barrage elements in the target image, or a threshold can be set for the similarity between the color of the barrage element indicated by the barrage element attribute information and the color of the barrage elements in the target image. For example, a first preset threshold indicating whether the shapes are similar and a second preset threshold indicating whether the colors are similar are set. Then, if the similarity between the shape of any barrage element indicated by the barrage element attribute information and the shapes of the recognized barrage elements is less than the first preset threshold, any barrage element indicated by the barrage element attribute information does not exist in the target image; or if the similarity between the color of any barrage element indicated by the barrage element attribute information and the colors of the recognized barrage elements is less than the second actual threshold, any barrage element indicated by the barrage element attribute information does not exist in the target image.
[0070] Optionally, it is possible that the shapes of barrage elements of the same type may be similar, but the colors are very different, or the colors of barrage elements of the same type are similar, but the shapes are very different. Then, as an optional implementation manner, the first similarity between the shape of any barrage element indicated by the barrage element attribute information and the shapes of the recognized barrage elements can be determined respectively. If the first similarities are all relatively high, the second similarity between the color of any barrage element indicated by the barrage element attribute information and the colors of the recognized barrage elements can be determined. Similarly, it is also possible to first determine the second similarity between the color of any barrage element indicated by the barrage element attribute information and the colors of the recognized barrage elements, and then determine the first similarity between the shape of any barrage element indicated by the barrage element attribute information and the shapes of the recognized barrage elements, or simultaneously determine the first similarity between the shape of any barrage element indicated by the barrage element attribute information and the shapes of the recognized barrage elements, and the second similarity between the color of any barrage element indicated by the barrage element attribute information and the colors of the recognized barrage elements. For example, for the barrage elements with special level attributes shown Figure 5 as, it should be noted that Figure 5 among the barrage elements with special level attributes, there are barrage elements with large color differences and there are also barrage elements with small color differences. Therefore, the similarity between this type of barrage elements can be determined by the shape of the barrage elements, and fromFigure 5 It can be clearly seen that the text in each bullet screen element is different. Therefore, a better effect can be obtained by judging the similarity between bullet screen elements according to the shape of the bullet screen elements. As Figure 6 shown in the bullet screen element of the account level attribute, it should be noted that Figure 6 among the bullet screen elements of the account level attribute, there are bullet screen elements with large color differences and bullet screen elements with small color differences. Moreover, the outlines of all bullet screen elements are the same, but the text in each bullet screen element is different. Therefore, a better effect can be obtained by judging the similarity between bullet screen elements according to the shape of the bullet screen elements.
[0071] Optionally, the similarity between the color of any bullet screen element indicated by the bullet screen element attribute information and the colors of the identified bullet screen elements can be determined, but not limited to, respectively, according to the difference between the RGB values of any bullet screen element indicated by the bullet screen element attribute information and the RGB values of the identified bullet screen elements. Of course, other indicators that can describe color information are also used in the embodiments of the present application and are not limited herein.
[0072] 2) If the target display order of the bullet screen element indicated by the bullet screen element attribute information is inconsistent with the actual display order of the identified bullet screen element, then the identified bullet screen element is inconsistent with the bullet screen element indicated by the bullet screen element attribute information;
[0073] In the embodiments of the present application, the target display order can be determined according to the display rule of the bullet screen element indicated by the bullet screen element attribute information; according to the position of the identified bullet screen element in the image, the actual display order of the bullet screen element in the target image is determined. Comparing the target display order determined by the display rule of the bullet screen element indicated by the bullet screen element attribute information with the actual display order of the bullet screen element in the target image can determine whether the target display order determined by the display rule of the bullet screen element indicated by the bullet screen element attribute information is consistent with the actual display order of the bullet screen element in the target image, so as to determine whether the identified bullet screen element is consistent with the bullet screen element indicated by the bullet screen element attribute information.
[0074] In the actual bullet screen testing process, it is possible that any bullet screen element indicated by the bullet screen element attribute information exists in the target image, but the target display order of the bullet screen element indicated by the bullet screen element attribute information is inconsistent with the actual display order of the identified bullet screen element. Therefore, the present application is configured to determine whether the identified bullet screen element is consistent with the bullet screen element indicated by the bullet screen element attribute information according to whether any bullet screen element indicated by the bullet screen element attribute information exists in the target image and whether the target display order of the bullet screen element indicated by the bullet screen element attribute information is consistent with the actual display order of the identified bullet screen element at the same time.
[0075] As an alternative implementation, when it is determined that the identified bullet screen element is inconsistent with the bullet screen element indicated by the bullet screen element attribute information, the present application may generate a report link containing complete error information based on the target image with the display error to indicate that the bullet screen display is incorrect and error analysis is required.
[0076] In the embodiments of the present application, it is proposed that the target bullet screen can be displayed on the target interface of the target client according to the bullet screen interface parameters. The following gives a specific method for displaying the target bullet screen on the target interface of the target client according to the bullet screen interface parameters, as Figure 7 shown, which specifically includes:
[0077] Step S701, obtain the bullet screen element attribute information of the target bullet screen;
[0078] The embodiments of the present application provide a method for obtaining bullet screen element attribute information. When sending a bullet screen, there is no need to send the bullet screen through an actual user account, but the corresponding attribute values can be freely set according to the attributes of the bullet screen element to simulate the user account to send the bullet screen, which can greatly simplify the operation procedure of bullet screen display, improve the efficiency of bullet screen testing, and save time. In the embodiments of the present application, the log information of the displayed bullet screen is obtained through the background bullet screen log printing server, so that the field information, that is, the attributes of the bullet screen elements of the target bullet screen, can be obtained from the log information of the displayed bullet screen. According to the background bullet screen interface document, the specific meaning of each field and the limit range of the corresponding attribute values can be determined. Based on the attributes of the bullet screen elements, the bullet screen element attribute information of the target bullet screen is determined according to the preset attribute values of the bullet screen elements. Among them, those skilled in the art can freely set the preset attribute values of the bullet screen elements to obtain different forms of target bullet screens.
[0079] Step S702, generate bullet screen interface parameters according to the bullet screen element attribute information and the bullet screen interface protocol;
[0080] The process of bullet screen display can be realized through the bullet screen interface provided by the embodiments of the present application and the client. Among them, first, bullet screen interface parameters need to be generated according to the bullet screen interface protocol to instruct the client to perform bullet screen display according to the bullet screen interface parameters. Specifically, according to the indication of the bullet screen interface protocol, first, the bullet screen element attribute information of the target bullet screen needs to be obtained. The bullet screen element attribute information of the target bullet screen is used to display the specific bullet screen on the client. Secondly, the IP (Internet Protocol) address of the background bullet screen server corresponding to the client is also required to realize the process of bullet screen display on the client. Finally, the module method name used to indicate the bullet screen indication operation is also required. In the related art, the module method name also includes other operations such as collecting live videos, etc. Correspondingly, the bullet screen interface parameters include the bullet screen element attribute information of the target bullet screen, the IP address of the background bullet screen server, and the module method name.
[0081] Step S703, display the target barrage on the target interface of the target client according to the barrage interface parameters;
[0082] In the prior art, the verification is performed by sending barrages through an account with identity information, which has the problem of cumbersome operations. Moreover, for each barrage, specific barrage information needs to be input according to a specific account to display the barrage. Therefore, the method for sending barrages provided in the embodiments of the present application can simulate sending barrages by a user account, but does not require specific user account information, and can display the target barrage on the target interface of the target client.
[0083] Next, in combination with specific implementation manners, an automated detection method for barrage display provided in the embodiments of the present application will be introduced.
[0084] In the embodiments of the present application, it is necessary to first collect barrage element information. Taking the barrages of the live broadcast type as an example, the medals of the barrage elements include guardian attributes, noble attributes, achievement attributes, level attributes, and team attributes. Among them, each type of medal corresponds to multiple different medals. For example, the medals of the level attribute include medals of different levels, etc.
[0085] Determine the attribute information of the barrage, that is, the field information, through the background barrage printing server, extract the barrage_msg field in the background log information, and then obtain the json string corresponding to the barrage. Among them, the json string corresponding to an actual barrage is as follows:
[0086]
[0087]
[0088] The json string shows the attributes and specific attribute values of a barrage. Specifically, the content in the first column is the attribute of the barrage, and the content in the second column and all subsequent columns shows the attribute values of the barrage. uid represents the user identity ID, nick is the user nickname, content is the comment content of the barrage, and bw-wear in ext indicates that the user account wears a team medal and the team level is 4. lvnew is the level of the user account, and nl is the level of the noble medal. The display result of the target barrage obtained according to the above json string is as Figure 8 shown.
[0089] Based on the JSON string, the meaning of each field in the JSON string can be determined by looking up the background bullet screen interface document. Then, the bullet screen interface parameters can be determined through the bullet screen interface protocol. By using the requests library in Python to initiate a POST request, the client can be instructed to display the bullet screen on the target interface. It should be noted that different bullet screen elements can be displayed by changing the attribute values in the JSON string. The display results of the bullet screen are as Figure 3 or Figure 4 shown, which will not be elaborated here.
[0090] The client captures the image including the displayed bullet screen and sends it to the server. The server can compare the bullet screen elements indicated by the attribute information of the bullet screen with the bullet screen elements recognized in the target image through an image recognition algorithm, and determine whether the bullet screen display is incorrect by shape, color, display order, etc. Specifically, the bullet screen elements indicated by the attribute information of the bullet screen are input into the image recognition algorithm in the form of images, and the images corresponding to different bullet screen elements have different names. The results of whether the bullet screen elements indicated by the attribute information of the bullet screen exist in the target image are shown separately as follows:
[0091] gang_4.jpg This path material has been matched OK;
[0092] god.jpg This path material has been matched OK;
[0093] bojue.jpg This path material has been matched OK;
[0094] guard_13.jpg This path material has been matched OK;
[0095] guard_31.jpg This path material has been matched OK;
[0096] achievement’.jpg This path material has been matched OK;
[0097] level_59.jpg This path material has been matched OK;
[0098] housemanage.jpg This path material has been matched OK;
[0099] supermanage.jpg This path material has been matched OK;
[0100] Among them, the result display of whether the bullet screen element indicated by the attribute information of the bullet screen exists in the target image includes the image of the bullet screen element determined by the attribute information of the bullet screen element, and the result of whether the image exists in the target image. If the bullet screen element indicated by the attribute information of the bullet screen exists in the target image, the print information of "the path material has been matched OK" is generated correspondingly, or if the bullet screen element indicated by the attribute information of the bullet screen exists in the image, the result of correct (True) is feedback. If the bullet screen element indicated by the attribute information of the bullet screen does not exist in the target image, the result of error (False) is feedback. In an embodiment of the present application, after determining the display error, an error report can be generated according to the image of the displayed error bullet screen and provided to the tester for error analysis.
[0101] The bullet screen elements in the process of the present application can be, but are not limited to, dynamic bullet screen elements or static bullet screen elements. The attribute information of the bullet screen elements for generating the target bullet screen in the present application is generated by the server, and then interacts with the client through a separate bullet screen interface to instruct the target interface of the client to display the bullet screen. Optionally, the bullet screen interface of the present application can also exist in the debugging entry of the client, so that the bullet screen can be directly generated and displayed through the client of the terminal.
[0102] As Figure 9 shown, the process of the above-mentioned automatic detection of bullet screen display specifically includes:
[0103] Step S901, collect and save the set of bullet screen elements indicated by the attribute information of each bullet screen element;
[0104] Step S902, obtain the attributes of the bullet screen elements of the target bullet screen from the log information of the displayed bullet screen;
[0105] Step S903, based on the attributes of the bullet screen elements, determine the attribute information of the bullet screen elements of the target bullet screen according to the preset attribute values of the bullet screen elements;
[0106] Step S904, generate bullet screen interface parameters according to the bullet screen element attribute information and the bullet screen interface protocol;
[0107] Step S905, display the target bullet screen on the target interface of the target client according to the bullet screen interface parameters;
[0108] Step S906, obtain the target image of the target interface displaying the target bullet screen;
[0109] Step S907, identify the bullet screen elements in the target image;
[0110] Step S908: Determine the second similarity between the color of any bullet screen element indicated by the bullet screen element attribute information and the colors of the recognized bullet screen elements according to the difference between the RGB value of any bullet screen element indicated by the bullet screen element attribute information and the RGB values of the recognized bullet screen elements.
[0111] Step S909: Determine the first similarity between the shape of any bullet screen element indicated by the bullet screen element attribute information and the shapes of the recognized bullet screen elements.
[0112] Step S910: If any bullet screen element indicated by the bullet screen element attribute information does not exist in the target image, or the target display order of the bullet screen elements indicated by the bullet screen element attribute information is inconsistent with the actual display order of the recognized bullet screen elements, it is determined that the recognized bullet screen elements and the bullet screen elements indicated by the bullet screen element attribute information are inconsistent, and a bullet screen display error is indicated.
[0113] Based on the same inventive concept, an embodiment of the present application provides an automatic detection device for bullet screen display. The automatic detection device for bullet screen display can be a hardware structure, a software module, or a combination of a hardware structure and a software module. For example, the automatic detection device for bullet screen display is the server 102 itself described above, or it can be a functional device provided in the server 102. The automatic detection device for bullet screen display can be implemented by a chip system, and the chip system can be composed of chips, or can include chips and other discrete devices. As shown in Figure 1 The automatic detection device for bullet screen display in the embodiment of the present application includes an acquisition unit 1001, an identification unit 1002, and an indication unit 1003, where: Figure 10 The acquisition unit 1001 is configured to acquire a target image of a target bullet screen displayed on a target interface of a target client.
[0114] The identification unit 1002 is configured to identify bullet screen elements in the target image.
[0115] The indication unit 1003 is configured to indicate a bullet screen display error when the recognized bullet screen elements are inconsistent with the bullet screen elements indicated by the bullet screen element attribute information corresponding to the target bullet screen, where the bullet screen element attribute information corresponding to the target bullet screen includes the attributes of the bullet screen elements and the corresponding attribute values.
[0116] In a possible implementation manner, it further includes a display unit 1004, and the display unit 1004 is specifically configured to:
[0117] Obtain the bullet screen element attribute information of the target bullet screen;
[0118] Generate bullet screen interface parameters according to the bullet screen element attribute information and the bullet screen interface protocol;
[0119] Generate bullet screen interface parameters according to the bullet screen element attribute information and the bullet screen interface protocol;
[0120] Display a target bullet screen on a target interface of a target client according to bullet screen interface parameters.
[0121] In a possible implementation manner, the display unit 1004 is specifically configured to:
[0122] Obtain the attributes of the bullet screen elements of the target bullet screen from the log information of the displayed bullet screens;
[0123] Based on the attributes of the bullet screen elements, determine the bullet screen element attribute information of the target bullet screen according to the preset attribute values of the bullet screen elements.
[0124] In a possible implementation manner, the indication unit 1003 is specifically configured to:
[0125] If any bullet screen element indicated by the bullet screen element attribute information does not exist in the target image, and / or if the target display order of the bullet screen elements indicated by the bullet screen element attribute information is inconsistent with the actual display order of the identified bullet screen elements.
[0126] In a possible implementation manner, the indication unit 1003 is specifically configured to:
[0127] The shape of any bullet screen element indicated by the bullet screen element attribute information has a first similarity with the shapes of the identified bullet screen elements that is less than a first preset threshold; and / or
[0128] The color of any bullet screen element indicated by the bullet screen element attribute information has a second similarity with the colors of the identified bullet screen elements that is less than a second actual threshold.
[0129] In a possible implementation manner, the indication unit 1003 is specifically configured to:
[0130] The similarity between the color of any bullet screen element indicated by the bullet screen element attribute information and the colors of the identified bullet screen elements is determined respectively according to the difference between the RGB values of any bullet screen element indicated by the bullet screen element attribute information and the RGB values of the identified bullet screen elements.
[0131] In a possible implementation manner, it further includes a collection unit 1005, and the collection unit is specifically configured to:
[0132] Collect and save the set of bullet screen elements indicated by each bullet screen element attribute information.
[0133] All relevant contents of each step involved in the embodiments of the foregoing automated detection method for bullet screen display can be cited in the function descriptions of the corresponding functional modules of the automated detection device for bullet screen display in the embodiments of the present application, and will not be elaborated herein.
[0134] The division of modules in the embodiments of this application is illustrative, merely a logical function division. In actual implementation, there may be other division methods. Additionally, in each embodiment of this application, each functional module can be integrated in one processor, can exist physically alone, or two or more modules can be integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
[0135] Based on the same inventive concept, embodiments of this application provide a computing device, which is, for example, the server 102 described above Figure 1 and this computing device can execute the automated detection method for bullet screen display provided in the embodiments of this application. As Figure 11 shown, the computing device in the embodiments of this application includes at least one processor 1101, as well as a memory 1102 and a communication interface 1103 connected to at least one processor 1101. In the embodiments of this application, the specific connection medium between the processor 1101 and the memory 1102 is not limited. Figure 11 In Figure 11 , it is taken as an example that the processor 1101 and the memory 1102 are connected through a bus 1100. The bus 1100 is represented by a thick line in Figure 11 . The connection manners between other components are only for illustrative purposes and are not to be considered limiting. The bus 1100 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation,
[0136] only one thick line is used to represent it in
[0137] but it does not mean that there is only one bus or one type of bus. In the embodiments of this application, the memory 1102 stores a computer program executable by at least one processor 1101. By executing the computer program stored in the memory 1102, at least one processor 1101 can execute the steps included in the aforementioned automated detection method for bullet screen display.
[0137] Among them, the processor 1101 is the control center of the computing device and can connect various parts of the entire computing device through various interfaces and lines. By running or executing the instructions stored in the memory 1102 and calling the data stored in the memory 1102, the various functions of the computing device and process data, thereby monitoring the entire computing device. Optionally, the processor 1101 may include one or more processing modules. The processor 1101 may integrate an application processor and a modem processor. Among them, the processor 1101 mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 1101. In some embodiments, the processor 1101 and the memory 1102 can be implemented on the same chip. In some embodiments, they can also be separately implemented on independent chips.
[0138] The processor 1101 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0139] The memory 1102, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 1102 may include at least one type of storage medium, for example, it may include flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (RAM), a static random access memory (SRAM), a programmable read-only memory (PROM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic memory, a magnetic disk, an optical disk, and so on. The memory 1102 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1102 in the embodiments of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.
[0140] The communication interface 1103 is a transmission interface capable of performing communication. Data can be received or sent through the communication interface 1103. For example, data interaction can be performed with other devices through the communication interface 1103 to achieve the purpose of communication.
[0141] Furthermore, the computing device further includes a basic input / output system (I / O system) 1104 for facilitating the transmission of information between various components within the computing device, and a mass storage device 1108 for storing an operating system 1105, application programs 1106, and other program modules 1107.
[0142] The basic input / output system 1104 includes a display 1109 for displaying information and input devices 1110 such as a mouse, keyboard, etc. for user input of information. Both the display 1109 and the input devices 1110 are connected to the processor 1101 through the basic input / output system 1104 connected to the system bus 1100. The basic input / output system 1104 may also include an input / output controller for receiving and processing inputs from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller also provides outputs to a display screen, printer, or other types of output devices.
[0143] The mass storage device 1108 is connected to the processor 1101 through a mass storage controller (not shown) connected to the system bus 1100. The mass storage device 1108 and its associated computer-readable medium provide non-volatile storage for the server package. That is, the mass storage device 1108 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM drive.
[0144] According to various embodiments of the present application, the computing device package may also operate by connecting to a remote computer on a network such as the Internet. That is, the computing device may be connected to the network 1111 through the communication interface 1103 connected to the system bus 1100, or in other words, the communication interface 1103 may also be used to connect to other types of networks or remote computer systems (not shown).
[0145] Based on the same inventive concept, an embodiment of the present application also provides a storage medium, which may be a computer-readable storage medium, and computer instructions are stored in the storage medium. When the computer instructions run on a computer, the computer is caused to execute the steps of the automated detection method for barrage display as described above.
[0146] Based on the same inventive concept, an embodiment of the present application also provides a chip system, which includes a processor and may also include a memory for implementing the steps of the automated detection method for barrage display as described above. The chip system may be composed of chips or may include chips and other discrete devices.
[0147] In some possible implementation manners, various aspects of the method for recommended content provided by the embodiments of the present application may also be implemented in the form of a program product, which includes program code. When the program product runs on a computer, the program code is used to cause the computer to execute the steps in the automated detection method for barrage display according to various exemplary embodiments of the present application described above.
[0148] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0149] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these changes and modifications.
Claims
1. An automated detection method for barrage display, characterized in that, The method includes: Obtaining a target image that displays a target bullet screen on a target interface of a target client; Identifying bullet screen elements in the target image; When the identified bullet screen elements are inconsistent with the bullet screen elements indicated by the bullet screen element attribute information corresponding to the target bullet screen, indicating that the bullet screen display is incorrect, where the bullet screen element attribute information corresponding to the target bullet screen includes the attributes of the bullet screen elements and the corresponding attribute values; Before obtaining the target image that displays the target bullet screen on the target interface of the target client, it includes: Obtaining the bullet screen element attribute information of the target bullet screen; Generating bullet screen interface parameters according to the bullet screen element attribute information and the bullet screen interface protocol; Displaying the target bullet screen on the target interface of the target client according to the bullet screen interface parameters; The obtaining of the bullet screen element attribute information of the target bullet screen specifically includes: Obtaining the attributes of the bullet screen elements of the target bullet screen from the log information of the displayed bullet screens; Based on the attributes of the bullet screen elements, determining the bullet screen element attribute information of the target bullet screen according to the preset attribute values of the bullet screen elements; where the preset attribute values of the bullet screen elements are determined according to the limit range of the attribute values corresponding to the attributes of the bullet screen elements.
2. The method according to claim 1, characterized in that, The situation where the identified bullet screen elements are inconsistent with the bullet screen elements indicated by the bullet screen element attribute information specifically includes one or a combination of the following two situations: Any of the bullet screen elements indicated by the bullet screen element attribute information does not exist in the target image; The target display order of the bullet screen elements indicated by the bullet screen element attribute information is inconsistent with the actual display order of the identified bullet screen elements.
3. The method according to claim 2, wherein The situation where any of the bullet screen elements indicated by the bullet screen element attribute information does not exist in the target image specifically includes one or a combination of the following two situations: The shape of any of the bullet screen elements indicated by the bullet screen element attribute information has a first similarity with the shapes of the identified bullet screen elements that is less than a first preset threshold; The color of any of the bullet screen elements indicated by the bullet screen element attribute information has a second similarity with the colors of the identified bullet screen elements that is less than a second actual threshold.
4. The method according to claim 3, characterized in that The similarity between the color of any of the bullet screen elements indicated by the bullet screen element attribute information and the colors of the identified bullet screen elements is determined respectively according to the difference between the RGB values of any of the bullet screen elements indicated by the bullet screen element attribute information and the RGB values of the identified bullet screen elements.
5. The method according to claim 1, characterized in that Collecting and saving the set of bullet screen elements indicated by each bullet screen element attribute information.
6. An automated detection device for barrage display, characterized in that, It includes: An obtaining unit for obtaining a target image that displays a target bullet screen on a target interface of a target client; An identifying unit for identifying bullet screen elements in the target image; An indicating unit for indicating that the bullet screen display is incorrect when the identified bullet screen elements are inconsistent with the bullet screen elements indicated by the bullet screen element attribute information corresponding to the target bullet screen, where the bullet screen element attribute information corresponding to the target bullet screen includes the attributes of the bullet screen elements and the corresponding attribute values; It further includes a displaying unit, and the displaying unit is specifically used for: Obtaining the bullet screen element attribute information of the target bullet screen; Generating bullet screen interface parameters according to the bullet screen element attribute information and the bullet screen interface protocol; Display the target bullet screen on the target interface of the target client according to the bullet screen interface parameters; The display unit is specifically configured to: Obtain the attributes of the bullet screen elements of the target bullet screen from the log information of the displayed bullet screen; Based on the attributes of the bullet screen elements, determine the bullet screen element attribute information of the target bullet screen according to the preset attribute values of the bullet screen elements; wherein, the preset attribute values of the bullet screen elements are determined according to the limit range of the attribute values corresponding to the attributes of the bullet screen elements.
7. The device according to claim 6, characterized in that The indication unit is specifically configured to identify that the bullet screen elements indicated by the bullet screen element attribute information are inconsistent with the bullet screen elements identified according to one or a combination of the following two situations: Any bullet screen element indicated by the bullet screen element attribute information does not exist in the target image; The target display order of the bullet screen elements indicated by the bullet screen element attribute information is inconsistent with the actual display order of the identified bullet screen elements.
8. The device according to claim 7, characterized in that, The indication unit is specifically configured to confirm that any bullet screen element indicated by the bullet screen element attribute information does not exist in the target image according to one or a combination of the following two situations: The shape of any bullet screen element indicated by the bullet screen element attribute information has a first similarity with the shapes of the identified bullet screen elements that is less than a first preset threshold; The color of any bullet screen element indicated by the bullet screen element attribute information has a second similarity with the colors of the identified bullet screen elements that is less than a second actual threshold.
9. The device according to claim 8, characterized in that, The indication unit is specifically configured to: The similarity between the color of any bullet screen element indicated by the bullet screen element attribute information and the colors of the identified bullet screen elements is determined respectively according to the difference between the RGB values of any bullet screen element indicated by the bullet screen element attribute information and the RGB values of the identified bullet screen elements.
10. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method described in any one of claims 1-5.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and when the computer instructions run on a computer, the computer is caused to execute the method described in any one of claims 1-5.
Citation Information
Patent Citations
A display test method and device and equipment for visual elements in a page and a storage medium
CN109815156A
Bullet screen rendering method and device, computer readable storage medium and computer equipment
CN111083551A