Picture detection method and device, display panel and readable medium
By dividing the picture frame into multiple detection units and adjusting the grayscale data, the crosstalk problem caused by VCOM voltage jitter in the TFT-LCD is solved, ensuring the accurate opening of the picture detection function, avoiding error detection and missed detection, and improving the screen display quality.
Patent Information
- Application Number
- CN202510566877.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-08-29
AI Technical Summary
In the prior art, when the TFT-LCD is driven, VCOM is easily disturbed by data line, resulting in voltage jitter, and crosstalk, and improperly turned on the screen detection function can easily cause false detection and misdetect detection.
The target screen frame to be displayed is divided into multiple detection units, the initial grayscale data is obtained, and the detection conditions are determined through the preset adjustment strategy and the determination strategy. The screen detection function is determined based on the number of units that meet the conditions, and the grayscale data is adjusted to reduce the hysteresis error.
It realizes accurate judgment of whether the screen detection function needs to be turned on, avoiding error detection and missed detection, and ensuring the screen display effect.
Smart Images

Figure CN120564652A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a picture detection method, device, display panel, and readable medium. Background Art
[0002] With the continuous advancement of display technology, user requirements for display device image quality are constantly increasing, prompting manufacturers to continuously develop new image quality enhancement technologies. When driving TFT-LCDs (Thin Film Transistor Liquid Crystal Displays), the VCOM (common electrode) is easily affected by data line interference, resulting in voltage jitter, which in turn causes anomalies such as crosstalk on the display. Therefore, the PDF function (Picture Detect Function) is often used to detect such images during the display process to avoid image quality anomalies.
[0003] However, in actual situations, not every frame needs to have the image detection function enabled. Improper enabling of the image detection function can easily lead to false detection and missed detection. Therefore, how to accurately enable the image detection function becomes a key issue.
[0004] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention
[0005] The present application provides a screen detection method, device, display panel and readable medium to solve the above-mentioned technical problem that "improper activation of the screen detection function easily causes false detection and missed detection".
[0006] According to one aspect of an embodiment of the present application, the present application provides a picture detection method, including: dividing a target picture frame to be displayed into multiple detection units, and obtaining initial grayscale data of each detection unit; adjusting the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data of each detection unit; determining whether each detection unit meets the detection conditions according to the preset judgment strategy and the target grayscale data; determining whether the target picture frame meets the start-up conditions based on the number of detection units that meet the detection conditions; if the target picture frame meets the start-up conditions, starting the picture detection function before the target picture frame is displayed, so as to perform picture detection on the target picture frame when the target picture frame is displayed.
[0007] Optionally, the target image frame to be displayed is divided into multiple detection units, and initial grayscale data of each detection unit is obtained, including: dividing the target image frame into multiple detection units based on pixels as the division basis; obtaining the original grayscale value of each sub-pixel in the detection unit to obtain the initial grayscale data of the detection unit.
[0008] Optionally, the initial grayscale data is adjusted according to a preset adjustment strategy to obtain target grayscale data of each detection unit, including: using the grayscale critical value and the initial grayscale data to classify the intervals of each sub-pixel in each detection unit to obtain the grayscale interval to which the sub-pixel belongs, wherein the grayscale interval is a bright interval, a dark interval or a dynamic interval; traversing each detection unit in turn, if a target unit is detected in each detection unit, determining whether the target unit belongs to a range to be adjusted according to a first reference value, wherein the grayscale interval of at least one sub-pixel in the target unit is a dynamic interval, and the target unit is a unit in each detection unit except the first detection unit; if it is determined that the target unit belongs to the range to be adjusted, adjusting the initial grayscale data of the target unit according to the target grayscale data of the previous detection unit of the target unit to obtain the target grayscale data of the target unit.
[0009] Optionally, each sub-pixel in each detection unit is classified into intervals using a grayscale critical value and initial grayscale data to obtain the grayscale interval to which the sub-pixel belongs, including: obtaining a grayscale critical value, wherein the grayscale critical value includes a first critical value and a second critical value, and the second critical value is greater than the first critical value; extracting the grayscale value of each sub-pixel from the initial grayscale data of the detection unit, and comparing each grayscale value with the first critical value and the second critical value; if the grayscale value of the sub-pixel is less than the first critical value, the sub-pixel belongs to the dark interval; if the grayscale value of the sub-pixel is greater than the second critical value, the sub-pixel belongs to the bright interval; if the grayscale value of the sub-pixel is greater than or equal to the first critical value and less than or equal to the second critical value, the sub-pixel belongs to the dynamic interval.
[0010] Optionally, judging whether the target unit belongs to the range to be adjusted according to the first reference value includes: calculating a first difference between the grayscale value of the sub-pixel belonging to the dynamic range in the target unit and the first reference value; if the first difference is less than or equal to the first threshold, determining that the target unit belongs to the range to be adjusted; if the first difference is greater than the first threshold, determining that the target unit does not belong to the range to be adjusted.
[0011] Optionally, adjusting the initial grayscale data of the target unit according to the target grayscale data of the previous detection unit of the target unit includes: determining at least one first sub-pixel in the target unit that belongs to the dynamic range; determining a second sub-pixel corresponding to the first sub-pixel according to the target grayscale data of the previous detection unit of the target unit, and determining the grayscale range of the second sub-pixel, wherein the first sub-pixel and the second sub-pixel represent the same color; and adjusting the original grayscale value of the first sub-pixel according to the grayscale range of the second sub-pixel to adjust the initial grayscale data of the target unit.
[0012] Optionally, determining whether the target picture frame meets the start-up condition is based on the number of detection units that meet the detection condition, including: counting the number of detection units that meet the detection condition; calculating a second difference between the number of units and a preset second reference value; if the second difference is less than or equal to a second threshold, determining that the target picture frame meets the start-up condition; if the second difference is greater than the second threshold, determining that the target picture frame does not meet the start-up condition.
[0013] According to another aspect of an embodiment of the present application, the present application provides a picture detection device, including: an acquisition module, used to divide a target picture frame to be displayed into multiple detection units and obtain initial grayscale data of each detection unit; an adjustment module, used to adjust the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data of each detection unit; a first determination module, used to determine whether each detection unit meets the detection condition based on the preset judgment strategy and the target grayscale data; a second determination module, used to determine whether the target picture frame meets the start-up condition based on the number of detection units that meet the detection condition; and a start-up module, used to start the picture detection function before the target picture frame is displayed if the target picture frame meets the start-up condition, so as to perform picture detection on the target picture frame when the target picture frame is displayed.
[0014] According to another aspect of an embodiment of the present application, the present application provides a display panel, characterized in that the display panel includes a memory, a processor, and a computer program stored in the memory and runnable on the processor, and the steps of the above method are implemented when the computer program is executed by the processor.
[0015] According to another aspect of an embodiment of the present application, the present application further provides a computer-readable medium having a non-volatile program code executable by a processor, where the program code enables the processor to execute the above method.
[0016] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:
[0017] The present application provides a screen detection method, comprising: dividing a target screen frame to be displayed into multiple detection units and obtaining initial grayscale data for each detection unit; adjusting the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data for each detection unit; determining whether each detection unit meets a detection condition based on a preset judgment strategy and the target grayscale data; determining whether the target screen frame meets a start condition based on the number of detection units that meet the detection condition; and if the target screen frame meets the start condition, activating a screen detection function before the target screen frame is displayed to perform screen detection on the target screen frame when the target screen frame is displayed. By introducing a preset adjustment strategy to first adjust the original grayscale value of each detection unit to reduce hysteresis error, then determining whether to activate the screen detection function based on the number of detection units that meet the detection condition, and finally activating the screen detection function before the screen frame for which the screen detection function is required is displayed, thereby ensuring a screen display effect and achieving the technical effect of accurately determining whether the screen detection function needs to be activated for the screen frame to be played, thereby solving the technical problem that improper activation of the screen detection function easily leads to false detection and missed detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0020] Figure 1 This is a flowchart of an optional image detection method provided according to an embodiment of the present application;
[0021] Figure 2 This is a schematic diagram of an optional special screen coupling principle provided according to an embodiment of the present application;
[0022] Figure 3 This is a schematic diagram of an optional PDF function principle provided according to an embodiment of the present application;
[0023] Figure 4 This is a schematic diagram of an optional operation of a timing controller provided according to an embodiment of the present application;
[0024] Figure 5 A block diagram of an optional image detection device provided according to an embodiment of the present application;
[0025] Figure 6A schematic structural diagram of an optional display panel provided in an embodiment of the present application.
[0026] Reference numerals: 1200 - display panel, 1210 - processor, 1220 - memory, 1221 - computer program. DETAILED DESCRIPTION
[0027] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0028] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of this application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.
[0029] With the continuous advancement of display technology, user requirements for display device image quality are constantly increasing, prompting manufacturers to continuously develop new image quality enhancement technologies. When driving TFT-LCDs (Thin Film Transistor Liquid Crystal Displays), the VCOM (common electrode) is easily affected by data line interference, resulting in voltage jitter, which in turn causes anomalies such as crosstalk on the display. Therefore, the PDF function (Picture Detect Function) is often used to detect such images during the display process to avoid image quality anomalies.
[0030] However, in actual situations, not every frame needs to have the image detection function enabled. Improper enabling of the image detection function can easily lead to false detection and missed detection. Therefore, how to accurately enable the image detection function becomes a key issue.
[0031] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiments of the present application, an embodiment of a picture detection method is provided, such as Figure 1 Shown, including:
[0032] Step 101: Divide the target image frame to be displayed into a plurality of detection units, and obtain initial grayscale data of each detection unit;
[0033] Step 103, adjusting the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data of each detection unit;
[0034] Step 105, determining whether each detection unit meets the detection conditions according to the preset determination strategy and the target grayscale data;
[0035] Step 107, determining whether the target picture frame meets the start condition according to the number of detection units that meet the detection condition;
[0036] In step 109 , if the target frame meets the activation condition, the image detection function is activated before the target frame is displayed, so as to perform image detection on the target frame when the target frame is displayed.
[0037] The image detection method provided in the embodiment of the present application is applied to a display panel to perform image detection on the display panel.
[0038] The image detection function mentioned in this application is the PDF function, which is mainly used to detect some special images and change the polarity of the original output data to avoid abnormal image quality. Figure 2 A schematic diagram of the special screen coupling principle provided for this application is shown in the figure. For the B pixel on / off screen, the framed pixels in the figure are B sub-pixels. Since only the B sub-pixels are bright in each row (the R and G sub-pixels are dark and have little coupling to VCOM), and the output polarity of the B sub-pixels in each row is positive, then the data output voltage of each row is a positive voltage. This voltage will couple with the VCOM voltage, causing the VCOM voltage to shift toward the positive B sub-pixel voltage. The higher the grayscale of the B sub-pixel and the larger the positive voltage value, the more serious the coupling of VCOM (common electrode) will be. The offset of the VCOM voltage causes crosstalk on the screen.
[0039] Therefore, during the screen display process, we often use the PDF function to detect the above screen. Figure 3 The PDF functional principle diagram provided for this application is as follows Figure 3 As shown, the positive and negative polarity of each row is changed from dot inversion to 2dot inversion. The pixel framed in the figure is the B sub-pixel. At this time, the B sub-pixel is bright, and the positive and negative polarity coupling effects are exactly offset, which can avoid the abnormal image quality caused by VCOM coupling.
[0040] The technical solution provided in this application reduces the hysteresis error by introducing a preset adjustment strategy to first adjust the original grayscale value of each detection unit, and then determines whether to turn on the picture detection function based on the number of detection units that meet the detection conditions. Finally, the picture detection function is turned on before the picture frame that needs to be turned on is displayed, thereby ensuring the picture display effect.
[0041] This application is performed on the target picture frame to be displayed. If it is determined that the target picture frame meets the startup conditions, the PDF function will be started before the target picture frame is played, avoiding the display difference problem caused by turning on / off PDF during the picture frame display process.
[0042] As an optional embodiment, the target image frame to be displayed is divided into multiple detection units, and the initial grayscale data of each detection unit is obtained, including: dividing the target image frame into multiple detection units based on pixels; obtaining the original grayscale value of each sub-pixel in the detection unit to obtain the initial grayscale data of the detection unit.
[0043] When dividing the target image frame into multiple detection units, the division basis is pixels. Simply put, the target image frame can be divided into multiple detection units according to pixels (this application directly uses the minimum detection unit), each detection unit includes a pixel, and each pixel includes multiple sub-pixels. In this application, the multiple sub-pixels in a single detection unit include but are not limited to red, green, and blue sub-pixels.
[0044] The initial grayscale data of the detection unit includes the original grayscale value of each sub-pixel. The original grayscale value represents the brightness level of the pixel or sub-pixel and is usually represented by an integer between 0 and 255, where 0 represents black, 255 represents white, and the intermediate values represent grays of different brightness.
[0045] Specifically, the original grayscale value of each sub-pixel may be read from an image buffer or an image file.
[0046] As an optional embodiment, the initial grayscale data is adjusted according to a preset adjustment strategy to obtain target grayscale data of each detection unit, including: using the grayscale critical value and the initial grayscale data to classify the intervals of each sub-pixel in each detection unit to obtain the grayscale interval to which the sub-pixel belongs, wherein the grayscale interval is a bright interval, a dark interval or a dynamic interval; traversing each detection unit in turn, if a target unit is detected in each detection unit, determining whether the target unit belongs to a range to be adjusted according to a first reference value, wherein the grayscale interval of at least one sub-pixel in the target unit is a dynamic interval, and the target unit is a unit in each detection unit except the first detection unit; if it is determined that the target unit belongs to the range to be adjusted, adjusting the initial grayscale data of the target unit according to the target grayscale data of the previous detection unit of the target unit to obtain the target grayscale data of the target unit.
[0047] The grayscale intervals provided in this application are bright intervals, dark intervals or dynamic intervals. Whether the detection unit meets the detection conditions can be determined based on which grayscale interval each sub-pixel of the detection unit belongs to.
[0048] Specifically, each detection unit is traversed in sequence. If a target unit is detected in each detection unit, a first reference value is used to determine whether the target unit falls within the range to be adjusted. Each detection unit is traversed in the order of pixels. If a target unit is detected, a first reference value is used to determine whether the target unit's grayscale range needs to be adjusted. The specific determination method is described below.
[0049] If the target unit belongs to the range to be adjusted, then the initial grayscale data of the target unit needs to be adjusted to obtain new target grayscale data. The specific adjustment method is described below.
[0050] It should be noted that the target unit in this application is the unit other than the first detection unit. Since the first detection unit is the earliest detection unit and there is no previous detection unit, the grayscale interval of the first detection unit only needs to be classified once.
[0051] The technical concept of this application actually performs two interval classifications: the first interval classification determines whether there are target cells in the grayscale range to be adjusted. Then, after adjusting the target cells, the grayscale range to which the target cells belong is determined again (second classification). Finally, the number of cells that meet the detection conditions is determined based on the adjusted grayscale ranges of each detection cell. Because the adjustment process incorporates the first reference value to reduce hysteresis error, detection is more accurate.
[0052] As an optional embodiment, each sub-pixel in each detection unit is classified into intervals using a grayscale critical value and initial grayscale data to obtain the grayscale interval to which the sub-pixel belongs, including: obtaining a grayscale critical value, wherein the grayscale critical value includes a first critical value and a second critical value, and the second critical value is greater than the first critical value; extracting the grayscale value of each sub-pixel from the initial grayscale data of the detection unit, and comparing each grayscale value with the first critical value and the second critical value; if the grayscale value of the sub-pixel is less than the first critical value, the sub-pixel belongs to the dark interval; if the grayscale value of the sub-pixel is greater than the second critical value, the sub-pixel belongs to the bright interval; if the grayscale value of the sub-pixel is greater than or equal to the first critical value and less than or equal to the second critical value, the sub-pixel belongs to the dynamic interval.
[0053] The first critical value and the second critical value can be set in advance according to actual conditions. The preferred setting provided in this application is: setting the first critical value to 40 and setting the second critical value to 60.
[0054] For example, if the original grayscale value of the sub-pixel is less than the first critical value (i.e., 40), the sub-pixel belongs to the dark interval; if the original grayscale value of the sub-pixel is greater than the second critical value (i.e., 60), the sub-pixel belongs to the bright interval; if the grayscale value of the sub-pixel is greater than or equal to the first critical value and less than or equal to the second critical value (i.e., grayscale value ∈ [40, 60]), the sub-pixel belongs to the dynamic interval.
[0055] By classifying each sub-pixel in a detection unit into intervals, it is possible to determine whether the detection unit meets the detection conditions based on the grayscale interval of the pixels. If the grayscale of the bright sub-pixels in the detection unit is greater than 60 grays and the grayscale of the dark sub-pixels is less than 40 grays, then the detection unit is considered to meet the detection conditions.
[0056] If a sub-pixel of a detection unit falls within the dynamic range, directly adjusting the sub-pixel range of the detection unit can easily lead to false detection of a sub-pixel that should not have been detected. This is because if a sub-pixel is in the dynamic range and has a large grayscale (for example, a grayscale value between 50-59), directly adjusting it according to the previous corresponding sub-pixel range will result in false detection. Therefore, it is necessary to determine whether the target unit falls within the range to be adjusted based on the first reference value. The following describes how to determine whether the target unit falls within the range to be adjusted.
[0057] As an optional embodiment, determining whether the target unit belongs to the range to be adjusted according to a first reference value includes: calculating a first difference between the grayscale value of the sub-pixel belonging to the dynamic range in the target unit and the first reference value; if the first difference is less than or equal to a first threshold, determining that the target unit belongs to the range to be adjusted; if the first difference is greater than the first threshold, determining that the target unit does not belong to the range to be adjusted.
[0058] The first reference value, the first difference and the first threshold value may be set in advance according to actual conditions, and this application does not impose any limitation thereto.
[0059] For example, when a sub-pixel of the target unit is in the dynamic range, the TCON (Timing Controller) automatically reads the grayscale value z in the dynamic range and makes a difference with the first reference value y. When yz>2 or yz<(-2), it is considered that the target unit does not belong to the range to be adjusted. When the difference -1≤(yz)≤1, it is considered that the target unit belongs to the range to be adjusted.
[0060] By subtracting the grayscale value within the dynamic range from the first reference value, the difference between the grayscale within the dynamic range and the first reference value can be determined. For example, if the first reference value is 40, and the dynamic range grayscale is 41, the target cell is determined to be within the adjustment range (in this case, the previous range can be followed). This ensures that the hysteresis function has a hysteresis of only 2 (i.e., 39-41), greatly reducing hysteresis error and making detection more accurate.
[0061] As an optional embodiment, adjusting the initial grayscale data of the target unit according to the target grayscale data of the previous detection unit of the target unit includes: determining at least one first sub-pixel in the target unit that belongs to the dynamic range; determining a second sub-pixel corresponding to the first sub-pixel according to the target grayscale data of the previous detection unit of the target unit, and determining the grayscale range of the second sub-pixel, wherein the first sub-pixel and the second sub-pixel represent the same color; and adjusting the original grayscale value of the first sub-pixel according to the grayscale range of the second sub-pixel to adjust the initial grayscale data of the target unit.
[0062] If the detection unit is determined to be a unit that needs to be adjusted, the target unit needs to be adjusted according to the grayscale interval of the corresponding sub-pixel of the previous detection unit of the target unit.
[0063] There is at least one sub-pixel in the target unit that belongs to the dynamic range. If there are multiple sub-pixels, each sub-pixel is adjusted according to the grayscale range of a sub-pixel of the same color.
[0064] The original grayscale value of the first sub-pixel is adjusted according to the grayscale range of the second sub-pixel. It can be understood that when the current grayscale value of a first sub-pixel is between 40 and 60, the grayscale value of the first sub-pixel will adopt the grayscale range of the corresponding sub-pixel (i.e., the second sub-pixel) in its previous (or previous) time step (or frame).
[0065] By referencing the grayscale value of the previous detection unit, noise or outliers in the current detection unit can be reduced, improving image stability and quality. Furthermore, maintaining the continuity of sub-pixel grayscale values can reduce the screen changes perceived by the human eye, thereby improving viewing comfort.
[0066] As an optional embodiment, determining whether the target picture frame meets the start-up condition based on the number of detection units that meet the detection condition includes: counting the number of detection units that meet the detection condition; calculating a second difference between the number of units and a preset second reference value; if the second difference is less than or equal to a second threshold, determining that the target picture frame meets the start-up condition; if the second difference is greater than the second threshold, determining that the target picture frame does not meet the start-up condition.
[0067] The second reference value, the second difference and the second threshold value may be set in advance according to actual conditions, and this application does not limit this.
[0068] It should be noted that the present application uses the number of detection units that meet the detection conditions to determine whether the target picture frame meets the start-up conditions. Since the area of each pixel is the same, in actual situations, it can also be determined based on whether the sum of the areas occupied by the detection units that meet the detection conditions is greater than a certain proportion of the total screen display area (the proportion corresponds to the second reference value).
[0069] For example, for area detection hysteresis, a value n corresponding to the second baseline value is set. The value is subtracted from the total detected area m, and 1% is used as the second threshold. When -1% ≤ nm ≤ 1%, the trigger condition is determined to be met. Alternatively, the hysteresis can be reduced to 2%. A smaller hysteresis error can significantly improve detection accuracy.
[0070] Figure 4 The working diagram of the timing controller provided in this application is as shown in the figure. The TCON timing controller automatically reads the screen data of the next frame to be displayed stored in the OD (Over Drive), and judges the screen data in advance through internal calculations (i.e., the above-mentioned method). When the conditions for enabling the PDF function are met, the control command is transmitted to the output module. The output module changes the output positive and negative polarity command and transmits the PDF enable control command to the driver chip (driver IC) of the driver, so that the PDF function is directly enabled when the next frame starts to be displayed.
[0071] The present application provides a screen detection method, comprising: dividing a target screen frame to be displayed into multiple detection units and obtaining initial grayscale data for each detection unit; adjusting the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data for each detection unit; determining whether each detection unit meets a detection condition based on a preset judgment strategy and the target grayscale data; determining whether the target screen frame meets a start condition based on the number of detection units that meet the detection condition; and if the target screen frame meets the start condition, activating a screen detection function before the target screen frame is displayed to perform screen detection on the target screen frame when the target screen frame is displayed. By introducing a preset adjustment strategy to first adjust the original grayscale value of each detection unit to reduce hysteresis error, then determining whether to activate the screen detection function based on the number of detection units that meet the detection condition, and finally activating the screen detection function before the screen frame for which the screen detection function is required is displayed, thereby ensuring a screen display effect and achieving the technical effect of accurately determining whether the screen detection function needs to be activated for the screen frame to be played, thereby solving the technical problem that improper activation of the screen detection function easily leads to false detection and missed detection.
[0072] According to another aspect of the embodiment of the present application, the present application provides a picture detection device, such as Figure 5 Shown, including:
[0073] An acquisition module 502 is configured to divide a target image frame to be displayed into a plurality of detection units and acquire initial grayscale data of each detection unit;
[0074] An adjustment module 504 is configured to adjust the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data of each detection unit;
[0075] A first determination module 506 is configured to determine whether each detection unit meets the detection condition according to a preset determination strategy and target grayscale data;
[0076] A second determining module 508 is configured to determine whether the target picture frame meets the start condition according to the number of detection units that meet the detection condition;
[0077] The starting module 510 is configured to start a picture detection function before the target picture frame is displayed if the target picture frame meets the starting condition, so as to perform picture detection on the target picture frame when the target picture frame is displayed.
[0078] It should be noted that the acquisition module 502 in this embodiment can be used to execute step 101 in the embodiment of the present application, the adjustment module 504 in this embodiment can be used to execute step 103 in the embodiment of the present application, the first determination module 506 in this embodiment can be used to execute step 105 in the embodiment of the present application, the second determination module 508 in this embodiment can be used to execute step 107 in the embodiment of the present application, and the startup module 510 in this embodiment can be used to execute step 109 in the embodiment of the present application.
[0079] Optionally, the acquisition module 502 is further configured to divide the target image frame into a plurality of detection units based on pixels; and obtain the original grayscale value of each sub-pixel in the detection unit to obtain initial grayscale data of the detection unit.
[0080] Optionally, the adjustment module 504 is further used to use the grayscale critical value and the initial grayscale data to classify the intervals of each sub-pixel in each detection unit to obtain the grayscale interval to which the sub-pixel belongs, wherein the grayscale interval is a bright interval, a dark interval or a dynamic interval; traverse each detection unit in turn, and if a target unit is detected in each detection unit, determine whether the target unit belongs to the range to be adjusted according to the first reference value, wherein the grayscale interval of at least one sub-pixel in the target unit is a dynamic interval, and the target unit is a unit in each detection unit except the first detection unit; if it is determined that the target unit belongs to the range to be adjusted, adjust the initial grayscale data of the target unit according to the target grayscale data of the previous detection unit of the target unit to obtain the target grayscale data of the target unit.
[0081] Optionally, the adjustment module 504 is also used to obtain a grayscale critical value, wherein the grayscale critical value includes a first critical value and a second critical value, and the second critical value is greater than the first critical value; extract the grayscale value of each sub-pixel from the initial grayscale data of the detection unit, and compare each grayscale value with the first critical value and the second critical value; if the grayscale value of the sub-pixel is less than the first critical value, the sub-pixel belongs to the dark interval; if the grayscale value of the sub-pixel is greater than the second critical value, the sub-pixel belongs to the bright interval; if the grayscale value of the sub-pixel is greater than or equal to the first critical value and less than or equal to the second critical value, the sub-pixel belongs to the dynamic interval.
[0082] Optionally, the adjustment module 504 is also used to calculate a first difference between the grayscale value of the sub-pixel belonging to the dynamic range in the target unit and the first reference value; if the first difference is less than or equal to the first threshold, it is determined that the target unit belongs to the range to be adjusted; if the first difference is greater than the first threshold, it is determined that the target unit does not belong to the range to be adjusted.
[0083] Optionally, the adjustment module 504 is also used to determine at least one first sub-pixel in the target unit that belongs to the dynamic range; determine the second sub-pixel corresponding to the first sub-pixel based on the target grayscale data of the previous detection unit of the target unit, and determine the grayscale range of the second sub-pixel, wherein the first sub-pixel and the second sub-pixel represent the same color; adjust the original grayscale value of the first sub-pixel according to the grayscale range of the second sub-pixel to adjust the initial grayscale data of the target unit.
[0084] Optionally, the second determination module 508 is further used to count the number of detection units that meet the detection conditions; calculate a second difference between the number of units and a preset second reference value; if the second difference is less than or equal to a second threshold, determine that the target picture frame meets the start-up conditions; if the second difference is greater than the second threshold, determine that the target picture frame does not meet the start-up conditions.
[0085] It should be noted here that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.
[0086] According to another aspect of the embodiment of the present application, the present application provides a display panel, such as Figure 6 As shown, the display panel 1200 includes: a processor 1210, a memory 1220, and a computer program 1221 stored in the memory 1220 and executable on the processor 1210. When the processor 1210 executes the computer program 1221, the steps of the image detection method in the above embodiment are implemented. The processor 1210 can be a central processing unit (CPU). The processor 1210 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. In some embodiments, the memory 1220 can be an internal storage unit of the display panel 1200, such as a hard disk or memory of the display panel 1200. In other embodiments, the memory 1220 may also be an external storage device of the display panel 1200, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the display panel 1200. Furthermore, the memory 1220 may include both an internal storage unit of the display panel 1200 and an external storage device. The memory 1220 is used to store an operating system, application programs, a boot loader, data, and other programs. The memory 1220 may also be used to temporarily store data that has been output or is about to be output.
[0087] The memory and processor in the electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, and the like.
[0088] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0089] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0090] According to another aspect of the embodiments of the present application, a computer-readable medium having non-volatile program code executable by a processor is provided.
[0091] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0092] When implementing the embodiments of the present application, reference may be made to the above embodiments, which have corresponding technical effects.
[0093] It is understood that the embodiments described herein may be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or a combination thereof.
[0094] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0095] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0096] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0097] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0098] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0099] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0100] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or partly contributed to the prior art or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard drive, a ROM, a RAM, a magnetic disk, or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without further constraints, an element defined by the phrase "comprises a..." does not preclude the existence of additional identical elements in the process, method, article or apparatus that includes the element.
[0101] The foregoing is merely a list of specific embodiments of the present application, intended to enable those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the broadest scope consistent with the principles and novel features of the present application.
Claims
1. A picture detection method, characterized in that: include: Dividing the target image frame to be displayed into a plurality of detection units, and acquiring initial grayscale data of each of the detection units; Adjusting the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data of each detection unit; Determining whether each of the detection units meets the detection conditions according to a preset determination strategy and the target grayscale data; determining whether the target picture frame meets a start condition according to the number of the detection units that meet the detection condition; If the target picture frame meets the start-up condition, a picture detection function is started before the target picture frame is displayed, so as to perform picture detection on the target picture frame when the target picture frame is displayed.
2. The method according to claim 1, characterized in that The step of dividing the target image frame to be displayed into a plurality of detection units and acquiring initial grayscale data of each of the detection units includes: Dividing the target image frame into a plurality of detection units based on pixels; The original grayscale value of each sub-pixel in the detection unit is acquired to obtain the initial grayscale data of the detection unit.
3. The method according to claim 1, characterized in that The adjusting the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data of each detection unit includes: Using the grayscale threshold and the initial grayscale data, each sub-pixel in each of the detection units is classified into intervals to obtain the grayscale interval to which the sub-pixel belongs, wherein the grayscale interval is a bright interval, a dark interval, or a dynamic interval; Traversing each of the detection units in sequence, and if a target unit is detected in each of the detection units, determining whether the target unit belongs to the range to be adjusted according to a first reference value, wherein the grayscale interval of at least one sub-pixel in the target unit is the dynamic interval, and the target unit is a unit in each of the detection units except the first detection unit; If it is determined that the target unit belongs to the range to be adjusted, the initial grayscale data of the target unit is adjusted according to the target grayscale data of the previous detection unit of the target unit to obtain the target grayscale data of the target unit.
4. The method according to claim 3, characterized in that The step of using the grayscale threshold and the initial grayscale data to classify each sub-pixel in each of the detection units to obtain the grayscale interval to which the sub-pixel belongs includes: Acquire the grayscale critical value, wherein the grayscale critical value includes a first critical value and a second critical value, and the second critical value is greater than the first critical value; Extracting a grayscale value of each of the sub-pixels from the initial grayscale data of the detection unit, and comparing each of the grayscale values with the first critical value and the second critical value; If the grayscale value of the sub-pixel is less than the first critical value, the sub-pixel belongs to the dark interval; if the grayscale value of the sub-pixel is greater than the second critical value, the sub-pixel belongs to the bright interval; if the grayscale value of the sub-pixel is greater than or equal to the first critical value and less than or equal to the second critical value, the sub-pixel belongs to the dynamic interval.
5. The method according to claim 3, characterized in that The determining, according to the first reference value, whether the target unit belongs to the range to be adjusted includes: Calculating a first difference between the grayscale value of the sub-pixel in the target unit belonging to the dynamic range and the first reference value; If the first difference is less than or equal to a first threshold, it is determined that the target unit belongs to the range to be adjusted; if the first difference is greater than the first threshold, it is determined that the target unit does not belong to the range to be adjusted.
6. The method according to claim 3, characterized in that The adjusting the initial grayscale data of the target unit according to the target grayscale data of the previous detection unit of the target unit includes: determining at least one first sub-pixel in the target unit that belongs to the dynamic range; Determining a second sub-pixel corresponding to the first sub-pixel and determining the grayscale interval of the second sub-pixel based on the target grayscale data of the previous detection unit of the target unit, wherein the first sub-pixel and the second sub-pixel represent the same color; The original grayscale value of the first subpixel is adjusted according to the grayscale range of the second subpixel to adjust the initial grayscale data of the target unit.
7. The method according to claim 1, characterized in that The determining whether the target picture frame meets the start condition according to the number of the detection units that meet the detection condition includes: Counting the number of the detection units that meet the detection conditions; Calculating a second difference between the number of units and a preset second reference value; If the second difference is less than or equal to a second threshold, it is determined that the target picture frame meets the start condition; if the second difference is greater than the second threshold, it is determined that the target picture frame does not meet the start condition.
8. A picture detection device, characterized in that: include: An acquisition module, configured to divide a target image frame to be displayed into a plurality of detection units and acquire initial grayscale data of each of the detection units; an adjustment module, configured to adjust the initial grayscale data according to a preset adjustment strategy to obtain target grayscale data of each detection unit; A first determination module, configured to determine whether each of the detection units meets a detection condition according to a preset determination strategy and the target grayscale data; A second determining module is configured to determine whether the target picture frame meets a start condition according to the number of the detection units that meet the detection condition; The starting module is used for starting a picture detection function before the target picture frame is displayed if the target picture frame meets the starting condition, so as to perform picture detection on the target picture frame when the target picture frame is displayed.
9. A display panel, characterized in that: The display panel includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable medium having a non-volatile program code executable by a processor, characterized in that The program code enables the processor to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Displayer driving method and driving device
CN106910487A
Picture detection method, display panel, device and computer readable storage medium
CN115881008A
Display picture detection method, display panel and display device
CN116612706A
Image processing method and device, electronic equipment and storage medium
CN118430472A