CN116137019A - Display picture processing method, device, equipment and storage medium - Google Patents

Display picture processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116137019A
CN116137019A CN202111358109.9A CN202111358109A CN116137019A CN 116137019 A CN116137019 A CN 116137019A CN 202111358109 A CN202111358109 A CN 202111358109A CN 116137019 A CN116137019 A CN 116137019A
Authority
CN
China
Prior art keywords
target frame
gray
picture
determining
frame picture
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
CN202111358109.9A
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.)
Qstech Co Ltd
Original Assignee
Qstech 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 Qstech Co Ltd filed Critical Qstech Co Ltd
Priority to CN202111358109.9A priority Critical patent/CN116137019A/en
Publication of CN116137019A publication Critical patent/CN116137019A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a display screen processing method, a device, equipment and a storage medium, comprising the following steps: determining a gray scale value of each pixel point in the target frame picture, a gray scale average value of the target frame picture and an initial gray scale average value of each minimum display unit in the target frame picture; determining a global gray scale adjustment coefficient and a picture type of a target frame picture according to the determined gray scale value of each pixel point; determining the display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit and the gray-scale average value of the target frame picture; and processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture. The method can realize the adjustment and optimization of the picture content of the target frame picture, so that the display details of the picture are highlighted, and the display effect is improved.

Description

Display picture processing method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the field of display screen processing, in particular to a display screen processing method, a device, equipment and a storage medium.
Background
Currently, when displaying a picture, a display of most electronic devices (e.g., a television, a computer, an oscilloscope, etc.) performs overall processing on the picture, that is, performs unified processing on the whole display picture. The conventional treatment mode is as follows: according to a limited gamma curve preset in the display by a user, one of the gamma curves is selected, and the gamma curve can be any one of a gamma2.0 curve, a gamma2.2 curve and a gamma2.4 curve shown in fig. 1, wherein different curves represent different display effects of the display, and the electronic equipment displays all display pictures based on the selected gamma curve, but the processing mode cannot highlight local characteristics and details of the pictures, so that the display effect is poor.
Disclosure of Invention
The application provides a display picture processing method, a device, equipment and a storage medium, which can adjust and optimize picture content of a target frame picture so as to highlight display details of the picture and improve display effect.
In a first aspect, an embodiment of the present application provides a display screen processing method, where the method includes:
determining a gray scale value of each pixel point in the target frame picture, a gray scale average value of the target frame picture and an initial gray scale average value of each minimum display unit in the target frame picture; determining a global gray scale adjustment coefficient and a picture type of a target frame picture according to the determined gray scale value of each pixel point; determining the display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit and the gray-scale average value of the target frame picture; and processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture. According to the mode, the target frame picture can be divided into the plurality of minimum display units in a fine granularity mode, the display coefficient of each minimum display unit is determined based on the type of the whole target frame picture, and then the target frame picture comprising the plurality of minimum display units is processed according to the global gray scale adjustment coefficient and the display coefficient, so that the picture content of the target frame picture is adjusted and optimized, the display details of the picture are highlighted, and the display effect is improved.
Optionally, the implementation manner of determining the gray-scale average value of the target frame picture and the initial gray-scale average value of each minimum display unit in the target frame picture in the above embodiment may include: determining a gray scale value of each pixel point in a target frame picture; determining a gray scale average value of the target frame picture according to the gray scale value of each pixel point and the number of the pixel points in the target frame picture; and determining an initial gray-scale average value of each minimum display unit according to the gray-scale value of each pixel point contained in each minimum display unit in the target frame picture and the number of the pixel points contained in each minimum display unit in the target frame picture. In this process, since the gray-scale value of each pixel included in the target frame picture and the number of pixels in the target frame picture, and the gray-scale value of each pixel included in each minimum display unit and the number of pixels included in each minimum display unit in the target frame picture are obtained respectively, the sum of the gray-scale values of all pixels included in the target frame picture and each minimum display unit can be determined on the premise of obtaining the gray-scale value of each pixel for both the target frame picture and the minimum display unit, and further the gray-scale average value of the target frame picture and the initial gray-scale average value of each minimum display unit can be determined based on the sum and the number of pixels included in each of the target frame picture and each minimum display unit, that is, the process can be understood as calculating the gray-scale average value of the target frame picture and the initial gray-scale average value of each minimum display unit in the target frame picture according to an average value calculation formula, and has the advantages of simple calculation and small calculation amount.
Optionally, in the foregoing embodiment, the implementation manner of determining the global gray scale adjustment coefficient and the frame type of the target frame according to the determined gray scale value of each pixel may include: determining the number of the gray scale values of the pixel points in the target frame picture according to the determined gray scale value of each pixel point; determining the total number c of the pixel points in the target frame according to the number of the gray scale values of the pixel points in the target frame; determining the number a of pixel points with gray scale values larger than a gray scale threshold value in a target frame picture according to the gray scale value of each pixel point; calculating the ratio of a to c according to the determined c and a; determining a global gray scale adjustment coefficient according to the ratio, and determining the picture type of the target frame picture according to the ratio; wherein c and a are integers. The implementation mode is that the picture type of the target frame picture is judged based on the ratio condition of the number of pixel points with gray level values larger than a gray level threshold value in the target frame picture in the total number of the target frame picture, and the global gray level adjustment coefficient is determined.
Optionally, the implementation manner of determining the global gray scale adjustment coefficient according to the ratio in the above embodiment may include: determining a global gray scale adjustment coefficient according to the ratio and a preset value m; wherein, the value range of the preset value m is more than 0.
Optionally, the implementation manner of determining the picture type of the target frame picture according to the ratio in the above embodiment may include: under the condition that the judging ratio is larger than the picture proportion threshold value n, determining the picture type of the target frame picture as a bright picture; under the condition that the judging ratio is smaller than or equal to the picture proportion threshold value n, determining the picture type of the target frame picture as a dark picture; wherein, the value range of n is [0,1]. And judging the picture type of the target frame picture according to the proportion of the number of pixel points with gray scale values larger than the gray scale threshold value in the target frame picture in the total number of the target frame picture.
Optionally, in the foregoing embodiment, the implementation manner of determining the display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit, and the gray-scale average value of the target frame picture may include: under the condition that the picture type is a bright picture, determining a difference value between an initial gray-scale average value and a gray-scale average value, and determining a display coefficient of a corresponding minimum display unit according to the difference value and the gray-scale average value; and under the condition that the picture type is a dark picture, determining a difference value between the gray-scale average value and the initial gray-scale average value, and determining a display coefficient of a corresponding minimum display unit according to the difference value and the gray-scale average value. I.e. the display coefficients of the smallest display units are determined in different ways for different picture types.
Optionally, in the foregoing embodiment, processing the target frame according to the display coefficient of each minimum display unit, the initial gray-scale average value of each minimum display unit, and the global gray-scale adjustment coefficient to obtain a processed target frame includes: correcting the display coefficient of each minimum display unit in the target frame picture according to the global gray scale adjustment coefficient to obtain a corrected display coefficient; multiplying the corrected display coefficient with the gray scale value of each pixel point in the corresponding minimum display unit to obtain the updated gray scale value of each pixel point in the corresponding minimum display unit; and determining the frame picture formed by the pixel points with the updated gray scale values in each minimum display unit as a processed target frame picture. In the process, the gray scale value of each pixel point in the corresponding minimum display unit is updated based on the optimized display coefficient of each minimum display unit obtained by correction, and thus, the frame picture formed by each pixel point after the gray scale value is processed and updated is the processed target frame picture.
In a second aspect, an embodiment of the present application further provides a display screen processing apparatus, where the apparatus includes:
the first determining module is used for determining the gray scale value of each pixel point in the target frame picture, the gray scale average value of the target frame picture and the initial gray scale average value of each minimum display unit in the target frame picture;
the second determining module is used for determining a global gray scale adjustment coefficient and a picture type of a target frame picture according to the determined gray scale value of each pixel point;
the third determining module is used for determining the display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit and the gray-scale average value of the target frame picture;
and the processing module is used for processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture.
In a third aspect, embodiments of the present application further provide a display device, including: the display device includes a memory, a processor, and a display screen processing method provided in the above embodiment, wherein the memory stores computer instructions that, when executed by the display device, cause the display device to execute the display screen processing method.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium having stored thereon computer instructions that, when executed by a display device, cause the display device to perform a display screen processing method as provided in the above embodiments.
The application provides a display screen processing method, a device, equipment and a storage medium, comprising the following steps: determining a gray scale value of each pixel point in the target frame picture, a gray scale average value of the target frame picture and an initial gray scale average value of each minimum display unit in the target frame picture; determining a global gray scale adjustment coefficient and a picture type of a target frame picture according to the determined gray scale value of each pixel point; determining the display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit and the gray-scale average value of the target frame picture; and processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture. According to the mode, the target frame picture can be divided into the plurality of minimum display units in a fine granularity mode, the display coefficient of each minimum display unit is determined based on the type of the whole target frame picture, and then the target frame picture comprising the plurality of minimum display units is processed according to the global gray scale adjustment coefficient and the display coefficient, so that the picture content of the target frame picture is adjusted and optimized, the display details of the picture are highlighted, and the display effect is improved.
Drawings
FIG. 1 is a schematic diagram of a gamma curve inside a display according to the prior art;
fig. 2 is a flowchart of a display screen processing method according to an embodiment of the present application;
FIG. 3 is a graph illustrating an initial gray-scale average value, a gray-scale average value, and a display coefficient of a bright screen according to an embodiment of the present disclosure;
FIG. 4 is a graph illustrating an initial gray-scale average value, a gray-scale average value, and a display coefficient of a dark frame according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a display screen processing device in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a display device in an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
In addition, in the embodiments of the present application, words such as "optionally" or "exemplary" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "optional" or "exemplary" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the words "optionally" or "illustratively" and the like is intended to present the relevant concepts in a concrete manner.
Fig. 2 is a flowchart of a display screen processing method provided in an embodiment of the present application, where the method may be applied to displays of various display devices such as a television, a computer, an oscilloscope, etc., and each frame of screen displayed on the display device is processed to highlight display details of the screen, so as to improve a display effect. The method may be performed by an apparatus integrated in a display device, which may be implemented in software and/or hardware, as shown in fig. 2, and may include, but is not limited to, the steps of:
s201, determining a gray scale value of each pixel point in the target frame picture, a gray scale average value of the target frame picture and an initial gray scale average value of each minimum display unit in the target frame picture.
The target frame in this step may be understood as a frame to be processed, and in this embodiment of the present application, each frame may be processed separately. Because a frame of picture comprises a plurality of pixel points, and different pixel points respectively correspond to corresponding gray scale values, the corresponding bright and dark effects are displayed at the coordinate positions or areas where the pixel points are positioned, and a complete frame of picture is formed. Accordingly, the gray-scale value of each pixel in the target frame can be determined based on the pixel included in the target frame. Further, a gray-scale average value of the target frame picture and an initial gray-scale average value of each minimum display unit in the target frame picture may also be determined.
The gray level average value of the target frame image can be understood as an average value of gray level values of all pixel points in the target frame image. Illustratively, the determining manner may include: and determining the gray scale value of each pixel point in the target frame picture, and determining the gray scale average value of the target frame picture according to the gray scale value of each pixel point and the number of the pixel points in the target frame picture. It can be understood that, since the gray scale value of each pixel point in the target frame is determined, the sum of the gray scale values of all the pixel points included in the target frame can be obtained, and further, the gray scale average value of the target frame can be determined based on the sum and the number of the pixel points in the target frame. That is, the process can be understood as calculating the gray-scale average value of the target frame picture in the manner of an average value calculation formula.
The initial gray-scale average value of each minimum display unit in the target frame picture can be understood as an average value of gray-scale values of all pixel points contained in each minimum display unit in a plurality of minimum display units contained in the target frame picture. For example, on the premise of acquiring the gray-scale value of each pixel point in the target frame, the initial gray-scale average value of each minimum display unit may be determined according to the gray-scale value of each pixel point included in each minimum display unit in the target frame and the number of pixel points included in each minimum display unit in the target frame. Likewise, the implementation principle may be the same as the implementation manner of determining the gray-scale average value of the target frame picture. That is, on the premise of acquiring the gray scale value of each pixel point included in each minimum display unit, the sum of the gray scale values of the pixel points included in each minimum display unit can be acquired, and then, the initial gray scale average value of each minimum display unit is determined according to the sum and the number of the pixel points included in each minimum display unit. S202, determining a global gray scale adjustment coefficient and a picture type of a target frame picture according to the determined gray scale value of each pixel point.
For example, since one pixel point in the target frame image corresponds to one gray scale value, the number of gray scale values of the pixel points is the number of pixel points in the target frame image, so that the gray scale value of each pixel point in the target frame image is determined, the number of gray scale values of the pixel points in the target frame image can be determined, and further, the total number of pixel points in the target frame image can be determined according to the number of gray scale values of the pixel points in the target frame image, and the total number is marked as c. Accordingly, the number of the pixels with the gray level larger than the gray level threshold in the target frame picture can be determined based on the set gray level threshold and the determined gray level value of each pixel, and the number is marked as a. It is understood that the above numbers a and c are integers and satisfy a less than or equal to c. In addition, the above gray threshold may be set by a person skilled in the art according to actual scene requirements, and in the embodiment of the present application, the acquisition mode and the value range are not limited.
And calculating the ratio between a and c according to the determined numbers a and c, and further respectively determining the global gray scale adjustment coefficient and the picture type of the target frame picture according to the ratio. The global gray scale adjustment coefficient is used for adjusting the display coefficient of each minimum display unit contained in the target frame picture from the angle of the whole target frame picture.
Alternatively, the number of pixels in the target frame image with gray scale value less than or equal to the gray scale threshold may be determined, where the number is denoted by b, and b is an integer. Because b satisfies the condition of a+b=c, the number a of pixels with gray scale value larger than the gray scale threshold value in the target frame picture can be determined based on the determined number b of pixels, and then the global gray scale adjustment coefficient and the picture type of the target frame picture are respectively determined based on the ratio between a and c.
S203, determining the display coefficient of each minimum display unit according to the picture type, the initial gray level average value of each minimum display unit and the gray level average value of the target frame picture.
As described above, since the picture types of the target frame picture include different kinds, the display coefficient of each minimum display unit may be determined in different manners for different picture types, thereby ensuring that the determined display coefficient of each minimum display unit in the target frame picture is related to the picture type of the target frame picture.
For example, in the case where the picture type of the target frame picture is a bright picture, a difference between the initial gray-scale value of each minimum display unit and the gray-scale average value of the target frame picture may be determined, and the display coefficient of the corresponding minimum display unit may be determined based on the determined difference and the gray-scale average value of the target frame picture. In contrast, in the case that the picture type of the target frame picture is a dark picture, a difference between the gray-scale average value of the target frame picture and the initial gray-scale average value is determined, and a display coefficient of the corresponding minimum display unit is determined according to the difference and the gray-scale average value of the target frame picture.
S204, processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient, and obtaining the processed target frame picture.
For example, from the perspective of the target frame, the display coefficient of each minimum display unit included in the target frame may be modified based on the global adjustment coefficient, for example, the global adjustment coefficient is multiplied by the display coefficient of each minimum display unit, so as to obtain the display coefficient after modification of each minimum display unit. And multiplying the obtained display coefficient after correction with the gray scale value of each pixel point in the corresponding minimum display unit to obtain the updated gray scale value of each pixel point in the corresponding minimum display unit. Thus, a frame of picture formed by the pixel points with the updated gray scale values in each minimum display unit is the processed target frame of picture.
The embodiment of the application provides a display screen processing method, which comprises the following steps: determining a gray scale value of each pixel point in the target frame picture, a gray scale average value of the target frame picture and an initial gray scale average value of each minimum display unit in the target frame picture; determining a global gray scale adjustment coefficient and a picture type of a target frame picture according to the determined gray scale value of each pixel point; determining the display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit and the gray-scale average value of the target frame picture; and processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture. According to the mode, the target frame picture can be divided into the plurality of minimum display units in a fine granularity mode, the display coefficient of each minimum display unit is determined based on the type of the whole target frame picture, and then the target frame picture comprising the plurality of minimum display units is processed according to the global gray scale adjustment coefficient and the display coefficient, so that the picture content of the target frame picture is adjusted and optimized, the display details of the picture are highlighted, and the display effect is improved.
In an example, in the step S202, according to a ratio of the number a of the pixels with the gray scale value greater than the gray scale threshold value to the total number c of the pixels in the target frame, determining the global gray scale adjustment coefficient may include: and determining a global gray scale adjustment coefficient according to the ratio and a preset value m, wherein the value range of the preset value m is larger than 0.
Illustratively, in the embodiment of the present application, based on the ratio of the preset values m to a and c, the manner of determining the global gray scale adjustment coefficient may be represented by the following formula:
Figure BDA0003358057500000101
the constant m may be an integer (for example, 1) or a fraction, and the specific value or the value of the constant m may be an integer or a fraction, which may be determined based on the actual application scenario, and the embodiment of the present application is not limited thereto.
Illustratively, in the step S202, determining the picture type of the target frame according to the ratio of the number a of the pixels with gray-scale values greater than the gray-scale threshold to the total number c of the pixels in the target frame may include, but is not limited to, the following implementation manners:
for example, in the case where the judgment ratio is larger than the picture proportion threshold value n, the picture type of the target frame picture is determined to be a bright picture. And determining that the picture type of the target frame picture is a dark picture when the judging ratio is smaller than or equal to the picture proportion threshold value n. Wherein, the value range of n is [0,1], namely, the minimum value of n is 0 and the maximum value is 1.
The larger the value of a/c, the brighter the picture, the smaller the value of a/c, and the darker the picture. The value of a/c is 1 in the brightest case and 0 in the darkest case.
Accordingly, it can be determined that the global gray scale adjustment coefficient is also related to the brightness level of the target frame picture. The value of a/c is understood to be the brightness degree of the picture, the k value is inversely proportional to the total value of a/c, a/c is 1 when the picture is brightest, the global coefficient k is 0.5, and a/c is 0 when the picture is darkest, and the global coefficient k is 1. Further, the inverse proportion trend between the values of the global coefficient k and the value of the a/c is also related to the gray threshold, and the value of the a can be adjusted by adjusting the value of the gray threshold, so that the change curve of the global coefficient can be adjusted.
In one example, the implementation manner of determining the display coefficient of each minimum display unit in the step S203 may specifically include:
assuming that the average gray level of the target frame picture is y, the average initial gray level of each minimum display unit is x, and the display coefficient of the minimum display unit is z. Under the condition that the picture type is a bright picture, determining a difference value between an initial gray-scale average value and a gray-scale average value, namely x-y, and determining a display coefficient z of a corresponding minimum display unit according to the difference value and the gray-scale average value y, wherein the display coefficient z can be:
Figure BDA0003358057500000111
as can be seen from the formula (2), for a bright picture, as the initial gray-scale average value of the minimum display unit gradually changes from a gray-scale average value larger than that of the target frame picture to a gray-scale average value smaller than that of the target frame picture, the display coefficient of the minimum display unit gradually increases from small to large, and the change trend chart thereof is shown in fig. 3.
In the case that the picture type is a dark picture, determining a difference value between the gray-scale average value and the initial gray-scale average value, that is, y-x, and determining the display coefficient z of the corresponding minimum display unit according to the difference value and the gray-scale average value y may be represented by the following formula:
Figure BDA0003358057500000121
as can be seen from the formula (3), for the dark picture, as the initial gray-scale average value of the minimum display unit gradually changes from the gray-scale average value larger than the target frame picture to the gray-scale average value smaller than the target frame picture, the display coefficient of the minimum display unit gradually changes from large to small, and the change trend chart is shown in fig. 4.
In this embodiment of the present application, it is assumed that the target frame image includes X minimum display units, where the value of X is an integer greater than 0, and further, the value of X may be set according to actual needs. It can be understood that, the larger the value of X, the finer the granularity of dividing the target frame picture, and the better the display effect of the obtained display frame picture after processing each minimum display unit after dividing.
For example, the implementation manner of determining the X minimum display units included in the target frame picture in this step may include several different cases, where, in a case where the user resets the value of X in the display device, the display device may determine that the target frame picture includes X identical minimum display units according to the obtained X value. Optionally, the user may set parameters such as the number of rows and columns of the minimum display units and the number X of the minimum display units included in the target frame, and the display device determines, according to the set parameters of the user, the size of each minimum display unit in the X minimum display units included in the target frame and the layout manner of each minimum display unit. In another case, in the case where the user does not change the last setting parameter, the display device directly acquires the X minimum display units determined last time, for example, the size of each minimum display unit in the X minimum display units and the layout manner of the X minimum display units.
Fig. 5 is a schematic diagram of a display screen processing apparatus according to an embodiment of the present application, where the display screen processing apparatus may be integrated into various display devices having a display, and is configured to process each frame of display screen. As shown in fig. 5, the apparatus includes: a first module 501, a second determination module 502, a third determination module 503, and a processing module 504;
the first determining module is used for determining a gray scale value of each pixel point in the target frame picture, a gray scale average value of the target frame picture and an initial gray scale average value of each minimum display unit in the target frame picture;
the second determining module is used for determining a global gray scale adjustment coefficient and a picture type of a target frame picture according to the determined gray scale value of each pixel point;
the third determining module is used for determining the display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit and the gray-scale average value of the target frame picture;
and the processing module is used for processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture.
In one example, a first determining module is specifically configured to determine a gray-scale value of each pixel point in the target frame picture; determining a gray scale average value of the target frame picture according to the gray scale value of each pixel point and the number of the pixel points in the target frame picture; and determining an initial gray-scale average value of each minimum display unit according to the gray-scale value of each pixel point contained in each minimum display unit in the target frame picture and the number of the pixel points contained in each minimum display unit in the target frame picture.
Optionally, the second determining module may be specifically configured to determine, according to the determined gray-scale value of each pixel, the number of gray-scale values of the pixels in the target frame picture; determining the total number c of the pixel points in the target frame according to the number of the gray scale values of the pixel points in the target frame; determining the number a of pixel points with gray scale values larger than a gray scale threshold value in a target frame picture according to the gray scale value of each pixel point; calculating the ratio of a to c according to the determined c and a; determining a global gray scale adjustment coefficient according to the ratio, and determining the picture type of the target frame picture according to the ratio; wherein c and a are integers.
The second determining module may be configured to determine the global gray scale adjustment coefficient according to the ratio and the preset value m; wherein, the value range of the preset value m is more than 0.
Optionally, the second determining module may determine the global gray scale adjustment coefficient according to the formula (1).
The second determining module may be further configured to determine that the frame type of the target frame is a bright frame when the judging ratio is greater than the frame proportion threshold n; under the condition that the judging ratio is smaller than or equal to the picture proportion threshold value n, determining the picture type of the target frame picture as a dark picture; wherein, the value range of n is [0,1].
In one example, the third determining module is configured to determine, when the frame type is a bright frame, a difference between the initial gray-scale average value and the gray-scale average value, and determine a display coefficient of a corresponding minimum display unit according to the difference and the gray-scale average value; and determining a difference value between the gray-scale average value and the initial gray-scale average value under the condition that the picture type is a dark picture, and determining a display coefficient of a corresponding minimum display unit according to the difference value and the gray-scale average value.
In an example, the processing module is configured to correct a display coefficient of each minimum display unit in the target frame according to the global gray scale adjustment coefficient to obtain a corrected display coefficient; multiplying the corrected display coefficient with the gray scale value of each pixel point in the corresponding minimum display unit to obtain the updated gray scale value of each pixel point in the corresponding minimum display unit; and determining the frame picture formed by the pixel points with the updated gray scale values in each minimum display unit as a processed target frame picture.
The display screen processing device provided by the embodiment of the application can execute the display screen processing method provided by the embodiment of fig. 2 of the application, and has the corresponding functional units and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of a display device according to an embodiment of the present application, as shown in fig. 6, the display device includes a processor 601, a memory 602, an input device 603, and an output device 604; the number of processors 601 in the display device may be one or more, one processor 601 being taken as an example in fig. 6; the processor 601, the memory 602, the input means 603 and the output means 604 in the display device may be connected by a bus or other means, in fig. 6 by way of example.
The memory 602 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to the display processing method in fig. 2 (e.g., the acquisition module 501, the determination module 502, and the processing module 503 in the display processing apparatus) according to the embodiment of the present application. The processor 601 executes various functions of the display device and data processing by executing software programs, instructions, and modules stored in the memory 602, that is, implements the display screen processing method described above.
The memory 602 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the cloud server, or the like. In addition, the memory 602 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 non-volatile solid-state storage device. In some examples, the memory 602 may further include memory remotely located with respect to the processor 601, which may be connected to the display device/terminal/server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 603 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the display device. The output device 604 may include a display screen or the like.
The present application also provides a storage medium containing computer executable instructions, which when executed by a processor, are configured to perform a display screen processing method, the method comprising:
determining a gray scale value of each pixel point in the target frame picture, a gray scale average value of the target frame picture and an initial gray scale average value of each minimum display unit in the target frame picture;
determining a global gray scale adjustment coefficient and a picture type of a target frame picture according to the determined gray scale value of each pixel point;
determining the display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit and the gray-scale average value of the target frame picture;
and processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present application is not limited to the method operations described above, and the display screen processing method provided in any embodiment of the present application may also be performed.
From the above description of embodiments, it will be clear to a person skilled in the art that the present application may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., including several instructions for causing a display device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
It should be noted that, in the embodiment of the display screen processing apparatus, each included module is only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding function can be implemented; in addition, the specific names of the functional modules are only for distinguishing from each other, and are not used for limiting the protection scope of the application.
Note that the above is only a preferred embodiment of the present application and the technical principle applied. Those skilled in the art will appreciate that the present application is not limited to the particular embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, the scope of which is defined by the scope of the appended claims.

Claims (10)

1. A display screen processing method, comprising:
determining a gray scale value of each pixel point in a target frame picture, a gray scale average value of the target frame picture and an initial gray scale average value of each minimum display unit in the target frame picture;
determining a global gray scale adjustment coefficient and a picture type of the target frame picture according to the determined gray scale value of each pixel point;
determining a display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit and the gray-scale average value of the target frame picture;
and processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture.
2. The method of claim 1, wherein determining the gray-scale average value for the target frame and the initial gray-scale average value for each smallest display unit in the target frame comprises:
determining a gray scale value of each pixel point in the target frame picture;
determining a gray scale average value of the target frame picture according to the gray scale value of each pixel point and the number of the pixel points in the target frame picture;
and determining an initial gray-scale average value of each minimum display unit according to the gray-scale value of each pixel point contained in each minimum display unit in the target frame picture and the number of the pixel points contained in each minimum display unit in the target frame picture.
3. The method according to claim 1 or 2, wherein determining the global gray scale adjustment coefficient and the picture type of the target frame picture according to the determined gray scale value of each pixel comprises:
determining the number of the gray scale values of the pixel points in the target frame picture according to the determined gray scale value of each pixel point;
determining the total number c of the pixel points in the target frame according to the number of the gray scale values of the pixel points in the target frame;
determining the number a of pixel points with gray scale values larger than a gray scale threshold value in the target frame picture according to the gray scale value of each pixel point;
calculating the ratio of a to c according to the determined c and a;
determining a global gray scale adjustment coefficient according to the ratio, and determining the picture type of the target frame picture according to the ratio;
wherein c and a are integers.
4. A method according to claim 3, wherein said determining global gray scale adjustment coefficients from said ratio comprises:
determining the global gray scale adjustment coefficient according to the ratio and a preset value m;
wherein, the value range of the preset value m is more than 0.
5. A method according to claim 3, wherein said determining the picture type of the target frame picture from the ratio comprises:
under the condition that the ratio is larger than a picture proportion threshold value n, determining the picture type of the target frame picture as a bright picture;
under the condition that the ratio is less than or equal to a picture proportion threshold value n, determining the picture type of the target frame picture as a dark picture;
wherein, the value range of n is [0,1].
6. The method according to any one of claims 1-2 or 4-5, wherein determining the display coefficients of the respective minimum display units according to the picture type, the initial gray-scale average value of each minimum display unit, and the gray-scale average value of the target frame picture comprises:
determining a difference value between the initial gray-scale average value and the gray-scale average value under the condition that the picture type is a bright picture, and determining a display coefficient of a corresponding minimum display unit according to the difference value and the gray-scale average value;
and under the condition that the picture type is a dark picture, determining a difference value between the gray-scale average value and the initial gray-scale average value, and determining a display coefficient of a corresponding minimum display unit according to the difference value and the gray-scale average value.
7. The method according to claim 1, wherein the processing the target frame according to the display coefficient of each minimum display unit, the initial gray-scale average value of each minimum display unit, and the global gray-scale adjustment coefficient to obtain the processed target frame includes:
correcting the display coefficient of each minimum display unit in the target frame picture according to the global gray scale adjustment coefficient to obtain a corrected display coefficient;
multiplying the corrected display coefficient with the gray scale value of each pixel point in the corresponding minimum display unit to obtain the updated gray scale value of each pixel point in the corresponding minimum display unit;
and determining the frame picture formed by the pixel points with the updated gray scale values in each minimum display unit as a processed target frame picture.
8. A display screen processing apparatus, comprising:
the first determining module is used for determining the gray scale value of each pixel point in the target frame picture, the gray scale average value of the target frame picture and the initial gray scale average value of each minimum display unit in the target frame picture;
the second determining module is used for determining a global gray scale adjustment coefficient and a picture type of the target frame picture according to the determined gray scale value of each pixel point;
a third determining module, configured to determine a display coefficient of each minimum display unit according to the picture type, the initial gray-scale average value of each minimum display unit, and the gray-scale average value of the target frame picture;
and the processing module is used for processing the target frame picture according to the display coefficient of each minimum display unit, the initial gray level average value of each minimum display unit and the global gray level adjustment coefficient to obtain the processed target frame picture.
9. A display device comprising a memory, a processor, wherein the memory stores computer instructions that, when executed by the display device, cause the display device to perform the display screen processing method of any of claims 1-7.
10. A computer readable storage medium having stored thereon computer instructions which, when executed on a display device, cause the display device to perform the display screen processing method of any of claims 1-7.
CN202111358109.9A 2021-11-16 2021-11-16 Display picture processing method, device, equipment and storage medium Pending CN116137019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111358109.9A CN116137019A (en) 2021-11-16 2021-11-16 Display picture processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111358109.9A CN116137019A (en) 2021-11-16 2021-11-16 Display picture processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116137019A true CN116137019A (en) 2023-05-19

Family

ID=86334235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111358109.9A Pending CN116137019A (en) 2021-11-16 2021-11-16 Display picture processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116137019A (en)

Similar Documents

Publication Publication Date Title
CN109191395B (en) Image contrast enhancement method, device, equipment and storage medium
US11113795B2 (en) Image edge processing method, electronic device, and computer readable storage medium
US6507668B1 (en) Image enhancing apparatus and method of maintaining brightness of input image
JP6615917B2 (en) Real-time video enhancement method, terminal, and non-transitory computer-readable storage medium
CN109817170B (en) Pixel compensation method and device and terminal equipment
CN109309826B (en) Image color balancing method and device, terminal equipment and readable storage medium
EP3451653B1 (en) Image processing method, image processing apparatus and display device
CN108074220A (en) A kind of processing method of image, device and television set
EP2492907B1 (en) Image processing apparatus, storage medium storing image processing program, and image processing method
WO2021180173A1 (en) Image processing method and apparatus, device and storage medium
CN113096035A (en) High dynamic range image generation method and device, intelligent terminal and storage medium
CN107862671A (en) A kind of processing method of image, device and television set
CN110442313B (en) Display attribute adjusting method and related equipment
CN112783460B (en) Display control method and device, electronic equipment and readable storage medium
US10438323B2 (en) Image brightness correction and noise suppression method, device, and recording medium for storing image processing program
JP7462458B2 (en) Image processing device and image processing method
CN109308690B (en) Image brightness balancing method and terminal
CN116137019A (en) Display picture processing method, device, equipment and storage medium
CN113391779B (en) Parameter adjusting method, device and equipment for paper-like screen
US20230410706A1 (en) Method for image rendering, terminal device and non-transitory computer-readable storage medium
CN112992052B (en) Power consumption control method of display panel and display panel
CN114630090A (en) Image processing apparatus and image processing method
CN113870800A (en) Backlight adjusting method and device, terminal equipment and storage medium
CN109996017B (en) Image adjusting method and terminal thereof
CN112669768B (en) LED display screen brightness adjusting method, device and equipment and readable 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
CB02 Change of applicant information

Address after: 710018 floor 12, northwest regional headquarters of Shiyuan Co., Ltd., north of Fengdong 2nd Road and east of FengHao Avenue, Fengdong new town, Xi'an City, Shaanxi Province

Applicant after: QSTECH Co.,Ltd.

Address before: 710118 first floor, No. 7, Biyuan Second Road, high tech Zone, Xi'an, Shaanxi Province

Applicant before: QSTECH Co.,Ltd.

CB02 Change of applicant information