Display anomaly detection method, device and circuit, electronic equipment and storage medium

By measuring the current value when displaying the image in an electronic device, determining whether the image is abnormal, the problems of high manual detection cost and low efficiency in the prior art are solved, and more efficient display abnormality detection is achieved.

CN119492523APending Publication Date: 2025-02-21VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411609664.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The prior art relies on manual observation and camera recognition in the detection of display abnormalities of electronic devices, resulting in high cost and low detection efficiency.

Method used

By determining the proportion of the number of pixels corresponding to the color component in the first interface image, the expected current value during normal display is calculated, and the actual current value is measured when displaying the image, and determining whether the image is displayed abnormally.

Benefits of technology

This method realizes the judgment of display abnormalities by comparing current values, saving labor costs for detection and improving the efficiency of display abnormalities detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119492523A_ABST
    Figure CN119492523A_ABST
Patent Text Reader

Abstract

The invention discloses a display anomaly detection method, device and circuit, electronic equipment and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: determining a first proportion of the number of pixels corresponding to a first color component in a first interface image; according to the first proportion, a first current value is determined, and the first current value is the current value of the power supply current needed by the screen when the first interface image is normally displayed; under the condition that the first interface image is displayed, a second current value is determined, and the second current value is the current value of the power supply current of the screen when the first interface image is displayed; and determining whether the first interface image is displayed abnormally according to the first current value and the second current value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a display abnormality detection method, device, circuit, electronic device and storage medium. Background Art

[0002] Electronic devices are an indispensable part of modern life, and their display screens are the key to information communication and interaction. However, display anomalies are one of the common problems in electronic devices, which may be caused by a variety of factors, such as hardware failure, software errors, or poor operation during the production process.

[0003] In the related art, the display anomaly detection method is usually to rely on manual observation and camera recognition during the production process of electronic equipment. However, this detection method requires a lot of manpower and time, which is not only costly but also inefficient. Therefore, how to improve the detection efficiency of display anomalies while reducing costs is a problem to be solved. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a display anomaly detection method that can save labor costs for detection and improve the efficiency of display anomaly detection.

[0005] In a first aspect, an embodiment of the present application provides a display abnormality detection method, the method comprising: determining a first proportion of the number of pixels corresponding to a first color component in a first interface image; determining a first current value based on the first proportion, the first current value being the current value of the power supply current required for the screen when the first interface image is normally displayed; when displaying the first interface image, determining a second current value, the second current value being the current value of the power supply current of the screen when the first interface image is displayed; determining whether the first interface image is displayed abnormally based on the first current value and the second current value.

[0006] In a second aspect, an embodiment of the present application provides a current measurement circuit, which includes a power supply module, a resistor and an analog-to-digital converter module, wherein the power supply module and the resistor are connected in series, a first end of the resistor is connected to a first end of the analog-to-digital converter module, and a second end of the resistor is connected to a second end of the analog-to-digital converter module; the analog-to-digital converter module is used to measure the voltage across the resistor and obtain the current value of the current output by the power supply module based on the voltage.

[0007] In a third aspect, an embodiment of the present application provides a display abnormality detection device, which includes: a processing module, wherein the processing module is used to: determine a first proportion of the number of pixels corresponding to a first color component in a first interface image; determine a first current value based on the first proportion, the first current value being the current value of the power supply current required for the screen when the first interface image is normally displayed; when the first interface image is displayed, determine a second current value, the second current value being the current value of the power supply current of the screen when the first interface image is displayed; determine whether the first interface image is displayed abnormally based on the first current value and the second current value.

[0008] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a sixth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a seventh aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, a first proportion of the number of pixels corresponding to the first color component in the first interface image is determined, and a first current value is determined based on the first proportion. The first current value is the current value of the power supply current required for the screen to display the first interface image normally. When the first interface image is displayed, a second current value is determined. The second current value is the current value of the power supply current of the screen when the first interface image is displayed. Based on the first current value and the second current value, it is determined whether the first interface image is displayed abnormally. Through this method, the expected current value when the first interface image is displayed normally is determined by the proportion of the number of pixels corresponding to the color component in the first interface image. Then, when the first interface image is displayed, the actual current value when the first interface image is displayed is obtained. Finally, through the expected current value and the actual current value, it is determined whether the first interface image is displayed abnormally. Since this method can realize the judgment of display abnormality through comparison of current values, it saves the labor cost of detection and improves the efficiency of display abnormality detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 One of the flow charts of the display abnormality detection method provided in the embodiment of the present application;

[0014] Figure 2 A second flow chart of the display abnormality detection method provided in an embodiment of the present application;

[0015] Figure 3 The third flowchart of the display abnormality detection method provided in the embodiment of the present application;

[0016] Figure 4 A schematic diagram of the structure of a current measurement circuit provided in an embodiment of the present application;

[0017] Figure 5 A schematic diagram of the structure of a display abnormality detection device provided in an embodiment of the present application;

[0018] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0019] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0021] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0022] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0023] Nowadays, electronic devices, such as smartphones and tablets, are an indispensable part of our daily lives, and the clarity and accuracy of their displays are directly related to the user experience. However, electronic devices may have display anomalies, which may manifest as image distortion, color distortion, screen flickering, etc. These display anomalies not only affect the normal use of the device, but may also be a signal of more serious problems inside the device.

[0024] Specifically, the display abnormalities of common electronic devices (such as mobile phones, computers, tablets, etc.) can be roughly classified into the following reasons:

[0025] The abnormality of the drawing module of the electronic device causes the screen content generated by the system to be wrong;

[0026] The display path of the electronic device transmits data abnormally, resulting in abnormal display;

[0027] The screen hardware of the electronic device is abnormal, resulting in abnormal display;

[0028] Incorrect settings of software parameters on the electronic device screen lead to abnormal display.

[0029] At present, display anomalies are usually detected on the production line of electronic equipment, that is, display anomalies are detected by manual observation and camera recognition during factory manufacturing. Traditional manual observation and camera recognition methods require a lot of human resources for real-time monitoring and inspection, which increases the cost of inspection. Secondly, manual inspection usually takes a long time to check the display of each device one by one, and is easily affected by human factors, resulting in low inspection efficiency.

[0030] In order to solve the above problems, the embodiment of the present application provides a display abnormality detection method, which determines the expected current value when the first interface image is normally displayed by the proportion of the number of pixels corresponding to the color component in the first interface image, and then, when the first interface image is displayed, the actual current value when the first interface image is displayed is obtained, and finally, the first interface image is judged whether the display is abnormal by the expected current value and the actual current value. This method judges whether the display is abnormal by directly monitoring the change of the screen power supply current, which is more direct and objective. Since the change of the current value is closely related to the screen display state, it can reflect the working state of the screen in real time. The current detection avoids the problem of misjudgment or missed detection due to subjectivity and fatigue in manual detection, thereby improving the accuracy and reliability of detection. The judgment of display abnormality is realized by comparing the current value, which saves the detection cost and improves the efficiency of display abnormality detection compared with the high cost and time-consuming manual detection.

[0031] The display anomaly detection method provided in the embodiment of the present application may be executed by a display anomaly detection device, which may be an electronic device, or a functional module or functional entity in the electronic device. The display anomaly detection method provided in the embodiment of the present application is described below by taking an electronic device executing the display anomaly detection method as an example.

[0032] The display anomaly detection method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0033] Figure 1 The display abnormality detection method provided in the embodiment of the present application may include the following steps 201 to 204:

[0034] Step 201: The electronic device determines a first proportion of the number of pixels corresponding to a first color component in a first interface image.

[0035] In some embodiments of the present application, the above-mentioned first interface image may include but is not limited to any of the following: a first interface image of an application, a user first interface image of an electronic device, etc.

[0036] In some embodiments of the present application, the first interface image of the above-mentioned application includes but is not limited to: the first interface image of the multimedia application, the first interface image of the game application, the first interface image of the instant messaging application, the first interface image of the map navigation application, etc.

[0037] In some embodiments of the present application, the user first interface image of the electronic device may include but is not limited to: a main first interface image, a negative first screen first interface image, a taskbar first interface image, etc.

[0038] In some embodiments of the present application, the first color component includes at least one of the following: a red (Red, R) component, a green (Green, G) component, and a blue (Blue, B) component.

[0039] It should be noted that the R, G, and B components together form the basis of the RGB color model, where R is used to represent the red intensity of the color, and the value range of the red component is usually an integer between 0 and 255. Among them, 0 means no red at all, and 255 means the red intensity reaches the maximum. G is used to represent the green intensity of the color, and the value range of the green component is also an integer between 0 and 255. 0 means no green at all, and 255 means the green intensity reaches the maximum. B is used to represent the blue intensity of the color, and the value range of the blue component is also an integer between 0 and 255. 0 means no blue at all, and 255 means the blue intensity reaches the maximum.

[0040] In the RGB color model, the first color component may include at least one of the R, G, and B components, while in other color models, such as the YUV color model, the first color component may include at least one of the Y (Luminance / Luma), U (Chrominance / Chroma), and V (Chrominance / Chroma), where represents brightness, that is, grayscale value, which determines the brightness of the image. Y represents the brightness information of the image, and the value range is usually [0, 255], where 0 represents black and 255 represents white. U (Cb) represents chrominance, and together with the Y component determines the color of the pixel. V (Cr) also represents chrominance, and together with the Y and U components provides a complete description of the pixel color.

[0041] In some embodiments of the present application, the number of pixels corresponding to the first color component refers to the number of pixel points in the first interface image whose intensity of the first color component is greater than an intensity threshold.

[0042] In some embodiments of the present application, the intensity threshold may be a value greater than 0. For example, the intensity threshold may be 128, 192, or 255.

[0043] It should be noted that the above-mentioned intensity threshold can be determined according to actual needs, and the embodiments of the present application do not limit this.

[0044] It should be noted that each pixel is usually composed of one or more color components, which together determine the color of the pixel. For the RGB color model, a pixel is composed of three components: red (R), green (G), and blue (B). The value of each component is usually between 0 and 255 (or 0% to 100% brightness), indicating the intensity of the component.

[0045] For example, taking the case where the first color component includes a red component, a green component and a blue component and the intensity threshold is 128, the number of pixels corresponding to the first color component in the first interface image may include: the number of pixels whose red component value is greater than 128, the number of pixels whose green component value is greater than 128, and the number of pixels whose blue component value is greater than 128.

[0046] In some embodiments of the present application, the first proportion may be the proportion of the number of pixels corresponding to the first color component in the first interface image in the total number of pixels in the first interface image.

[0047] It is understandable that the total number of pixels in the first interface image refers to the sum of all pixels in the first interface image. In an image, each pixel carries color information and constitutes the complete content of the image. When calculating the pixel ratio of a certain color component (such as red, green, and blue), the number of pixels of the color component can be compared with the total number of pixels to obtain the ratio of the color component in the entire image. For example, if the resolution of a first interface image is 1024×768, then the total number of pixels in this first interface image is 1024 multiplied by 768, that is, 786432 pixels. The ratio of pixels of the red component is the value obtained by dividing the number of pixels of the red component in the first interface image by the total number of pixels.

[0048] In some embodiments of the present application, after completing drawing the first interface image, the electronic device can traverse the pixel points in the first interface image, obtain the color component corresponding to each pixel point, and count the number of pixels corresponding to the first color component, and then obtain a first proportion of the number of pixels corresponding to the first color component based on the number of pixels corresponding to the first color component and the total number of pixels of the first interface image.

[0049] In some embodiments of the present application, after the electronic device completes drawing the first interface image through SurfaceFlinger, it can count the number of pixels corresponding to the first color component in the first interface image through SurfaceFlinger to obtain a first proportion of the number of pixels corresponding to the first color component.

[0050] It should be noted that SurfaceFlinger is a service in the system of an electronic device, which is mainly responsible for the graphics rendering of the display system interface and application programs, so as to synthesize the graphics display data from different applications and systems into a unified image, and finally send it to the display device for display. Specifically, when SurfaceFlinger obtains all layers, it will start to draw the complete image of the Tth frame. This process includes rendering, synthesis and possible animation effect processing of each layer. After drawing, SurfaceFlinger will send the synthesized image frame to the display device for display.

[0051] The following describes a process of determining a first proportion of the number of pixels corresponding to a first color component in a first interface image by using an example.

[0052] Exemplarily, taking the first color component including R, G, and B components as an example, after the electronic device completes drawing the first interface image of the Tth frame through the Surfaceflinger layer, it traverses each pixel in the first interface image. During the traversal process, the RGB value of each pixel is checked, and three counters can be set respectively to record the number of non-zero (or greater than the intensity threshold) pixels of each color component. Specifically, for the red component, whenever a pixel with a red value greater than 0 is encountered, the value of the red counter is increased by 1. For the green component, whenever a pixel with a green value greater than 0 is encountered, the value of the green counter is increased by 1. Similarly, for the blue component, whenever a pixel with a blue value greater than 0 is encountered, the value of the blue counter is increased by 1. After completing the statistics of each color component, the electronic device can calculate the proportion of each color component to the total number of pixels in the entire image, and obtain the pixel quantity proportions x1, x2, and x3 of the R, G, and B components.

[0053] Step 202: The electronic device determines a first current value according to the first ratio.

[0054] The first current value is the current value of the power supply current required by the screen when the first interface image is normally displayed.

[0055] In some embodiments of the present application, the first current value may be a current value pre-stored in a preset storage space, and there is a corresponding relationship between the first current value and the first proportion.

[0056] In some embodiments of the present application, the electronic device may obtain a first current value corresponding to the first ratio from a preset storage space according to the first ratio.

[0057] It should be noted that the normal display of the first interface image means that the interface image on the screen is presented to the user clearly, stably and accurately, that is, the first interface image is displayed normally.

[0058] In some embodiments of the present application, the above-mentioned screen can be any one of the following: organic light-emitting diode (OLED), light-emitting diode screen (LED), quantum dot light-emitting diode screen (QLED), etc.

[0059] It should be noted that the display anomaly detection method provided in the embodiment of the present application can also be applied to other types of screen display image scenarios, and the embodiment of the present application is not limited to this.

[0060] Step 203: The electronic device determines a second current value while displaying the first interface image.

[0061] The second current value is the current value of the power supply current of the screen when the first interface image is displayed.

[0062] In some embodiments of the present application, the second current value may be the current output by the power module.

[0063] In some embodiments of the present application, the power module may include at least one of the following: VDDI, VDDR, VLIN, and VCI.

[0064] Exemplarily, the second current value is the current value of the current output by VLIN for supplying power to the screen panel when the first interface image is displayed.

[0065] It should be noted that the Voltage-Doubled Driver Interface (VDDI) is mainly used to drive the backlight unit of the LCD display. VDDI usually uses a ring wrapper to convert the input voltage (such as 12V) into the corresponding power supply voltage, and further increases the voltage through the voltage doubling circuit to meet the needs of the backlight drive. Double Data Rate (DDR) memory voltage (Voltage for DDR Memory, VDDR) refers to the module that provides voltage for the DDR memory in the screen controller or integrated GPU. VLIN is a power module that powers the screen panel. Voltage for Core Circuit Interface (VCI) refers to the module that provides voltage for the core circuit interface.

[0066] Through actual measurements, it was found that when the pixels of a screen (such as an OLED screen) emit three different colors, red, green, and blue, respectively, the current consumed is different due to the differences in the light-emitting materials corresponding to each color and their driving voltage requirements.

[0067] This difference is directly reflected in the four independent power supply systems of the screen panel, namely VDDI (usually used to drive digital circuits), VDDR (commonly used to drive high-speed digital circuits such as RAM), VLIN (mainly supplying pixel drive circuits, especially circuits closely related to brightness adjustment), and VCI (providing stable power supply voltage for other integrated circuits). In actual measurements, the current change of the VLIN power supply is greatly affected by the color of the pixel. Since VLIN is directly related to the luminous intensity and color control of the pixel, especially when the screen display changes from dark to bright, or transitions from one color to another, the brightness adjustment demand of the pixel increases significantly, resulting in large fluctuations in the VLIN power supply current.

[0068] In some embodiments of the present application, the electronic device can monitor the current size when each frame of the interface image is refreshed in real time. That is to say, when the screen continuously displays new content, the electronic device can continuously detect and record the real-time value of the current to subsequently determine whether the frame of the interface image displays an abnormality.

[0069] In an embodiment of the present application, the electronic device measures the current value when displaying the first interface image, thereby being able to determine whether the first interface image is displayed normally based on the pixel distribution of each color component in the first interface image and the current value.

[0070] Step 204: The electronic device determines whether the first interface image is displayed abnormally according to the first current value and the second current value.

[0071] In some embodiments of the present application, the electronic device may determine that the first interface image display is abnormal when the difference between the first current value and the second current value is greater than or equal to a current difference threshold; or, the electronic device may determine that the first interface image display is normal when the difference between the first current value and the second current value is less than a circuit difference threshold.

[0072] In some embodiments of the present application, the current difference threshold may be 0.1, 0.3, or 0.5, etc.

[0073] It should be noted that the current difference threshold can be set according to actual needs. For example, a smaller current difference threshold is set when the accuracy requirement is high, or a relatively larger current difference threshold is set when the accuracy requirement is not high. The embodiment of the present application does not limit the specific value of the current difference threshold.

[0074] Exemplarily, in combination with the above example, after drawing the T-th frame interface image, the electronic device counts the proportions of the number of pixels of the R, G, and B color components in the first interface image of the T-th frame as x1, x2, and x3, respectively, and determines that the first current value corresponding to the proportions x1, x2, and x3 is i1. Then, after displaying the T-th frame image, the electronic device detects that the actual current (i.e., the second current value) provided by VLIN to the screen panel is i2. Then, the electronic device calculates the difference between i2 and i1, and when the difference is greater than the current difference threshold (such as 0.3), it determines that the display of the first interface image of the T-th frame is abnormal.

[0075] The display abnormality detection method provided in the embodiment of the present application determines a first proportion of the number of pixels corresponding to the first color component in the first interface image, and determines a first current value based on the first proportion. The first current value is the current value of the power supply current required for the screen to display the first interface image normally. When the first interface image is displayed, a second current value is determined. The second current value is the current value of the power supply current of the screen when the first interface image is displayed. Based on the first current value and the second current value, it is determined whether the first interface image is displayed abnormally. Through this method, the expected current value when the first interface image is normally displayed is determined by the proportion of the number of pixels corresponding to the color component in the first interface image. Then, when the first interface image is displayed, the actual current value when the first interface image is displayed is obtained. Finally, it is determined whether the first interface image is displayed abnormally based on the expected current value and the actual current value. Since this method can realize the judgment of display abnormality by comparing the current value, it can actually save labor costs and improve the efficiency of display abnormality detection.

[0076] In some embodiments of the present application, the above step 204 can be implemented by the following step 204a.

[0077] Step 204a: When the difference between the first current value and the second current value is greater than or equal to the current difference threshold, the electronic device determines that the first interface image display is abnormal.

[0078] In some embodiments of the present application, the electronic device can calculate the difference between the first current value and the second current value, and compare the absolute value of the difference with the current difference threshold. If the absolute value of the difference is greater than or equal to the current difference threshold, it is determined that the first interface image display is abnormal. Conversely, if the absolute value of the difference is less than the current difference threshold, it is determined that the first interface image display is normal.

[0079] Exemplarily, assuming that the first current value is i1 and the second current value is i2, the electronic device calculates the difference between i2 and i1, and when the absolute value of the difference is greater than the current difference threshold (such as 0.3), determines that the first interface image display of the Tth frame is abnormal.

[0080] In an embodiment of the present application, by comparing the difference between the required current value (i.e., theoretical current) when the first interface image is displayed normally and the actual current value after the first interface image is displayed, a current difference threshold is introduced to determine whether the deviation between the actual current and the theoretical current is within an acceptable range. Then, when the deviation between the actual current and the theoretical current is greater than or equal to the current difference threshold, that is, the actual current is larger than the theoretical current, it is determined that the first interface image display is abnormal. In this way, the intelligent judgment mechanism can automatically identify significant current changes caused by display abnormalities, thereby detecting whether the display is abnormal, thereby improving the accuracy of display abnormality detection.

[0081] In some embodiments of the present application, the above step 202 may include the following steps 202a and 202b:

[0082] Step 202a: The electronic device matches the first ratio with at least one set of second ratios in a preset storage space.

[0083] Among them, a group of second proportions corresponds to a current value.

[0084] Step 202b: The electronic device determines the current value corresponding to the second ratio matching the first ratio in the at least one group of second ratios as the first current value.

[0085] The preset storage space includes at least one group of second proportions and a current value corresponding to each group of second proportions.

[0086] In some embodiments of the present application, the above-mentioned preset storage space may be a memory, a hard disk, etc.

[0087] In some embodiments of the present application, each group of second proportions may include a proportion of the number of pixels corresponding to the first color component.

[0088] In some embodiments of the present application, each group of second proportions includes at least one proportion, and one proportion corresponds to one color component in the first color components.

[0089] Exemplarily, taking the example that the first color component includes three color components R, G, and B, and at least one group of second proportions includes three groups of proportions, at least one group of second proportions may include: proportion 1, proportion 2, and proportion 3, wherein proportion 1, proportion 2, and proportion 3 are respectively: [x1, x2, x3], [x4, x5, x6], and [x7, x8, x9], wherein the first proportion (such as x1) in each group of proportions represents the pixel proportion of the R component, the second proportion (such as x2) represents the pixel proportion of the G component, and the third proportion (such as x3) represents the pixel proportion of the B component.

[0090] Furthermore, the current value corresponding to the proportion of 1 may be i3, the current value corresponding to the proportion of 2 may be i4, and the current value corresponding to the proportion of 3 may be i5.

[0091] It should be noted that the above example is only an illustrative description of the second ratio and does not constitute a limitation on the second ratio of the present application.

[0092] In some embodiments of the present application, in at least one group of second proportions, the second proportion matching the first proportion refers to a proportion that is completely identical to the first proportion, or a proportion that differs from the first proportion within a certain accuracy requirement (0.1).

[0093] Exemplarily, taking the example that the first color component includes three color components of R, G, and B, the number of pixels corresponding to the R component in the interface image accounts for 30%, the number of pixels corresponding to the G component accounts for 60, and the number of pixels corresponding to the B component accounts for 35%, that is, the first proportion is [30%, 60%, 35%]. Assuming that the second proportion includes [30%, 60%, 35%], [20%, 40%, 30%], [10%, 60%, 35%], [0, 60%, 60%] and [50%, 60%, 20%] as examples, the second proportion matching the first proportion is [30%, 60%, 35%].

[0094] As another example, taking the example that the first color component includes three color components of R, G, and B, the number of pixels corresponding to the R component in the interface image accounts for 29%, the number of pixels corresponding to the G component accounts for 60%, and the number of pixels corresponding to the B component accounts for 34%, that is, the first proportion is [30%, 60%, 35%]. Assuming that the second proportion includes [30%, 60%, 35%], [20%, 40%, 30%], [10%, 60%, 35%], [0, 60%, 60%] and [50%, 60%, 20%] as examples, the second proportion matching the first proportion is [30%, 60%, 35%].

[0095] In some embodiments of the present application, after determining a second ratio that matches the first ratio, the electronic device can obtain a current value corresponding to the second ratio from a preset storage space and determine the current value as the first current value.

[0096] Exemplarily, in combination with the above example, assuming that the proportion of the R, G, and B color components in the interface image matches the proportion of 1, the current value i3 corresponding to the proportion of 1 is determined as the first current value, that is, the current value of the power supply current required by the screen when displaying the interface image.

[0097] The following describes a process of determining whether the first interface image displays an abnormality based on the first current value and the second current value in conjunction with the accompanying drawings.

[0098] For example, Figure 2 As shown, when the screen of the electronic device is in normal use, the driver layer software will monitor the current size i1 of the screen (panel) in real time. The Surfaceflinger layer software calculates the proportions x1, x2, and x3 of the three colors of red, green, and blue in each frame when drawing, and then passes it to the driver layer through the HWcomposer layer. Then, the driver layer looks up the table to obtain the theoretical current value i2 corresponding to the proportions x1, x2, and x3. Finally, i1 is compared with i2. If the difference is not large, it is judged that the display of this frame is normal. If the difference exceeds 30%, it is judged that the display is abnormal, and the driver layer responds with an error. In this way, a very cost-effective and efficient display abnormality detection can be achieved.

[0099] In some embodiments of the present application, before the above step 202, the display abnormality detection method provided by the embodiment of the present application may further include the following steps 205 to 207:

[0100] Step 205: The electronic device obtains a ratio of the number of pixels corresponding to the first color component in at least one second interface image.

[0101] Among them, the proportion of the number of pixels corresponding to the first color component in the above-mentioned at least one second interface image is different.

[0102] Step 206: The electronic device obtains the current value of the power supply current of the screen when each second interface image is displayed normally.

[0103] Step 207: The electronic device associates and stores the ratio of the number of pixels corresponding to the first color component in at least one second interface image and the current value corresponding to at least one second interface image in a preset storage space.

[0104] In some embodiments of the present application, a set of second proportions is a proportion of the number of pixels corresponding to the first color component in a second interface image.

[0105] Exemplarily, at least one group of second proportions may include: the proportions of the number of pixels corresponding to the three color components R, G, and B in interface image 1, x1, x2, and x3, the proportions of the number of pixels corresponding to the three color components R, G, and B in interface image 2, x4, x5, and x6, and the proportions of the number of pixels corresponding to the three color components R, G, and B in interface image 3, x7, x8, and x9.

[0106] In some embodiments of the present application, the second interface image may be an interface image actually displayed by the electronic device in a normal operating environment or an interface image generated by a simulated environment in a development or test application.

[0107] In some embodiments of the present application, the electronic device can simulate and generate an interface image in an App, and then adjust the pixel ratio of the three color components R, G, and B in the interface image, and detect the current value of the screen after each adjustment of the pixel ratio, and then store the pixel ratio after each adjustment in association with the corresponding current value.

[0108] In some embodiments of the present application, the electronic device may associate and store the ratio of the number of pixels corresponding to the first color component in each second interface image and the current value corresponding to each second interface image in a preset storage space.

[0109] Exemplarily, after starting the test App, the Driver layer software is used to monitor in real time the size of the VLIN current when the interface image of the App is refreshed, and then the proportion of the number of pixels of the three colors of red, green and blue in the interface image is changed to obtain the corresponding current values ​​at different proportions, and the proportions, current values, and the corresponding relationship between the proportions and current values ​​are all recorded and stored in the memory of the electronic device.

[0110] It is understandable that by adjusting the proportion of red, green and blue pixels on the screen (i.e. changing the color distribution of the image), the system can observe the change in the VLIN current value under different color proportions. Through this experiment or debugging process, it is possible to find a direct correlation between the proportion of different color components and current consumption. Furthermore, the corresponding relationship between the current values ​​corresponding to the proportion of different color components is recorded and stored in the memory of the device. These data can be used for subsequent judgment of screen display abnormalities, so that the screen display abnormalities can be detected accurately and quickly in the future.

[0111] In an embodiment of the present application, by recording the corresponding relationship between the proportion of pixels of different colors and the current value of the screen, it is possible to compare and analyze the actual current value of the screen with the recorded theoretical current value when the interface image is displayed to determine whether the current value when the interface image is currently displayed is significantly different from the expected current value, thereby determining whether the current interface image is displayed abnormally, thereby providing strong support for troubleshooting display abnormalities.

[0112] In some embodiments of the present application, after the above step 204, the display abnormality detection method provided in the embodiment of the present application may further include the following step 208:

[0113] Step 208: When the electronic device determines that the first interface image display is abnormal, the electronic device performs a first operation;

[0114] The first operation includes at least one of the following:

[0115] Stop executing screen refresh;

[0116] Output abnormal prompt information, where the abnormal prompt information is used to prompt that the first interface image display is abnormal.

[0117] In some embodiments of the present application, when the electronic device determines that the image display of the first interface is abnormal, it can use software control to suspend sending new image data or frames to the screen, so that the screen remains in the current state or displays a static error page, thereby preventing the erroneous image from continuing to be displayed to the user when the image is abnormal.

[0118] In some embodiments of the present application, when the electronic device determines that the display of the first interface image is abnormal, it can display a clear text message or icon on the screen to indicate the current abnormal display state, or broadcast the abnormal display state through the speaker. Furthermore, it can also provide suggestions for solving the problem or link to support resources on the screen, so as to promptly notify the user or administrator that the first interface image is abnormal and guide them to take corresponding measures (such as restarting the device, contacting technical support, etc.).

[0119] Exemplarily, in combination with the above example, after drawing the T-th frame interface image, the electronic device counts the proportions of the number of pixels of the R, G, and B color components in the first interface image of the T-th frame as x1, x2, and x3, respectively, and after matching the proportions x1, x2, and x3 with the proportion information stored in the memory, determines that the theoretical current value corresponding to the proportions x1, x2, and x3 is i1. Then, after displaying the T-th frame image, the electronic device detects that the actual current value (i.e., the second current value) provided by VLIN to the screen panel is i2. Then, the electronic device calculates the difference between i2 and i1, and when the difference is greater than the current difference threshold (such as 0.3), determines that the display of the first interface image of the T-th frame is abnormal. Finally, in the case of abnormal display, suspends sending new image data or frames to the screen, keeps the screen in the current state or displays a static error page, and displays abnormal status prompt information on the screen.

[0120] In the embodiment of the present application, by timely detecting and responding to the abnormal display of the first interface image, the user experience and reliability of the electronic device are effectively improved. By stopping screen refresh and outputting abnormal prompt information and other measures, further display of the erroneous image is avoided, and the user can be informed of the abnormal display state of the screen in a timely manner, which provides convenience for solving abnormal problems.

[0121] In some embodiments of the present application, the above step 203 can be implemented by the following step 203a.

[0122] Step 203a: When displaying the first interface image, the electronic device obtains a second current value of the current output by the power module through a current measurement circuit.

[0123] In some embodiments of the present application, when the electronic device displays the first interface image, the current measurement circuit can enable the Driver layer software to monitor the magnitude of the VLIN current in real time.

[0124] Exemplarily, the electronic device can measure the voltage across the resistor connected in series with VLIN through the ADC module of the CPU in the current measurement circuit, and calculate the real-time size of the current based on the voltage across the resistor and the resistance value of the resistor, that is, the current value (that is, the second current value) of the current output by the power module in the current measurement circuit.

[0125] In the embodiment of the present application, the ADC module of the CPU is used to measure the current value of the current output by the power module, so that an accurate current value can be obtained. In addition, since the ADC module can convert analog signals into digital signals in real time, the measurement result of the current can be obtained in real time to meet different measurement requirements.

[0126] The display abnormality detection method provided in the embodiment of the present application is exemplarily described below through a specific embodiment.

[0127] like Figure 3 As shown, the display abnormality detection method may include the following steps 101 to 106:

[0128] Step 101: Change the proportion of the number of pixels of the three colors of red, green and blue in the app, and record the corresponding relationship between the proportion x and the current i through the driver.

[0129] For example, the electronic device can change the proportion of the number of pixels of the three colors of red, green and blue in the app, and measure the magnitude of the current i at this time to obtain the corresponding current values ​​at different proportions, and then store all the corresponding relationships in the memory module through the driver layer software.

[0130] Step 102: pass the Tth frame image to Surfaceflinger for drawing through the app.

[0131] For example, when the screen is used normally to refresh the Tth frame, the image information is passed to the surfaceflinger layer software through the app for image data integration processing.

[0132] Step 103: When drawing through Surfaceflinger, calculate the red, green and blue color proportions x1, x2 and x3 and pass them to HWcomposer.

[0133] For example, after obtaining all layers through the Surfaceflinger layer, it will start drawing the complete image of the Tth frame. After drawing, the number of pixels of the three colors of red, green and blue in this frame image is obtained by traversing and counting pixels, and then the proportions of the three colors x1, x2, and x3 are calculated. Finally, the proportion x is passed to the HWcomposer layer along with the frame brushing and image sending.

[0134] It should be noted that the HWcomposer (HWC) layer is a key hardware abstraction layer module in the electronic device system, which is mainly responsible for the synthesis and display of windows (Layer). Specifically, the HWC layer can receive layer data from the upper layer (such as SurfaceFlinger) and perform synthesis processing according to the hardware capabilities.

[0135] Step 104: Pass the proportions x1, x2, and x3 to the Driver layer through HWcomposer to obtain the theoretical current value i2.

[0136] Exemplarily, after receiving the image delivery and data through the HWcomposer layer software, the value of the proportion x is directly passed to the Driver layer along with the frame refresh image delivery.

[0137] Step 105: When the Driver layer waits for the T+1 frame to arrive, it measures the current i1 when the Tth frame image is displayed.

[0138] Exemplarily, after receiving the image and proportion data x of the Tth frame through the Driver layer software, the theoretical screen panel (Panel) current value i2 corresponding to the proportion x in the memory is obtained, and the Tth frame image is refreshed normally.

[0139] Step 106: Determine whether the difference between i1 and i2 exceeds 30%. If so, immediately stop refreshing the frames and report an error. If not, refresh the frames normally.

[0140] For example, when the image of the T+1th frame reaches the Driver layer, the Panel current i1 is read immediately before refreshing the image through the Driver layer, and then i1 is compared with i2. If the difference between the two does not exceed 30%, it is judged that the display is normal, and the frame can be refreshed normally through the Driver layer; if the difference between i1 and i2 exceeds 30%, the Tth frame image is judged as a display abnormality, and the frame refreshing is stopped immediately to preserve the scene, and then reported to the system for a customized error response.

[0141] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application are not limited to this.

[0142] The present application embodiment provides a current measurement circuit, which can be applied to the above-mentioned display abnormality detection method, such as Figure 4 As shown, the current measurement circuit includes a power module 31, a resistor 32, and an analog to digital converter (ADC) module 33, wherein the power module 31 and the resistor 32 are connected in series, a first end of the resistor 32 is connected to a first end of the ADC module 33, and a second end of the resistor is connected to a second end of the ADC module;

[0143] The ADC module 33 is used to measure the voltage across the resistor 32 and obtain the current value of the current output by the power module 31 according to the voltage.

[0144] It should be noted that the above current measurement circuit is a current sensing system based on Ohm's law, which can indirectly measure the current by utilizing the direct relationship between the voltage drop of a resistor and the current.

[0145] In some embodiments of the present application, the power module 31 may be any one of VDDI, VDDR, VLIN, and VCI.

[0146] In some embodiments of the present application, the power module 31 is used to generate a stable voltage or current to supply the entire circuit. Further, the power module can be a direct current (DC) power supply, and its output voltage can be kept constant.

[0147] In some embodiments of the present application, the third terminal of the ADC module 33 is connected to the first terminal of a central processing unit (CPU).

[0148] In some embodiments of the present application, the voltage across the resistor 32 is measured by an ADC module, and then the current value is inferred using the known resistance value and Ohm's law. Specifically, if the resistance value of the known resistor is R and the measured voltage is V, the current I can be calculated according to Ohm's law I=V / R.

[0149] In the embodiment of the present application, the entire current measurement circuit is connected in series with a resistor of known resistance between the power module and the ADC module, and the voltage drop of the resistor is used to indirectly measure the current output by the power module. The ADC module converts the voltage signal at both ends of the resistor into a digital signal, and then calculates the current value. Thus, the current measurement can be performed simply and accurately.

[0150] The display abnormality detection method provided in the embodiment of the present application can be executed by a display abnormality detection device. In the embodiment of the present application, the display abnormality detection device provided in the embodiment of the present application is described by taking the display abnormality detection device executing the display abnormality detection method as an example.

[0151] Figure 5 A schematic diagram of the structure of a display abnormality detection device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the display abnormality detection device 400 may include a processing module 401, which is used to determine a first proportion of the number of pixels corresponding to the first color component in the first interface image; determine a first current value based on the first proportion, and the first current value is the current value of the power supply current required by the screen when the first interface image is normally displayed; when the first interface image is displayed, determine a second current value, and the second current value is the current value of the power supply current of the screen when the first interface image is displayed; determine whether the first interface image is displayed abnormally based on the first current value and the second current value.

[0152] In some embodiments of the present application, the processing module is specifically used to: determine that the first interface image display is abnormal when the difference between the first current value and the second current value is greater than or equal to a current difference threshold.

[0153] In some embodiments of the present application, the determination module is specifically used to: match the first ratio with at least one group of second ratios in a preset storage space, a group of second ratios corresponding to a current value; determine the current value corresponding to the second ratio matching the first ratio in at least one group of second ratios as the first current value; wherein the preset storage space includes at least one group of second ratios, and the current value corresponding to each group of second ratios.

[0154] In some embodiments of the present application, the device also includes: a storage module; a processing module, which is also used to obtain a second proportion of the number of pixels corresponding to the first color component in at least one second interface image before determining the first current value based on the first proportion, and the proportion of the number of pixels corresponding to the first color component in at least one second interface image is different; the processing module is also used to obtain the current value of the power supply current of the screen when displaying each second interface image; the storage module is used to associate the second proportion of the number of pixels corresponding to the first color component in each second interface image and the current value corresponding to each second interface image and store them in a preset storage space.

[0155] In some embodiments of the present application, the first color component includes at least one of the following: a red component, a green component, and a blue component.

[0156] In some embodiments of the present application, the processing module is also used to perform a first operation when it is determined that the first interface image display is abnormal; wherein the first operation includes at least one of the following: stopping screen refresh; outputting abnormal prompt information, the abnormal prompt information being used to prompt that the first interface image display is abnormal.

[0157] In some embodiments of the present application, the processing module is specifically used to: when displaying the first interface image, obtain a second current value of the current output by the power module through a current measurement circuit.

[0158] The display abnormality detection device provided in the embodiment of the present application determines a first proportion of the number of pixels corresponding to the first color component in the first interface image, and determines a first current value based on the first proportion, the first current value is the current value of the power supply current required for the screen to display the first interface image normally, and determines a second current value when the first interface image is displayed, the second current value is the current value of the power supply current of the screen when the first interface image is displayed, and determines whether the first interface image is abnormally displayed based on the first current value and the second current value. Through this method, the display abnormality detection device determines the expected current value when the first interface image is normally displayed through the proportion of the number of pixels corresponding to the color component in the first interface image, and then, when the first interface image is displayed, obtains the actual current value when the first interface image is displayed, and finally determines whether the first interface image is abnormally displayed through the expected current value and the actual current value. Since this method can realize the judgment of display abnormality through the comparison of current values, it saves the labor cost of detection and improves the efficiency of display abnormality detection.

[0159] The display abnormality detection device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0160] The display abnormality detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0161] The display anomaly detection device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0162] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores programs or instructions that can be executed on the processor 501, and when the program or instructions are executed by the processor 501, the various steps of the display abnormality detection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0163] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0164] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0165] The electronic device 600 includes but is not limited to: a radio frequency unit 606, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.

[0166] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 660 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0167] Among them, the processor 610 is used to determine a first proportion of the number of pixels corresponding to the first color component in the first interface image; determine a first current value based on the first proportion, and the first current value is the current value of the power supply current required by the screen when the first interface image is normally displayed; when the first interface image is displayed, determine a second current value, and the second current value is the current value of the power supply current of the screen when the first interface image is displayed; determine whether the first interface image is displayed abnormally based on the first current value and the second current value.

[0168] In some embodiments of the present application, the processor 610 is specifically used to: determine that the first interface image display is abnormal when the difference between the first current value and the second current value is greater than or equal to a current difference threshold.

[0169] In some embodiments of the present application, the determination module is specifically used to: match the first ratio with at least one group of second ratios in a preset storage space, a group of second ratios corresponding to a current value; determine the current value corresponding to the second ratio matching the first ratio in at least one group of second ratios as the first current value; wherein the preset storage space includes at least one group of second ratios, and the current value corresponding to each group of second ratios.

[0170] In some embodiments of the present application, the processor 610 is also used to obtain a second ratio of the number of pixels corresponding to the first color component in at least one second interface image before determining the first current value based on the first ratio, and the ratio of the number of pixels corresponding to the first color component in at least one second interface image is different; the processor 610 is also used to obtain the current value of the power supply current of the screen when displaying each second interface image; the memory 609 is used to associate the second ratio of the number of pixels corresponding to the first color component in each second interface image and the current value corresponding to each second interface image and store them in a preset storage space.

[0171] In some embodiments of the present application, the first color component includes at least one of the following: a red component, a green component, and a blue component.

[0172] In some embodiments of the present application, the processor 610 is also used to perform a first operation when it is determined that the first interface image display is abnormal; wherein the first operation includes at least one of the following: stopping screen refresh; outputting abnormal prompt information, the abnormal prompt information being used to prompt that the first interface image display is abnormal.

[0173] In some embodiments of the present application, the processor 610 is specifically used to: when displaying the first interface image, obtain a second current value of the current output by the power module through a current measurement circuit.

[0174] The electronic device provided in the embodiment of the present application determines a first proportion of the number of pixels corresponding to the first color component in the first interface image, determines a first current value based on the first proportion, and the first current value is the current value of the power supply current required for the screen to display the first interface image normally. When the first interface image is displayed, the second current value is determined, and the second current value is the current value of the power supply current of the screen when the first interface image is displayed. According to the first current value and the second current value, it is determined whether the first interface image is displayed abnormally. Through this method, the electronic device determines the expected current value when the first interface image is displayed normally through the proportion of the number of pixels corresponding to the color component in the first interface image, and then, when the first interface image is displayed, the actual current value when the first interface image is displayed is obtained. Finally, through the expected current value and the actual current value, it is determined whether the first interface image is displayed abnormally. Since this method can realize the judgment of display abnormality through the comparison of current values, it saves the labor cost of detection and improves the efficiency of display abnormality detection.

[0175] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0176] The memory 609 can be used to store software programs and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0177] The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.

[0178] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned display abnormality detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0179] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0180] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display abnormality detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0181] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0182] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned display abnormality detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0183] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0184] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0185] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A display anomaly detection method, characterized in that: The method comprises: Determine a first ratio of the number of pixels corresponding to a first color component in the first interface image; Determine a first current value according to the first proportion, where the first current value is a current value of a power supply current required by a screen when the first interface image is normally displayed; In the case of displaying the first interface image, determining a second current value, where the second current value is a current value of a power supply current of the screen when the first interface image is displayed; It is determined whether the first interface image is displayed abnormally according to the first current value and the second current value.

2. The method according to claim 1, characterized in that: The determining whether the first interface image is displayed abnormally according to the first current value and the second current value includes: When the difference between the first current value and the second current value is greater than or equal to a current difference threshold, it is determined that the first interface image display is abnormal.

3. The method according to claim 1, characterized in that The determining a first current value according to the first proportion includes: Matching the first proportion with at least one group of second proportions in a preset storage space, wherein one group of the second proportions corresponds to a current value; Determine a current value corresponding to a group of second proportions matching the first proportion in the at least one group of second proportions as the first current value; The preset storage space includes at least one group of second proportions and a current value corresponding to each group of the second proportions.

4. The method according to claim 3, characterized in that Before determining the first current value according to the first proportion, the method further includes: Acquire a ratio of the number of pixels corresponding to the first color component in at least one second interface image, wherein the ratio of the number of pixels corresponding to the first color component in the at least one second interface image is different; When each of the second interface images is displayed normally, obtaining a current value of a power supply current of the screen; The ratio of the number of pixels corresponding to the first color component in the at least one second interface image and the current value corresponding to the at least one second interface image are associated and stored in a preset storage space; The at least one group of second proportions includes the proportion of the number of pixels corresponding to the first color component in the at least one second interface image.

5. The method according to claim 1, characterized in that The first color component includes at least one of the following: a red component, a green component, and a blue component.

6. The method according to any one of claims 1 to 5, characterized in that After determining whether the first interface image is abnormal according to the first current value and the second current value, the method further includes: When it is determined that the first interface image is displayed abnormally, performing a first operation; The first operation includes at least one of the following: Stop executing screen refresh; Output abnormal prompt information, where the abnormal prompt information is used to prompt that the first interface image display is abnormal.

7. The method according to claim 1, characterized in that The step of determining the second current value while displaying the first interface image includes: When the first interface image is displayed, a second current value of the current output by the power module is obtained through a current measurement circuit.

8. A current measurement circuit, the current measurement circuit being used to execute the display abnormality detection method according to claim 7, characterized in that: The current measurement circuit comprises a power supply module, a resistor and an analog-to-digital converter module, wherein the power supply module and the resistor are connected in series, a first end of the resistor is connected to a first end of the analog-to-digital converter module, and a second end of the resistor is connected to a second end of the analog-to-digital converter module; The analog-to-digital converter module is used to measure the voltage across the resistor and obtain the current value of the current output by the power module according to the voltage.

9. A display abnormality detection device, characterized in that: The device comprises: a processing module, wherein the processing module is used to: Determine a first ratio of the number of pixels corresponding to a first color component in the first interface image; Determine a first current value according to the first proportion, where the first current value is a current value of a power supply current required by a screen when the first interface image is normally displayed; In the case of displaying the first interface image, determining a second current value, where the second current value is a current value of a power supply current of the screen when the first interface image is displayed; It is determined whether the first interface image is displayed abnormally according to the first current value and the second current value.

10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the display abnormality detection method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • AMOLED display panel driving method and related product

    CN107909968A

  • Display panel detecting method, device and system

    CN109307587A

  • Pixel compensation method, pixel driving circuit and display device

    CN116229887A

  • Display fault detection method and device, equipment and storage medium

    CN117593973A

  • Aging display test method and system for vehicle-mounted display screen

    CN117711283A