A testing method and system for external display interface of notebook computer
By using preset video data and anomaly detection model in the external display interface test system of laptop computers, combined with principal component analysis and decision tree algorithm, the problem of inaccurate external display interface testing in the existing technology is solved, and high accuracy and Reliability test results.
Patent Information
- Application Number
- CN202410580657.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-05-11
AI Technical Summary
In the prior art, the test results of the external display interface of laptops are inaccurate and have low credibility, and there are subjective factors in manual detection. Camera-assisted detection requires high acquisition requirements and is not accurate enough.
Using a test system including the laptop computer to be tested, an external monitor, a KVM switcher and a computer equipment, the preset video data is sent to the external monitor, and the preset display interface abnormal detection model is used to analyze the display parameter flow, and the abnormal status of the external display interface is detected. Information is combined with principal component analysis, abnormality detection sub-model and decision tree algorithm for accurate detection.
It realizes accurate and reliable detection of the external display interface, reduces the subjective factors of manual detection, improves the accuracy and reliability of the test results, and avoids the inaccuracy of the camera's image acquisition.
Smart Images

Figure CN118425840B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of interface testing, and in particular to a testing method and system for an external display interface of a notebook computer. Background Art
[0002] During the production of laptop computers, it is necessary to test the external display interface of the laptop computer. The test results may show that the interface is damaged resulting in a black screen, the interface pins are damaged resulting in a distorted screen, the external display is unstable resulting in a flickering screen, and the external display is displaced resulting in the inability to fully display the content.
[0003] At present, the external display interface test for the above-mentioned situations mainly adopts manual inspection and camera-assisted inspection. By connecting the laptop to the external display screen and sending the specified data to the external display screen, the inspector observes the display effect of the external display screen with the naked eye or collects the display image of the external display screen through the camera for analysis. However, the manual inspection method has a large subjective factor, and it is difficult for humans to continuously pay attention to all possible problems, resulting in inaccurate test results and insufficient credibility. The camera-assisted inspection has high requirements for camera acquisition, and there is still the problem of inaccurate test results due to the camera not collecting key frame images. Summary of the invention
[0004] The present application provides a method and system for testing an external display interface of a notebook computer, so as to solve the technical problems that the test results of the current external display interface are inaccurate and have low reliability.
[0005] In a first aspect, the present application provides a test system for an external display interface of a laptop computer, characterized in that it comprises a laptop computer to be tested, an external display, a KVM switch and a computer device, wherein the external display is connected to the laptop computer to be tested and the KVM switch respectively, and the KVM switch is also connected to the computer device;
[0006] The laptop computer to be tested is used to send preset video data to an external display to control the external display to display the preset video;
[0007] An external display, used for displaying the preset video according to the preset video data, and responding to the display parameter acquisition request forwarded by the KVM switch, and feeding back a display parameter stream of the external display;
[0008] The KVM switch is used to forward the display parameter acquisition request sent by the computer device to the external display, and return the display parameter stream fed back by the external display to the computer device;
[0009] The computer device is used to initiate the display parameter acquisition request, receive the display parameter stream, and analyze the abnormal state information of the external display interface of the laptop computer to be tested according to the display parameter stream using a preset display interface abnormality detection model.
[0010] In some embodiments of the first aspect, the preset video data includes preset decodable identification image data and preset image stream data;
[0011] The external display is further used to cyclically display a preset decodable identification image and a preset image stream according to the preset video data.
[0012] In some embodiments of the first aspect, the display parameter stream includes a resolution stream, a brightness stream, a contrast stream, a color stream and a pixel stream, the resolution stream includes a sequence of resolution values corresponding to multiple preset areas of the external display screen within a preset time, the brightness stream includes a sequence of brightness values corresponding to multiple preset areas of the external display screen within a preset time, the contrast stream includes a sequence of contrast values corresponding to multiple preset areas of the external display screen within a preset time, the color stream includes a sequence of color values corresponding to multiple preset areas of the external display screen within a preset time, and the pixel stream includes a sequence of pixel values corresponding to multiple preset areas of the external display screen within a preset time.
[0013] In some embodiments of the first aspect, the using a preset display interface abnormality detection model to analyze abnormal state information of the external display interface of the laptop computer to be tested according to the display parameter stream includes:
[0014] Using a preset principal component analysis algorithm, the display parameter stream is subjected to dimensionality reduction processing to obtain a target parameter stream;
[0015] Using the anomaly detection submodel in the preset display interface anomaly detection model, perform anomaly detection on multiple preset areas of the external display screen according to the target parameter stream, and output area status information corresponding to each preset area;
[0016] The abnormality detection decision model in the preset display interface abnormality detection model is used to perform decision analysis on the area status information of the plurality of preset areas, and the abnormal status information of the external display interface is output.
[0017] In some embodiments of the first aspect, the using of the anomaly detection submodel in the preset display interface anomaly detection model to perform anomaly detection on multiple preset areas of the external display screen according to the target parameter stream, and outputting area status information corresponding to each preset area, includes:
[0018] For each of the preset areas, the resolution value sequence, brightness value sequence, contrast value sequence, color value sequence and pixel value sequence corresponding to the preset area are input into the abnormality detection sub-model, and the area status information of the preset area is output;
[0019] Among them, for a target area containing a preset decodable identification image among the multiple preset areas, a decodable identification image of the target area is generated according to a display parameter stream corresponding to the target area, and the decodable identification image is decoded, and the decoding result of the decodable identification image is merged into the area status information of the target area.
[0020] In some embodiments of the first aspect, the using of the abnormality detection decision model in the preset display interface abnormality detection model to perform decision analysis on the regional status information of the plurality of preset regions and outputting the abnormal status information of the external display interface includes:
[0021] According to the positional proximity relationship of the preset areas, the regional status information of the plurality of preset areas is spliced into multi-region status information;
[0022] The multi-region status information is input into the abnormality detection decision model, and the abnormal status information of the external display interface is output. The abnormality detection decision model is a decision model constructed based on a decision tree algorithm.
[0023] In a second aspect, the present application also provides a method for testing an external display interface of a laptop computer, which is applied to a computer device, wherein the computer device is connected to a KVM switch, the KVM switch is also connected to an external display, and the external display is also connected to the laptop computer to be tested, and the testing method comprises:
[0024] After the laptop computer to be tested switches to the external display for display, a display parameter acquisition request is initiated to the KVM switch, and the KVM switch is used to forward the display parameter acquisition request to the external display;
[0025] receiving a display parameter stream returned by the KVM switch, wherein the display parameter stream is a parameter stream fed back by the external display to the KVM switch in response to the display parameter acquisition request;
[0026] The abnormal state information of the external display interface of the notebook computer to be tested is analyzed according to the display parameter stream by using a preset display interface abnormality detection model.
[0027] In some embodiments of the second aspect, the using a preset display interface abnormality detection model to analyze abnormal state information of the external display interface of the laptop computer to be tested according to the display parameter stream includes:
[0028] Using a preset principal component analysis algorithm, the display parameter stream is subjected to dimensionality reduction processing to obtain a target parameter stream;
[0029] Using the anomaly detection submodel in the preset display interface anomaly detection model, perform anomaly detection on multiple preset areas of the external display screen according to the target parameter stream, and output area status information corresponding to each preset area;
[0030] The abnormality detection decision model in the preset display interface abnormality detection model is used to perform decision analysis on the area status information of the plurality of preset areas, and the abnormal status information of the external display interface is output.
[0031] In a third aspect, the present application further provides a computer device, comprising a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method for testing the external display interface of a laptop computer as described in the second aspect is implemented.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method for testing the external display interface of a laptop computer as described in the second aspect is implemented.
[0033] Compared with the prior art, this application has at least the following beneficial effects:
[0034] The external display is connected to the laptop to be tested and the KVM switch respectively, and the KVM switch is also connected to the computer device, so that the external display can display the content of the laptop to be tested while exchanging data with the computer device through the KVM switch, thereby realizing the hardware foundation of the laptop display interface test. The laptop to be tested sends preset video data to the external display to control the external display to display the preset video, and the preset video is displayed according to the preset video data through the external display, and the display parameter acquisition request forwarded by the KVM switch is responded to, and the display parameter stream of the external display is fed back, and the display parameter acquisition request sent by the computer device is forwarded to the external display through the KVM switch, and the display parameter stream fed back by the external display is returned to the computer device, so as to realize the data basis of the display interface test from the bottom data exchange level, without the need for the camera to collect the display appearance image from the surface layer, so as to ensure the accuracy and reliability of the data basis. The display parameter acquisition request is initiated by a computer device, and the display parameter stream is received. A preset display interface abnormality detection model is used to analyze the abnormal state information of the external display interface of the laptop computer to be tested according to the display parameter stream, so as to realize intelligent testing of the display interface by using an artificial intelligence algorithm without manual detection, thereby improving the accuracy and reliability of the test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a schematic diagram of the structure of a test system for an external display interface of a notebook computer shown in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a flow chart of a method for testing an external display interface of a laptop computer according to an embodiment of the present application;
[0037] Figure 3 A schematic diagram of the structure of a computer device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] Please refer to Figure 1 , Figure 1 A structural schematic diagram of a test system for an external display interface of a laptop computer provided in an embodiment of the present application. The test system for an external display interface of a laptop computer in an embodiment of the present application comprises a laptop computer 1 to be tested, an external display 2, a KVM switch 4 and a computer device 3, wherein the external display 2 is respectively connected to the laptop computer 1 to be tested and a multi-computer switch (Keyboard, Video, Mouse, KVM switch) 4, and the KVM switch 4 is also connected to the computer device 3;
[0040] The laptop computer 1 to be tested is used to send preset video data to the external display 2 to control the external display 2 to display the preset video;
[0041] The external display 2 is used to display the preset video according to the preset video data, and to respond to the display parameter acquisition request forwarded by the KVM switch 4, and to feed back the display parameter stream of the external display 2;
[0042] The KVM switch 4 is used for forwarding the display parameter acquisition request sent by the computer device 3 to the external display 2, and returning the display parameter stream fed back by the external display 2 to the computer device 3;
[0043] The computer device 3 is used to initiate the display parameter acquisition request, receive the display parameter stream, and analyze the abnormal state information of the external display interface of the laptop computer 1 to be tested according to the display parameter stream using a preset display interface abnormality detection model.
[0044] In this embodiment, the laptop computer to be tested is connected to an external display via an external display interface, and the display screen is switched to the external display, and the preset video data of the laptop computer to be tested is displayed on the external display. At this time, the computer device obtains the display parameter stream when the external display displays the preset video data through the KVM switch, and analyzes the display parameter stream to determine the abnormal state information of the external display interface. The abnormal state information includes information such as no abnormality, black screen, flashing screen, flowery screen, and incomplete content display.
[0045] Optionally, the preset display interface abnormality detection model is a fusion model, including a sub-model for detecting abnormal states of each preset area of the external display and a decision model for making decisions on abnormal states of all sub-models. The sub-model can be an image processing model built based on intelligent models such as convolutional neural networks or deep neural networks, such as a YOLOv5 model; the decision model is a classification model built based on intelligent algorithms such as decision tree algorithms, random forest sums, and support vector machines.
[0046] The present application connects the laptop computer to be tested and the KVM switch respectively through the external display, and the KVM switch is also connected to the computer device, so that the external display can display the content of the laptop computer to be tested while exchanging data with the computer device through the KVM switch, and realize the data basis of the display interface test from the bottom data exchange level, without the need for the camera to collect the display appearance image from the surface, thereby ensuring the accuracy and reliability of the data basis, and at the same time using artificial intelligence algorithms to realize intelligent testing of the display interface, without the need for manual detection, thereby improving the accuracy and reliability of the test results.
[0047] In some embodiments, the preset video data includes preset decodable identification image data and preset image stream data; the external display is further used to cyclically display the preset decodable identification image and the preset image stream according to the preset video data.
[0048] In this embodiment, the preset decodable identification image data is an identification image that can be decoded and processed, such as a two-dimensional code image and a barcode image, and its display position can be preset in a target area of an external display; the preset image stream data is an image stream composed of a series of image frames. By displaying the preset decodable identification image data, the computer device can recognize the device information of the laptop computer to be tested, so as to facilitate the subsequent automatic information entry and ensure the accuracy of the information entry.
[0049] In some embodiments, the display parameter stream includes a resolution stream, a brightness stream, a contrast stream, a color stream and a pixel stream, the resolution stream includes a sequence of resolution values corresponding to multiple preset areas of the external display screen within a preset time, the brightness stream includes a sequence of brightness values corresponding to multiple preset areas of the external display screen within a preset time, the contrast stream includes a sequence of contrast values corresponding to multiple preset areas of the external display screen within a preset time, the color stream includes a sequence of color values corresponding to multiple preset areas of the external display screen within a preset time, and the pixel stream includes a sequence of pixel values corresponding to multiple preset areas of the external display screen within a preset time.
[0050] In this embodiment, the display area of the external display is divided into multiple preset areas, for example, into 9-grid areas. For each preset area, the acquired display parameter stream is reorganized to form a resolution value sequence, brightness value sequence, contrast value sequence, color value sequence and pixel value sequence for each preset area at a preset time, thereby facilitating subsequent abnormality testing of each preset area.
[0051] In some embodiments, the using of a preset display interface abnormality detection model to analyze abnormal state information of the external display interface of the laptop computer to be tested according to the display parameter stream includes:
[0052] Using a preset principal component analysis algorithm, the display parameter stream is subjected to dimensionality reduction processing to obtain a target parameter stream;
[0053] Using the anomaly detection submodel in the preset display interface anomaly detection model, perform anomaly detection on multiple preset areas of the external display screen according to the target parameter stream, and output area status information corresponding to each preset area;
[0054] The abnormality detection decision model in the preset display interface abnormality detection model is used to perform decision analysis on the area status information of the plurality of preset areas, and the abnormal status information of the external display interface is output.
[0055] In this embodiment, due to the differences in external display interfaces of different laptop computers to be tested, the dimensions of the acquired display parameter streams may be different, so the PCA algorithm is used for dimensionality reduction. At the same time, the target parameter stream after dimensionality reduction can effectively reduce the computing requirements of the computer device.
[0056] This embodiment adopts a sub-model and decision model for multi-region anomaly analysis, which can perform small-scale operations for each preset area, reduce the computing requirements of computer equipment, and at the same time narrow the detection target to each preset area, which can improve the detection accuracy of the overall display area.
[0057] In some embodiments, the using of the anomaly detection submodel in the preset display interface anomaly detection model to perform anomaly detection on multiple preset areas of the external display screen according to the target parameter stream and outputting area status information corresponding to each preset area includes:
[0058] For each of the preset areas, the resolution value sequence, brightness value sequence, contrast value sequence, color value sequence and pixel value sequence corresponding to the preset area are input into the abnormality detection sub-model, and the area status information of the preset area is output;
[0059] Among them, for a target area containing a preset decodable identification image among the multiple preset areas, a decodable identification image of the target area is generated according to a display parameter stream corresponding to the target area, and the decodable identification image is decoded, and the decoding result of the decodable identification image is merged into the area status information of the target area.
[0060] In this embodiment, the abnormality detection sub-model of the preset display interface abnormality detection model can be used to perform detailed abnormality detection on multiple preset areas of the external display screen, and output the regional status information of each preset area, including: for each preset area, the corresponding resolution value sequence, brightness value sequence, contrast value sequence, color value sequence and pixel value sequence are input into the abnormality detection sub-model to obtain the status information of the preset area; for the target area containing the preset decodable identification image in the multiple preset areas, the decodable identification image is generated according to the display parameter stream corresponding to these target areas, and is decoded. Then, the decoding result is merged with other status information of the target area to form complete regional status information.
[0061] This embodiment achieves the following beneficial effects:
[0062] Improved accuracy of anomaly detection: By considering multiple display parameter value sequences for each preset area and combining the decoding results of the decodable identification image, it is possible to more accurately determine whether an abnormality exists on the external display, thereby improving the accuracy and reliability of detection.
[0063] Achieve more sophisticated anomaly diagnosis: Inputting sequence information of different parameters into the anomaly detection sub-model can diagnose and analyze anomalies in various aspects, which helps to find the specific cause and solution of the problem.
[0064] Provide more comprehensive regional status information: Integrating the decoding results into the regional status information can provide a more complete and detailed status description for each preset area, helping users to fully understand the working status of the display.
[0065] Strengthen monitoring of specific areas: For target areas with preset decodable identification images, more attention can be paid to their status detection to ensure the normal operation of these key areas, thereby improving the stability and reliability of the overall display effect.
[0066] In some embodiments, the using of the abnormality detection decision model in the preset display interface abnormality detection model to perform decision analysis on the regional status information of the plurality of preset regions and outputting the abnormal status information of the external display interface includes:
[0067] According to the positional proximity relationship of the preset areas, the regional status information of the plurality of preset areas is spliced into multi-region status information;
[0068] The multi-region status information is input into the abnormality detection decision model, and the abnormal status information of the external display interface is output. The abnormality detection decision model is a decision model constructed based on a decision tree algorithm.
[0069] In this embodiment, the regional status information of multiple preset areas is integrated into multi-region status information according to the positional proximity of the preset areas, so that the interaction and influence between different areas can be better considered. The multi-region status information is input into the abnormality detection decision model, and the decision model constructed by the decision tree algorithm can be analyzed to output the abnormal status information of the external display interface, so as to provide users with a comprehensive evaluation and diagnosis of abnormal conditions of the display interface.
[0070] This embodiment comprehensively considers the status information of multiple areas: since the regional status information of multiple preset areas is integrated into multi-region status information, the relationship and influence between different areas can be considered more comprehensively, so as to more accurately judge abnormal situations.
[0071] Improve the accuracy of anomaly detection: The anomaly detection decision model built by the decision tree algorithm can make more accurate anomaly judgments and diagnoses based on multi-region status information, providing users with accurate abnormal status information and solutions.
[0072] Optimize the anomaly detection process: Integrating the status information of multiple areas and then inputting it into the decision-making model can simplify the anomaly detection process, improve detection efficiency and accuracy, and provide users with more convenient and reliable detection services.
[0073] Improve the comprehensibility and explainability of the decision model: The anomaly detection decision model built by the decision tree algorithm has good explainability. Users can more easily understand the operating principles and judgment basis of the model, enhancing user trust and usage experience.
[0074] See also Figure 2 , Figure 2A flow chart of a method for testing an external display interface of a laptop computer provided by an embodiment of the present application is shown. For ease of explanation, only the parts related to the present embodiment are shown. The method for testing an external display interface of a laptop computer provided by an embodiment of the present application is applied to a computer device, wherein the computer device is connected to a KVM switch, the KVM switch is also connected to an external display, and the external display is also connected to the laptop computer to be tested. The testing method includes:
[0075] Step S101, after the laptop computer to be tested switches to the external display for display, a display parameter acquisition request is initiated to the KVM switch, and the KVM switch is used to forward the display parameter acquisition request to the external display;
[0076] Step S102, receiving a display parameter stream returned by the KVM switch, wherein the display parameter stream is a parameter stream fed back by the external display to the KVM switch in response to the display parameter acquisition request;
[0077] Step S103 , using a preset display interface abnormality detection model, and analyzing abnormal state information of the external display interface of the laptop computer to be tested according to the display parameter stream.
[0078] In some embodiments, the preset video data includes preset decodable identification image data and preset image stream data; the external display cyclically displays the preset decodable identification image and the preset image stream according to the preset video data.
[0079] In some embodiments, the display parameter stream includes a resolution stream, a brightness stream, a contrast stream, a color stream and a pixel stream, the resolution stream includes a sequence of resolution values corresponding to multiple preset areas of the external display screen within a preset time, the brightness stream includes a sequence of brightness values corresponding to multiple preset areas of the external display screen within a preset time, the contrast stream includes a sequence of contrast values corresponding to multiple preset areas of the external display screen within a preset time, the color stream includes a sequence of color values corresponding to multiple preset areas of the external display screen within a preset time, and the pixel stream includes a sequence of pixel values corresponding to multiple preset areas of the external display screen within a preset time.
[0080] In some embodiments, the step S103 includes:
[0081] Using a preset principal component analysis algorithm, the display parameter stream is subjected to dimensionality reduction processing to obtain a target parameter stream;
[0082] Using the anomaly detection submodel in the preset display interface anomaly detection model, perform anomaly detection on multiple preset areas of the external display screen according to the target parameter stream, and output area status information corresponding to each preset area;
[0083] The abnormality detection decision model in the preset display interface abnormality detection model is used to perform decision analysis on the area status information of the plurality of preset areas, and the abnormal status information of the external display interface is output.
[0084] In some embodiments, the using of the anomaly detection submodel in the preset display interface anomaly detection model to perform anomaly detection on multiple preset areas of the external display screen according to the target parameter stream and outputting area status information corresponding to each preset area includes:
[0085] For each of the preset areas, the resolution value sequence, brightness value sequence, contrast value sequence, color value sequence and pixel value sequence corresponding to the preset area are input into the abnormality detection sub-model, and the area status information of the preset area is output;
[0086] Among them, for a target area containing a preset decodable identification image among the multiple preset areas, a decodable identification image of the target area is generated according to a display parameter stream corresponding to the target area, and the decodable identification image is decoded, and the decoding result of the decodable identification image is merged into the area status information of the target area.
[0087] In some embodiments, the using of the abnormality detection decision model in the preset display interface abnormality detection model to perform decision analysis on the regional status information of the plurality of preset regions and outputting the abnormal status information of the external display interface includes:
[0088] According to the positional proximity relationship of the preset areas, the regional status information of the plurality of preset areas is spliced into multi-region status information;
[0089] The multi-region status information is input into the abnormality detection decision model, and the abnormal status information of the external display interface is output. The abnormality detection decision model is a decision model constructed based on a decision tree algorithm.
[0090] The above-mentioned test method of the external display interface of the laptop computer can be applied to the computer device of the above-mentioned system embodiment. The optional items in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of this application can refer to the contents of the above-mentioned method embodiment and will not be described in detail in this embodiment.
[0091] Figure 3 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Figure 3 As shown, the computer device 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one is shown in the figure), a memory 31 and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 implements the steps of any of the above method embodiments when executing the computer program 32.
[0092] The computer device 3 may be a computing device such as a smart phone, a tablet computer, a desktop computer, a cloud server, etc. The computer device may include but is not limited to a processor 30 and a memory 31. Those skilled in the art will understand that Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0093] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0094] In some embodiments, the memory 31 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 31 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the computer device 3. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0095] In addition, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0096] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.
[0097] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
[0098] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0099] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims
1. A test system for an external display interface of a notebook computer, characterized in that: It includes a laptop computer to be tested, an external display, a KVM switch and a computer device, wherein the external display is connected to the laptop computer to be tested and the KVM switch respectively, and the KVM switch is also connected to the computer device; The laptop computer to be tested is used to send preset video data to an external display to control the external display to display the preset video; An external display, used for displaying the preset video according to the preset video data, and responding to the display parameter acquisition request forwarded by the KVM switch, and feeding back a display parameter stream of the external display; The KVM switch is used to forward the display parameter acquisition request sent by the computer device to the external display, and return the display parameter stream fed back by the external display to the computer device; A computer device, used for initiating the display parameter acquisition request, receiving the display parameter stream, and analyzing abnormal state information of the external display interface of the laptop computer to be tested according to the display parameter stream by using a preset display interface abnormality detection model; The display parameter stream includes a resolution stream, a brightness stream, a contrast stream, a color stream and a pixel stream, wherein the resolution stream includes a sequence of resolution values corresponding to a plurality of preset areas of the external display within a preset time, the brightness stream includes a sequence of brightness values corresponding to a plurality of preset areas of the external display within a preset time, the contrast stream includes a sequence of contrast values corresponding to a plurality of preset areas of the external display within a preset time, the color stream includes a sequence of color values corresponding to a plurality of preset areas of the external display within a preset time, and the pixel stream includes a sequence of pixel values corresponding to a plurality of preset areas of the external display within a preset time; wherein, The method of using a preset display interface abnormality detection model to analyze the abnormal state information of the external display interface of the laptop computer to be tested according to the display parameter stream includes: using a preset principal component analysis algorithm to perform dimensionality reduction processing on the display parameter stream to obtain a target parameter stream; using an abnormality detection sub-model in the preset display interface abnormality detection model to perform abnormality detection on multiple preset areas of the external display according to the target parameter stream, and outputting area state information corresponding to each preset area; using an abnormality detection decision model in the preset display interface abnormality detection model to perform decision analysis on the area state information of multiple preset areas, and outputting the abnormal state information of the external display interface; wherein, The method of utilizing the abnormality detection decision model in the preset display interface abnormality detection model to perform decision analysis on the regional status information of multiple preset areas and output the abnormal status information of the external display interface includes: splicing the regional status information of multiple preset areas into multi-area status information according to the positional adjacent relationship of the preset areas; inputting the multi-area status information into the abnormality detection decision model, and outputting the abnormal status information of the external display interface, wherein the abnormality detection decision model is a decision model constructed based on a decision tree algorithm.
2. The test system for the external display interface of a notebook computer as claimed in claim 1, characterized in that: The preset video data includes preset decodable identification image data and preset image stream data; The external display is further used to cyclically display a preset decodable identification image and a preset image stream according to the preset video data.
3. The test system for the external display interface of a notebook computer as claimed in claim 1, characterized in that: The method of using the abnormality detection submodel in the preset display interface abnormality detection model to perform abnormality detection on multiple preset areas of the external display according to the target parameter stream and outputting area status information corresponding to each preset area includes: For each of the preset areas, the resolution value sequence, brightness value sequence, contrast value sequence, color value sequence and pixel value sequence corresponding to the preset area are input into the abnormality detection sub-model, and the area status information of the preset area is output; Among them, for a target area containing a preset decodable identification image among the multiple preset areas, a decodable identification image of the target area is generated according to a display parameter stream corresponding to the target area, and the decodable identification image is decoded, and the decoding result of the decodable identification image is merged into the area status information of the target area.
4. A method for testing an external display interface of a notebook computer, characterized in that: The external display interface of a notebook computer is tested using the test system according to any one of claims 1 to 3, the test method comprising: After the laptop computer to be tested switches to the external display for display, a display parameter acquisition request is initiated to the KVM switch, and the KVM switch is used to forward the display parameter acquisition request to the external display; receiving a display parameter stream returned by the KVM switch, wherein the display parameter stream is a parameter stream fed back by the external display to the KVM switch in response to the display parameter acquisition request; The abnormal state information of the external display interface of the notebook computer to be tested is analyzed according to the display parameter stream by using a preset display interface abnormality detection model.
5. The method for testing the external display interface of a notebook computer as claimed in claim 4, characterized in that: The method of analyzing the abnormal state information of the external display interface of the laptop computer to be tested by using the preset display interface abnormality detection model according to the display parameter stream includes: Using a preset principal component analysis algorithm, the display parameter stream is subjected to dimensionality reduction processing to obtain a target parameter stream; Using the anomaly detection submodel in the preset display interface anomaly detection model, perform anomaly detection on multiple preset areas of the external display according to the target parameter stream, and output area status information corresponding to each preset area; The abnormality detection decision model in the preset display interface abnormality detection model is used to perform decision analysis on the area status information of the plurality of preset areas, and the abnormal status information of the external display interface is output.
6. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method for testing the external display interface of a laptop computer as claimed in claim 4 or 5 is implemented.
7. A computer-readable storage medium, characterized in that: It stores a computer program, and when the computer program is executed by a processor, the test method for the external display interface of a notebook computer as claimed in claim 4 or 5 is implemented.
Citation Information
Patent Citations
System and method for detecting multi-image signal
CN103941112A
System and method for testing notebook computer external display port
CN104461797A
Display screen self-adaptive response method and device based on multi-dimensional sensing data feedback
CN117475806A