CN114783338A - Display driving method, display driving apparatus, display apparatus, and computer-readable storage medium - Google Patents

Display driving method, display driving apparatus, display apparatus, and computer-readable storage medium Download PDF

Info

Publication number
CN114783338A
CN114783338A CN202210347208.5A CN202210347208A CN114783338A CN 114783338 A CN114783338 A CN 114783338A CN 202210347208 A CN202210347208 A CN 202210347208A CN 114783338 A CN114783338 A CN 114783338A
Authority
CN
China
Prior art keywords
gray scale
brightness
point
display
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210347208.5A
Other languages
Chinese (zh)
Inventor
王厅
熊珂珂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou China Star Optoelectronics Technology Co Ltd
Original Assignee
Suzhou China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou China Star Optoelectronics Technology Co Ltd filed Critical Suzhou China Star Optoelectronics Technology Co Ltd
Priority to CN202210347208.5A priority Critical patent/CN114783338A/en
Publication of CN114783338A publication Critical patent/CN114783338A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0271Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides a display driving method, a display driving device, a display device and a computer readable storage medium, wherein a first gray scale corresponding to a first picture and a second gray scale corresponding to a second picture displayed by a display panel are obtained, the average brightness of all gray scales in a first gray scale range is used as the target brightness when the second picture is displayed, and meanwhile, a second gray scale range where the driving gray scale corresponding to the second picture is located is determined according to the size of the first gray scale and the second gray scale; and determining a corresponding driving gray scale value when the second picture is actually displayed according to the brightness of the central point in the second gray scale range, the brightness of the central associated point and the target brightness. The driving gray scale value does not need to be manually adjusted, and the gray scale range where the driving gray scale is located can be further reduced according to the first gray scale and the second gray scale, so that the time for determining the driving gray scale is shortened, and the efficiency for determining the driving gray scale is improved.

Description

Display driving method, display driving apparatus, display apparatus, and computer-readable storage medium
Technical Field
The present disclosure relates to the field of panel driving, and in particular, to a display driving method and apparatus, a display apparatus, and a computer-readable storage medium.
Background
In the image display of the display, the gray scale is the brightness variation between the brightest and darkest, and is divided into a plurality of parts. So as to control the screen brightness corresponding to the signal input. Each digital image is composed of a plurality of dots, also called pixels (pixels), each of which can usually exhibit a plurality of different colors, and is composed of three sub-pixels of red, green and blue (RGB). Each sub-pixel, the light source behind it, may exhibit a different brightness level. And the gray levels represent gradation levels of different brightness from the darkest to the brightest. The more the intermediate levels are, the more exquisite the picture effect can be presented. That is, the color change of each dot on the screen is actually caused by the gray scale change of the three RGB sub-pixels constituting the dot. Therefore, when the display actually displays, it is usually necessary to convert the brightness of the image that the user needs to see and the gray-scale values of the display sub-pixels so as to display the image with corresponding brightness on the display.
In the prior art, in order to increase the response speed of the image, when the image is converted from a low gray scale to a high gray scale, a voltage higher than a target voltage is usually provided (conversely, a lower voltage is provided), so that the brightness reaches the target brightness more quickly. From a gray scale perspective, a higher or lower gray scale value is provided. At present, when the gray scale is debugged, the value from the low gray scale to the high gray scale or from the high gray scale to the low gray scale is manually adjusted, whether the adjusted picture meets the requirement or not is manually judged, a large amount of manpower and material resources are wasted, and the efficiency is low.
Disclosure of Invention
The application aims to provide a display driving method, a display driving device, a server and a computer readable storage medium, and aims to solve the problems that in the prior art, an electric driving method is low in efficiency and wastes a large amount of manpower and material resources.
In a first aspect, an embodiment of the present application provides a display driving method, where the display driving method includes:
acquiring a first gray scale corresponding to a first picture displayed by a display and displaying a second gray scale corresponding to a second picture, wherein the display time of the second picture is behind that of the first picture;
acquiring the average brightness of all gray scales in a first gray scale range, and taking the average brightness as the target brightness when the display displays the second picture;
judging the size of the first gray scale and the second gray scale to determine a second gray scale range in which a driving gray scale corresponding to the second picture is located, wherein the first gray scale range and the second gray scale range form a display gray scale range of the display;
acquiring the brightness of a central point and the brightness of a central associated point in the second gray scale range, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than that of the central associated point;
determining a driving gray-scale value for displaying the second picture according to the brightness of the central point, the brightness of the central associated point and the target brightness;
and driving the display to display the second picture by using the driving gray scale value.
In one possible embodiment, the display gray scale range includes a first gray scale threshold and a second gray scale threshold, the first gray scale threshold is a minimum gray scale in the display gray scale range, and the second gray scale threshold is a maximum gray scale in the display gray scale range;
the judging the size of the first gray scale and the second gray scale to determine a second gray scale range of the driving gray scale corresponding to the second picture comprises the following steps:
acquiring a gray scale difference value between the first gray scale and the second gray scale;
if the gray scale difference value is larger than a preset first gray scale difference value threshold, judging whether the gray scale difference value is equal to a preset second gray scale difference value threshold or not;
if the gray scale difference value is not equal to a preset second gray scale difference value threshold value, determining a third gray scale smaller than the second gray scale preset gray scale value;
and taking the third gray scale as the maximum gray scale in the second gray scale range, and taking the first gray scale threshold as the minimum gray scale in the second gray scale range to obtain the second gray scale range.
In one possible embodiment, the method further comprises: and if the gray scale difference value is equal to a preset second gray scale difference value threshold value, determining the second gray scale as the driving gray scale.
In a possible embodiment, the method further comprises:
if the gray scale difference value is smaller than a preset second gray scale difference value threshold, determining a fourth gray scale larger than the second gray scale preset gray scale value;
and taking the fourth gray scale as the minimum gray scale in the second gray scale range, and taking the second gray scale threshold as the maximum gray scale in the second gray scale range to obtain the second gray scale range.
In a possible embodiment, the acquiring the brightness of the central point and the brightness of the central associated point in the second gray scale range, where the central associated point is a gray scale point separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than the gray scale of the central associated point:
determining a maximum gray scale threshold value and a minimum gray scale threshold value in the second gray scale range;
determining a central point gray scale and a central associated point gray scale corresponding to a central point in the second gray scale range according to the maximum gray scale threshold and the minimum gray scale threshold, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than the gray scale of the central associated point;
and measuring the brightness of the central point corresponding to the central point gray scale and the brightness of the central associated point corresponding to the central associated point.
In a possible embodiment, the determining a driving gray-scale value for displaying the second frame according to the brightness of the center point, the brightness of the center associated point and the target brightness includes:
judging the brightness of the central point and the target brightness;
if the brightness of the central point is greater than the target brightness, taking the central point gray scale as the maximum gray scale in the second gray scale range, and taking the fourth gray scale or the first gray scale threshold as the minimum gray scale in the second gray scale range to obtain an updated second gray scale range;
and if the brightness of the central point is smaller than the target brightness, taking the central associated point gray scale as the minimum gray scale in the second gray scale range, and taking the second gray scale threshold or the third gray scale as the maximum gray scale in the second gray scale range to obtain an updated second gray scale range.
In a possible embodiment, the method further comprises:
judging whether the target brightness is in a brightness interval formed by the minimum brightness corresponding to the minimum gray scale in the updated second gray scale range and the maximum brightness corresponding to the maximum gray scale;
if the target brightness is in the brightness interval, calculating a first brightness difference value between the brightness of the central association point and the target brightness;
calculating a second brightness difference value between the brightness of the center point and the target brightness;
calculating a third brightness difference value between the brightness of the central point and the brightness of the central associated point;
judging whether the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value or not;
if the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value, judging whether the first brightness difference value is larger than or equal to the second brightness difference value;
if the first brightness difference value is larger than or equal to the second brightness difference value, taking the central point gray scale as the driving gray scale, and determining the driving gray scale value;
and if the first brightness difference value is smaller than the second brightness difference value, taking the central correlation point gray scale as the driving gray scale, and determining the driving gray scale value.
In a second aspect, embodiments of the present application further provide a display driving apparatus, including:
the gray scale acquisition unit is used for acquiring a first gray scale corresponding to a first picture displayed by the display and displaying a second gray scale corresponding to a second picture, wherein the display time of the second picture is behind the first picture;
the first brightness acquisition unit is used for acquiring the average brightness of all gray scales in a first gray scale range and taking the average brightness as the target brightness when the display displays the second picture;
the gray scale judging unit is used for judging the sizes of the first gray scale and the second gray scale so as to determine a second gray scale range of the driving gray scale corresponding to the second picture, and the first gray scale range and the second gray scale range form a display gray scale range of the display;
the second brightness acquisition unit is used for acquiring the brightness of the central point and the brightness of a central associated point in the second gray scale range, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than that of the central associated point;
a gray-scale value determining unit, configured to determine a driving gray-scale value for displaying the second picture according to the brightness of the center point, the brightness of the center associated point, and the target brightness;
and the driving unit is used for driving the display to display the second picture by utilizing the driving gray scale value.
In a third aspect, embodiments of the present application provide a display device, which includes a display and one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the display driving method as described in any of the above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is loaded by a processor to execute the steps in the display driving method according to any one of the above descriptions.
The application provides a display driving method, a display driving device, a display device and a computer readable storage medium, wherein a first gray scale corresponding to a first picture and a second gray scale corresponding to a second picture displayed by a display panel are obtained, the average brightness of all gray scales in a first gray scale range is used as the target brightness when the second picture is displayed, and meanwhile, a second gray scale range where the driving gray scale corresponding to the second picture is located is determined according to the size of the first gray scale and the second gray scale; and determining a corresponding driving gray scale value when the second picture is actually displayed according to the brightness of the central point, the brightness of the central associated point and the target brightness in the second gray scale range. The size of the driving gray scale value does not need to be manually adjusted, and the gray scale range where the driving gray scale is located can be further reduced according to the size of the first gray scale and the second gray scale, so that the time for determining the driving gray scale is shortened, and the efficiency for determining the driving gray scale is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a display driving system according to an embodiment of the present disclosure;
FIG. 2 is a schematic flowchart illustrating a display driving method according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating an embodiment of determining a second gray scale range according to the present disclosure;
fig. 4 is a schematic flowchart illustrating an embodiment of determining the brightness of the center point and the center-related point according to the present disclosure;
FIG. 5 is a flow chart illustrating an embodiment of determining a driving gray level according to luminance according to an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating an embodiment of determining driving gray levels within a second gray level range according to the present disclosure;
FIG. 7 is a schematic diagram of one embodiment of determining driving gray levels provided in the present application;
FIG. 8 is a schematic diagram of an embodiment of a display driving apparatus provided in the present application;
fig. 9 is a schematic structural diagram illustrating a display device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, merely for convenience of description and simplicity of description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered limiting of the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
It should be noted that, since the method in the embodiment of the present application is executed in the server, the processing objects of each server all exist in the form of data or information, for example, time, which is substantially time information, and it is understood that, in the subsequent embodiments, if it refers to size, number, position, and the like, all corresponding data exist so as to be processed by the server, and details are not described herein.
Embodiments of the present application provide a display driving method, a display driving device, a display device, and a computer-readable storage medium, which are described in detail below.
As shown in fig. 1, a schematic view of a display driving system according to an embodiment of the present disclosure is provided, where the display driving system may include a plurality of hosts 100 and a server 200, the hosts 100 and the server 200 are connected through a network, and a display driving apparatus, such as the server in fig. 1, is integrated in the server 200, and the hosts 100 may access the server 200.
In the embodiment of the present invention, the server 200 is mainly configured to obtain a first gray scale corresponding to a first picture displayed by the display, and display a second gray scale corresponding to a second picture, where the display time of the second picture is after the first picture; acquiring the average brightness of all gray scales in the first gray scale range, and taking the average brightness as the target brightness when the display displays the second picture; judging the sizes of the first gray scale and the second gray scale to determine a second gray scale range in which the driving gray scale corresponding to the second picture is positioned, wherein the first gray scale range and the second gray scale range form a display gray scale range of the display;
acquiring the brightness of the central point and the brightness of a central associated point in a second gray scale range, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than that of the central associated point; determining a driving gray-scale value for displaying the second picture according to the brightness of the central point, the brightness of the central associated point and the target brightness; and driving the display to display the second picture by using the driving gray scale value.
In this embodiment of the present invention, the server 200 may be an independent server, or may be a server network or a server cluster composed of servers, for example, the server 200 described in this embodiment of the present invention includes, but is not limited to, a computer, a network host, a single network server, multiple network server sets, or a cloud server composed of multiple servers. Among them, the Cloud server is constituted by a large number of computers or web servers based on Cloud Computing (Cloud Computing). In the embodiment of the present invention, the server and the host may implement communication through any communication manner, including but not limited to mobile communication based on the third Generation Partnership Project (3 GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communication based on the TCP/IP Protocol Suite (TCP/IP), User Datagram Protocol (UDP), and the like.
It will be appreciated that the host 100 used in embodiments of the present invention may be a device that includes both receiving and transmitting hardware, i.e., a device having receiving and transmitting hardware capable of performing two-way communications over a two-way communications link. Such a host may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display. The host 100 may specifically be a desktop terminal or a mobile terminal, and the host 100 may also specifically be one of a mobile phone, a tablet computer, a notebook computer, and the like.
It will be understood by those skilled in the art that the application environment shown in fig. 1 is only one application scenario related to the present application, and is not limited to the application scenario related to the present application, and that other application environments may further include more or less servers than those shown in fig. 1, or a network connection relationship of servers, for example, only 1 server and 2 hosts are shown in fig. 1, and it will be understood that the display driving system may further include one or more other servers, or/and one or more hosts connected to a network of servers, and is not limited herein.
In addition, as shown in fig. 1, the display driving system may further include a memory for storing data, such as gray scale data, for example, gray scale data corresponding to a picture to be displayed on the display panel.
It should be noted that the scene schematic diagram of the display driving system shown in fig. 1 is only an example, and the display driving system and the scene described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention.
First, a display driving method, a display driving device, a display device, and a computer-readable storage medium are provided in the embodiments of the present application, which are described below.
As shown in fig. 2, a schematic flowchart of an embodiment of a display driving method provided by the present application may include:
21. the method comprises the steps of obtaining a first gray scale corresponding to a first picture displayed by a display and displaying a second gray scale corresponding to a second picture, wherein the display time of the second picture is behind that of the first picture.
When the display panel normally displays a picture, each frame of picture corresponds to a determined gray scale, so that a first gray scale corresponding to the display displaying a first picture and a second gray scale corresponding to the display displaying a second picture can be obtained in the embodiment of the application; and the display time of the second frame is after the first frame.
22. And acquiring the average brightness of all gray scales in the first gray scale range, and taking the average brightness as the target brightness when the display displays the second picture.
In an embodiment of the present application, the first gray scale range includes a plurality of gray scale values, and the first gray scale is a gray scale value in the first gray scale range. When the display actually displays the second picture and the gray scale of the display is changed from the first gray scale to the second gray scale, a gray scale value larger than or smaller than the second gray scale is actually required to be provided to drive the second picture, and the gray scale value larger than or smaller than the second gray scale corresponds to a brightness, namely the target brightness.
In the embodiment of the present application, the average brightness of all gray scales in the first gray scale range can be used as the target brightness when the display displays the second screen; and determining a driving gray scale corresponding to the target brightness according to the target brightness.
23. And judging the sizes of the first gray scale and the second gray scale so as to determine a second gray scale range in which the driving gray scale corresponding to the second picture is positioned.
The display frame of the display usually corresponds to a display gray scale range, such as 0-255 gray scales; in the embodiment of the present application, the driving gray scale corresponding to the second frame is usually determined within the display gray scale range, and when the display gray scale range is large, a lot of time is required, which is not favorable for the display of the display.
Therefore, in the embodiment of the application, the display gray scale range of the display is divided, the gray scale range where the driving gray scale is located is reduced, and a second gray scale range is obtained; subsequently, only the gray scale value in the second gray scale range needs to be judged, and all the gray scale values in the display gray scale range do not need to be judged.
In some embodiments, the magnitudes of the first gray scale and the second gray scale may be determined to determine a second gray scale range in which the driving gray scale corresponding to the second frame is located. And the first gray scale range and the second gray scale range form a display gray scale range of the display area.
In one embodiment, the first gray scale range may be 0-192 gray scales, and the target brightness is an average brightness of brightness corresponding to all gray scales in the range of 0-192 gray scales. The second gray scale range is 193-255 gray scales, and the first gray scale range and the second gray scale range constitute the display gray scale range 0-255 of the display.
24. And acquiring the brightness of the central point in the second gray scale range and the brightness of a central associated point, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value.
After the second gray scale range is determined, a gray scale point at the middle position in the second gray scale range can be obtained, and the gray scale point is the central point; specifically, a half of the sum of the maximum gray scale and the minimum gray scale in the second gray scale range may be used as the center point. After the central point is determined, a gray scale point which is separated from the central point by a preset gray scale value can be further determined, and the gray scale point is the central associated point; and further reducing the second gray scale range according to the central point and the central associated point to improve the efficiency of determining the driving gray scale.
In some embodiments, the preset grayscale value may be one grayscale value, two grayscale values, etc.; the display method can be specifically set according to actual requirements and the size of a display gray scale range. And usually, the gray scale of the central point is smaller than that of the central associated point; that is, the gray level of the center point can be obtained by adding a predetermined gray level value to the gray level of the center point. After the gray scale of the central point and the gray scale of the central associated point are determined, the brightness of the central point and the brightness of the central associated point can be further determined.
In one embodiment, the second gray scale range may be 193-255, in which case the center point gray scale in the second gray scale range may be (193+255)/2, the center point associated point may be [ (193+255)/2] +1, and the predetermined gray scale value is 1. Further, the brightness corresponding to the central point gray scale (193+255)/2 and the brightness of the central associated point [ (193+255)/2] +1 are determined.
In the embodiment of the present application, if the calculation result is not an integer, the calculation result may be rounded forward or backward, and the rounded value is used as the gray level of the central point if the calculation result is half of the sum of the maximum gray level and the minimum gray level in the second gray level range, for example, when the second gray level range is 194-255 gray levels, and the half of the sum of the maximum gray level and the minimum gray level in the second gray level range is 224.5, the gray level of the central point is selected from any one of 224 gray levels or 225 gray levels.
25. And determining a driving gray-scale value for displaying the second picture according to the brightness of the central point, the brightness of the central associated point and the target brightness.
26. And driving the display to display the second picture by using the driving gray scale value.
After the brightness of the central point, the brightness of the central associated point and the target brightness are determined, a driving gray scale value corresponding to the second picture can be determined according to the brightness of the central point, the brightness of the central associated point and the target brightness; and driving the display to display a second frame by using the driving gray scale value.
The display driving method provided by the embodiment of the application comprises the steps of obtaining a first gray scale corresponding to a first picture and a second gray scale corresponding to a second picture which are displayed by a display panel, taking the average brightness of all gray scales in a first gray scale range as the target brightness when the second picture is displayed, and determining a second gray scale range where a driving gray scale corresponding to the second picture is located according to the sizes of the first gray scale and the second gray scale; and determining a corresponding driving gray scale value when the second picture is actually displayed according to the brightness of the central point in the second gray scale range, the brightness of the central associated point and the target brightness. The driving gray scale value does not need to be manually adjusted, and the gray scale range where the driving gray scale is located can be further reduced according to the first gray scale and the second gray scale, so that the time for determining the driving gray scale is shortened, and the efficiency for determining the driving gray scale is improved.
In the embodiment of the application, the display gray scale range corresponding to the display comprises a first gray scale threshold value and a second gray scale threshold value; the first gray scale threshold value is the minimum gray scale in the display gray scale range, and the second gray scale threshold value is the maximum gray scale in the display gray scale range. For example, if the display gray scale range is 0-255 gray scales, the first gray scale threshold is 0, and the second gray scale threshold is 255.
As shown in fig. 3, an embodiment of a flowchart for determining a second gray scale range according to an embodiment of the present application may include:
31. a gray scale difference between the first gray scale and the second gray scale is obtained.
32. And if the gray scale difference value is larger than a preset first gray scale difference value threshold, judging whether the gray scale difference value is equal to a preset second gray scale difference value threshold.
33. And if the gray scale difference value is not equal to the preset second gray scale difference value threshold value, determining a third gray scale smaller than the second gray scale preset gray scale value.
34. And taking the third gray scale as the maximum gray scale in the second gray scale range, and taking the first gray scale threshold as the minimum gray scale in the second gray scale range to obtain the second gray scale range.
35. And if the gray scale difference value is equal to a preset second gray scale difference value threshold value, determining the second gray scale as the driving gray scale.
In the embodiment of the present application, it is first required to compare the known first gray scale and the known second gray scale to reduce the corresponding size of the second gray scale range. Therefore, a gray scale difference value obtained by subtracting the second gray scale from the first gray scale is calculated, and the magnitude relation between the gray scale difference value and a preset gray scale difference value threshold is judged.
The method includes the steps that firstly, the magnitude relation between a gray scale difference value and a preset first gray scale difference value threshold value is judged, and if the gray scale difference value is larger than the preset first gray scale difference value threshold value, whether the gray scale difference value is equal to a preset second gray scale difference value threshold value needs to be judged again; this is to avoid that the difference between the first gray level and the second gray level is small or the first gray level is equal to the second gray level, resulting in no adjustment meaning. Therefore, in the embodiment of the present application, the second gray level difference threshold is usually 0 gray level or 1 gray level. After the gray scale difference value is determined to be larger than the first gray scale difference value threshold, whether the gray scale difference value is equal to a preset second gray scale difference value threshold needs to be judged so as to eliminate the defect that the difference distance between the first gray scale and the second gray scale is small and lose the significance of adjusting the gray scale.
If the gray scale difference value is not equal to the preset second gray scale difference value threshold value, further determining a third gray scale smaller than the preset second gray scale value; in the embodiment of the present application, the second gray scale is not directly utilized, but other gray scales smaller or larger than the preset gray scale value of the second gray scale are determined to narrow the range of the second gray scale.
In the embodiment of the present application, the predetermined gray scale value may be 1 gray scale, and the third gray scale value is a gray scale value smaller than the second gray scale value by one gray scale. For example, if the second gray scale is 193 gray scale, the third gray scale is 193-1 to 192 gray scale. In other embodiments, the preset gray scale value may also be adjusted according to actual requirements and a display gray scale range corresponding to the display, which is not limited herein.
After the third gray scale is determined, the third gray scale can be used as the maximum gray scale in the second gray scale range, and the first gray scale threshold value in the display gray scale range is used as the minimum gray scale in the second gray scale range, so that the second gray scale range is obtained. The second gray scale range is from the first gray scale threshold to the third gray scale.
If the gray scale difference value is equal to the preset second gray scale difference value threshold, the difference between the first gray scale and the second gray scale is smaller, and at the moment, the picture is not greatly changed when the picture is converted from the first gray scale to the second gray scale. Therefore, the second gray scale can be directly used as the driving gray scale for driving the second picture, and the second gray scale range does not exist at the moment.
On the basis of the foregoing embodiment, if the gray-scale difference value is smaller than the preset second gray-scale difference value threshold, a fourth gray scale larger than the second gray-scale preset gray-scale value may be determined; and taking the fourth gray scale as the minimum gray scale in the second gray scale range, and taking the second gray scale threshold value in the display gray scale range as the maximum gray scale in the second gray scale range, so as to obtain the second gray scale range. The second gray scale range at this time is the fourth gray scale-the second gray scale threshold. The method for obtaining the fourth gray scale may refer to the method for obtaining the third gray scale, which is not described herein again.
The second gray scale range is continuously narrowed by mainly utilizing the idea similar to the dichotomy until the driving gray scale corresponding to the second picture is determined in the second gray scale range.
Therefore, after the second gray scale is determined, the center point and the center associated point in the second gray scale range need to be determined again, and the second gray scale range needs to be further narrowed according to the center point and the center associated point. In the embodiment of the present invention, the second gray scale range is narrowed by mainly using the brightness of the center point and the brightness of the center associated point.
Specifically, as shown in fig. 4, an embodiment of a flowchart for determining the brightness of the central point and the central associated point provided by the embodiment of the present application may include:
41. and determining a maximum gray scale threshold value and a minimum gray scale threshold value in the second gray scale range.
42. And determining a central point gray scale and a central associated point gray scale corresponding to the central point in the second gray scale range according to the maximum gray scale threshold and the minimum gray scale threshold.
43. And measuring the brightness of the central point corresponding to the central point gray scale and the brightness of the central associated point corresponding to the central associated point.
Specifically, for the second gray scale range, there must be a maximum gray scale and a minimum gray scale, i.e., a maximum gray scale threshold and a minimum gray scale threshold. In one embodiment, the second gray scale range may be 193-255, the maximum gray scale threshold may be 255, and the minimum gray scale threshold may be 193.
After the maximum and minimum gray scale thresholds in the second gray scale range are determined, the gray scale in the center position of the second gray scale range can be calculated, and the gray scale is the central point gray scale. For example, the center point gray level may be (193+ 255)/2; i.e. the gray level at the center point is half the sum of the maximum gray level threshold and the minimum gray level threshold. Of course, if half of the sum of the two is not an integer, the calculation result can be rounded forward or backward.
The central correlation point is a gray level point separated from the central point by a predetermined gray level value, for example, [ (193+255)/2] + 1. Generally speaking, the gray scale of the central point is smaller than that of the central associated point; that is, the gray scale of the central associated point is obtained by adding the gray scale of the central point to the preset gray scale value.
After the gray scale corresponding to the central point and the gray scale corresponding to the central associated point are determined, the brightness of the central point and the brightness of the central associated point can be directly measured. In the embodiment of the present application, not only the brightness of the central point but also the brightness of the central associated point is obtained, which is to reduce an error occurring when the brightness is measured.
In the embodiment of the application, the driving gray-scale value for displaying the second picture can be determined according to the brightness of the central point, the brightness of the central associated point and the target brightness. As shown in fig. 5, an exemplary flow chart for determining a driving gray level according to luminance provided by the embodiment of the present application may include:
51. and judging the brightness of the central point and the target brightness.
52. And if the brightness of the central point is greater than the target brightness, taking the central point gray scale as the maximum gray scale in the second gray scale range, and taking the fourth gray scale or the first gray scale threshold as the minimum gray scale in the second gray scale range to obtain the updated second gray scale range.
In the embodiment of the present application, the second gray scale range needs to be continuously updated and reduced to reduce the amount of calculation and improve the efficiency. The second gray scale range may be narrowed down using the brightness of the center point and the magnitude of the target brightness.
In some embodiments, if the brightness of the center point is greater than the target brightness, it is indicated that the driving gray scale corresponding to the target brightness is less than the gray scale corresponding to the center point; the gray scale of the central point can be assigned to the maximum gray scale threshold value in the second gray scale range, namely the gray scale of the central point is used as the maximum gray scale threshold value in the new second gray scale range; while the minimum gray level threshold in the new second gray level range remains unchanged.
And if the minimum gray scale threshold value before updating is the fourth gray scale, the minimum gray scale threshold value after updating is still the fourth gray scale. The updated second gray scale range is the fourth gray scale-center point gray scale. If the minimum gray scale threshold before updating is the first gray scale threshold, the updated minimum gray scale threshold is still the first gray scale threshold, and the updated second gray scale range is the first gray scale threshold-center point gray scale. When the brightness of the central point is larger than the target brightness, only the maximum gray scale threshold value in the second gray scale range is changed, and the minimum gray scale threshold value is kept unchanged, so that the updated second gray scale range is obtained.
53. And if the brightness of the central point is smaller than the target brightness, taking the gray scale of the central associated point as the minimum gray scale in the second gray scale range, and taking the second gray scale threshold or the third gray scale as the maximum gray scale in the second gray scale range to obtain the updated second gray scale range.
If the brightness of the central point is smaller than the target brightness, it is indicated that the driving gray scale corresponding to the target brightness is larger than the gray scale of the central point, and at this time, the gray scale of the central association point can be used as the minimum gray scale in the second gray scale range; while the maximum gray level in the second gray level range remains unchanged.
In some embodiments, the maximum gray level in the second gray level range may be the second gray level threshold, and the updated second gray level range is the center associated point gray level-the second gray level threshold. In other embodiments, the maximum gray level within the second gray level range may be a third gray level, which is a gray level greater than the second gray level by a predetermined gray level value; the updated second gray scale range may be the center associated point gray scale to the third gray scale.
In the above embodiment, after the second gray scale range is updated by using the brightness of the central point and the target brightness, the maximum gray scale threshold and the minimum gray scale threshold in the updated second gray scale range need to be obtained again, and the updated central point gray scale and the central associated point gray scale are obtained through calculation; and further measuring the brightness of the central point and the brightness of the central associated point, and comparing the new brightness of the central point with the target brightness again to update the new second gray scale range again. For a specific method for updating the second gray scale, reference may be made to the foregoing description, and details are not repeated here.
While continuously updating the second gray scale range, it is also necessary to determine whether the target brightness is within a brightness interval formed by the brightness corresponding to the minimum gray scale and the brightness corresponding to the maximum gray scale in the updated second gray scale range. If so, the driving gray scale corresponding to the target brightness at this time is in the second gray scale range at this time. It is also necessary to determine the driving gray scale within the second gray scale range at this time. As shown in fig. 6, an embodiment of a flowchart for determining driving gray levels in the second gray level range according to the present invention is shown; the method can comprise the following steps:
61. if the target brightness is within the brightness interval, a first brightness difference value between the brightness of the central correlation point and the target brightness is calculated.
62. A second luminance difference value between the center point luminance and the target luminance is calculated.
63. A third luminance difference value between the luminance of the center point and the luminance associated with the center is calculated.
64. And judging whether the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value.
65. And if the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value, judging whether the first brightness difference value is larger than or equal to the second brightness difference value.
66. And if the first brightness difference value is larger than or equal to the second brightness difference value, taking the central point gray scale as a driving gray scale, and determining the driving gray scale value.
67. And if the first brightness difference value is smaller than the second brightness difference value, taking the central associated point gray scale as a driving gray scale, and determining the driving gray scale value.
Specifically, if the target luminance is within a luminance interval formed by the minimum luminance corresponding to the minimum gray scale in the second gray scale range and the maximum luminance corresponding to one maximum gray scale, a first luminance difference between the luminance of the center associated point and the target luminance, a second luminance difference between the luminance of the center point and the luminance of the center associated point, and a third luminance difference between the luminance of the center point and the luminance of the center associated point need to be calculated respectively. And judging whether the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value.
If the sum of the first brightness difference value and the second brightness difference value is met, the sum is equal to a third brightness difference value; judging whether the first brightness difference value is larger than or equal to the second brightness difference value again, if so, taking the gray scale corresponding to the central point as a driving gray scale for driving the second picture; if not, the gray scale of the central associated point is used as the driving gray scale for driving the second picture.
In the embodiment of the application, the second gray scale range is continuously reduced by using the idea of bisection, and while the second gray scale range is reduced, a first brightness difference value, a second brightness difference value and a third brightness difference value corresponding to a new second gray scale range also need to be obtained; and a magnitude relation comparison as shown in fig. 6 is performed. Until the target brightness is in a brightness interval formed by the minimum brightness corresponding to the minimum gray scale in the reduced second gray scale range and the maximum brightness corresponding to the maximum gray scale.
When the target brightness interval is in the brightness interval, the brightness with a smaller brightness difference between the target brightness and the brightness of the central point and the brightness of the central associated point in the new second gray scale range needs to be judged; and taking the gray scale corresponding to the brightness with smaller difference value as the driving gray scale for driving the second picture. For example, if the luminance difference between the target luminance and the luminance of the center point is smaller than the luminance difference between the target luminance and the luminance of the center-related point, the gray scale of the center point is taken as the driving gray scale.
Fig. 7 is a schematic diagram of an embodiment of determining driving gray levels provided by the present application. In fig. 7, a first image and a second image, and a first gray scale corresponding to the first image and a second gray scale corresponding to the second image are obtained. And determining the target brightness according to the average brightness of all gray scales in the first gray scale range. And comparing the magnitude relation of the first gray scale and the second gray scale to determine a second gray scale range in which the driving gray scale corresponding to the second picture is located.
If the gray scale difference value of the first gray scale minus the second gray scale is equal to 1 or 0, the difference between the first gray scale and the second gray scale is smaller, and the value of the second gray scale is directly used as the driving gray scale. If the value of the first gray scale is larger than that of the second gray scale and the gray scale difference value obtained by subtracting the second gray scale from the first gray scale is not equal to 0 or 1, the minimum gray scale threshold value in the display gray scale range corresponding to the display is used as the minimum gray scale in the second gray scale range, and the third gray scale value smaller than the preset gray scale value of the second gray scale is used as the maximum gray scale in the second gray scale range. If the value of the first gray scale is smaller than that of the second gray scale, the maximum gray scale threshold value in the display gray scale range corresponding to the display is used as the maximum gray scale in the second gray scale range, and the fourth gray scale larger than the preset gray scale value of the second gray scale is used as the minimum gray scale in the second gray scale range.
After the second gray scale range is determined, the gray scale corresponding to the central point in the second gray scale range and the gray scale corresponding to the central association point can be determined; the central associated point is a gray scale separated from the central point by a predetermined gray scale value, and the gray scale value of the central associated point is usually greater than the gray scale of the central point. The brightness of the center point is measured simultaneously with the brightness of the associated point of the center. And comparing the brightness of the central point with the target brightness, and if the brightness of the central point is greater than the target brightness, taking the central point as the maximum gray scale in the second gray scale range, namely assigning the gray scale of the central point to the maximum gray scale in the second gray scale range. And if the brightness of the central point is smaller than the target brightness, taking the gray scale of the central associated point as the minimum gray scale in the second gray scale range, namely assigning the gray scale of the central associated point to the minimum gray scale in the second gray scale range. The second gray scale range is continuously narrowed by the method.
While reducing the second gray scale range, it is also necessary to determine whether the target brightness is within a brightness interval formed by the brightness of the maximum gray scale and the brightness of the minimum gray scale in the second gray scale range. If yes, calculating a first brightness difference value between the brightness of the central associated point and the target brightness, calculating a second brightness difference value between the brightness of the central point and the target brightness, and calculating a third brightness difference value between the brightness of the central associated point and the brightness of the central point. And judging whether the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value.
If the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value, judging whether the first brightness difference value is larger than or equal to the second brightness difference value; if so, the gray scale of the central point is taken as the driving gray scale, namely the gray scale of the central point is assigned to the driving gray scale. And if not, taking the gray scale of the central associated point as a driving gray scale, namely assigning the gray scale of the central associated point to the driving gray scale.
An embodiment of the present application further provides a display driving apparatus, as shown in fig. 8, the display driving apparatus may include:
the grayscale acquiring unit 801 is configured to acquire a first grayscale corresponding to a first image displayed by the display, and display a second grayscale corresponding to a second image, where the display time of the second image is after the first image.
The first brightness obtaining unit 802 is configured to obtain an average brightness of all gray scales in the first gray scale range, and use the average brightness as a target brightness when the display displays the second screen.
The gray scale determining unit 803 is configured to determine the magnitudes of the first gray scale and the second gray scale to determine a second gray scale range of the driving gray scale corresponding to the second frame, where the first gray scale range and the second gray scale range constitute a display gray scale range of the display.
The second brightness obtaining unit 804 is configured to obtain brightness of a central point and brightness of a central associated point in a second gray scale range, where the central associated point is a gray scale point spaced from the central point by a preset gray scale value, and a gray scale of the central point is smaller than a gray scale of the central associated point.
The gray level value determining unit 805 is configured to determine a driving gray level value for displaying the second frame according to the brightness of the center point, the brightness of the center associated point, and the target brightness.
And a driving unit 806, configured to drive the display to display the second frame by using the driving gray scale value.
The display driving device provided by the embodiment of the application firstly obtains a first gray scale corresponding to a first picture and a second gray scale corresponding to a second picture displayed by a display panel, takes the average brightness of all gray scales in a first gray scale range as the target brightness when the second picture is displayed, and simultaneously determines a second gray scale range where a driving gray scale corresponding to the second picture is located according to the sizes of the first gray scale and the second gray scale; and determining a corresponding driving gray scale value when the second picture is actually displayed according to the brightness of the central point in the second gray scale range, the brightness of the central associated point and the target brightness. The size of the driving gray scale value does not need to be manually adjusted, and the gray scale range where the driving gray scale is located can be further reduced according to the size of the first gray scale and the second gray scale, so that the time for determining the driving gray scale is shortened, and the efficiency for determining the driving gray scale is improved.
In some embodiments, the display gray scale range includes a first gray scale threshold value and a second gray scale threshold value, the first gray scale threshold value is a minimum gray scale in the display gray scale range, and the second gray scale threshold value is a maximum gray scale in the display gray scale range. The grayscale determination unit 803 may also be configured to: acquiring a gray scale difference value between the first gray scale and the second gray scale; if the gray scale difference value is larger than a preset first gray scale difference value threshold value, judging whether the gray scale difference value is equal to a preset second gray scale difference value threshold value or not; if the gray scale difference value is not equal to the preset second gray scale difference value threshold value, determining a third gray scale smaller than the preset second gray scale value; and taking the third gray scale as the maximum gray scale in the second gray scale range, and taking the first gray scale threshold as the minimum gray scale in the second gray scale range to obtain the second gray scale range.
In some embodiments, the grayscale determination unit 803 may also be used to: and if the gray scale difference value is equal to a preset second gray scale difference value threshold value, determining the second gray scale as a driving gray scale.
In some embodiments, the grayscale determining unit 803 can also be used to: if the gray scale difference value is smaller than a preset second gray scale difference value threshold, determining a fourth gray scale larger than a second gray scale preset gray scale value; and taking the fourth gray scale as the minimum gray scale in the second gray scale range, and taking the second gray scale threshold as the maximum gray scale in the second gray scale range to obtain the second gray scale range.
In some embodiments, the second luminance obtaining unit 804 may be further configured to: determining a maximum gray scale threshold value and a minimum gray scale threshold value in a second gray scale range; determining a central point gray scale and a central associated point gray scale corresponding to a central point in a second gray scale range according to the maximum gray scale threshold and the minimum gray scale threshold, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than that of the central associated point; and measuring the brightness of the central point corresponding to the central point gray scale and the brightness of the central associated point corresponding to the central associated point.
In some embodiments, the grayscale value determination unit 805 may also be used to: judging the brightness of the central point and the target brightness; if the brightness of the central point is larger than the target brightness, taking the central point gray scale as the maximum gray scale in a second gray scale range, and taking a fourth gray scale or a first gray scale threshold value as the minimum gray scale in the second gray scale range to obtain an updated second gray scale range; and if the brightness of the central point is smaller than the target brightness, taking the gray scale of the central associated point as the minimum gray scale in a second gray scale range, and taking the second gray scale threshold or the third gray scale as the maximum gray scale in the second gray scale range to obtain an updated second gray scale range.
In some embodiments, the gray level value determining unit 805 may be further configured to: judging whether the target brightness is in a brightness interval formed by the minimum brightness corresponding to the minimum gray scale in the updated second gray scale range and the maximum brightness corresponding to the maximum gray scale; if the target brightness is in the brightness interval, calculating a first brightness difference value between the brightness of the central association point and the target brightness; calculating a second brightness difference between the brightness of the center point and the target brightness; calculating a third brightness difference value between the brightness of the central point and the brightness of the central associated point;
judging whether the sum of the first brightness difference value and the second brightness difference value is equal to a third brightness difference value or not; if the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value, judging whether the first brightness difference value is larger than or equal to the second brightness difference value; if the first brightness difference value is larger than or equal to the second brightness difference value, taking the central point gray scale as a driving gray scale, and determining a driving gray scale value; and if the first brightness difference value is smaller than the second brightness difference value, taking the central associated point gray scale as a driving gray scale, and determining the driving gray scale value.
The embodiment of the application also provides a display device, which comprises a display, one or more processors and a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the display driving method as described in any of the above.
As shown in fig. 9, a schematic structural diagram of a display device according to an embodiment of the present application is shown, specifically:
the display device may include components such as a processor 901 of one or more processing cores, memory 902 of one or more computer-readable storage media, a power supply 903, and an input unit 904. It will be appreciated by those skilled in the art that the display device configurations shown in the figures are not intended to be limiting and may include more or fewer components than those shown, or some of the components may be combined, or a different arrangement of components. Wherein:
the processor 901 is a control center of the display apparatus, connects various parts of the entire display apparatus using various interfaces and lines, performs various functions of the display apparatus and processes data by operating or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902, thereby performing overall monitoring of the display apparatus. Alternatively, processor 901 may include one or more processing cores; preferably, the processor 901 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 901.
The memory 902 may be used to store software programs and modules, and the processor 901 performs various functional applications and data processing by operating the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the display device, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 902 may also include a memory controller to provide the processor 901 access to the memory 902.
The display device further comprises a power supply 903 for supplying power to each component, and preferably, the power supply 903 can be logically connected with the processor 901 through a power management system, so that functions of charging, discharging, power consumption management and the like can be managed through the power management system. The power supply 903 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The display device may further include an input unit 904, and the input unit 904 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the display device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 901 in the display device loads the executable file corresponding to the process of one or more application programs into the memory 902 according to the following instructions, and the processor 901 runs the application programs stored in the memory 902, so as to implement various functions as follows:
acquiring a first gray scale corresponding to a first picture displayed by a display and a second gray scale corresponding to a second picture, wherein the display time of the second picture is behind that of the first picture; acquiring the average brightness of all gray scales in the first gray scale range, and taking the average brightness as the target brightness when the display displays the second picture; judging the sizes of the first gray scale and the second gray scale to determine a second gray scale range in which the driving gray scale corresponding to the second picture is positioned, wherein the first gray scale range and the second gray scale range form a display gray scale range of the display;
acquiring the brightness of a central point and the brightness of a central associated point in a second gray scale range, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than that of the central associated point; determining a driving gray-scale value for displaying the second picture according to the brightness of the central point, the brightness of the central associated point and the target brightness; and driving the display to display the second picture by using the driving gray scale value.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. The computer program is loaded by the processor to execute the steps of any one of the methods for detecting defects of a circuit board provided by the embodiments of the present application. For example, the computer program may be loaded by a processor to perform the steps of:
acquiring a first gray scale corresponding to a first picture displayed by a display and a second gray scale corresponding to a second picture, wherein the display time of the second picture is behind that of the first picture; acquiring the average brightness of all gray scales in the first gray scale range, and taking the average brightness as the target brightness when the display displays the second picture; judging the magnitude of the first gray scale and the second gray scale to determine a second gray scale range in which the driving gray scale corresponding to the second picture is positioned, wherein the first gray scale range and the second gray scale range form a display gray scale range of the display;
acquiring the brightness of the central point and the brightness of a central associated point in a second gray scale range, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than that of the central associated point; determining a driving gray-scale value for displaying the second picture according to the brightness of the central point, the brightness of the central associated point and the target brightness; and driving the display to display the second picture by using the driving gray scale value.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, which are not described herein again.
In specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same entity or several entities, and specific implementation of each unit or structure may refer to the foregoing method embodiment, which is not described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The foregoing detailed description has provided a display driving method, a display device, and a computer readable storage medium according to embodiments of the present application, and specific examples have been applied herein to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and its core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A display driving method, comprising:
acquiring a first gray scale corresponding to a first picture displayed by a display and displaying a second gray scale corresponding to a second picture, wherein the display time of the second picture is behind that of the first picture;
acquiring the average brightness of all gray scales in a first gray scale range, and taking the average brightness as the target brightness when the display displays the second picture;
judging the sizes of the first gray scale and the second gray scale to determine a second gray scale range in which a driving gray scale corresponding to the second picture is located, wherein the first gray scale range and the second gray scale range form a display gray scale range of the display;
acquiring the brightness of a central point and the brightness of a central associated point in the second gray scale range, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than that of the central associated point;
determining a driving gray scale value for displaying the second picture according to the brightness of the central point, the brightness of the central associated point and the target brightness;
and driving the display to display the second picture by using the driving gray scale value.
2. The method according to claim 1, wherein the display gray scale range comprises a first gray scale threshold and a second gray scale threshold, the first gray scale threshold is a minimum gray scale in the display gray scale range, and the second gray scale threshold is a maximum gray scale in the display gray scale range;
the judging the size of the first gray scale and the second gray scale to determine a second gray scale range of the driving gray scale corresponding to the second picture comprises the following steps:
acquiring a gray scale difference value between the first gray scale and the second gray scale;
if the gray scale difference value is larger than a preset first gray scale difference value threshold value, judging whether the gray scale difference value is equal to a preset second gray scale difference value threshold value or not;
if the gray scale difference value is not equal to a preset second gray scale difference value threshold, determining a third gray scale smaller than the preset second gray scale value;
and taking the third gray scale as the maximum gray scale in the second gray scale range, and taking the first gray scale threshold as the minimum gray scale in the second gray scale range to obtain the second gray scale range.
3. The display driving method according to claim 2, further comprising:
and if the gray scale difference value is equal to a preset second gray scale difference value threshold value, determining the second gray scale as the driving gray scale.
4. The display driving method according to claim 2, further comprising:
if the gray scale difference value is smaller than a preset second gray scale difference value threshold, determining a fourth gray scale larger than the second gray scale preset gray scale value;
and taking the fourth gray scale as the minimum gray scale in the second gray scale range, and taking the second gray scale threshold as the maximum gray scale in the second gray scale range to obtain the second gray scale range.
5. The method according to claim 4, wherein the obtaining of the brightness of the center point and the brightness of a center associated point in the second gray scale range is performed, the center associated point is a gray scale point separated from the center point by a preset gray scale value, and the gray scale of the center point is smaller than the gray scale of the center associated point:
determining a maximum gray scale threshold value and a minimum gray scale threshold value in the second gray scale range;
determining a central point gray scale and a central associated point gray scale corresponding to a central point in the second gray scale range according to the maximum gray scale threshold and the minimum gray scale threshold, wherein the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than the gray scale of the central associated point;
and measuring the brightness of the central point corresponding to the central point gray scale and the brightness of the central associated point corresponding to the central associated point.
6. The method according to claim 5, wherein determining the driving gray-scale value for displaying the second frame according to the brightness of the center point, the brightness of the center-related point and the target brightness comprises:
judging the brightness of the central point and the target brightness;
if the brightness of the central point is larger than the target brightness, taking the central point gray scale as the maximum gray scale in the second gray scale range, and taking the fourth gray scale or the first gray scale threshold as the minimum gray scale in the second gray scale range to obtain an updated second gray scale range;
and if the brightness of the central point is smaller than the target brightness, taking the gray scale of the central associated point as the minimum gray scale in the second gray scale range, and taking the second gray scale threshold or the third gray scale as the maximum gray scale in the second gray scale range to obtain an updated second gray scale range.
7. The display driving method according to claim 6, further comprising:
judging whether the target brightness is in a brightness interval formed by the minimum brightness corresponding to the minimum gray scale in the updated second gray scale range and the maximum brightness corresponding to the maximum gray scale;
if the target brightness is in the brightness interval, calculating a first brightness difference value between the brightness of the central correlation point and the target brightness;
calculating a second brightness difference value between the brightness of the center point and the target brightness;
calculating a third brightness difference between the brightness of the center point and the brightness of the center associated point;
judging whether the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value or not;
if the sum of the first brightness difference value and the second brightness difference value is equal to the third brightness difference value, judging whether the first brightness difference value is larger than or equal to the second brightness difference value;
if the first brightness difference value is larger than or equal to the second brightness difference value, taking the central point gray scale as the driving gray scale, and determining the driving gray scale value;
and if the first brightness difference value is smaller than the second brightness difference value, taking the central correlation point gray scale as the driving gray scale, and determining the driving gray scale value.
8. A display driving apparatus, comprising:
the display device comprises a gray scale acquisition unit, a display unit and a display unit, wherein the gray scale acquisition unit is used for acquiring a first gray scale corresponding to a first picture displayed by the display and displaying a second gray scale corresponding to a second picture, and the display time of the second picture is behind that of the first picture;
the first brightness acquisition unit is used for acquiring the average brightness of all gray scales in a first gray scale range and taking the average brightness as the target brightness when the display displays the second picture;
the gray scale judging unit is used for judging the sizes of the first gray scale and the second gray scale so as to determine a second gray scale range of the driving gray scale corresponding to the second picture, and the first gray scale range and the second gray scale range form a display gray scale range of the display;
the second brightness obtaining unit is used for obtaining the brightness of a central point and the brightness of a central associated point in the second gray scale range, the central associated point is a gray scale point which is separated from the central point by a preset gray scale value, and the gray scale of the central point is smaller than the gray scale of the central associated point;
the gray-scale value determining unit is used for determining a driving gray-scale value for displaying the second picture according to the brightness of the central point, the brightness of the central associated point and the target brightness;
and the driving unit is used for driving the display to display the second picture by utilizing the driving gray scale value.
9. A display device, characterized in that the display device comprises a display and one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the display driving method of any of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor for performing the steps in the display driving method according to any of claims 1 to 7.
CN202210347208.5A 2022-04-01 2022-04-01 Display driving method, display driving apparatus, display apparatus, and computer-readable storage medium Pending CN114783338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210347208.5A CN114783338A (en) 2022-04-01 2022-04-01 Display driving method, display driving apparatus, display apparatus, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210347208.5A CN114783338A (en) 2022-04-01 2022-04-01 Display driving method, display driving apparatus, display apparatus, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN114783338A true CN114783338A (en) 2022-07-22

Family

ID=82427091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210347208.5A Pending CN114783338A (en) 2022-04-01 2022-04-01 Display driving method, display driving apparatus, display apparatus, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN114783338A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116504190A (en) * 2023-02-27 2023-07-28 广州文石信息科技有限公司 Image processing method and device for electronic ink screen and related equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116504190A (en) * 2023-02-27 2023-07-28 广州文石信息科技有限公司 Image processing method and device for electronic ink screen and related equipment
CN116504190B (en) * 2023-02-27 2024-04-09 广州文石信息科技有限公司 Image processing method and device for electronic ink screen and related equipment

Similar Documents

Publication Publication Date Title
US11833424B2 (en) Image rendering method and apparatus, device and storage medium
CN112185313B (en) Pixel structure driving method and display device
WO2019127718A1 (en) Method and apparatus for displaying image
KR20080080040A (en) Image display apparatus and electronic apparatus
WO2023202173A1 (en) Brightness adjustment method and apparatus, and computer device and computer-readable storage medium
US20210280124A1 (en) Method of displaying image and image display device
CN111816109B (en) Display method and device and display equipment
WO2022217698A1 (en) Display panel driving method and device, and display terminal
CN114783338A (en) Display driving method, display driving apparatus, display apparatus, and computer-readable storage medium
CN113674712A (en) Display screen backlight correction method, device and system, storage medium and display system
CN114119431A (en) Image processing method, image processing device, electronic equipment and storage medium
CN116382540A (en) Display method and device for electronic paper, electronic equipment and storage medium
CN109308874B (en) Display screen brightness adjusting method and device
JP6232039B2 (en) Image display system, display method, and computer program
CN117524042A (en) Display panel compensation method and device, display equipment and storage medium
CN109559707B (en) Gamma value processing method and device of display panel and display equipment
CN113990267B (en) Pixel brightness compensation method and device, storage medium and display panel
CN114783335A (en) Method and device for improving color cast of display panel, server and storage medium
CN112951139B (en) Gray scale adjusting method and device
CN114783359A (en) Method, device, server and storage medium for improving uneven display of panel picture
CN116092420B (en) Low gray-scale picture correction method and device
CN111367604A (en) Processing method and device for file display, storage medium and terminal
CN114822360A (en) Display panel picture adjusting method and device, electronic equipment and storage medium
WO2024139533A1 (en) Data processing method and apparatus, and computer device and computer-readable storage medium
CN114999416B (en) Display panel picture optimization method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination