Screen testing method and related equipment
By dynamically adjusting the display parameters and test images, combining polling settings and automatic detection, the problem of insufficient accuracy and flexibility of screen testing in the prior art is solved, and a more efficient screen testing method is realized.
Patent Information
- Application Number
- CN202311438722.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2043-10-31
AI Technical Summary
In the existing screen testing methods, the fixed values of display parameters and test images lead to low test accuracy and poor flexibility, and the test parameters and images need to be set in advance for different models of electronic devices, which is very labor-intensive and difficult to maintain.
The electronic device dynamically adjusts the value of the display parameters by reading the configuration information of the screen, generates a configuration file, including some values of the supported display parameters, uses polling to set the display parameters, and tests with the adapted test images to automatically detect screen abnormalities. .
Improves the accuracy and flexibility of screen testing, reduces the maintenance workload of the application layer, realizes automated inspection, and reduces the pressure of manual operations and resource library storage.
Smart Images

Figure CN118471102B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a screen testing method and related equipment. Background Art
[0002] Electronic devices may be equipped with display screens, but the display screens need to undergo screen testing before they can be put into use.
[0003] In a possible implementation, during the test, the electronic device sets the display parameters to fixed values, and the electronic device can detect whether the screen has abnormal problems such as flickering and screen distortion by playing the test image.
[0004] During the test, the electronic device is pre-set with display parameters and test images of the screen, such as display parameters such as display frame rate and peak brightness. The values of the display parameters are fixed, and the image type of the test image is also fixed, which makes the screen test method less accurate and less flexible in possible implementation. Summary of the invention
[0005] The embodiments of the present application provide a screen testing method and related equipment, which are applied to the field of terminal technology. When testing the screen, the electronic device can dynamically adjust the value of the display parameter according to the range supported by the screen, which can improve the accuracy of the screen testing method and make the configuration process more flexible.
[0006] In a first aspect, an embodiment of the present application proposes a screen testing method, which is applied to an electronic device, the method comprising: the electronic device is equipped with a first screen, and when the first screen is tested, the electronic device reads first configuration information of the first screen and generates a first configuration file; the first configuration information includes a range of values of N display parameters supported by the first screen; the first configuration file includes the name of any display parameter among the N display parameters, the value of any display parameter and the retention time of the value of any display parameter; the value of any display parameter includes a first value, a second value and a third value in the range of the value of the display parameter; the difference between the first value and the minimum value in the range of the value of the display parameter is less than a preset value, and the second value is less than a preset value. The difference between the medians in the range of values of is less than the preset value, the difference between the third value and the maximum value in the range of values of the display parameter is less than the preset value, and N is a positive integer; the electronic device sets the values of N display parameters according to the first configuration file, and uses the values of N display parameters and the test image to test the first screen; wherein, for any display parameter of the N display parameters, when the first value is maintained for a first time, the value of the display parameter is switched from the first value to the second value; when the second value is maintained for a second time, the value of the display parameter is switched from the second value to the third value; the first time is the holding time configured for the first value in the first configuration file; the second time is the holding time configured for the second value in the first configuration file. In this way, the first value and the third value can be used to reflect the operation of the screen when it is in an extreme state, and the second value can be used to reflect the operation of the screen when it is in a normal state, thereby improving the accuracy of the screen test results and making the configuration process more flexible.
[0007] In a possible implementation, when the third value is maintained for a third time period, the value of the display parameter is switched from the third value to the first value; the third time period is the time period configured for maintaining the third value in the first configuration file. In this way, the electronic device can reflect the effectiveness of the screen when the display parameter is set to an extreme state by rotating the value of the display parameter; and / or the effectiveness of the screen when the display parameter is set to a normal state, thereby improving the accuracy of the screen test results.
[0008] In a possible implementation, the value of any display parameter among the N display parameters also includes a fourth value in the range of the display parameter value, and the fourth value is different from the first value, the second value, and the third value; when the third value is maintained for a third time, the value of the display parameter is switched from the third value to the fourth value; when the fourth value is maintained for a fourth time, the value of the display parameter is switched from the fourth value to the first value; the third time is the holding time configured for the third value in the first configuration file; the fourth time is the holding time configured for the fourth value in the first configuration file. In this way, the electronic device can flexibly set the number of display parameter values and poll to set the display parameter values; the more display parameter values there are, the more accurate the test results of the screen are.
[0009] In a possible implementation, when testing the first screen, the electronic device reads the first configuration information of the first screen and generates a first configuration file, including: the hardware abstraction layer reads the first configuration information from the kernel layer; wherein the first configuration information is obtained by the kernel layer compiling based on the source file in the first screen when the electronic device is equipped with the first screen; the hardware abstraction layer generates the first configuration file based on the first value, the second value and the third value of the display parameter in the first configuration information. In this way, the first configuration file is dynamically generated based on the range of values of the display parameter supported by the first screen, the value of the display parameter is highly compatible with the first screen, and the screen test result obtained based on the value of the display parameter is relatively accurate; at the same time, the hardware abstraction layer of the electronic device dynamically generates the first configuration file, and the tester does not need to pre-set the calibration value of the test parameter in the application layer, which can reduce the workload of maintaining the application layer.
[0010] In a possible implementation, after the hardware abstraction layer generates the first configuration file based on the first value, the second value, and the third value of the display parameter in the first configuration information, it also includes: the application layer reads the first configuration file from the hardware abstraction layer based on the first interface, and the first interface supports communication between the application layer and the hardware abstraction layer. In this way, the first interface can reduce the coupling with the application framework layer, reduce the processing flow of the middle layer, and improve timeliness.
[0011] In a possible implementation, the application layer stores a first image, the first image is used for screen detection, and the test image is obtained by the application layer adapting the first image to the first screen, and the specification of the test image is the same as that of the first screen. In this way, the electronic device can dynamically adjust the test image according to the first screen, and there is no need to store a large number of image resources in the resource library, reducing the storage pressure of the resource library.
[0012] In a possible implementation, the test image includes a first test image and a second test image; the electronic device sets the values of N display parameters according to the first configuration file, and uses the values of N display parameters and the test image to test the first screen; including: when the electronic device uses the values of N display parameters and the first test image to test the first screen, the electronic device takes a screenshot of the first screen to obtain the second image; the electronic device inputs the second image into the model; the model has the ability to detect whether the first screen is abnormal; if the model of the electronic device outputs a fifth value, the electronic device loads the second test image, and uses the values of N display parameters and the second test image to test the first screen; the fifth value is used to indicate that no abnormality is detected in the first screen; otherwise, the electronic device ends the test process for the first screen, and the electronic device displays the first interface, the first interface includes a scannable code and / or abnormal prompt information; the abnormal prompt information is used to prompt the user that the first screen is abnormal, and the scannable code is used to scan to obtain the abnormal information of the first screen. In this way, the electronic device can automatically detect the screen through the second image to obtain the screen test result, without the need for manual experience to detect the screen, thereby improving the automation of the screen test method of the embodiment of the present application and reducing manual operation.
[0013] The first interface may be, for example, Figure 5 In the interface shown in e, the abnormal prompt information can be, for example, abnormal prompt information 505, and the scannable code can be, for example, scannable code 504.
[0014] In a possible implementation, the electronic device takes a screenshot of the first screen to obtain the second image, including: the electronic device takes a screenshot of the first screen to obtain a third image; the specifications of the third image are the same as those of the first screen; the electronic device compresses the third image to obtain the second image; the specifications of the second image are smaller than those of the third image. In this way, the electronic device can use a small-sized screenshot for abnormality detection, thereby reducing the computing pressure of the electronic device.
[0015] In a possible implementation, the display parameter includes at least one of the following: frame rate, brightness, resolution, contrast, and color gamut. In this way, the electronic device can flexibly configure multiple display parameters of the screen to obtain the operation status of the first screen under multiple display parameters, thereby improving the accuracy of the screen testing method.
[0016] In a second aspect, an embodiment of the present application provides an electronic device, which may also be referred to as a terminal device, a terminal, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. The electronic device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc.
[0017] The electronic device comprises: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the method as in the first aspect.
[0018] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect is implemented.
[0019] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the first aspect.
[0020] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method described in the first aspect.
[0021] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of an interface for testing a screen of an electronic device in a possible implementation;
[0023] Figure 2 A flowchart of screen testing in a possible implementation is shown;
[0024] Figure 3 A schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application;
[0025] Figure 4 A software structure block diagram of the electronic device 100 provided in an embodiment of the present application;
[0026] Figure 5 A schematic diagram of an interface of a screen testing method provided in an embodiment of the present application;
[0027] Figure 6 A schematic diagram of a flow chart of a screen testing method provided in an embodiment of the present application;
[0028] Figure 7 A schematic diagram of setting the values of display parameters in an embodiment of the present application;
[0029] Figure 8 A schematic diagram of a flow chart of a screen testing method provided in an embodiment of the present application;
[0030] Fig. 9 Schematic diagram of the generation process of the first configuration file in the embodiment of the present application;
[0031] Fig.10 A schematic diagram of a flow chart of a screen testing method provided in an embodiment of the present application;
[0032] Fig.11 A schematic diagram of the structure of a screen testing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0034] 1. Screen: The screen may be a display screen and / or a touch screen. The display screen and / or the touch screen may include a display panel. The display panel may include at least one of the following: MicroLed, organic light-emitting diode (OLED), flexible light-emitting diode (FLED), liquid crystal display (LCD), mini light-emitting diode (miniled), active-matrix organic light emitting diode or active-matrix organic light emitting diode (AMOLED), Micro-oLed, quantum dot light emitting diodes (QLED), etc., without limitation here.
[0035] 2. Others
[0036] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0037] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0038] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.
[0039] Figure 1 FIG. 1 shows a schematic diagram of an interface for testing a screen of an electronic device in a possible implementation. Figure 1 As shown:
[0040] During the test of the screen of the electronic device, the screen may be in a bright state, such as Figure 1 As shown in the a interface in the figure, the screen test application 101 is displayed in the interface. When the electronic device receives a trigger operation for the screen test application 101, the electronic device enters the screen test phase, and the electronic device can display multiple test images. For example, the electronic device displays Figure 1 The electronic device can detect whether the screen flickers or displays a distorted screen during the display of the test image 102; for example, after displaying the test image 102 for a period of time, the electronic device automatically switches to displaying the next test image, such as Figure 1 The test image 103 in the interface shown in c.
[0041] Multiple test images can reflect whether the screen can operate normally at a fixed frame rate and fixed brightness. When the electronic device displays multiple test images in sequence and no screen abnormality occurs, the screen is qualified.
[0042] In a possible implementation, test resources such as test images and calibration values of display parameters in electronic devices are fixed. When using fixed test resources to test different models of electronic devices, there may be scenarios where the fixed test resources cannot accurately reflect abnormal screen conditions. For example, the frame rate calibration values are 60fps and 90fps, and the screens of some electronic devices can support 140fps. When the frame rate calibration value is used to test the screen of an electronic device that supports a frame rate of 140fps, the effectiveness of the screen at the maximum frame rate cannot be detected. Therefore, in a possible implementation, the test results of this test method are less accurate.
[0043] In a possible implementation, when testing screens of multiple electronic devices of different models, the tester can also improve the accuracy of the test results by re-debugging the test images and calibration values of display parameters in the screen test application. For example, electronic device 1 and electronic device 2 are devices of different models, and the calibration values of display parameters in the screen test application in electronic device 1 are different from the calibration values of display parameters in the screen test application in electronic device 2. However, this method has poor flexibility and poor adaptability to electronic devices.
[0044] Furthermore, in a possible implementation, from a software perspective, the electronic device maintains the screen testing process through the application layer. Figure 2 The internal interaction flow chart of the screen test in a possible implementation is shown as Figure 2As shown:
[0045] The electronic device includes an application layer and a framework layer, the application layer includes a screen test application and a resource library, and the framework layer includes a brightness management module and a frame rate management module. In a possible implementation, the process of the electronic device performing a screen test can be shown as steps S201-S206:
[0046] S201. The electronic device starts a screen test application at the application layer.
[0047] S202: A screen test application of the electronic device loads any test image in a resource library.
[0048] S203. The screen test application of the electronic device instructs the frame rate management module of the framework layer to set the frame rate value to the frame rate calibration value; and instructs the brightness management module of the framework layer to set the brightness value to the brightness calibration value.
[0049] The frame rate calibration value and the brightness calibration value may be fixed values set in the electronic device.
[0050] S204: The screen test application of the electronic device displays any test image with the current frame rate as the frame rate calibration value and the current brightness as the brightness calibration value.
[0051] S205: When the electronic device receives an operation for ending the screen test based on the screen test application, the electronic device ends the screen test process.
[0052] Among them, when the screen appears abnormal, the screen test can be ended.
[0053] Alternatively, S206: When the electronic device does not receive an operation for ending the screen test within a certain period of time, the electronic device updates the test image.
[0054] For a test image, the electronic device may display it for a certain period of time. If no screen abnormality is detected after the period of time, the electronic device determines that the test item of the screen reflected by the current test image meets the standard. The electronic device may load the next test image and repeat S202-S206 until a screen abnormality is detected or all test images are tested.
[0055] Before the above-mentioned screen testing process, test resources such as display parameters and test images need to be pre-configured in the application layer. When the screen models of multiple electronic devices to be tested are different, it is necessary to pre-set the calibration values and test images of the corresponding display parameters in the electronic devices of different models. The workload of changing the screen configuration in the screen test application of each electronic device is large and difficult to maintain.
[0056] In view of this, the embodiment of the present application provides a screen testing method, when the electronic device uses the screen test application to test the screen, the electronic device can read the configuration information of the screen and generate a configuration file; the electronic device can set the corresponding display parameters according to the configuration file, and use the display parameters to perform a screen test process on the screen; wherein, the configuration information includes the range of display parameters supported by the screen, and the configuration file includes partial values that can reflect the range of display parameters, for example: the maximum value, minimum value and median value of the display parameters supported by the screen. The electronic device can test whether the screen can operate normally when the display parameters of the electronic device are in an extreme state through the maximum value and the minimum value, and the electronic device can also test whether the screen can operate normally when the display parameters of the electronic device are in a normal state through the median value. In this way, when testing the screen of the electronic device, the electronic device can dynamically adjust the value of the display parameter according to the range supported by the screen, which can improve the accuracy of the screen testing method and make the configuration process more flexible; at the same time, since the electronic device reads the configuration information from the screen, when testing the screens of electronic devices of different models, the operation of debugging test resources by the tester can be reduced, thereby reducing the workload of maintaining the screen test application.
[0057] Electronic device: It can also be called terminal device, terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. Electronic devices can be mobile phones, smart TVs, wearable devices, tablet computers, computers with wireless transceiver functions, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
[0058] Among them, wearable devices can also be called wearable smart devices, which are a general term for the intelligent design and development of wearable devices for daily wear using wearable technology, such as glasses, gloves, watches, clothing and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also realize powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smartphones to achieve complete or partial functions, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0059] In addition, in the embodiments of the present application, the electronic device may also be an electronic device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection. The embodiments of the present application do not limit the specific technology and specific device form used by the electronic device.
[0060] In an embodiment of the present application, the electronic device may include a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system may be any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0061] In order to better understand the embodiments of the present application, Figure 3 The structure of the electronic device in the embodiment of the present application is introduced:
[0062] Figure 3The structure diagram of the electronic device 100 is shown. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a subscriber identification module (SIM) card interface 195, and an embedded secure element (eSE) chip 196. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0063] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0064] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0065] In the embodiment of the present application, the electronic device 100 can execute the information processing steps in the screen testing method provided in the embodiment of the present application through the processor 110.
[0066] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0067] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0068] In the embodiment of the present application, the electronic device 100 can perform a screen test on the display screen 194 to check whether the display screen 194 can be used normally.
[0069] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0070] In the embodiment of the present application, the internal memory 12 may be used to store screen test resources, such as test images and screen configuration information.
[0071] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100. Figure 4 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0072] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the hardware abstract layer (HAL), and the kernel layer.
[0073] The application layer may include a series of application packages.
[0074] like Figure 4 As shown, the application package may include a resource library and a screen test application; wherein the screen test application includes an MMI module and an aging test module, wherein the MMI module may be used to measure the effectiveness of the screen, and the electronic device may use the MMI module to relatively quickly determine whether the screen has an abnormality; the aging test module may be used to measure the stability of the screen after a long period of operation. The resource library may be used to store a complete set of test image resources, and the test images may be general pictures, videos, etc., or pictures, videos, etc. customized for any model of screen.
[0075] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0076] like Figure 4 As shown, the application framework layer may include a display framework and an exception detection module. The display framework includes a frame rate management module, a brightness management module, a resolution management module, a screen management module, a color management module, a contrast management module, and a constant display (Always on display, AOD) management module. The display framework may be a surface flinger, and the display framework may be used to manage the frame rate, brightness, resolution, screen, color gamut, and AOD mode according to the instructions issued by the screen test application. The exception detection module is used to detect abnormal scenes during the screen test, wherein an abnormal detection model is provided in the abnormal detection module.
[0077] The hardware abstraction layer may include a hardware display module, a configuration file generation module and a hardware abstraction layer (HAL) interface. The hardware display module may include a frame rate control module, a brightness control module, a resolution control module, a screen control module, a color control module, a contrast control module and an AOD control module. Among them, the hardware display module may receive instructions from the display framework of the application framework layer to set the corresponding frame rate, brightness, resolution, screen, color gamut and AOD mode. The configuration file generation module can be used to read the configuration information of the screen and generate a configuration file. The HAL interface can support communication between the hardware abstraction layer and the application layer.
[0078] The kernel layer is a layer between hardware and software. The kernel layer is used to drive the hardware so that the hardware works. The kernel layer may include a display device driver and a DTBO partition, etc. The display device driver may be connected to the display panel of the screen of the hardware layer to realize the display function of the electronic device. The device tree blob overlay (DTBO) partition is a partition introduced by the Android system, which is used to store device tree blob (DTB) files, wherein, in an embodiment of the present application, the DTB file may be the configuration information of the screen of the electronic device. The DTBO partition may include a manufacturer information module, and the manufacturer information module includes a configuration information module, wherein the manufacturer information module stores interface information of multiple manufacturers, and the electronic device can read the interface information of the manufacturer through the manufacturer identification in the screen, and read the configuration information in the screen through the interface information.
[0079] Optionally, the DTBO partition may also be configured in the hardware abstraction layer, which is not limited in the embodiments of the present application.
[0080] Combine the following Figure 5 The applicable scenarios of the screen testing method in the embodiment of the present application are described. Figure 5 A schematic diagram of an interface of a screen testing method provided by an embodiment of the present application is shown, such as Figure 5 As shown:
[0081] The screen of the electronic device may display a screen test application, and the screen test application may be, for example, a man-machine interface (MMI) application, such as Figure 5 As shown in a in the figure, the electronic device can display the screen test application 501. When the electronic device receives a trigger operation for the screen test application 501, the electronic device enters the screen test phase. In the embodiment of the present application, the tester can also start the screen test application 501 by entering a code (such as *#xxxx#), the electronic device can start the screen test application based on the user operation, and the electronic device can also simulate the user operation through an instruction to start the screen test application, which is not limited in the embodiment of the present application.
[0082] After the electronic device starts the screen test application 501, the electronic device can load the test image 502, such as Figure 5 After the electronic device displays the test image 502 for a period of time, if the electronic device does not detect any test abnormality, the electronic device may load the next test image, for example Figure 5 Test image 503 in the interface shown in c in . In the embodiment of the present application, the test image can be a picture and / or a video. The test image can be used to reflect whether the screen is qualified. The electronic device can reflect whether there are problems such as no display, incomplete display and abnormal display by displaying multiple test images. These problems are specifically for example: blue screen, white screen, flower screen, screen code breakage, screen jitter, screen flicker, bright spots and horizontal and vertical lines. The embodiment of the present application only shows two test images by way of example. In an actual test scenario, the electronic device can load more test images. The embodiment of the present application does not limit the number of test images and the style of test images.
[0083] For any test image, the electronic device can display the test image and detect whether there is a problem with the screen based on the test image. If the detection is correct, the electronic device continues to detect the next test image until the electronic device traverses multiple test images and does not detect any abnormality on the screen, then the electronic device can display the following Figure 5 The interface shown in d. Figure 5 In the interface shown in d, the electronic device may display a test pass prompt message 503, and the test pass prompt message 503 is used to prompt the user that the screen has passed the test. Figure 5 The interface shown in d in the figure can also display the test results of the screen in multiple test items, which is not limited in the present embodiment. The present embodiment will later explain the method for detecting whether the screen is abnormal, so no further description is given here.
[0084] Alternatively, in some embodiments, when the electronic device tests the screen based on any test image, it may detect that the screen has an abnormality, and the electronic device may detect that the screen has an abnormality by Figure 5 The error is reported in the interface shown in e. Figure 5 In the interface shown in FIG. 5 , the electronic device may display a scannable code 504 of the error type and an abnormal prompt message 505. The abnormal prompt message 505 may be used to prompt the user that the screen is abnormal, and the scannable code 504 is used to scan and obtain the abnormal information of the screen. The abnormal prompt message 505 may be, for example, an error code and an error title, and the user may learn the type of abnormality on the screen through the scannable code 504 and / or the abnormal prompt message 505.
[0085] It should be noted that in the embodiment of the present application, after entering the screen test application, the electronic device can automatically obtain the configuration information of the screen and generate a configuration file; when the electronic device loads any test image, the electronic device can set the corresponding display parameters through the configuration file and display the test image. During the test process, the abnormality detection module in the embodiment of the present application can detect whether there is an abnormality when the screen displays the test image. At the end of the test, the electronic device displays a prompt message that the screen test has passed or a prompt message that the screen test is abnormal.
[0086] In this way, during the process of testing the screen, the tester does not need to debug the display parameters and test images in the screen test application. The electronic device can automatically detect the screen and reflect the screen test results, thereby simplifying manual operations and improving the flexibility of the screen testing method.
[0087] The above embodiments illustrate the use scenarios of the screen testing method provided by the embodiments of the present application. Figure 6 The following describes the use process of the screen testing method provided in the embodiment of the present application. Figure 6 A schematic diagram of the process of the screen testing method provided in the embodiment of the present application is shown. Figure 6 As shown:
[0088] The electronic device may be equipped with a first screen, and the electronic device may be Figure 5 The scenario shown is used to test the first screen, and the testing process may be as shown in steps S601-S602:
[0089] S601: The electronic device reads first configuration information of a first screen and generates a first configuration file.
[0090] The first screen is the screen currently equipped with the electronic device, and the first configuration information includes the value range of N display parameters supported by the first screen, where N is a positive integer. The N display parameters include at least one of the following: frame rate, brightness, resolution, touch sampling rate, color gamut, contrast, etc.
[0091] The first configuration file includes the name of any display parameter among the N display parameters, the value of any display parameter and the retention time of the value of any display parameter. The value of any display parameter includes a first value, a second value and a third value in the range of the value of the display parameter; the difference between the first value and the minimum value in the range of the value of the display parameter is less than a preset value, the difference between the second value and the median value in the range of the value of the display parameter is less than a preset value, and the difference between the third value and the maximum value in the range of the value of the display parameter is less than a preset value.
[0092] For example, if the display parameter is frame rate, the range of the frame rate value in the first configuration information is 1-120fps. The content related to the frame rate in the first configuration file can be, for example,<name> FpsConvert< / name> , <value> 1,60,120< / value> , <delay> 200,200,200< / delay> The name of the frame rate is FpsConvert, the multiple values of the frame rate are 1fps, 60fps, and 120fps, and the retention time of any value among the multiple values of the frame rate is 200ms.
[0093] In one possible implementation, the preset value may be 0, the first value of the display parameter may be the minimum value in the range of values of the display parameter; the second value of the display parameter may be the median value in the range of values of the display parameter; the third value of the display parameter may be the maximum value in the range of values of the display parameter; for example: the first value of the frame rate may be 1fps, the second value of the frame rate may be 60fps, and the third value of the frame rate may be 120fps, wherein the first value of the frame rate is the minimum value in the range of values of the frame rate, the second value of the frame rate is the median value in the range of values of the frame rate, and the third value of the frame rate is the maximum value in the range of values of the frame rate.
[0094] In another possible implementation, the preset value may not be 0. It is understandable that the value of the display parameter may not be equal to the extreme value and / or the median value, but the difference between the value of the display parameter and the extreme value and / or the median value is small, and the electronic device can still reflect the effectiveness of the screen when the display parameter is set to the extreme state through the value of the display parameter; and / or the effectiveness of the screen when the display parameter is set to the normal state. The embodiment of the present application does not limit the range of the preset value.
[0095] S602. The electronic device sets the values of N display parameters according to the first configuration file, and tests the first screen using the values of the N display parameters and the test image; wherein, for any display parameter among the N display parameters, when the first value is maintained for a first time period, the value of the display parameter is switched from the first value to the second value; when the second value is maintained for a second time period, the value of the display parameter is switched from the second value to the third value.
[0096] The test image can be, for example, Figure 5 The test image 502 shown in the b interface in ; the first duration can be the holding duration configured as the first value in the first configuration file; the second duration can be the holding duration configured as the second value in the first configuration file, wherein the first duration can be the same as or different from the second duration.
[0097] In one possible implementation, for any display parameter among N display parameters, the value of the display parameter may include a first value, a second value and a third value; after the display parameter switches from the second value to the third value, it also includes: when the third value is maintained for a third time period, the value of the display parameter switches from the third value to the first value, and the third time period may be the holding time configured for the third value in the first configuration file; in this way, the electronic device may poll and set the first value, the second value and the third value according to the first time period, the second time period and the third time period respectively; the first value and the third value are used to reflect the operating conditions of the screen when it is in an extreme state, and the second value is used to reflect the operating conditions of the screen when it is in a normal state, thereby improving the accuracy of the screen test results.
[0098] In another possible implementation, for any display parameter among the N display parameters, the value of the display parameter may also include a fourth value in the range of the value of the display parameter, and the fourth value is different from the first value, the second value and the third value. After the display parameter has a second value switched to a third value, it also includes: when the third value is maintained for a third duration, the value of the display parameter is switched from the third value to the fourth value; when the fourth value is maintained for a fourth duration, the value of the display parameter is switched from the fourth value to the first value; the fourth duration may be the duration configured for the fourth value in the first configuration file. The fourth value may be one or more values other than the median and the extreme value. The embodiment of the present application polls and sets the value of the display parameter in the order of the first value, the second value, the third value and the fourth value. The embodiment of the present application may also use any arrangement order from the first value to the fourth value for polling and setting, and the embodiment of the present application does not limit this. In this way, the electronic device can flexibly set the number of values of the display parameter and poll and set the value of the display parameter; the more values of the display parameter, the more accurate the test result of the screen.
[0099] The screen test method provided by the embodiment of the present application reads the first configuration information of the first screen through the electronic device, and generates a first configuration file, the value of any display parameter in the first configuration file includes a first value, a second value and a third value; the first value is used to characterize the minimum value of the range of the value of the display parameter, the second value is used to characterize the median value of the range of the value of the display parameter, and the third value is used to characterize the maximum value of the range of the value of the display parameter; the electronic device sets the values of N display parameters according to the first configuration file, and uses the values of N display parameters and the test image to test the first screen. In this way, the operation of the screen when it is in an extreme state can be reflected by the first value and the third value, and the operation of the screen when it is in a normal state can be reflected by the second value, thereby improving the accuracy of the screen test results.
[0100] The electronic device can poll and set the value of any display parameter in the N display parameters according to the first configuration file, and the electronic device displays the test image in real time with the current value of the display parameter. For example, the following example takes the N display parameters including frame rate and brightness, and the number of values of frame rate and brightness in the first configuration file is 3. Figure 7 The process of setting the value of the display parameter in the above embodiment is described in detail. Figure 7 As shown:
[0101] For example, in the first configuration file, the first duration of the frame rate is 200ms, the second duration of the frame rate is 200ms, and the third duration of the frame rate is 200ms; the first value of the frame rate is 1fps, the second value of the frame rate is 60fps, and the third value of the frame rate is 120fps. The first duration of the brightness is 100ms, the second duration of the brightness is 100ms, and the third duration of the brightness is 100ms; the first value of the brightness is 0nit, the second value of the brightness is 2048nit, and the third value of the brightness is 4096nit. The test duration of a test image is 2s.
[0102] At time 0, the electronic device completes loading the first configuration file and the test image, and the electronic device sets the frame rate to 1fps and the brightness to 0nit according to the first configuration file.
[0103] The electronic device polls and sets the first, second and third values of the frame rate according to the first, second and third durations of the frame rate, respectively, and polls and sets the first, second and third values of the brightness according to the first, second and third durations of the brightness.
[0104] Specifically, within 0-100ms, the frame rate value is 1fps and the brightness value is 0nit.
[0105] At 100 ms, the duration of maintaining the first value of brightness reaches the first duration of brightness, and the electronic device updates the value of brightness to the second value of brightness, for example, the updated brightness value is 2048 nit.
[0106] Within 100-200ms, the frame rate is 1fps and the brightness is 2048nit.
[0107] At 200ms, the holding time of the first value of the frame rate reaches the first duration of the frame rate, and the electronic device updates the value of the frame rate to the second value of the frame rate, for example, the updated frame rate value is 60fps; the holding time of the second value of the brightness reaches the second duration of the brightness, and the electronic device updates the value of the brightness to the third value of the brightness, for example, the updated brightness value is 4096nit.
[0108] Within 200-300ms, the frame rate is 60fps and the brightness is 4096nit.
[0109] At 300ms, the duration of holding the third value of brightness reaches the third duration of brightness, and the electronic device updates the value of brightness to the first value of brightness, for example, the updated brightness value is 0nit.
[0110] Within 300-400ms, the frame rate is 60fps and the brightness is 0nit.
[0111] At 400ms, the holding time of the second value of the frame rate reaches the second duration of the frame rate, and the electronic device updates the frame rate value to the third value of the frame rate, for example, the updated frame rate value is 120fps; the holding time of the first value of the brightness reaches the first duration of the brightness, and the electronic device updates the brightness value to the second value of the brightness, for example, the updated brightness value is 2048nit.
[0112] Within 400-500ms, the frame rate is 120fps and the brightness is 2048nit.
[0113] At 500ms, the duration of maintaining the second value of the brightness reaches the second duration of the brightness, and the electronic device updates the brightness value to the third value of the brightness. For example, the updated brightness value is 4096nit.
[0114] Within 500-600ms, the frame rate is 120fps and the brightness is 4096nit.
[0115] By analogy, the electronic device polls the frame rate and brightness settings respectively until the test duration of the test image is reached. For example, at 2 seconds, the electronic device stops polling the frame rate and brightness settings.
[0116] It is understandable that the numerical values in the above embodiments are only used to illustrate the setting process of the display parameter values, and do not limit the specific values of the display parameters. In the actual test process, the display parameters may also include resolution, touch sampling rate, color gamut and contrast, etc. The setting process of these parameters may be similar to the above embodiments, and the embodiments of this application will not be repeated; this application does not limit the number of values of any display parameter and the duration of any value of any display parameter.
[0117] Combine the following Figure 8 The execution process of the screen testing method provided in the embodiment of the present application is described as follows: Figure 8 As shown:
[0118] The electronic device is equipped with a first screen, and the electronic device may include an application layer, an application framework layer, a hardware abstraction layer and a kernel layer; wherein the application layer may include a screen test application and a resource library; the application framework layer may include a display framework and an anomaly detection module; the hardware abstraction layer may include a hardware display module and a configuration file generation module; and the kernel layer includes a DTBO partition.
[0119] S801. The electronic device starts a screen test application.
[0120] The electronic device may start the screen test application by receiving an operation of clicking an icon of the screen test application on the screen, for example Figure 5 The electronic device can also start the screen test application by receiving the operation of inputting the secret code. The electronic device can also simulate the user operation to start the screen test application by specific instructions. The embodiment of the present application does not limit the way to start the screen test application.
[0121] S802: The screen test application instructs the configuration file generation module of the electronic device to read first configuration information from the DTBO partition.
[0122] The DTBO partition includes first configuration information, which is compiled by the kernel layer based on the source files in the first screen when the electronic device is equipped with the first screen. The source files of the first screen may be, for example, device tree (DT) source files of the first screen.
[0123] It should be noted that the first screen includes a DT source file provided by the manufacturer, and the DT source file includes the first configuration information. A first identifier is preset in the first screen, and the interface information of screens from different manufacturers is pre-stored in the electronic device. There is a corresponding relationship between the identifier and the interface information of the screen. For example, the first identifier corresponds to the interface of the first screen. When the electronic device is equipped with the first screen, the electronic device recognizes the first identifier in the first screen, and can determine the interface of the first screen that communicates with the first screen based on the first identifier. The electronic device obtains the DT source file of the first screen through the interface of the first screen, and compiles the DT source file into the DTB file, and the DTB file is stored in the DTBO partition. Therefore, in step S802, the electronic device can read the first configuration information of the first screen from the DTBO partition.
[0124] Specifically, the first configuration information includes: a range of frame rate values, a range of brightness values, a range of resolution values, a range of contrast values, a range of color gamut values, and the like.
[0125] S803: A configuration file generating module of the electronic device generates a first configuration file based on the first value, the second value, and the third value of the display parameter in the first configuration information.
[0126] The first configuration information includes the range of display parameter values supported by the first screen. In the actual test process, if the electronic device traverses the range of display parameter values, it will take a long time and the test workload will be large, so the electronic device can filter some values that can reflect the screen in different states from the range of display parameter values as the values of the display parameters to be measured. For example, the first value, the second value, and the third value correspond to the minimum value, the median value, and the maximum value in the range of display parameter values, respectively. Among them, the first value and the third value can represent whether the screen can operate normally under extreme conditions; the second value can represent whether the screen can operate normally under normal conditions.
[0127] The first configuration file includes the name of any display parameter among the N display parameters, the value of any display parameter, and the retention time of the value of any display parameter. The format of the first configuration file can be referred to Figure 7 The relevant descriptions in the corresponding embodiments are not repeated here.
[0128] Optionally, in steps S802 and S803, the electronic device may read the first configuration information and generate a first configuration file through steps ① to ③. The process may be as follows: Fig. 9 As shown:
[0129] ① Obtain the value ranges of N display parameters respectively, where the N display parameters include: frame rate, brightness, resolution, contrast, color gamut, etc.
[0130] ② Convert the value ranges of M display parameters into sequence values of the display parameters, where the M display parameters include frame rate and brightness, etc.
[0131] The sequence value may be an index used to characterize the value of the display parameter. When the electronic device uses the value of some display parameters, it is necessary to convert the value of the display parameter into the sequence value of the display parameter according to a preset rule, wherein the value of the display parameter and the sequence value of the display parameter have a mapping relationship. For example, according to Google's preset rule, both the frame rate value and the brightness value need to be converted into a sequence value.
[0132] For example, the range of frame rate values may include 1fps, 10fps, 30fps, 60fps, 90fps and 120fps, and the corresponding sequence values of frame rate are 0, 1, 2, 3, 4 and 5, where the frame rate sequence value 1 is used to represent the frame rate value of 10fps. For another example, the range of brightness values may include 0-4096nit, and the corresponding sequence values of brightness are 0-255.
[0133] ③ Generate first configuration information, the first configuration information includes at least one of the following: a name of a display parameter, a value of the display parameter, and a retention time of the value of the display parameter.
[0134] In a possible implementation, for M display parameters, the electronic device may set the first value, the second value, and the third value according to the sequence value of the display parameter. For example, the first value of the frame rate may be 0, the second value of the frame rate may be 3, and the third value of the frame rate may be 5; for another example, the first value of the brightness may be 0, the second value of the brightness may be 127, and the third value of the brightness may be 255.
[0135] For NM display parameters, the electronic device can set the first value, the second value and the third value according to the range of the value of the display parameter. For example, the range of the value of the color gamut is 0-72, the first value of the color gamut can be 0, the second value of the color gamut can be 36, and the third value of the color gamut can be 72.
[0136] It should be noted that the present application only illustrates the values of some display parameters for the purpose of illustrating the rules for generating configuration files according to configuration information, and does not impose specific restrictions on the values of the display parameters.
[0137] In addition, the first configuration file may also include other display parameters, such as AOD, screen type, and resource type. These parameters may not involve the process of screening and polling to set the first value, the second value, and the third value. Exemplarily, the value of the AOD mode includes, for example, 0, 1, 2, and 3, where 0 corresponds to a non-AOD mode, 1 corresponds to a first AOD mode, 2 corresponds to a second AOD mode, and 3 corresponds to a third AOD mode. In the process of displaying a single test image, the first configuration file includes one of the values of the AOD mode, and the electronic device does not switch the value of the AOD. The embodiment of the present application does not limit the display parameters in the first configuration file.
[0138] S804: The screen test application of the electronic device reads a first configuration file from a configuration file generating module.
[0139] The configuration file generation module may cache the first configuration file, and the screen test application may read the first configuration file from the configuration file generation module.
[0140] In some embodiments, a first interface is provided in the hardware display module of the hardware abstraction layer, and the first interface supports communication between the hardware abstraction layer and the application layer. The first interface may be a HAL interface, and the HAL interface may include, for example, a HAL interface definition language (HIDL) interface and / or an Android interface definition language (AIDL) interface. The screen test application may read the first configuration file from the configuration file generation module based on the first interface. Among them, the first interface may reduce coupling with the application framework layer, reduce the processing flow of the middle layer, and improve timeliness.
[0141] In some other embodiments, the screen test application may also read the first configuration file of the configuration file generation module through an API interface in the application framework layer. This embodiment of the present application does not limit this.
[0142] S805: The screen test application of the electronic device loads a test image from a resource library.
[0143] In some embodiments, the resource library may be a complete set of resources including multiple test original images. The resource library stores a first image, which is used for screen detection. The test image is obtained by adapting the first image to the first screen by a screen test application, and the specifications of the test image are the same as those of the first screen.
[0144] It is understandable that the first image can be a test original image, and the test original images in the resource library are in various forms, and it cannot be ensured that any test original image is suitable for the first screen. At this time, the electronic device can adapt the test original image to the first screen according to the first configuration file. For example, the specification of the test original image is 640×480, and the specification of the first screen is 1920×1080. The specifications of the two are different, and the test original image cannot be fully displayed on the first screen. The electronic device can adapt the processed test original image to the first screen by stretching and / or cropping the image, wherein the specification of the test image is the same as that of the first screen.
[0145] In this way, the electronic device can dynamically adjust the test image according to the first screen, and there is no need to store a large amount of image resources in the resource library, thereby reducing the storage pressure of the resource library.
[0146] In other embodiments, multiple test image sets may be preset in the resource library, and the test image used by the first screen corresponds to the first test image set. The electronic device searches for the first test image set according to the first identifier of the first screen and loads the test image in the first test image set.
[0147] It is understandable that the electronic device may pre-store test image sets corresponding to multiple models of screens. During the actual testing process, the electronic device matches the test image set corresponding to the screen in multiple test image sets according to the identification information in the screen.
[0148] S806: The screen test application of the electronic device instructs the hardware display module to set values of N display parameters according to the first configuration file.
[0149] The process of setting the values of N display parameters by an electronic device may be as shown in the following steps: the screen test application sends the values of N display parameters to the display framework, the display framework sends the values of N display parameters to the hardware display module, and the hardware display module sets the values of N display parameters.
[0150] For example Figure 4 As shown, the display framework may include a frame rate management module, a brightness management module, a resolution management module, a color management module, and a contrast management module, etc.; the hardware display module includes a frame rate control module, a brightness control module, a resolution control module, a color control module, and a contrast control module, etc. Among them, after the frame rate management module obtains the value of the frame rate, it sends the value of the frame rate to the frame rate control module, and the frame rate control module sets the value of the frame rate; after the brightness management module obtains the value of the brightness, it sends the value of the brightness to the brightness control module, and the brightness control module sets the value of the brightness; after the resolution management module obtains the value of the resolution, it sends the value of the resolution to the resolution control module, and the resolution control module sets the value of the resolution; after the color management module obtains the value of the color gamut, it sends the value of the color gamut to the color control module, and the color control module sets the value of the color gamut; after the contrast management module obtains the value of the contrast, it sends the value of the contrast to the contrast control module, and the contrast control module sets the value of the contrast.
[0151] S807: The screen test application of the electronic device tests the first screen using the values of N display parameters and the test image.
[0152] The process of the electronic device testing the first screen using the N display parameter values and the test image can refer to step S602 and Figure 7 The relevant description in the illustrated embodiment will not be repeated here.
[0153] S808: During the first preset time period, the display framework of the electronic device takes a screenshot of the first screen to obtain a second image.
[0154] The second image can be used to detect abnormalities on the screen, and the electronic device can periodically take screenshots of the screen to obtain multiple second images. Subsequently, the electronic device can check whether the screen is abnormal based on the second image.
[0155] It is understandable that the electronic device needs to spend a certain amount of time to set the N display parameters. When the electronic device has not completed setting the values of the N display parameters, the screenshot obtained by the electronic device cannot accurately reflect the abnormal situation of the screen, so it is necessary to reserve a period of time for the electronic device to set the values of the display parameters. When the values of all displayed parameters are set, the electronic device takes a screenshot of the screen, and the accuracy of the second image at this time is higher. The first preset time length can be slightly longer than the time length used by the electronic device to set the N display parameters.
[0156] Optionally, the first preset duration can ensure to a certain extent that the values of the N display parameters have been set when the screenshot is taken. To improve the accuracy of abnormality detection, the display framework of the electronic device can also obtain the values of each display parameter in the hardware display module to facilitate subsequent verification of whether the N display parameters are set successfully.
[0157] S809: The display frame of the electronic device transmits the second image to the abnormality detection module.
[0158] S810. The abnormality detection module of the electronic device uses the second image to detect whether an abnormality occurs on the first screen.
[0159] The anomaly detection module includes an anomaly detection model, and the anomaly detection model has the ability to detect whether the second image is abnormal. The anomaly detection module can detect the second image through the anomaly detection model. The workflow and training process of the anomaly detection model will be described in the subsequent embodiments of the present application, and will not be repeated here.
[0160] Optionally, the abnormality detection module of the electronic device may also obtain the values of N display parameters, and the abnormality detection module may also detect whether the values of the N parameters are set successfully.
[0161] Optionally, in step S810, it may also include: the abnormality detection module of the electronic device uploads the inspection data to the cloud server, and the inspection data includes the second image and / or the inspection report.
[0162] In some embodiments, after the cloud server obtains the inspection data, the cloud server can calculate the screen qualification rate and abnormal factors of a batch of electronic devices based on the inspection report to facilitate the subsequent maintenance of the screen.
[0163] In some other embodiments, after the cloud server obtains the inspection data, the cloud server can train the anomaly detection model based on the second image to obtain an updated anomaly detection model. When the electronic device is not in a working period, the electronic device can update the anomaly detection model. In this way, the accuracy of the detection result of the anomaly detection model can be improved, thereby improving the accuracy of the screen testing method in the embodiment of the present application.
[0164] S811. If there is an abnormality in the first screen, the electronic device terminates the screen testing process.
[0165] When the abnormality detection module detects that the first screen is abnormal, the electronic device can end the screen test process and display the test abnormality interface. For example, the test abnormality interface can correspond to Figure 5 The interface shown in e in FIG. 5 includes a scannable code 504 and an abnormal prompt information 505 .
[0166] Alternatively, after step S810, the method further includes:
[0167] S812: If there is no abnormality on the first screen, the screen test application of the electronic device loads the next test image from the resource library.
[0168] When the abnormality detection module does not detect an abnormality in the first screen, the electronic device may repeatedly execute S805-S811 and test the first screen based on the next test image until an abnormality is detected in the first screen or all test images are tested.
[0169] If all test images are tested and the electronic device does not detect any abnormality in the first screen, the electronic device may display a test pass interface. The test pass interface may be as shown in FIG. Figure 5 Otherwise, the electronic device displays the test abnormality interface, which can be as shown in d. Figure 5 The interface shown in e.
[0170] In an embodiment of the present application, during the test of the first screen, the electronic device can obtain first configuration information from the first screen and generate a first configuration file; the first configuration file is dynamically generated based on the range of values of the display parameters supported by the first screen, the values of the display parameters are highly compatible with the first screen, and the screen test results obtained based on the values of the display parameters are relatively accurate; the settings of the display parameters and the test images are no longer fixed resources, making the screen testing method more flexible; at the same time, the hardware abstraction layer of the electronic device dynamically generates the first configuration file, and there is no need for the tester to pre-set the calibration values of the test parameters in the application layer, which can reduce the workload of maintaining the application layer.
[0171] The above embodiment illustrates the process of the screen testing method provided in the embodiment of the present application. The following is a brief description of the anomaly detection model in the embodiment of the present application.
[0172] Exemplarily, the anomaly detection model may be a trained deep network model, and the anomaly detection model has the ability to detect whether the second image is abnormal. Fig.10 The schematic diagram of the detection process of the anomaly detection model in the embodiment of the present application is shown as follows: Fig.10 As shown:
[0173] The test image may include a first test image and a second test image. When the electronic device sets the values of N display parameters according to the first configuration file and tests the first screen using the values of the N display parameters and the first test image, the electronic device may perform the following steps:
[0174] S1001. The anomaly detection module obtains a third image.
[0175] The third image may be an original screenshot. For example, the original screenshot is obtained by taking a screenshot of the first screen, and the specifications of the original screenshot are the same as those of the first screen.
[0176] S1002: The abnormality detection module preprocesses the third image to obtain a second image.
[0177] The second image may be a screenshot obtained by pre-processing the original screenshot.
[0178] Preprocessing can be, for example, normalization processing. The anomaly detection module can use normalization processing to preprocess the specifications of the screenshot to obtain an image that can meet the operational requirements of the anomaly detection model. It is understandable that in order to reduce the operational pressure of the anomaly detection model, the image that the anomaly detection model can process can be a screenshot with a smaller specification. For example, the anomaly detection model can process 640×480 images. When the first screen of the electronic device is larger, for example, 11020×1080, the anomaly detection module can compress the original screenshot to reduce the size of the screenshot so that the preprocessed screenshot is compatible with the anomaly detection model.
[0179] S1003: The anomaly detection module inputs the second image into an anomaly detection model and obtains a detection result.
[0180] The detection result can be a score for the similarity between the second image and the normal test image. For example, if the similarity is greater than the similarity threshold, the abnormality detection module outputs a fifth value; the fifth value is used to indicate that no abnormality is detected in the first screen; for another example, if the similarity is less than or equal to the similarity threshold, the abnormality detection module outputs a sixth value; the sixth value is used to indicate that an abnormality is detected in the first screen.
[0181] S1004: If the anomaly detection model outputs a fifth value, the screen test application loads a second test image, and uses the values of N display parameters and the second test image to test the first screen.
[0182] Or, S1005, otherwise, the screen test application ends the test process for the first screen, and the electronic device displays a test exception interface.
[0183] For steps S1003-S1005, reference may be made to the relevant descriptions of steps S810-S812, which will not be repeated here.
[0184] Optionally, in step S1005, the electronic device may determine the type of abnormal problem existing in the first screen according to the detection result of the abnormality detection model, for example, when the abnormality detection model outputs the sixth value, the first test item is abnormal during the test of the first screen; when the abnormality detection model outputs the seventh value, the second test item is abnormal during the test of the first screen, etc. The embodiment of the present application is not limited to this.
[0185] Optionally, in an embodiment of the present application, a normal test image and an abnormal test image can be used to train a deep network model to obtain an anomaly detection model, and the anomaly detection model has the ability to detect whether the second image is abnormal.
[0186] In some embodiments, the cloud server can train the model based on high computing power to obtain an anomaly detection model, and synchronize the anomaly detection model to the electronic device. Subsequently, the cloud server can improve the anomaly detection model based on the second image fed back by the electronic device, and synchronize the updated anomaly detection model to the electronic device.
[0187] In some other embodiments, after the electronic device sets the abnormality detection model, it can also use the second image to train and update the abnormality detection model during non-working hours. The embodiments of the present application do not limit this.
[0188] Optionally, in an embodiment of the present application, the screen test application may include an MMI module and an aging detection module, wherein the MMI module may provide a first test mode, and the aging detection module may provide a second test mode. The first test mode is used to detect the validity of the first screen, and the second test mode is used to detect the stability of the first screen.
[0189] In a possible implementation, in an actual test scenario, after starting the screen test application, the electronic device can set a first test mode based on the MMI module; in the first test mode, the electronic device tests the first screen and outputs the test result. The test process can refer to the relevant description in steps S801-S812, and the embodiments of the present application will not be repeated here.
[0190] When the first screen is normal, the electronic device can set a second test mode based on the aging detection module; in the second test mode, the electronic device tests the first screen and outputs the test result. The test process can refer to the relevant description in steps S801-S812, and the present embodiment of the application will not be repeated.
[0191] The test duration of the first screen performed by the electronic device in the first test mode is shorter than the test duration of the first screen performed by the electronic device in the second test mode.
[0192] It is understandable that the first test mode can implement a short-term screen test, and the electronic device can quickly check whether there is an abnormality in the first screen through the first test mode. The second test mode is a long-term screen test, and the electronic device can detect the stability of the first screen in long-term operation through the second test mode, for example, to test whether the screen is aged and has abnormal problems such as screen discoloration and screen burn-in.
[0193] When there is no abnormality on the first screen in the second test mode, the electronic device can set the first test mode again based on the MMI module; in the first test mode, the electronic device tests the first screen again and outputs the test result.
[0194] It is understandable that after a long period of testing in the second test mode, the electronic device needs to test the first screen again to ensure the validity of the first screen.
[0195] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0196] The screen test method of the embodiment of the present application has been described above, and the device for executing the above screen test method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can execute the steps in the above screen test method.
[0197] like Fig.11 As shown, the screen test device 1100 can be used in a communication device, a circuit, a hardware component or a chip, and the screen test device includes: a display unit 1101 and a processing unit 1102. The display unit 1101 is used to support the display step performed by the screen test device 1100; the processing unit 1102 is used to support the screen test device 1100 to perform the information processing step.
[0198] In a possible implementation, the screen test device 1100 may also include a communication unit 1103. Specifically, the communication unit is used to support the screen test device 1100 to perform the steps of sending and receiving data. The communication unit 1103 may be an input or output interface, a pin or a circuit.
[0199] In a possible embodiment, the screen test device may further include: a storage unit 1104. The processing unit 1102 and the storage unit 1104 are connected via a line. The storage unit 1104 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 1104 may exist independently and be connected to the processing unit 1102 of the screen test device via a communication line. The storage unit 1104 may also be integrated with the processing unit 1102.
[0200] The storage unit 1104 can store computer-executable instructions of the method in the terminal device so that the processing unit 1102 executes the method in the above embodiment. The storage unit 1104 can be a register, a cache, or a RAM, etc. The storage unit 1104 can be integrated with the processing unit 1102. The storage unit 1104 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1104 can be independent of the processing unit 1102.
[0201] The screen testing method provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.
[0202] An embodiment of the present application provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the above method.
[0203] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.
[0204] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.
[0205] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.
[0206] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.
[0207] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0208] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.
Claims
1. A screen testing method, characterized in that: Applied to electronic equipment, the method comprises: The electronic device is equipped with a first screen. When testing the first screen, the electronic device reads first configuration information of the first screen and generates a first configuration file; the first configuration information includes the value ranges of N display parameters supported by the first screen; the first configuration file includes the name of any display parameter in the N display parameters, the value of any display parameter and the retention time of the value of any display parameter; the value of any display parameter includes a first value, a second value and a third value in the value range of the display parameter; the difference between the first value and the minimum value in the value range of the display parameter is less than a preset value, the difference between the second value and the median value in the value range of the display parameter is less than a preset value, and the difference between the third value and the maximum value in the value range of the display parameter is less than a preset value, and N is a positive integer; The electronic device sets the values of the N display parameters according to the first configuration file, and tests the first screen using the values of the N display parameters and a test image; Among them, for any display parameter among the N display parameters, when the first value is maintained for a first time length, the value of the display parameter is switched from the first value to the second value; when the second value is maintained for a second time length, the value of the display parameter is switched from the second value to the third value; the first time length is the retention time length configured for the first value in the first configuration file; the second time length is the retention time length configured for the second value in the first configuration file.
2. The method according to claim 1, characterized in that When the third value is maintained for a third time period, the value of the display parameter is switched from the third value to the first value; the third time period is the maintenance time period configured for the third value in the first configuration file.
3. The method according to claim 1, characterized in that: The value of any display parameter among the N display parameters further includes a fourth value in the range of values of the display parameter, and the fourth value is different from the first value, the second value and the third value; when the third value is maintained for a third time period, the value of the display parameter is switched from the third value to the fourth value; when the fourth value is maintained for a fourth time period, the value of the display parameter is switched from the fourth value to the first value; the third time period is the retention time period configured for the third value in the first configuration file; and the fourth time period is the retention time period configured for the fourth value in the first configuration file.
4. The method according to any one of claims 1 to 3, characterized in that: When testing the first screen, the electronic device reads first configuration information of the first screen and generates a first configuration file, including: The hardware abstraction layer reads the first configuration information from the kernel layer; wherein the first configuration information is compiled by the kernel layer based on the source file in the first screen when the electronic device is equipped with the first screen; The hardware abstraction layer generates the first configuration file based on the first value, the second value, and the third value of the display parameter in the first configuration information.
5. The method according to claim 4, characterized in that After the hardware abstraction layer generates the first configuration file based on the first value, the second value, and the third value of the display parameter in the first configuration information, the method further includes: The application layer reads the first configuration file from the hardware abstraction layer based on a first interface, where the first interface supports communication between the application layer and the hardware abstraction layer.
6. The method according to any one of claims 1 to 5, characterized in that: The application layer stores a first image, which is used for screen detection. The test image is obtained by the application layer adapting the first image to the first screen, and the specification of the test image is the same as that of the first screen.
7. The method according to any one of claims 1 to 6, characterized in that: The test image includes a first test image and a second test image; the electronic device sets the values of the N display parameters according to the first configuration file, and uses the values of the N display parameters and the test image to test the first screen; including: When the electronic device tests the first screen using the values of the N display parameters and the first test image, the electronic device takes a screenshot of the first screen to obtain a second image; The electronic device inputs the second image into a model; the model has the ability to detect whether the first screen is abnormal; If the model of the electronic device outputs a fifth value, the electronic device loads the second test image and uses the values of the N display parameters and the second test image to test the first screen; the fifth value is used to indicate that no abnormality is detected in the first screen; Otherwise, the electronic device ends the testing process for the first screen, and the electronic device displays a first interface, which includes a scannable code and / or abnormal prompt information; the abnormal prompt information is used to prompt the user that there is an abnormality in the first screen, and the scannable code is used to scan and obtain the abnormal information of the first screen.
8. The method according to claim 7, characterized in that The electronic device takes a screenshot of the first screen to obtain a second image, including: The electronic device takes a screenshot of the first screen to obtain a third image; the specification of the third image is the same as that of the first screen; The electronic device compresses the third image to obtain the second image; the specification of the second image is smaller than that of the third image.
9. The method according to any one of claims 1 to 8, characterized in that: The display parameters include at least one of the following: frame rate, brightness, resolution, contrast, and color gamut.
10. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 9.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
12. A computer program product, characterized in that The method comprises a computer program, which, when being executed, enables a computer to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Screen dynamic picture test method and system, electronic equipment and storage medium
CN112837640A
Test method, processing equipment and test device of display device
CN114323594A
Display parameter variation evaluation method and device, equipment and storage medium
CN114927083A
Screen detection method and device, electronic equipment and storage medium
CN115578961A
Display module testing method and device and storage medium
CN115578962A
