CN113936621B - Correction method and related device for LCD display screen P-gamma - Google Patents

Correction method and related device for LCD display screen P-gamma Download PDF

Info

Publication number
CN113936621B
CN113936621B CN202111548310.3A CN202111548310A CN113936621B CN 113936621 B CN113936621 B CN 113936621B CN 202111548310 A CN202111548310 A CN 202111548310A CN 113936621 B CN113936621 B CN 113936621B
Authority
CN
China
Prior art keywords
value
shooting
transmittance
initial
gamma register
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.)
Active
Application number
CN202111548310.3A
Other languages
Chinese (zh)
Other versions
CN113936621A (en
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.)
Shenzhen Seichitech Technology Co ltd
Original Assignee
Shenzhen Seichitech 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 Shenzhen Seichitech Technology Co ltd filed Critical Shenzhen Seichitech Technology Co ltd
Priority to CN202111548310.3A priority Critical patent/CN113936621B/en
Publication of CN113936621A publication Critical patent/CN113936621A/en
Application granted granted Critical
Publication of CN113936621B publication Critical patent/CN113936621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G09G3/34Control 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 by control of light from an independent source
    • G09G3/36Control 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 by control of light from an independent source using liquid crystals
    • G09G3/3607Control 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 by control of light from an independent source using liquid crystals for displaying colours or for displaying grey scales with a specific pixel layout, e.g. using sub-pixels
    • 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
    • G09G2320/0276Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping for the purpose of adaptation to the characteristics of a display device, i.e. gamma correction

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application discloses a correction method and a related device for LCD display screen P-gamma, which are used for realizingThe working distance is freely set for correcting the P-gamma. The method comprises the following steps: obtaining GM00 +Value, GM00 Value, GM2550 +Value and GM2550 A value; generating an initial Gamma register value set; controlling the LCD display screen to output the brightness; shooting an LCD display screen; performing brightness calculation on each shot image in the target shot image set; performing transmittance calculation on the brightness value set; generating a target transmittance function; generating a standard transmittance set according to at least three binding point gray scales; generating a target Gamma register value set; and writing the target Gamma register value set into the LCD display screen.

Description

Correction method and related device for LCD display screen P-gamma
Technical Field
The embodiment of the application relates to the field of P-gamma correction, in particular to a method and a related device for correcting P-gamma of an LCD display screen.
Background
P-Gamma correction of LCD display screen is also called programmable Gamma correction. Different from the OLED display screen (the Gamma curve of the OLED display screen is the curve between the luminous brightness value of the display screen and the Gamma register value), the P-Gamma correction of the LCD display screen is to adjust the transmittance curve of the LCD display screen by adjusting the Gamma register value in the display screen. Meanwhile, because the LCD screen is driven by alternating voltage, each gray scale corresponds to two Gamma voltages (V + and V-, namely respectively corresponding to two Gamma register values).
At present, the P-gamma correction of the traditional LCD screen is mainly carried out by taking a color analyzer as a main hardware structure and then assisting by a signal processing host computer of the color analyzer, a computer and a Pattern Generator point screen device of the LCD screen. The probe of the color analyzer can convert optical signals of an LCD display screen into electrical signals, and the electrical signals are transmitted to a color analyzer signal processing host through a USB or RS232 data line after being subjected to digital processing, the color analyzer signal processing host can output measured optical results such as optical tristimulus values XYZ or converted brightness color coordinate values Lxy after being subjected to various optical correction calculations, and transmit the measured results to a computer, and the computer performs algorithm prediction according to a gamma adjustment algorithm and transmits new adjustment control instructions to the LCD display screen through a Pattern Generator dot screen device until one adjustment process is completed.
However, the color analyzer is not only expensive, but also is greatly restricted by the product model of the color analyzer in the P-gamma correction process of the LCD display screen, which means that the working distance between the color analyzer and the LCD display screen is short, and the requirement of freely setting the working distance to perform P-gamma correction cannot be met when the color analyzer is measured against the light emitting surface of the LCD display screen.
Disclosure of Invention
The application provides a correction method of a P-gamma of an LCD display screen, which is used for realizing the free setting of a working distance to carry out the P-gamma correction, and the correction method comprises the following steps:
obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value sum GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is a Gamma register value corresponding to 255 gray scales;
according to GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale;
controlling an LCD display screen to output brightness according to the initial Gamma register value set;
shooting an LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale, wherein the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens;
performing brightness calculation on each shot image in the target shot image set to generate a brightness value set;
performing transmittance calculation on the brightness value set to generate initial transmittance data;
generating a target transmittance function according to the initial Gamma register value set and the initial transmittance data, wherein the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data;
obtaining a reference transmittance function, and generating a standard transmittance set according to at least three binding point gray scales, wherein the reference transmittance function is a relational expression under the standard condition of the binding point gray scales and transmittance;
generating a target Gamma register value set according to the target transmittance function and the standard transmittance set, wherein the target Gamma register value set comprises at least three pairs of Gamma register values;
and writing the target Gamma register value set into the LCD display screen.
Optionally, the brightness calculation is performed on each captured image in the target captured image set to generate a brightness value set, specifically:
performing brightness calculation on each shot image in the target shot image set according to a photometric model to generate a brightness value set, wherein the photometric model is a relational expression which is calibrated in advance for a shooting camera and relates to exposure time, shooting distance, diaphragm number, gray level mean value and reference brightness value;
at the time of obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Before the value, the correction method comprises the following steps:
setting working parameters and a calibration environment of a shooting camera and a ball integral standard light source, wherein the working parameters comprise an initial shooting distance between the shooting camera and the ball integral standard light source, a shooting moving step length, a brightness value set of the ball integral standard light source, initial exposure time, an initial aperture, an aperture increasing and decreasing step length and an initial focusing distance of the shooting camera, the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens, the calibration environment is a field parameter in the shooting process, the brightness value set comprises at least two different brightness values, and the ball integral standard light source is used for simulating the light emission of an LCD display screen;
controlling a spherical integral standard light source to output light source according to the brightness value set;
using a shooting camera to shoot a ball integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length to generate a calibration shooting image set, wherein each calibration shooting image in the calibration shooting image set is marked with a shooting distance and an aperture number;
using a color analyzer to shoot a sphere integral standard light source according to an initial shooting distance, a shooting moving step length, an initial aperture and an aperture increasing and decreasing step length to generate reference brightness value data, wherein each reference brightness value in the reference brightness value data is marked with a shooting distance and an f-number and is associated with a calibration shooting image with the same shooting distance and the same f-number;
calculating a gray level mean value of the calibration shot image set to generate calibration gray level mean value data;
and fitting according to the calibration gray level mean value data and the reference brightness value data to generate a photometric model, wherein the photometric model is a relational expression of exposure time, shooting distance, diaphragm number, gray level mean value and reference brightness value.
Optionally, after writing the target Gamma register value set into the LCD display screen, the correction method further includes:
determining a gray scale g, wherein the gray scale g is subjected to binding point gray scale of at least one P-gamma correction;
determining a current Gamma register value for the gray level g from the target Gamma register value set, the current Gamma register value comprising GMg1 +Value sum GMg1 -A value;
calculating the current transmittance of the LCD display screen according to the current Gamma register value;
judging whether the current transmittance reaches a preset range or not;
if not, determining an initial Gamma register value of the gray scale g according to the initial Gamma register value set, wherein the initial Gamma register value of the gray scale g comprises GMg0 +Value sum GMg0 -The value g is an integer greater than 0 and less than 255;
determining the initial transmittance of the gray scale g according to the initial transmittance data;
determining the standard transmittance of the gray scale g according to the reference transmittance function;
calculating new Gamma register value according to the initial Gamma register value, the initial transmittance, the standard transmittance, the current Gamma register value and the current transmittanceGamma register values include GMg2 +Value sum GMg2 -A value;
and writing the new Gamma register value into the LCD display screen.
Optionally, after determining whether the current transmittance reaches the preset range, the correction method further includes:
if yes, determining the gray scale g as a P-gamma corrected gray scale, and determining the next uncorrected gray scale for correction.
Optionally, after determining the gray scale g, before determining a current Gamma register value of the gray scale g according to the target Gamma register value set, the correction method further includes:
judging whether the correction times of the gray scale g reach a preset value or not;
if yes, exiting the correction process of the gray scale g, and determining the next uncorrected gray scale to be corrected;
if not, determining the current Gamma register value of the gray scale g according to the target Gamma register value set.
Optionally, after writing the new Gamma register value into the LCD display screen, the method further includes:
the number of times of correction of the gradation g is updated.
Optionally, calculating the current transmittance of the LCD display screen according to the current Gamma register value includes:
shooting a target shooting image of the LCD display screen under the current Gamma register value through a shooting camera;
calculating the brightness of a target shooting image through a photometric model to generate a current brightness value;
and performing transmittance calculation on the brightness value to generate the current transmittance.
The second aspect of the present application provides a correction device for P-gamma of LCD display screen, which is used to realize the free setting of working distance for P-gamma correction, and the correction device includes:
a first obtaining unit for obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value sum GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is a Gamma register value corresponding to 255 gray scales;
a first generation unit for generating a signal according to GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale;
the first control unit is used for controlling the LCD display screen to output the brightness according to the initial Gamma register value set;
the first shooting unit is used for shooting the LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale, and the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens;
the first calculation unit is used for performing brightness calculation on each shot image in the target shot image set to generate a brightness value set;
a second calculation unit for performing transmittance calculation on the set of luminance values to generate initial transmittance data;
the second generation unit is used for generating a target transmittance function according to the initial Gamma register value set and the initial transmittance data, and the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data;
the second obtaining unit is used for obtaining a reference transmittance function and generating a standard transmittance set according to at least three binding point gray scales, wherein the reference transmittance function is a relational expression under the standard condition of the binding point gray scales and the transmittance;
the third generating unit is used for generating a target Gamma register value set according to the target transmittance function and the standard transmittance set, wherein the target Gamma register value set comprises at least 3 pairs of Gamma register values;
and the first execution unit is used for writing the target Gamma register value set into the LCD display screen.
Optionally, the first calculating unit specifically includes:
performing brightness calculation on each shot image in the target shot image set according to a photometric model to generate a brightness value set, wherein the photometric model is a relational expression which is calibrated in advance for a shooting camera and relates to exposure time, shooting distance, diaphragm number, gray level mean value and reference brightness value;
the correction device includes:
the device comprises an initialization unit, a calibration unit and a control unit, wherein the initialization unit is used for setting working parameters of a shooting camera and a ball integral standard light source and a calibration environment, the working parameters comprise an initial shooting distance of the shooting camera and the ball integral standard light source, a shooting moving step length, a brightness value set of the ball integral standard light source, initial exposure time of the shooting camera, an initial aperture, an aperture increasing and decreasing step length and an initial focusing distance, the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens, the calibration environment is a field parameter in the shooting process, the brightness value set comprises at least two different brightness values, and the ball integral standard light source is used for simulating the light emission of an LCD display screen;
the second control unit is used for controlling the spherical integral standard light source to output the light source according to the brightness value set;
the second shooting unit is used for shooting a ball integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length by using the shooting camera to generate a calibration shooting image set, and each calibration shooting image in the calibration shooting image set is marked with the shooting distance and the diaphragm number;
a third shooting unit, configured to use a color analyzer to shoot a sphere integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length, and generate reference luminance value data, where each reference luminance value in the reference luminance value data is labeled with a shooting distance and an f-number and is associated with a calibration shot image of the same shooting distance and the same f-number;
the third calculation unit is used for calculating the gray mean value of the calibration shot image set to generate calibration gray mean value data;
and the fitting unit is used for fitting according to the calibration gray level mean value data and the reference brightness value data to generate a photometric model, and the photometric model is a relational expression of exposure time, shooting distance, diaphragm number, gray level mean value and reference brightness value.
Optionally, the correction device further includes:
the first determining unit is used for determining a gray scale g, and the gray scale g is subjected to binding point gray scale corrected by P-gamma at least once;
a second determining unit for determining the current Gamma register value of the gray-scale g according to the target Gamma register value set, the current Gamma register value comprising GMg1 +Value sum GMg1 -A value;
the fourth calculation unit is used for calculating the current transmittance of the LCD display screen through the current Gamma register value;
the first judgment unit is used for judging whether the current transmittance reaches a preset range or not;
a third determining unit, configured to determine, when the first determining unit determines that the current transmittance does not reach the preset range, an initial Gamma register value of the gray scale g according to the initial Gamma register value set, where the initial Gamma register value of the gray scale g includes GMg0 +Value sum GMg0 -The value g is an integer greater than 0 and less than 255;
a fourth determination unit for determining the initial transmittance of the gray scale g according to the initial transmittance data;
a fifth determining unit, configured to determine a standard transmittance of the gray scale g according to the reference transmittance function;
a fifth calculating unit for calculating a new Gamma register value according to the initial Gamma register value, the initial transmittance, the standard transmittance, the current Gamma register value and the current transmittance, the new Gamma register value comprising GMg2 +Value sum GMg2 -A value;
and the second execution unit is used for writing the new Gamma register value into the LCD display screen.
Optionally, the correction device further includes:
and the sixth determining unit is used for determining the gray scale g as a P-gamma corrected gray scale and determining the next uncorrected gray scale for correction when the first judging unit determines that the current transmittance reaches the preset range.
Optionally, the correction device further includes:
the second judging unit is used for judging whether the correction times of the gray scale g reach a preset value or not;
the third execution unit is used for quitting the correction process of the gray scale g and determining the next uncorrected gray scale to be corrected when the second judgment unit determines that the correction times of the gray scale g reach the preset value;
and the second determining unit is used for determining the current Gamma register value of the gray scale g according to the target Gamma register value set when the second judging unit determines that the correction times of the gray scale g do not reach the preset value.
Optionally, the apparatus further comprises:
and the updating unit is used for updating the correction times of the gray scale g.
Optionally, the fourth calculating unit specifically includes:
shooting a target shooting image of the LCD display screen under the current Gamma register value through a shooting camera;
calculating the brightness of a target shooting image through a photometric model to generate a current brightness value;
and performing transmittance calculation on the brightness value to generate the current transmittance.
A third aspect of the present application provides an electronic device, comprising:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory holds a program that the processor calls to perform any of the optional correction methods as described in the first aspect and the first aspect.
A fourth aspect of the present application provides a computer readable storage medium having a program stored thereon, the program, when executed on a computer, performing the method of the first aspect and any optional correction method of the first aspect.
According to the technical scheme, the method has the following advantages:
first GM0 is obtained0 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value, GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is the Gamma register value corresponding to 255 gray scales. The gray levels of 0 and 255 are the upper and lower limits of the gray level, and are based on GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -And generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale, so as to obtain a plurality of gray scales and corresponding initial Gamma register values. And writing the initial Gamma register value into the LCD display screen to enable the LCD display screen to display pictures, and then shooting the LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale. The shooting camera consists of a high-speed industrial camera and a long-focus industrial lens. And performing brightness calculation on each shot image in the target shot image set to generate a brightness value set. And then, carrying out transmittance calculation on the brightness value set to generate initial transmittance data. And fitting the initial Gamma register value set and the initial transmittance data to generate a target transmittance function, wherein the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data. And acquiring a reference transmittance function, and generating a standard transmittance set according to at least three binding point gray scales, wherein the reference transmittance function is a relational expression under the standard condition of the binding point gray scales and the transmittance. And generating a target Gamma register value set according to the target transmittance function and the standard transmittance set, wherein the target Gamma register value set comprises the Gamma register value. And finally writing the target Gamma register value set into an LCD display screen. In the process, only a common shooting camera is required to be used for shooting, and color analysis is not requiredThe cost is reduced. And the shooting camera is composed of a high-speed industrial camera and a long-focus industrial lens, which can adjust the working distance, so that the P-gamma correction can be realized by freely setting the working distance.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed for the embodiments or the prior art descriptions will be briefly described 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 that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic diagram of an embodiment of a method for correcting P-gamma of an LCD panel according to the present application;
2-1, 2-2 and 2-3 are schematic diagrams of another embodiment of the correction method for the LCD display screen P-gamma of the present application;
FIG. 3 is a schematic view of an embodiment of a correction device for P-gamma of an LCD panel according to the present application;
FIG. 4 is a schematic view of another embodiment of a correction device for P-gamma of an LCD panel according to the present application;
fig. 5 is a schematic diagram of an embodiment of an electronic device of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In the prior art, the P-gamma correction of the conventional LCD display screen is mainly implemented by using a color analyzer as a main hardware structure, and then by using a color analyzer signal processing host, a computer and a Pattern Generator pointing device of the LCD display screen. The probe of the color analyzer can convert optical signals of an LCD display screen into electrical signals, and the electrical signals are transmitted to a color analyzer signal processing host through a USB or RS232 data line after being subjected to digital processing, the color analyzer signal processing host can output measured optical results such as optical tristimulus values XYZ or converted brightness color coordinate values Lxy after being subjected to various optical correction calculations, and transmit the measured results to a computer, and the computer performs algorithm prediction according to a gamma adjustment algorithm and transmits new adjustment control instructions to the LCD display screen through a Pattern Generator dot screen device until one adjustment process is completed.
However, the color analyzer is not only expensive, but also is greatly restricted by the product model of the color analyzer in the P-gamma correction process of the LCD display screen, which means that the working distance between the color analyzer and the LCD display screen is short, and the requirement of freely setting the working distance to perform P-gamma correction cannot be met when the color analyzer is measured against the light emitting surface of the LCD display screen.
Based on the method, the embodiment of the application provides a method for correcting the P-gamma of the LCD screen, which is used for realizing the free setting of the working distance to carry out the P-gamma correction.
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, not all 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.
The method of the present application may be applied to a server, a device, a terminal, or other devices with logic processing capability, and the present application is not limited thereto. For convenience of description, the following description will be given taking the execution body as an example.
Referring to fig. 1, the present application provides an embodiment of a method for correcting P-gamma of an LCD panel, comprising:
101. obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value, GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is a Gamma register value corresponding to 255 gray scales;
the P-Gamma correction process of the LCD screen is to obtain a group of register tables by the P-Gamma correction system to make the transmittance curve of the LCD screen meet the curve of the designated Gamma register value (the value in the table is converted into corresponding driving voltage by a programmable voltage conversion chip or circuit.
Terminal acquisition GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, wherein, GM00 +Value, GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is Gamma register value corresponding to 255 gray scale, 0 gray scale and 255 gray scale are upper and lower limits of the gray scale. The terminal uses the voltage conversion relation of the P-Gamma correction chip to determine the Gamma register value GM0 corresponding to the 0 gray scale0 +Value, GM00 -Gamma register value GM255 corresponding to 255 gray scales0 +Value and GM2550 -The value is obtained. Or may be obtained by calibration experience, and is not limited herein.
Wherein, GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -The subscript numbers in the values indicate the number of corrections made, the non-subscript numbers indicate the binding gray scale values, and the sign indicates whether a positive or negative value, i.e., GM2550 +The value represents a positive Gamma register value of 255 gray levels without correction.
102. According to GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale;
terminal according to P-gamma correcting voltage conversion relation of chip to determine Gamma register value GM0 corresponding to 0 gray scale0 +Value, GM00 -Gamma register value GM255 corresponding to 255 gray scales0 +Value and GM2550 -After the value is reached, at least one binding point gray scale is selected by taking a 0 gray scale value 255 gray scale as a range. For example: gray levels of 15, 31, 126, 222 and 254, and according to GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -The values determine the Gamma register values for these gray levels as the initial Gamma register value set. The calculation formula is as follows:
Figure 321203DEST_PATH_IMAGE001
wherein s is an integer greater than 0 and less than 255 and represents a gray scale value. And generating two corresponding positive and negative Gamma register values for at least one binding point gray scale according to the formula.
103. Controlling an LCD display screen to output brightness according to the initial Gamma register value set;
104. shooting an LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale, wherein the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens;
the terminal inputs the initial Gamma register value set of all binding point gray scales including the 0 gray scale and the 255 gray scale into the LCD display screen at one time, and the shooting camera is made to shoot each time, so as to generate a target shooting image corresponding to each binding point gray scale.
The shooting camera is a structure consisting of a high-speed industrial camera and a long-focus industrial lens, is mainly calibrated, can be used for shooting the LCD display screen at any working distance in an actual scene when the shooting camera finishes calibration, and measures a flicker value through a shot image.
For example: the shooting camera in the embodiment comprises an industrial camera and a 50mm industrial lens, wherein the shooting camera comprises 30 ten thousand pixels, the frame rate is larger than or equal to 500fps, the camera comprises a zero-field correction function, and the industrial camera is started in the calibration and measurement processes.
After the terminal acquires the shooting camera and the LCD display screen, the working distance, the exposure time, the aperture, the focusing distance and the calibration environment need to be debugged, wherein the debugging parameters are parameters in an actual scene, so that the measurement difference caused by the difference of the working distance, the exposure time, the aperture, the focusing distance and the calibration environment is reduced.
The calibration environment is set to be a darkroom environment so as to reduce interference caused by other light sources of the non-LCD display screen.
105. Performing brightness calculation on each shot image in the target shot image set to generate a brightness value set;
and the terminal performs brightness calculation on the calibration image corresponding to each binding point gray scale, and integrates the brightness values corresponding to the binding point gray scales and the initial Gamma register value to generate a brightness value set. There are various methods of calculating the luminance from the image, and the luminance value of the image may be obtained by calculating the gray scale in advance and using a relational expression between the gray scale and the luminance.
106. Performing transmittance calculation on the brightness value set to generate initial transmittance data;
when the terminal integrates the brightness value set of each shot image, the transmittance of each shot image can be calculated and integrated to generate initial transmittance data. It should be noted that there are various ways of calculating the transmittance by the luminance value, and these are commonly used.
107. Generating a target transmittance function according to the initial Gamma register value set and the initial transmittance data, wherein the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data;
and fitting the initial Gamma register value set and the initial transmittance data by the terminal, and generating a target transmittance function through algorithm fitting due to the corresponding relation between the initial Gamma register value set and the initial transmittance, wherein the target transmittance function is a corresponding relation formula between the Gamma register value set and the initial transmittance data.
Specifically, a general case in which the Gamma register value is a positive value is taken out and fitted to the initial transmittance data to generate a target transmittance function.
108. Obtaining a reference transmittance function, and generating a standard transmittance set according to at least three binding point gray scales, wherein the reference transmittance function is a relational expression under the standard condition of the binding point gray scales and transmittance;
the terminal obtains a reference transmittance function, wherein the reference transmittance function is a relational expression of binding point gray scale and transmittance in an ideal state and can be directly obtained by inquiring an official reference curve. The reference transmittance function may be calculated by a more accurate method, which is not limited herein.
After the reference transmittance function is obtained, the binding gray scales can be directly substituted to obtain the standard transmittance corresponding to each binding gray scale.
109. Generating a target Gamma register value set according to the target transmittance function and the standard transmittance set, wherein the target Gamma register value set comprises 3 pairs of Gamma register values;
and generating a target Gamma register value set according to the target transmittance function and the standard transmittance set, namely substituting the standard transmittance into the target transmittance function to obtain the target Gamma register value.
Specifically, after the standard transmittance is substituted, the obtained Gamma register value is the Gamma register value of the positive value part, and the Gamma register value of the negative value part needs to be calculated through the symmetry principle.
110. And writing the target Gamma register value set into the LCD display screen.
And the terminal sequentially writes the target Gamma register values into the LCD display screen to finish the first P-Gamma correction.
In this embodiment, the terminal first obtains GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value, GM00 -Gray scale of 0Corresponding Gamma register value, GM2550 +Value and GM2550 -The value is the Gamma register value corresponding to 255 gray scales. The 0 gray scale and the 255 gray scale are upper and lower limits of the gray scale. The terminal is again according to GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -And generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale, so as to obtain a plurality of gray scales and corresponding initial Gamma register values. And the terminal writes the initial Gamma register value into the LCD display screen, so that the LCD display screen displays pictures. And the terminal shoots the LCD display screen by using the shooting camera to generate a target shooting image set corresponding to the binding point gray scale. The shooting camera consists of a high-speed industrial camera and a long-focus industrial lens. And the terminal performs brightness calculation on each shot image in the target shot image set to generate a brightness value set. And the terminal calculates the transmittance of the brightness value set to generate initial transmittance data. And fitting the initial Gamma register value set and the initial transmittance data by the terminal to generate a target transmittance function, wherein the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data. The terminal obtains a reference transmittance function, and generates a standard transmittance set according to at least three binding point gray scales, wherein the reference transmittance function is a relational expression under the standard condition of the binding point gray scales and the transmittance. And the terminal generates a target Gamma register value set according to the target transmittance function and the standard transmittance set, wherein the target Gamma register value set comprises the Gamma register value. And finally, the terminal writes the target Gamma register value set into an LCD display screen. The above-mentioned in-process only needs to use common shooting camera to shoot, need not the color analyzer reduce cost. And the shooting camera is composed of a high-speed industrial camera and a long-focus industrial lens, which can adjust the working distance, so that the P-gamma correction can be realized by freely setting the working distance.
Referring to fig. 2-1, 2-2 and 2-3, the present application provides another embodiment of a method for correcting P-gamma of an LCD panel, comprising:
201. setting working parameters and a calibration environment of a shooting camera and a ball integral standard light source, wherein the working parameters comprise an initial shooting distance between the shooting camera and the ball integral standard light source, a shooting moving step length, a brightness value set of the ball integral standard light source, initial exposure time, an initial aperture, an aperture increasing and decreasing step length and an initial focusing distance of the shooting camera, the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens, the calibration environment is a field parameter in the shooting process, the brightness value set comprises at least two different brightness values, and the ball integral standard light source is used for simulating the light emission of an LCD display screen;
after a terminal acquires a shooting camera, a ball integral standard light source and a color analyzer, working parameters of the shooting camera and the ball integral standard light source and a calibration environment are set, the working parameters comprise an initial shooting distance between the shooting camera and the ball integral standard light source, a shooting moving step length, a brightness value set of the ball integral standard light source, initial exposure time of the shooting camera, an initial aperture, an aperture increasing and decreasing step length and an initial focusing distance, the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens, the calibration environment is a field parameter in a shooting process, the brightness value set comprises at least two different brightness values, and the ball integral standard light source is used for simulating the light emission of an LCD display screen.
The shooting camera is a structure consisting of a high-speed industrial camera and a long-focus industrial lens, is mainly calibrated, can be used for shooting the LCD display screen at any working distance in an actual scene when the shooting camera finishes calibration, and can be used for measuring the brightness through a shot image.
For example: the shooting camera in the embodiment comprises an industrial camera and a 50mm industrial lens, wherein the shooting camera comprises 30 ten thousand pixels, the frame rate is larger than or equal to 500fps, the camera comprises a zero-field correction function, and the industrial camera is started in the calibration and measurement processes.
The ball integral standard light source is used for simulating an LCD display screen under the condition of different brightness, and the ball integral standard light source correspondingly emits light with uniform brightness mainly by acquiring formulated brightness signals, so that a shooting camera can return to a standard brightness image. The output brightness uniformity of the sphere integral standard light source is more than 99 percent, and the output brightness precision is +/-1 percent). The brightness value set is a brightness value set which is considered to be determined, and the brightness value is input into the sphere integral standard light source, namely, the sphere integral standard light source can generate corresponding brightness.
For example: and in a brightness measurement range [0,400nit ] set by the terminal, selecting a preset brightness value every 5nit to be input into the ball integral standard light source, firstly inputting 0nit, after the shooting camera shoots a corresponding image, inputting 5nit, shooting the corresponding image by the shooting camera again, and so on until the shooting by the shooting camera is finished.
The color analyzer is used as a brightness reference device, when the sphere integral standard light source emits corresponding light source brightness, the color analyzer shoots the sphere integral standard light source to obtain a corresponding reference brightness value, and the reference brightness value may be different from the corresponding brightness value in the brightness value set. For example: selecting 5nit from the brightness value set to input into a sphere integral standard light source, and after the sphere integral standard light source is lightened, carrying out shooting analysis by a color analyzer to obtain a reference brightness value of 5.1nit, wherein the color analyzer is taken as a standard.
202. Controlling a spherical integral standard light source to output light source according to the brightness value set;
203. using a shooting camera to shoot a ball integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length to generate a calibration shooting image set, wherein each calibration shooting image in the calibration shooting image set is marked with a shooting distance and an aperture number;
204. using a color analyzer to shoot a sphere integral standard light source according to an initial shooting distance, a shooting moving step length, an initial aperture and an aperture increasing and decreasing step length to generate reference brightness value data, wherein each reference brightness value in the reference brightness value data is marked with a shooting distance and an f-number and is associated with a calibration shooting image with the same shooting distance and the same f-number;
and the terminal controls the spherical integral standard light source to output light source according to the brightness value set, so that the spherical integral standard light source simulates a display screen to output brightness. And the terminal uses a shooting camera to shoot the ball integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length, every time the shooting distance is changed or the aperture is changed, the shooting camera is used for shooting, a calibration shooting image set is generated, each calibration shooting image in the calibration shooting image set is marked with the shooting distance and the diaphragm number, then a color analyzer is used for shooting the ball integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length, every time the shooting distance is changed or the aperture is changed, the color analyzer is used for shooting, reference brightness value data is generated, each reference brightness value in the reference brightness value data is marked with the shooting distance and the diaphragm number and is associated with the calibration shooting image with the same shooting distance and the same diaphragm number.
The terminal controls the spherical integral standard light source to output light source according to the brightness value set, each time the spherical integral standard light source changes brightness, the spherical integral standard light source is shot by using the shooting camera and the color analyzer, the shooting camera generates a first calibration shooting image set corresponding to the current brightness value, the color analyzer generates a reference brightness value corresponding to the current brightness value, and the first calibration shooting image set and the reference brightness value data are generated after integration. The first calibration shot image set comprises at least two calibration shot images, and the reference brightness value data comprises at least two different reference brightness values.
For example: inputting 0nit into a spherical integral standard light source, shooting the spherical integral standard light source by a shooting camera to generate a calibration shooting image corresponding to 0nit, and shooting the spherical integral standard light source by a color analyzer to generate a reference brightness value corresponding to 0 nit. And then 5nit is input, the shooting camera and the color analyzer repeatedly shoot to generate a calibration shooting image and a reference brightness value corresponding to the 5nit, and the rest is done until all brightness values in the brightness value set are shot, and a first calibration shooting image set and reference brightness value data are generated.
Setting reference brightness value data acquired by the terminal as V, wherein the unit is brightness nit, and setting the terminal to be in brightness nitAcquired calibration shot image set ILvAnd the calibration shot image corresponds to the reference brightness one by one.
205. Calculating a gray level mean value of the calibration shot image set to generate calibration gray level mean value data;
after the terminal acquires the calibration shot image set, the gray level mean value of each calibration shot image is calculated to obtain the calibration gray level mean value of each image, and the calibration gray level mean values of each calibration shot image are set to generate calibration gray level mean value data. There are various methods for calculating the gray level average, and the method is not limited herein.
206. Fitting according to the calibration gray level mean value data and the reference brightness value data to generate a photometric model, wherein the photometric model is a relational expression of exposure time, shooting distance, f-number, gray level mean value and reference brightness value;
and the terminal marks a shooting distance and an f-number according to each reference brightness value in the reference brightness value data, associates the reference brightness value with a calibrated shooting image with the same shooting distance and the same f-number, fits the gray level mean value and the brightness value, and generates a photometric model, wherein the photometric model is a relational expression of exposure time, the shooting distance, the f-number, the gray level mean value and the reference brightness value.
207. Obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value, GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is a Gamma register value corresponding to 255 gray scales;
208. according to GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale;
209. controlling an LCD display screen to output brightness according to the initial Gamma register value set;
210. shooting an LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale, wherein the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens;
211. performing brightness calculation on each shot image in the target shot image set to generate a brightness value set;
212. performing transmittance calculation on the brightness value set to generate initial transmittance data;
213. generating a target transmittance function according to the initial Gamma register value set and the initial transmittance data, wherein the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data;
214. obtaining a reference transmittance function, and generating a standard transmittance set according to at least three binding point gray scales, wherein the reference transmittance function is a relational expression under the standard condition of the binding point gray scales and transmittance;
215. generating a target Gamma register value set according to the target transmittance function and the standard transmittance set, wherein the target Gamma register value set comprises 3 pairs of Gamma register values;
216. writing the target Gamma register value set into an LCD display screen;
steps 207 to 216 in this embodiment are similar to steps 101 to 110 in the previous embodiment, and are not described again here.
217. Determining a gray scale g, wherein the gray scale g is subjected to binding point gray scale of at least one P-gamma correction;
after the terminal finishes the first P-gamma correction, all gray scales can be traversed to detect whether the gray scales meet the specification, and because the precision requirement of some LCD display screens is high, the single P-gamma correction cannot meet the specification and needs to be verified for many times. At this time, the terminal is required to select gray scale g, wherein g is an integer which is greater than or equal to 0 and less than or equal to 255.
218. Judging whether the correction times of the gray scale g reach a preset value or not;
the terminal judges whether the correction times of the gray scale g are larger than a preset value, if so, step 219 is executed, and if not, the gray scale g needs to be verified whether to meet the specification.
219. If yes, exiting the correction process of the gray scale g, and determining the next uncorrected gray scale to be corrected;
and when the terminal judges that the correction times of the gray scale g reach the preset value, the binding point gray scale is represented and the threshold value of the correction times is reached, the correction of the gray scale g is exited, and the correction of the next gray scale is directly entered.
220. If not, determining the current Gamma register value of the gray scale g according to the target Gamma register value set, wherein the current Gamma register value comprises GMg1 +Value sum GMg1 -A value;
and when the terminal judges that the correction times of the gray scale g do not reach the preset value, verifying whether the gray scale g meets the specification. At this time, the terminal needs to determine the current Gamma register value of the gray scale g according to the target Gamma register value set, and the current Gamma register value includes GMg1 +Value sum GMg1 -The value is obtained. GMg1 +Value sum GMg1 -The value is the Gamma register value obtained after the first correction of the gray scale g.
221. Shooting a target shooting image of the LCD display screen under the current Gamma register value through a shooting camera;
terminal control LCD display screen current Gamma register value GMg1 +Value sum GMg1 -And displaying the picture under the value, and shooting the picture through a shooting camera to obtain a target shooting image.
222. Calculating the brightness of a target shooting image through a photometric model to generate a current brightness value;
after the terminal acquires the target shot image, the brightness of the target shot image needs to be calculated, and specifically, the gray-scale mean value and the brightness value are converted through a photometric model.
223. Performing transmittance calculation on the brightness value to generate the current transmittance;
the terminal performs transmittance calculation on the first luminance value to generate a current transmittance, which is similar to step 106 and will not be described herein.
224. Judging whether the current transmittance reaches a preset range or not;
the terminal determines whether the current transmittance is within a preset range, i.e. a preset accuracy level is reached, if so, step 226 is executed, and if not, step 225 is executed.
225. If not, determining an initial Gamma register value of the gray scale g according to the initial Gamma register value set, wherein the initial Gamma register value of the gray scale g comprises GMg0 +Value sum GMg0 -The value g is an integer greater than 0 and less than 255;
when the terminal determines that the current transmittance does not reach the preset range, the terminal is required to determine an initial Gamma register value of the gray scale g according to the initial Gamma register value set, wherein the initial Gamma register value of the gray scale g comprises GMg0 +Value sum GMg0 -The initial Gamma register value is used to calculate the new Gamma register value, so that the Gamma register value of the LCD display screen at the gray scale g is updated, wherein GMg0 +Value sum GMg0 -The values are the Gamma register values when not corrected, respectively.
226. If yes, determining the gray scale g as a P-gamma corrected gray scale, and determining the next uncorrected gray scale for correction;
and when the terminal determines that the current transmittance reaches the preset range, the gray scale g is represented and reaches the preset specification, the gray scale g is determined as the P-gamma corrected gray scale, and the next uncorrected gray scale is determined for correction.
227. Determining the initial transmittance of the gray scale g according to the initial transmittance data;
and determining the initial transmittance of the gray scale g by the terminal initial transmittance data, wherein the initial transmittance is used for calculating a new Gamma register value.
228. Determining the standard transmittance of the gray scale g according to the reference transmittance function;
the terminal determines the standard transmittance of the gray scale g according to the reference transmittance function, and the standard transmittance is used for calculating the new Gamma register value
229. According to the initial GCalculating new Gamma register value including GMg according to the ama register value, the initial transmittance, the standard transmittance, the current Gamma register value and the current transmittance2 +Value sum GMg2 -A value;
the terminal calculates a new Gamma register value according to the initial Gamma register value, the initial transmittance, the standard transmittance, the current Gamma register value and the current transmittance, wherein the new Gamma register value comprises GMg2 +Value sum GMg2 -The value is obtained. The formula is as follows:
Figure 449169DEST_PATH_IMAGE002
Figure 732383DEST_PATH_IMAGE003
Figure 23687DEST_PATH_IMAGE004
wherein, GMg2 +Value sum GMg2 -The values are respectively positive and negative values of the new Gamma register value, GMg0 +Value sum GMg0 -The values are respectively positive and negative values of Gamma register value when not corrected, Tg*As standard transmittance, Tg0As initial transmittance, Tg1GMg as the current transmittance1 +Value sum GMg1 -The values are respectively the current Gamma register value, delta is a constant which can be set, and deltag is the updating distance.
230. Writing the new Gamma register value into the LCD display screen;
and after the terminal calculates the new Gamma register value, the new Gamma register value needs to be written into the LCD display screen to complete the updating. The new Gamma register value GMg is needed2 +Value sum GMg2 -The value is defined as the current register value, GMg the current Gamma register value1 +Value sum GMg1 -Defining the value as the initial Gamma register value, and setting the current transmittance Tg1Defined as the initial transmittance, so that the data is updated when the next correction is needed.
231. The number of times of correction of the gradation g is updated.
And the terminal updates the correction times of the gray scale g, so that the terminal determines the correction condition of the gray scale g according to the correction times.
In this embodiment, first, working parameters and a calibration environment of the shooting camera and the spherical integral standard light source are set, where the working parameters include an initial shooting distance between the shooting camera and the spherical integral standard light source, a shooting moving step length, a brightness value set of the spherical integral standard light source, an initial exposure time of the shooting camera, an initial aperture, an aperture increasing and decreasing step length, and an initial focusing distance, and the shooting camera is composed of a high-speed industrial camera and a long-focus industrial lens. And the terminal controls the spherical integral standard light source to output the light source according to the brightness value set. And the terminal uses a shooting camera to shoot the sphere integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length to generate a calibration shooting image set. And the terminal uses a color analyzer to shoot the sphere integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length to generate reference brightness value data. And the terminal calculates the gray level mean value of the calibration shot image set to generate calibration gray level mean value data. And fitting according to the calibration gray mean value data and the reference brightness value data to generate a photometric model. Terminal acquisition GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value, GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is the Gamma register value corresponding to 255 gray scales. The 0 gray scale and the 255 gray scale are upper and lower limits of the gray scale. The terminal is again according to GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -The values generate an initial set of Gamma register values, the initial set of Gamma register valuesAt least three binding point gray scales including the 0 gray scale and the 255 gray scale respectively correspond to Gamma register values, so that a plurality of gray scales and corresponding initial Gamma register values are obtained. And the terminal writes the initial Gamma register value into the LCD display screen, so that the LCD display screen displays pictures. And the terminal shoots the LCD display screen by using the shooting camera to generate a target shooting image set corresponding to the binding point gray scale. The shooting camera consists of a high-speed industrial camera and a long-focus industrial lens. And the terminal performs brightness calculation on each shot image in the target shot image set to generate a brightness value set. And the terminal calculates the transmittance of the brightness value set to generate initial transmittance data. And fitting the initial Gamma register value set and the initial transmittance data by the terminal to generate a target transmittance function, wherein the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data. The terminal obtains a reference transmittance function, and generates a standard transmittance set according to at least three binding point gray scales, wherein the reference transmittance function is a relational expression under the standard condition of the binding point gray scales and the transmittance. And the terminal generates a target Gamma register value set according to the target transmittance function and the standard transmittance set, wherein the target Gamma register value set comprises the Gamma register value. And finally, the terminal writes the target Gamma register value set into an LCD display screen.
Then, the terminal determines a gray level g, which has been subjected to binding gray level of at least one P-gamma correction, and is not the corrected gray level. The terminal judges whether the correction times of the gray scale g reach a preset value, if so, the terminal exits the correction process of the gray scale g and determines the correction of the next uncorrected gray scale, if not, the terminal determines the current Gamma register value of the gray scale g according to the target Gamma register value set, and the current Gamma register value comprises GMg1 +Value sum GMg1 -The value is obtained. The terminal shoots a target shooting image of the LCD display screen under the current Gamma register value through the shooting camera, and the terminal calculates the brightness of the target shooting image to generate a current brightness value. And the terminal calculates the transmittance of the first brightness value to generate the current transmittance. The terminal judges whether the current transmittance reaches a preset range or not, and if not, the current transmittance is judged to reach the preset rangeThen the terminal determines the initial Gamma register value of the gray scale g according to the initial Gamma register value set, the initial Gamma register value of the gray scale g includes GMg0 +Value sum GMg0 -And g is an integer which is larger than 0 and smaller than 255, if so, the terminal determines the gray scale g as a P-gamma corrected gray scale, and determines the next uncorrected gray scale for correction. The terminal determines the initial transmittance of the gray scale g according to the initial transmittance data. The terminal determines the standard transmittance of the gray scale g according to the reference transmittance function. The terminal calculates a new Gamma register value according to the initial Gamma register value, the initial transmittance, the standard transmittance, the current Gamma register value and the current transmittance, wherein the new Gamma register value comprises GMg2 +Value sum GMg2 -The value is obtained. And after calculating the new Gamma register value, the terminal writes the new Gamma register value into the LCD display screen, and updates the correction times of the gray scale g.
The above-mentioned in-process only needs to use common shooting camera to shoot, need not the color analyzer reduce cost. And the shooting camera is composed of a high-speed industrial camera and a long-focus industrial lens, which can adjust the working distance, so that the P-gamma correction can be realized by freely setting the working distance.
And whether the current transmittance of the current Gamma register value reaches a preset standard is judged by checking the current transmittance of the current Gamma register value, if not, the correction is further carried out, and the correction of a higher standard is realized.
Referring to fig. 3, the present application provides an embodiment of a correction device for P-gamma of an LCD panel, comprising:
a first obtaining unit 301 for obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value sum GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is a Gamma register value corresponding to 255 gray scales;
a first generating unit 302 for generating a signal according to GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale;
the first control unit 303 is configured to control the LCD display screen to output luminance according to the initial Gamma register value set;
the first shooting unit 304 is used for shooting the LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale, wherein the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens;
a first calculation unit 305 configured to perform luminance calculation on each captured image in the target captured image set, and generate a luminance value set;
a second calculation unit 306, configured to perform transmittance calculation on the set of luminance values to generate initial transmittance data;
a second generating unit 307, configured to generate a target transmittance function according to the initial Gamma register value set and the initial transmittance data, where the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data;
a second obtaining unit 308, configured to obtain a reference transmittance function, and generate a standard transmittance set according to at least three binding point gray scales, where the reference transmittance function is a relational expression between the binding point gray scale and the transmittance under a standard condition;
a third generating unit 309, configured to generate a target Gamma register value set according to the target transmittance function and the standard transmittance set, where the target Gamma register value set includes a Gamma register value;
the first execution unit 310 is configured to write the target Gamma register value set into the LCD display.
In this embodiment, first, the first obtaining unit 301 obtains the GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value, GM00 -Value of 0 gray scaleGamma register value, GM2550 +Value and GM2550 -The Gamma register value is corresponding to 255 gray levels. The 0 gray scale and the 255 gray scale are upper and lower limits of the gray scale. The first generation unit 302 is again based on GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -And generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale, so as to obtain a plurality of gray scales and corresponding initial Gamma register values. The first control unit 303 writes the initial Gamma register value into the LCD panel, so that the LCD panel displays a picture. The first shooting unit 304 uses the shooting camera to shoot the LCD display screen, and generates a set of target shooting images corresponding to the binding point gray scale. The shooting camera consists of a high-speed industrial camera and a long-focus industrial lens. The first calculation unit 305 performs luminance calculation for each captured image in the target captured image set, generating a luminance value set. The second calculation unit 306 performs transmittance calculation on the set of luminance values to generate initial transmittance data. The second generating unit 307 fits the initial Gamma register value set and the initial transmittance data to generate a target transmittance function, which is a correspondence expression between the Gamma register value and the initial transmittance data. The second obtaining unit 308 obtains a reference transmittance function, which is a relational expression between the binding gray scale and transmittance under a standard condition, and generates a standard transmittance set according to at least three binding gray scales. The third generating unit 309 generates a target Gamma register value set according to the target transmittance function and the standard transmittance set, where the target Gamma register value set includes a Gamma register value. Finally, the first execution unit 310 writes the target Gamma register value set into the LCD display screen. The above-mentioned in-process only needs to use common shooting camera to shoot, need not the color analyzer reduce cost. And the shooting camera is composed of a high-speed industrial camera and a long-focus industrial lens, which can adjust the working distance, so that the P-gamma correction can be realized by freely setting the working distance.
Referring to fig. 4, the present application provides another embodiment of a correction device for P-gamma of an LCD panel, comprising:
the initialization unit 401 is configured to set working parameters of the shooting camera and the ball integral standard light source and a calibration environment, where the working parameters include an initial shooting distance between the shooting camera and the ball integral standard light source, a shooting moving step length, a brightness value set of the ball integral standard light source, an initial exposure time of the shooting camera, an initial aperture, an aperture increasing and decreasing step length, and an initial focusing distance, the shooting camera is composed of a high-speed industrial camera and a long-focus industrial lens, the calibration environment is a field parameter in a shooting process, the brightness value set includes at least two different brightness values, and the ball integral standard light source is used for simulating an LCD display screen to emit light;
a second control unit 402, configured to control the spherical integral standard light source to output the light source according to the set of brightness values;
a second shooting unit 403, configured to use a shooting camera to shoot a sphere integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length, and generate a calibration shooting image set, where each calibration shooting image in the calibration shooting image set is marked with a shooting distance and an aperture number;
a third photographing unit 404 for photographing a ball integral standard light source according to the initial photographing distance, the photographing moving step length, the initial aperture and the aperture increasing and decreasing step length using a color analyzer to generate reference luminance value data, each of which is marked with a photographing distance and an f-number and is associated with a calibration photographed image of the same photographing distance and the same f-number;
a third calculating unit 405, configured to calculate a grayscale mean value of the calibration shot image set, and generate calibration grayscale mean value data;
a fitting unit 406, configured to perform fitting according to the calibrated gray-scale mean value data and the reference luminance value data to generate a photometric model, where the photometric model is a relational expression between exposure time, shooting distance, f-number, gray-scale mean value, and reference luminance value;
a first obtaining unit 407 for obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value sum GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is a Gamma register value corresponding to 255 gray scales;
a first generating unit 408 for generating a signal based on GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale;
the first control unit 409 is used for controlling the LCD display screen to output the brightness according to the initial Gamma register value set;
the first shooting unit 410 is used for shooting the LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale, wherein the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens;
a first calculating unit 411, configured to perform luminance calculation on each captured image in the target captured image set, and generate a luminance value set;
a second calculation unit 412, configured to perform transmittance calculation on the set of luminance values to generate initial transmittance data;
a second generating unit 413, configured to generate a target transmittance function according to the initial Gamma register value set and the initial transmittance data, where the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data;
a second obtaining unit 414, configured to obtain a reference transmittance function, and generate a standard transmittance set according to at least three binding point gray scales, where the reference transmittance function is a relational expression between the binding point gray scale and the transmittance under a standard condition;
a third generating unit 415, configured to generate a target Gamma register value set according to the target transmittance function and the standard transmittance set, where the target Gamma register value set includes a Gamma register value;
a first execution unit 416, configured to write the target Gamma register value set into the LCD display screen;
a first determination unit 417 for determining a gray level g, which has undergone at least one P-gamma correction for a binding gray level;
a second judging unit 418, configured to judge whether the correction frequency of the gray scale g reaches a preset value;
a third executing unit 419, configured to exit the correction process of the gray scale g and determine that the next uncorrected gray scale is corrected when the second determining unit 418 determines that the correction frequency of the gray scale g reaches the preset value;
a second determining unit 420, configured to determine a current Gamma register value of the gray scale g according to the target Gamma register value set when the second determining unit 418 determines that the correction times of the gray scale g do not reach the preset value, where the current Gamma register value includes GMg1 +Value sum GMg1 -A value;
a fourth calculating unit 421 for calculating the current transmittance of the LCD display screen according to the current Gamma register value;
optionally, the fourth calculating unit 421 specifically includes:
shooting a target shooting image of the LCD display screen under the current Gamma register value through a shooting camera;
calculating the brightness of a target shooting image through a photometric model to generate a current brightness value;
and performing transmittance calculation on the brightness value to generate the current transmittance.
A first determining unit 422, configured to determine whether the current transmittance reaches a preset range;
a sixth determining unit 423, configured to determine the gray scale g as a P-gamma corrected gray scale when the first determining unit 422 determines that the current transmittance is within the preset range, and determine a next uncorrected gray scale for correction;
a third determining unit 424, configured to determine gray according to the initial Gamma register value set when the first determining unit 422 determines that the current transmittance does not reach the preset rangeThe initial Gamma register value of the order g, the initial Gamma register value of the gray scale g includes GMg0 +Value sum GMg0 -The value g is an integer greater than 0 and less than 255;
a fourth determination unit 425 for determining an initial transmittance of the gray scale g from the initial transmittance data;
a fifth determining unit 426, configured to determine a standard transmittance of the gray scale g according to the reference transmittance function;
a fifth calculating unit 427, configured to calculate a new Gamma register value according to the initial Gamma register value, the initial transmittance, the standard transmittance, the current Gamma register value and the current transmittance, where the new Gamma register value includes GMg2 +Value sum GMg2 -A value;
a second execution unit 428 for writing the new Gamma register value into the LCD screen;
an updating unit 429 for updating the number of times of correction of the gray scale g.
In this embodiment, first, in this embodiment, the initialization unit 401 sets working parameters and a calibration environment of the shooting camera and the spherical integral standard light source, where the working parameters include an initial shooting distance between the shooting camera and the spherical integral standard light source, a shooting moving step length, a brightness value set of the spherical integral standard light source, an initial exposure time, an initial aperture, an aperture increasing and decreasing step length, and an initial focusing distance of the shooting camera, and the shooting camera is composed of a high-speed industrial camera and a long-focus industrial lens. The second control unit 402 controls the spherical integral standard light source to output light source according to the set of brightness values. The second photographing unit 403 generates a set of calibration photographed images using the photographing camera from the initial photographing distance, the photographing movement step, the initial aperture, and the aperture increase and decrease step, the photographing sphere integral standard light source. The third photographing unit 404 photographs a sphere integral standard light source using a color analyzer according to the initial photographing distance, the photographing movement step length, the initial aperture, and the aperture increase and decrease step length, and generates reference luminance value data. The third calculation unit 405 calculates a gray scale mean value of the calibration shot image set, and generates calibration gray scale mean value data. The fitting unit 406 is used for calculating the reference brightness according to the calibrated gray mean dataAnd fitting the value data to generate a photometric model. First acquisition unit 407 acquires GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, GM00 +Value, GM00 -Gamma register value, GM255, corresponding to gray level 00 +Value and GM2550 -The value is the Gamma register value corresponding to 255 gray scales. The 0 gray scale and the 255 gray scale are upper and lower limits of the gray scale. The first generation unit 408 is again based on GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -And generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale, so as to obtain a plurality of gray scales and corresponding initial Gamma register values. The control unit 409 writes the initial Gamma register value into the LCD display screen, so that the LCD display screen displays the picture. The shooting unit 410 then uses a shooting camera to shoot the LCD display screen, and generates a set of target shot images corresponding to the binding point gray scale. The shooting camera consists of a high-speed industrial camera and a long-focus industrial lens. The first calculation unit 411 performs luminance calculation for each captured image in the target captured image set, generating a luminance value set. The second calculation unit 412 performs transmittance calculation on the set of luminance values to generate initial transmittance data. The second generating unit 413 fits the initial Gamma register value set and the initial transmittance data to generate a target transmittance function, which is a correspondence expression between the Gamma register value and the initial transmittance data. The second obtaining unit 414 obtains a reference transmittance function, which is a relational expression between the binding gray scale and transmittance under a standard condition, and generates a standard transmittance set according to at least three binding gray scales. The third generating unit 415 generates a target Gamma register value set according to the target transmittance function and the standard transmittance set, where the target Gamma register value set includes a Gamma register value. Finally, the first execution unit 416 writes the target Gamma register value set into the LCD display screen. Only needs to be used in the processThe common shooting camera shoots without a color analyzer, so that the cost is reduced. And the shooting camera is composed of a high-speed industrial camera and a long-focus industrial lens, which can adjust the working distance, so that the P-gamma correction can be realized by freely setting the working distance.
Next, the first determination unit 417 determines the gray scale g, which has been subjected to the binding gray scale of the P-gamma correction at least once, and which is not the corrected gray scale. The second determining unit 418 determines whether the correction frequency of the gray scale g reaches a preset value, if so, the third executing unit 419 exits the correction process of the gray scale g and determines to correct the next uncorrected gray scale, and if not, the second determining unit 420 determines the current Gamma register value of the gray scale g according to the target Gamma register value set, where the current Gamma register value includes GMg1 +Value sum GMg1 -The value is obtained. The fourth calculation unit 421 generates a current luminance value by photographing a target photographed image of the LCD display screen at the current Gamma register value by the photographing camera, and the fourth calculation unit 421 calculates the luminance of the target photographed image. The fourth calculation unit 421 performs transmittance calculation on the first luminance value to generate the current transmittance. The first determining unit 422 determines whether the current transmittance is within a preset range, and if not, the third determining unit 424 determines an initial Gamma register value of the gray scale g according to the initial Gamma register value set, where the initial Gamma register value of the gray scale g includes GMg0 +Value sum GMg0 -The value g is an integer greater than 0 and less than 255, and if so, the sixth determining unit 423 determines the gray scale g as the P-gamma correction completed gray scale and determines the next uncorrected gray scale for correction. The fourth determining unit 425 determines the initial transmittance of the gray scale g from the initial transmittance data. The fifth determination unit 426 determines the standard transmittance of the gray scale g according to the reference transmittance function. The fifth calculating unit 427 calculates a new Gamma register value including GMg according to the initial Gamma register value, the initial transmittance, the standard transmittance, the current Gamma register value and the current transmittance2 +Value sum GMg2 -The value is obtained. After calculating the new Gamma register value, the second execution unit 428 will calculate the new Gamma register valueThe new Gamma register value is written in the LCD panel and the update unit 429 updates the number of corrections of the gray scale g.
Referring to fig. 5, the present application provides an electronic device, including:
a processor 501, a memory 502, an input-output unit 503, and a bus 504.
The processor 501 is connected to a memory 602, an input-output unit 503, and a bus 504.
The memory 502 holds a program that the processor 501 calls to perform the correction method as in fig. 1, 2-2, and 2-3.
The present application provides a computer-readable storage medium having a program stored thereon, the program, when executed on a computer, performing a correction method as in fig. 1, 2-2, and 2-3.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.

Claims (9)

1. A correction method for LCD display screen P-gamma is characterized by comprising the following steps:
setting working parameters of a shooting camera and a ball integral standard light source and a calibration environment, wherein the working parameters comprise an initial shooting distance between the shooting camera and the ball integral standard light source, a shooting moving step length, a brightness value set of the ball integral standard light source, initial exposure time, an initial aperture, an aperture increasing and decreasing step length and an initial focusing distance of the shooting camera, the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens, the calibration environment is a field parameter in the shooting process, the brightness value set comprises at least two different brightness values, and the ball integral standard light source is used for simulating an LCD display screen to emit light;
controlling the spherical integral standard light source to output light source according to the brightness value set;
shooting the ball integral standard light source by using the shooting camera according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length to generate a calibration shooting image set, wherein each calibration shooting image in the calibration shooting image set is marked with a shooting distance and an aperture number;
shooting the ball integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length by using a color analyzer to generate reference brightness value data, wherein each reference brightness value in the reference brightness value data is marked with a shooting distance and an f-number and is associated with a calibration shooting image with the same shooting distance and the same f-number;
calculating a gray level mean value of the calibration shot image set to generate calibration gray level mean value data;
fitting according to the calibrated gray-scale mean value data and the reference brightness value data to generate a photometric model, wherein the photometric model is a relational expression of exposure time, shooting distance, f-number, gray-scale mean value and reference brightness value;
obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, the GM00 +Value and said GM00 -The value is Gamma register value corresponding to 0 gray scale, the GM2550 +Value and the GM2550 -The value is a Gamma register value corresponding to 255 gray scales;
according to the GM00 +Value, the GM00 -Value, the GM2550 +Value and the GM2550 -Generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale;
controlling the LCD display screen to output brightness according to the initial Gamma register value set;
shooting the LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale, wherein the shooting camera consists of a high-speed industrial camera with adjustable working distance and a long-focus industrial lens;
performing brightness calculation on each shot image in the target shot image set according to a photometric model to generate a brightness value set, wherein the photometric model is a relational expression which is calibrated in advance for a shooting camera and relates to exposure time, shooting distance, f-number, gray level mean value and reference brightness value;
performing transmittance calculation on the brightness value set to generate initial transmittance data;
generating a target transmittance function according to the initial Gamma register value set and the initial transmittance data, wherein the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data;
obtaining a reference transmittance function, and generating a standard transmittance set according to the at least three binding point gray scales, wherein the reference transmittance function is a relational expression of the binding point gray scales and transmittance under a standard condition;
generating a target Gamma register value set according to the target transmittance function and the standard transmittance set, wherein the target Gamma register value set comprises at least 3 pairs of Gamma register values;
and writing the target Gamma register value set into the LCD display screen.
2. The correction method of claim 1, wherein after writing the set of target Gamma register values to the LCD display screen, the correction method further comprises:
determining a gray scale g, wherein the gray scale g is a binding point gray scale subjected to at least one P-gamma correction;
determining a current Gamma register value of the gray level g from the target Gamma register value set, the current Gamma register value comprising GMg1 +Value sum GMg1 -A value;
calculating the current transmittance of the LCD display screen according to the current Gamma register value;
judging whether the current transmittance reaches a preset range or not;
if not, determining an initial Gamma register value of the gray scale g according to the initial Gamma register value set, wherein the initial Gamma register value of the gray scale g comprises GMg0 +Value sum GMg0 -The value g is an integer greater than 0 and less than 255;
determining the initial transmittance of the gray scale g according to the initial transmittance data;
determining the standard transmittance of the gray scale g according to the reference transmittance function;
calculating a new Gamma register value according to the initial Gamma register value, the initial transmittance, the standard transmittance, the current Gamma register value and the current transmittance, wherein the new Gamma register value comprises GMg2 +Value sum GMg2 -A value;
and writing the new Gamma register value into the LCD display screen.
3. The calibration method according to claim 2, wherein after said determining whether the current transmittance is within a predetermined range, the calibration method further comprises:
and if so, determining the gray scale g as a P-gamma corrected gray scale, and determining the next uncorrected gray scale for correction.
4. The correction method of claim 3, wherein after determining a gray level g, before determining a current Gamma register value for the gray level g from the target Gamma register value set, the correction method further comprises:
judging whether the correction times of the gray scale g reach a preset value or not;
if yes, exiting the correction process of the gray scale g, and determining the next uncorrected gray scale to be corrected;
if not, determining the current Gamma register value of the gray scale g according to the target Gamma register value set.
5. The correction method of claim 4, wherein after said writing said new Gamma register value to said LCD display screen, said method further comprises:
and updating the correction times of the gray scale g.
6. The correction method according to claim 2, wherein said calculating the current transmittance of the LCD display screen from the current Gamma register value comprises:
shooting a target shooting image of the LCD display screen under the current Gamma register value through the shooting camera;
calculating the brightness of the target shooting image through the photometric model to generate a current brightness value;
and performing transmittance calculation on the brightness value to generate the current transmittance.
7. A kind of correcting unit of LCD display screen P-gamma, characterized by that, including:
the device comprises an initialization unit, a calibration unit and a control unit, wherein the initialization unit is used for setting working parameters of a shooting camera and a ball integral standard light source and a calibration environment, the working parameters comprise an initial shooting distance of the shooting camera and the ball integral standard light source, a shooting moving step length, a brightness value set of the ball integral standard light source, initial exposure time of the shooting camera, an initial aperture, an aperture increasing and decreasing step length and an initial focusing distance, the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens, the calibration environment is a field parameter in the shooting process, the brightness value set comprises at least two different brightness values, and the ball integral standard light source is used for simulating the light emission of an LCD display screen;
the second control unit is used for controlling the spherical integral standard light source to output the light source according to the brightness value set;
the second shooting unit is used for shooting a ball integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length by using the shooting camera to generate a calibration shooting image set, and each calibration shooting image in the calibration shooting image set is marked with the shooting distance and the diaphragm number;
a third shooting unit, configured to use a color analyzer to shoot a sphere integral standard light source according to the initial shooting distance, the shooting moving step length, the initial aperture and the aperture increasing and decreasing step length, and generate reference luminance value data, where each reference luminance value in the reference luminance value data is labeled with a shooting distance and an f-number and is associated with a calibration shot image of the same shooting distance and the same f-number;
the third calculation unit is used for calculating the gray mean value of the calibration shot image set to generate calibration gray mean value data;
the fitting unit is used for fitting according to the calibration gray level mean value data and the reference brightness value data to generate a photometric model, and the photometric model is a relational expression of exposure time, shooting distance, diaphragm number, gray level mean value and reference brightness value;
a first obtaining unit for obtaining GM00 +Value, GM00 -Value, GM2550 +Value and GM2550 -Value, the GM00 +Value and said GM00 -The value is Gamma register value corresponding to 0 gray scale, the GM2550 +Value and the GM2550 -The value is a Gamma register value corresponding to 255 gray scales;
a first generating unit for generating a first signal according to the GM00 +Value, the GM00 -Value, the GM2550 +Value and the GM2550 -Generating an initial Gamma register value set by the value, wherein the initial Gamma register value set comprises Gamma register values corresponding to at least three binding point gray scales including 0 gray scale and 255 gray scale;
the first control unit is used for controlling the LCD display screen to output the brightness according to the initial Gamma register value set;
the first shooting unit is used for shooting the LCD display screen by using a shooting camera to generate a target shooting image set corresponding to the binding point gray scale, and the shooting camera consists of a high-speed industrial camera and a long-focus industrial lens;
the first calculation unit is used for performing brightness calculation on each shot image in the target shot image set to generate a brightness value set;
the first calculating unit is specifically:
performing brightness calculation on each shot image in the target shot image set according to a photometric model to generate a brightness value set, wherein the photometric model is a relational expression which is calibrated in advance for a shooting camera and relates to exposure time, shooting distance, diaphragm number, gray level mean value and reference brightness value;
a second calculation unit configured to perform transmittance calculation on the set of luminance values to generate initial transmittance data;
a second generating unit, configured to generate a target transmittance function according to the initial Gamma register value set and the initial transmittance data, where the target transmittance function is a corresponding relation between the Gamma register value and the initial transmittance data;
the second obtaining unit is used for obtaining a reference transmittance function and generating a standard transmittance set according to the at least three binding point gray scales, wherein the reference transmittance function is a relational expression under the standard condition of the binding point gray scales and the transmittance;
a third generating unit, configured to generate a target Gamma register value set according to the target transmittance function and the standard transmittance set, where the target Gamma register value set includes at least 3 pairs of Gamma register values;
and the first execution unit is used for writing the target Gamma register value set into the LCD display screen.
8. An electronic device, comprising:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory holds a program that the processor calls to execute the correction method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a program stored thereon, the program, when executed on a computer, performing the correction method according to any one of claims 1 to 6.
CN202111548310.3A 2021-12-17 2021-12-17 Correction method and related device for LCD display screen P-gamma Active CN113936621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111548310.3A CN113936621B (en) 2021-12-17 2021-12-17 Correction method and related device for LCD display screen P-gamma

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111548310.3A CN113936621B (en) 2021-12-17 2021-12-17 Correction method and related device for LCD display screen P-gamma

Publications (2)

Publication Number Publication Date
CN113936621A CN113936621A (en) 2022-01-14
CN113936621B true CN113936621B (en) 2022-03-22

Family

ID=79289300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111548310.3A Active CN113936621B (en) 2021-12-17 2021-12-17 Correction method and related device for LCD display screen P-gamma

Country Status (1)

Country Link
CN (1) CN113936621B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118280238B (en) * 2024-06-04 2024-08-16 深圳精智达技术股份有限公司 Gamma detection method, device and storage medium in display Demura process

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203689880U (en) * 2013-12-02 2014-07-02 赫比(上海)自动化科技有限公司 Liquid crystal display screen testing machine
CN104376823A (en) * 2014-09-30 2015-02-25 南京中电熊猫液晶显示科技有限公司 Gamma voltage regulating device and method
CN105489184A (en) * 2016-01-22 2016-04-13 京东方科技集团股份有限公司 Gamma voltage control system, control method and display device
CN110232885A (en) * 2019-07-26 2019-09-13 武汉精立电子技术有限公司 A kind of brightness of display screen measurement method, system and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203689880U (en) * 2013-12-02 2014-07-02 赫比(上海)自动化科技有限公司 Liquid crystal display screen testing machine
CN104376823A (en) * 2014-09-30 2015-02-25 南京中电熊猫液晶显示科技有限公司 Gamma voltage regulating device and method
CN105489184A (en) * 2016-01-22 2016-04-13 京东方科技集团股份有限公司 Gamma voltage control system, control method and display device
CN110232885A (en) * 2019-07-26 2019-09-13 武汉精立电子技术有限公司 A kind of brightness of display screen measurement method, system and terminal

Also Published As

Publication number Publication date
CN113936621A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN108682365B (en) OLED color spot detection and repair integrated system and method
CN113077748B (en) Gray scale compensation method, gray scale compensation device and gray scale compensation system of display panel
CN102930850B (en) GAMMA curve adjustment method and GAMMA curve adjustment system
WO2022001321A1 (en) Gamma debugging method and gamma debugging device
CN101377918B (en) Electronic display screen system, method and system for correcting electronic display screen brightness
CN113936579B (en) Method and related device for measuring flicker value of LCD display screen
JP4651647B2 (en) Method and apparatus for finding a new color temperature point
CN109949744B (en) Gamma voltage correction method and device
CN113936580B (en) Display screen brightness measurement model generation method and related device
CN114203087B (en) Configuration of compensation lookup table, compensation method, device, equipment and storage medium
CN114359055B (en) Image splicing method and related device for multi-camera shooting screen body
CN114981873B (en) Gamma correction method and device, electronic equipment and readable storage medium
CN106506831A (en) Control method and control device
CN113936621B (en) Correction method and related device for LCD display screen P-gamma
CN107728410A (en) The image distortion correcting method and laser-projector of laser-projector
CN111653249B (en) Display control method and device of display panel and electronic equipment
CN114093292A (en) Brightness parameter correction method, device and equipment and brightness compensation system
CN113160090B (en) Image correction method and device
CN111638042B (en) DLP optical characteristic test analysis method
CN114613315A (en) Gamma curve learning method and LED display controller
KR100859937B1 (en) Method and device of rapidly generating a gray-level versus brightness curve of a display
CN105072427B (en) Automatic color balancing method among multiple projectors
CN114882843B (en) Method and device for compensating brightness of display panel and computer readable storage medium
CN101401445B (en) Relative exposure intensity measuring apparatus and method
CN112991233B (en) Image correction method and device

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
GR01 Patent grant
GR01 Patent grant