Image processing method and device, electronic equipment and readable storage medium
By designing different modified color mapping tables for different voltage gears and correcting the image, the problem of excessive voltage change in the prior art is solved, reducing terminal power consumption and improving image display effect.
Patent Information
- Application Number
- CN202311011104.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2043-08-10
AI Technical Summary
When adjusting the brightness of the terminal screen, the voltage variation between adjacent voltage gears is large, resulting in excessive reference voltage and increasing terminal power consumption.
Design different modified color maps for different voltage levels, and correct the image through these maps to ensure that the reference voltage and leakage voltage change are small, thereby reducing terminal power consumption.
By reducing the voltage change amplitude between voltage gears, high power consumption caused by excessive reference voltage is avoided, and the image display effect is ensured.
Smart Images

Figure CN119479553A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal display technology, and in particular to an image processing method, device, electronic device and readable storage medium. Background Art
[0002] At present, the terminal screen can be powered by a power supply circuit so that the screen can display different images. The current flowing into the light-emitting device in the power supply circuit is determined by the gate voltage, power supply voltage and reference voltage of the thin-film transistor. By changing the gate voltage, the current flowing into the light-emitting device can be changed, thereby changing the screen brightness.
[0003] In the related art, the voltage level of the reference voltage is adjusted to make the thin film transistor work stably in the constant current region, thereby achieving stable brightness adjustment of the screen. When adjusting the voltage level of the reference voltage, the voltage variation between two adjacent voltage levels is large, which will cause the reference voltage to be adjusted too large when adjusting from the previous voltage level to the next voltage level. The increase in the reference voltage will lead to an increase in the terminal power consumption, resulting in excessive terminal power consumption. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides an image processing method, device, electronic device and readable storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method, including:
[0006] Obtaining a corrected color mapping table corresponding to different voltage levels; wherein different voltage levels correspond to different reference voltages, the reference voltage is used to provide energy for screen display, and the corrected color mapping table is used to correct the color value in the image;
[0007] Determine the target voltage level when the current screen displays the image to be corrected;
[0008] Determining a target color mapping table corresponding to the target voltage level from a plurality of corrected color mapping tables corresponding to different voltage levels;
[0009] The target color mapping table is used to process the image to be corrected into a corrected image.
[0010] Optionally, the method further comprises:
[0011] Determining a grayscale compensation value corresponding to a grayscale in the preset image when the reference screen displays the preset image under the reference voltage;
[0012] The grayscale compensation value is corrected by using a gain value to obtain a target compensation value, wherein the gain value is used to represent the difference between the reference screen and the current screen when displaying the same preset image;
[0013] The target compensation value is used to compensate the grayscale in the preset image displayed on the reference screen to obtain a corrected output value; wherein the first color value in the preset image displayed by the current screen under the reference voltage and the corresponding corrected output value constitute the corrected color mapping table.
[0014] Optionally, the method further comprises:
[0015] Calibrate the first color value through the color mapping table to be corrected to obtain a first output value; calibrate the second color value of the reference screen when displaying the preset image under the reference voltage through the color mapping table to be corrected to obtain a second output value;
[0016] A gain value is obtained according to the first output value and the second output value.
[0017] Optionally, the grayscale compensation value is corrected by using a gain value to obtain a target compensation value, including:
[0018] The product of the grayscale compensation value and the gain value is used as the target compensation value.
[0019] Optionally, using the target compensation value to compensate for the grayscale in the preset image displayed on the reference screen to obtain a corrected output value includes:
[0020] The sum of the grayscale in the preset image displayed on the reference screen and the target compensation value is used as the corrected output value.
[0021] Optionally, determining a target voltage level when the current screen displays the image to be corrected includes:
[0022] The target voltage level is determined according to the pixel brightness and screen load when the current screen displays the image to be corrected.
[0023] Optionally, the method further comprises:
[0024] The screen load is obtained according to the color values of pixels when the current screen displays the image to be corrected, the weights corresponding to the color values, and the total number of screen pixels.
[0025] Optionally, determining the target voltage level according to the pixel brightness and screen load when the current screen displays the image to be corrected includes:
[0026] Determine a first gear corresponding to the pixel brightness and a second gear corresponding to the screen load;
[0027] The sum of the first gear and the second gear is used as the target voltage gear.
[0028] According to a second aspect of an embodiment of the present disclosure, there is provided an image processing apparatus, including:
[0029] An acquisition module is configured to acquire a corrected color mapping table corresponding to different voltage levels; wherein different voltage levels correspond to different reference voltages, the reference voltages are used to provide energy for screen display, and the corrected color mapping table is used to correct the color values in the image;
[0030] A determination module, configured to determine a target voltage level when the current screen displays the image to be corrected;
[0031] A screening module is configured to determine a target color mapping table corresponding to the target voltage level from a plurality of corrected color mapping tables corresponding to different voltage levels;
[0032] The first calibration module is configured to process the image to be corrected into a corrected image using the target color mapping table.
[0033] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0034] processor;
[0035] a memory for storing processor-executable instructions;
[0036] Wherein, the processor is configured to:
[0037] Execute the steps of the image processing method provided in the first aspect of the embodiment of the present disclosure.
[0038] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the image processing method provided in the first aspect of the present disclosure are implemented.
[0039] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0040] Different corrected color mapping tables are designed for different voltage levels, so that the image to be corrected can be corrected to a corrected image with better display effect through the corrected color mapping table corresponding to the voltage level. In this process, on the one hand, the variation range of the reference voltage and the drain voltage corresponding to the voltage level can be set to be smaller. After changing the voltage level, the reference voltage and the drain voltage can be adjusted to values that can just make the thin film transistor work in the constant current region, and the reference voltage and the drain voltage will not be adjusted to a larger value, thereby avoiding excessive terminal power consumption due to excessive reference voltage and drain voltage; on the other hand, correcting the image to be corrected through the target color mapping table corresponding to the current target voltage level can also make the image display effect better.
[0041] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0043] Figure 1 The figure is a flowchart of an image processing method according to an exemplary embodiment.
[0044] Figure 2 is a circuit diagram of a power supply circuit of a screen according to an exemplary embodiment.
[0045] Figure 3 is a working principle diagram of a thin film transistor according to an exemplary embodiment.
[0046] Figure 4 The figure is a comparison diagram before and after adjusting the reference voltage according to an exemplary embodiment.
[0047] Figure 5 The figure is a schematic diagram showing a method of obtaining a corrected output value according to an exemplary embodiment.
[0048] Figure 6 is a block diagram of an image processing apparatus according to an exemplary embodiment.
[0049] Figure 7 is a block diagram of an image processing apparatus according to an exemplary embodiment. DETAILED DESCRIPTION
[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0051] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0052] For related technologies, see Figure 2 The power supply circuit shown is a 7T1C circuit, through which the terminal screen is powered. Figure 2 The power supply circuit includes 7 thin film transistors T1 to T7, a reference voltage VSS, a power supply voltage VDD and a light emitting device OLED. The reference voltage VSS, the power supply voltage VDD and the gate voltage of the thin film transistor T1 can determine the current flowing into the light emitting device OLED, thereby affecting the luminous brightness of the light emitting device OLED, and further changing the overall brightness of the terminal screen.
[0053] See also Figure 3 The working curve diagram of the thin film transistor T1 shown in FIG. Figure 3 The abscissa is the drain voltage uds of the thin film transistor T1 , and the ordinate is the output current of the thin film transistor T1 . Figure 3 The gate voltage ugs of the thin film transistor is 3V, 4V, 5V, and 6V respectively, and the larger the gate voltage ugs is, the greater the screen brightness is. Figure 3 The middle curve is divided into a variable resistance region, a constant current region, a breakdown region and a pinch-off region. In the variable resistance region, the thin film transistor T1 can amplify current and signals; in the constant current region, the output current of the thin film transistor T1 has reached a saturation state, and even if the drain voltage uds of the thin film transistor T1 is increased, the current will not increase significantly; in the breakdown region, the performance of the thin film transistor T1 changes significantly, and the thin film transistor T1 may be damaged in the breakdown region; if in the pinch-off region, the thin film transistor T1 is in a disconnected state, the output current of the thin film transistor T1 is very small and can be ignored.
[0054] At present, the reference voltage VSS is adjusted to change its size, and then the drain voltage uds of the thin film transistor T1 is changed, so that the thin film transistor T1 can work stably in the constant current area, and the screen brightness can be stably adjusted. For example, when the gate voltage ugs is 4V, it is necessary to adjust the voltage level of the reference voltage VSS so that the drain voltage uds works at more than 2V to ensure that the thin film transistor T1 is in the constant current area; when the gate voltage is 5V, it is necessary to adjust the voltage level of the reference voltage VSS so that the drain voltage uds works at more than 3V to ensure that the thin film transistor T1 is in the constant current area; when the gate voltage is 6V, it is necessary to adjust the voltage level of the reference voltage so that the drain voltage uds works at more than 4V to ensure that the thin film transistor T1 is in the constant current area.
[0055] Voltage range Reference voltage VSS Drain voltage uds 1st gear 2 4 2nd gear 4 6
[0056] Table 1
[0057] Referring to Table 1, assuming that the voltage levels of the reference voltage VSS are level 1 and level 2, and when the voltage level is adjusted to level 1, the reference voltage VSS is adjusted to 2V, and the drain voltage ugs is adjusted to 4V; when the voltage level is adjusted to level 2, the reference voltage VSS is adjusted to 4V, and the drain voltage ugs is adjusted to 6V. In this level adjustment scheme, the reference voltage and the drain voltage are both set at a voltage level with an interval of 2V, and the variation range of the drain voltage and the reference voltage of two adjacent voltage levels is relatively large.
[0058] See also Figure 3 As shown, when the gate voltage ugs is 5V, the drain voltage uds needs to be adjusted to above 3V to ensure that the thin film transistor T1 operates in the constant current region; using the gear adjustment scheme in Table 1, the voltage gear can only be adjusted from gear 1 to gear 2, and the drain voltage uds is adjusted to 4V to ensure that the thin film transistor T1 operates in the constant current region.
[0059] In this process, since the change range of the drain voltage between two adjacent voltage levels is large, after adjusting the voltage level, the adjusted drain voltage uds (4V) is larger than the drain voltage uds (3V) that should actually be adjusted, and a larger drain voltage uds will generate more terminal power consumption. It can be understood that after the drain voltage uds increases, on the one hand, the leakage current of the thin film transistor T1 will increase significantly, and the increased leakage current will increase the terminal power consumption; on the other hand, the increase in the drain voltage ugs will increase the switching loss of the thin film transistor T1, which will also increase the terminal power consumption.
[0060] In order to reduce the power consumption of the terminal, the present disclosure proposes to establish different corrected color mapping tables for different voltage levels. In this way, the voltage variation amplitude of the reference voltage VSS corresponding to the voltage level and the voltage variation amplitude of the drain voltage ugs can be designed to be smaller, that is, the level can be set at a smaller interval. For example, taking the drain voltage as an example, in the original scheme, a voltage level is set every 2V interval, while in the present disclosure, a voltage level is set every 0.1V interval. The original voltage adjustment scheme can only adjust the drain voltage uds directly from 2V to 4V, while the present disclosure can gradually adjust the drain voltage from 2V, 2.1V, 2.2V... to 4V. When the drain voltage is adjusted to 3V, it can ensure that the thin film transistor T1 is in the constant current region when the gate voltage is 5V, without having to adjust the drain voltage to 4V as required in the original scheme to ensure that the thin film transistor T1 is in the constant current region when the gate voltage is 5V. While ensuring that the thin film transistor T1 is in the constant current region, the size of the drain voltage uds is also reduced, thereby reducing the power consumption of the terminal.
[0061] In the disclosed solution, after establishing different corrected color mapping tables for different voltage levels, the image displayed on the terminal screen can be corrected through the corresponding corrected color mapping table regardless of the voltage level of the terminal screen, and the image can be corrected to an image with better display effect without affecting the normal display of the image.
[0062] Figure 1 is a flowchart of an image processing method according to an exemplary embodiment. Figure 1 As shown, the image processing method is used in a terminal and includes the following steps.
[0063] In step S11, a corrected color mapping table corresponding to different voltage levels is obtained.
[0064] After adjusting the power supply circuit of the terminal screen to a voltage level, the corrected color mapping table corresponding to the voltage level can be determined. The drain voltage of the thin film transistor T1 in the power supply circuit is the drain voltage corresponding to the voltage level, and the reference voltage in the power supply circuit is the reference voltage corresponding to the voltage level.
[0065] Different voltage levels correspond to different reference voltages and drain voltages. Different voltage levels correspond to different reference voltages, including: one voltage level corresponds to one reference voltage, and one voltage level corresponds to multiple reference voltages. Multiple reference voltages form a reference voltage range, so one voltage level corresponds to multiple reference voltages, which can be understood as one voltage level corresponds to a reference voltage range. Similarly, different voltage levels correspond to different drain voltages, including: one voltage level corresponds to one drain voltage, and one voltage level corresponds to multiple drain voltages.
[0066] The reference voltage is used to provide energy for displaying the terminal screen. For example, the larger the reference voltage is, the more power is provided to the terminal screen.
[0067] Different voltage levels correspond to different corrected color mapping tables. The corrected color mapping table is used to correct the color values in the image displayed on the terminal screen. The corrected color mapping table is a 3D LUT table. When an image needs to be converted from one color space to another color space, the 3D LUT table can be used to map the color value of each pixel in the image. The color value includes at least one of RGB (red, green, and blue). By searching and mapping the color value in the 3D LUT table, the conversion and correction of the color space can be achieved.
[0068] The terminal stores the corrected color mapping table corresponding to different voltage levels through the memory of the application processor (AP).
[0069] In the related art, due to insufficient memory, it is impossible to store a large number of corrected color mapping tables. However, the present disclosure sets the change range of the reference voltage and drain voltage corresponding to two adjacent voltage levels to be smaller, so the number of voltage levels will be greater. Taking the reference voltage as an example, in the original scheme, when the reference voltage changes from 2 to 4, only two voltage levels are required; while in the scheme disclosed in the present disclosure, when changing from 2 to 4, it will go through multiple values such as 2.1, 2.2, 2.3, 2.4...4, so the number of corresponding voltage levels will naturally increase.
[0070] The increase in voltage levels will also result in a greater number of corrected color mapping tables. Therefore, in order to store a larger number of corrected color mapping tables, the present invention adopts an application chip and utilizes the powerful storage space of the application chip to store a larger number of corrected color mapping tables so that the terminal can obtain a matching corrected color mapping table.
[0071] In step S12, the target voltage level when the current screen displays the image to be corrected is determined.
[0072] The image to be corrected is the current frame image displayed on the current screen. The color values in the image to be corrected need to be corrected through the corrected color mapping table to obtain a corrected image.
[0073] The correspondence between the screen load parameters and the voltage level of the current screen, as well as the correspondence between the pixel brightness and the voltage level of the current screen can be pre-set, and finally the final target voltage level of the current screen is determined based on the screen load parameters and the pixel brightness.
[0074] In step S13, a target color mapping table corresponding to the target voltage level is determined from a plurality of corrected color mapping tables corresponding to different voltage levels.
[0075] A voltage level that is consistent with the target voltage level may be first screened out from a plurality of voltage levels, and then a color mapping table corresponding to the voltage level that is consistent with the target voltage level may be used as a target color mapping table.
[0076] For example, voltage level 1 corresponds to the corrected color mapping table A, voltage level 2 corresponds to the corrected color mapping table B, and when the target voltage level of the current screen is 2, the target color mapping table is the corrected color mapping table B.
[0077] In step S14, the target color mapping table is used to process the image to be corrected into a corrected image.
[0078] When the current frame of the image to be corrected is displayed on the current screen, the target color mapping table can be used to map each color value in the image to be corrected to another color value, thereby obtaining a corrected image; when the next frame of the image to be corrected is displayed, the target voltage level when the current screen displays the next frame of the image is obtained, and the target color mapping table corresponding to the target voltage level is determined, and the target color mapping table is used to process the next frame of the image to be corrected into a corrected image, thereby realizing the correction of each frame of the image to be corrected.
[0079] During this process, the terminal obtains the target color mapping table, and uses the target color mapping table to perform image correction on the image to be corrected; and the terminal sends instructions through the application chip to adjust the reference voltage of the power supply circuit of the terminal screen to the reference voltage corresponding to the target voltage level, and adjusts the drain voltage of the power supply circuit to the drain voltage corresponding to the target voltage level, thereby realizing power supply of the terminal screen.
[0080] It can be understood that in order to make the voltage change range corresponding to two adjacent voltage levels smaller, the present disclosure provides the following two aspects of support: the first aspect is to provide a corrected color mapping table, and for each image to be corrected, it is calibrated by the target color mapping table corresponding to the voltage level to achieve a normal image display effect; the second aspect is to provide an application chip, which stores a large number of corrected color mapping tables based on the powerful storage space of the application chip.
[0081] Through the above technical solution, different corrected color mapping tables are designed for different voltage levels, so that the image to be corrected can be corrected to a corrected image with better display effect through the corrected color mapping table corresponding to the voltage level. In this process, on the one hand, the reference voltage corresponding to the voltage level and the drain voltage have a small change range. After changing the voltage level, the drain voltage can be adjusted to a value that can just make the thin film transistor work in the constant current region, and the drain voltage will not be adjusted to a larger value, thereby avoiding excessive drain voltage and generating excess terminal power consumption; on the other hand, correcting the image to be corrected through the target color mapping table corresponding to the current target voltage level can also make the image display effect better.
[0082] The optional embodiments and specific embodiments involved in the above steps S11 to S14 will be introduced below.
[0083] In a specific embodiment, the corrected color mapping table corresponding to different voltage levels is determined by the following steps:
[0084] In step S21, when the reference screen displays the preset image under the reference voltage, a grayscale compensation value corresponding to the grayscale in the preset image is determined.
[0085] The reference screen is a screen whose brightness change is less than the first preset brightness and whose chromaticity change is less than the second preset brightness after the screen is continuously lit. The reference screen is a screen with better display stability.
[0086] The preset image is a reference image used by the reference screen and the current screen in the process of obtaining the corrected color mapping table.
[0087] The grayscale compensation value is the difference in grayscale when the reference screen is at the same grayscale brightness before and after the reference voltage is changed.
[0088] Assuming that the reference voltage is the first reference voltage before adjustment and the reference voltage is the second reference voltage after adjustment, it is possible to first determine the first grayscale of each pixel in the preset image displayed on the reference screen and the first grayscale brightness corresponding to each first grayscale when the reference voltage of the power supply circuit of the reference screen is the first reference voltage; then determine the second grayscale of each pixel in the preset image displayed on the reference screen and the second grayscale brightness corresponding to each second grayscale when the reference voltage of the power supply circuit of the reference screen is the second reference voltage; then subtract the first grayscale corresponding to the first grayscale brightness that is the same as the second grayscale brightness from the second grayscale corresponding to the second grayscale brightness to obtain the grayscale compensation value of the first grayscale.
[0089] For example, see Figure 4As shown, the first grayscale before adjusting the reference voltage is 90, and the first grayscale brightness is 90; the second grayscale after adjusting the reference voltage is 110, and the second grayscale brightness is 90. Since the first grayscale brightness 90 is the same as the second grayscale brightness 90, the first grayscale 90 will be subtracted from the second grayscale 110, and the grayscale compensation value corresponding to the first grayscale 90 is 20.
[0090] After the grayscale compensation value is obtained, the first grayscale 90 can be calibrated to the second grayscale 110 by using the grayscale compensation value 20 through Gamma remapping, so as to obtain the grayscale of each pixel after the reference voltage is changed.
[0091] Gamma remapping is a technology that performs nonlinear color correction on images. On terminals, images are usually encoded and transmitted in a linear manner. However, the human eye's perception of brightness is not linear, but nonlinear. This causes the same image data to be displayed on the terminal screen. When the brightness and color may deviate, in order to correct this deviation, the first grayscale before adjusting the reference voltage needs to be input into the Gamma function for correction. The Gamma function performs nonlinear mapping on the first grayscale brightness of the first grayscale in the image, so as to obtain a perception characteristic that is more in line with the human eye, thereby making the image on the terminal closer to the actual scene in terms of color and brightness.
[0092] In step S22, the first color value of the current screen when displaying the preset image at the reference voltage is calibrated through the color mapping table to be corrected to obtain a first output value; the second color value of the reference screen when displaying the preset image at the reference voltage is calibrated through the color mapping table to be corrected to obtain a second output value.
[0093] The first output value and the second output value can represent the gate voltage of the current screen and the reference screen when displaying the preset image of the same brightness. For example, if the first output value is large or the second output value increases, the gate voltage will also increase. The gate voltage reflects the luminous efficiency of the screen. The higher the gate voltage, the lower the luminous efficiency. The lower the luminous efficiency means the low electro-optical conversion efficiency. Because when multiple terminal screens display the same brightness, the higher the gate voltage, the greater the current, and the more power the terminal consumes. In other words, the terminal will consume more power to display the preset image of the same brightness, so the electro-optical conversion rate is low.
[0094] The color mapping table to be corrected is a 3D LUT table, which will not be described in detail here.
[0095] For example, the first color value (RGB are 100 100 100 respectively) of a pixel in the preset image displayed on the current screen is corrected by the color mapping table to be corrected, and a first output value (RGB are 255255255 respectively) is obtained; the second color value (RGB are 110 110 110 respectively) of the same pixel in the preset image displayed on the reference screen is corrected by the color mapping table to be corrected, and a second output value (RGB are 250 253 252 respectively) is obtained.
[0096] In step S23, a gain value is obtained according to the first output value and the second output value.
[0097] The second output value can be subtracted from the first output value to obtain a gain value, which is the difference between the two RGB values. The difference between the first output value and the second output value also reflects the voltage difference between the gate voltage of the power supply circuit of the current screen and the gate voltage of the power supply circuit of the reference screen.
[0098] Continuing with the example in step S22, the second output value (RGB are 250, 253, 252 respectively) may be subtracted from the first output value (RGB are 255, 255, 255 respectively) to obtain gain values gainR, gainG, and gainB of 5, 2, and 3 respectively.
[0099] After obtaining the gain value, since the gain value is too large, the gain value may be divided by a preset value, for example, the preset value is 10, and the gain values gainR, gainG and gainB are obtained as 0.5, 0.2 and 0.3 respectively.
[0100] In step S24, the grayscale compensation value is corrected by using a gain value to obtain a target compensation value, wherein the gain value is used to represent the difference between the reference screen and the current screen when displaying the same preset image.
[0101] The target compensation value can be obtained by multiplying the grayscale compensation value by the gain value. The target compensation value is the target compensation value of the three color channels RGB. The target compensation value is the compensation value obtained after taking into account the difference between the current screen and the reference screen when displaying a preset image of the same brightness based on the grayscale compensation value.
[0102] Continuing with the example in step S21 and the example in step S23 , for example, the grayscale compensation value is 20, and the gain values gainR, gainG and gainB are 0.5, 0.2, and 0.3 respectively, then the target compensation values are 10, 4, and 6.
[0103] In step S25, the target compensation value is used to compensate the grayscale in the preset image displayed on the reference screen to obtain a corrected output value.
[0104] The sum of the grayscale in the preset image displayed by the reference screen under the reference voltage and the target compensation value can be used as the corrected output value, and a plurality of second color values and the corrected output values corresponding to the plurality of second color values constitute the corrected color mapping table. It can be understood that the second color value is the color value of the current screen input into the color mapping table to be corrected, and the corrected output value is the color value of the current screen after being corrected by the corrected color mapping table.
[0105] Continuing with the example in the above steps, taking the target compensation values as 10, 4, 6, and the grayscale of the pixels in the preset image displayed on the reference screen under the reference voltage as 100, the corrected output values are 110, 104, 106, and the second color value before being input into the color correction table to be corrected is 100 100100, then the input values in the corrected color mapping table are 100, 100, 100, and the corresponding output values of the corrected color mapping table should be 110, 104, 106.
[0106] In the above example, only when the grayscale of the reference screen is 100, for any other grayscale between 0 and 255, the above method can be used to obtain the corrected output value corresponding to each second color value, thus obtaining the corrected color mapping table corresponding to the current reference voltage.
[0107] In the above steps S21 to S25, the corrected color mapping table can be obtained by setting the current screen and the reference screen at the same reference voltage of 1.8V. The corrected color mapping table can also be obtained by setting the current screen and the reference screen at different reference voltages such as 1.9V, 2.0V, 2.1V, 2.2V, etc.
[0108] After obtaining the corrected color mapping table, the color mapping table to be corrected can be replaced with the corrected color mapping table, and the corrected color mapping table can be used to correct the image to be corrected displayed on the current screen. The RGB input value of the corrected color mapping table can be 17*17*17, and the RGB output value is also 17*17*17. It can be understood that the corrected color mapping table has a total of 4913 rows of RGB input values and 4913 rows of RGB output values, and the interval between two adjacent rows of RGB is 17.
[0109] Since the RGB value of the current pixel may not exist in the corrected color mapping table, the output value corresponding to the RGB value of the current pixel can be obtained by linear interpolation.
[0110] Input value Output value 0,0,0 0,0,2 0,0,17 0,0,19 17,0,17 17,0,19
[0111] Table 2
[0112] For example, referring to the corrected color mapping table shown in Table 2, if the RGB value of a pixel in the current screen is 00 14, which does not exist in the corrected color mapping table shown in Table 2, 0 0 14 can be linearly interpolated to obtain an output value of 0 0 16.
[0113] Through the above technical scheme, the grayscale compensation value of the reference screen can be obtained first, and then the grayscale compensation value can be compensated by using the gain value of the difference between the reference screen and the current screen when displaying a preset image of the same brightness to obtain the target compensation value, and then the target compensation value can be used to compensate the grayscale of the reference screen to obtain the output value in the corrected color mapping table, and the output value in the corrected color mapping table is the output value that should be output when the current screen is displayed.
[0114] In this process, the grayscale of the reference screen can be compensated using the grayscale compensation value, and the present application also adds a gain value, that is, the grayscale compensation value is corrected using the gain value, so that the obtained target compensation value can reflect the difference between the reference screen and the current screen; and then the target compensation value of the difference between the reference screen and the current screen is added on the basis of the grayscale of the reference screen, so that the display parameters of the reference screen with better display effect can be used to obtain the display parameters of the current screen.
[0115] Since the display parameters of the current screen are obtained based on the display parameters of the reference screen, the display parameters of the current screen can be made close to the standards of the display parameters of the reference screen, which makes up for the shortcomings of the display of the current screen and makes the display effect of the current screen better.
[0116] In a specific embodiment, the target voltage level of the current screen is determined by the following steps:
[0117] In step S31, the screen load is obtained according to the color values of the pixels when the current screen displays the image to be corrected, the weights corresponding to the color values, and the total number of screen pixels.
[0118] RGB (red, green, and blue) and grayscale are two common color representation methods in image processing.
[0119] RGB represents color by decomposing it into a combination of three basic colors: red, green, and blue. Each pixel consists of a red, green, and blue intensity value, which determine the color of the pixel. The value range of each color channel is 0 to 255, where 0 represents the absence of light of that color and 255 represents the maximum intensity of that color.
[0120] Grayscale is a way of representing a color image converted to a black and white image. In a grayscale image, each pixel is represented by a grayscale value, which represents the brightness or intensity of light. The grayscale value usually ranges from 0 to 255, where 0 represents black and 255 represents white.
[0121] The relationship between RGB and grayscale is that when converting an RGB image to a grayscale image, the grayscale value can be calculated by taking the average or weighted average of the RGB color channels. RGB and grayscale are different representations. Grayscale images only contain brightness information, while RGB images contain rich color information.
[0122] The grayscale corresponding to the pixel can be obtained according to the color value of the pixel when the current screen displays the image to be corrected and the weight corresponding to the color value, and then the screen load is obtained by dividing the sum of multiple grayscales by the total number of screen pixels.
[0123]
[0124] Among them, N is the screen load, n is the total number of screen pixels, Ri, Gi, Bi are the R, G, B values of a certain pixel, a, b, c are the weights of the R, G, B values, for example, a=0.25, B=0.25, c=0.5, and a, b, c can be updated with the iteration of the luminescent material.
[0125] The weight can be determined according to the electro-optical conversion efficiency of the current screen. For example, the electro-optical conversion efficiency ratio of red, green and blue is 2:1:1, that is, the electro-optical conversion efficiency of red is higher than that of green and blue, indicating that the energy required for red is lower. In this case, a lower weight will be assigned to the R value (red), so that the R value corrected by the weight can be close to the remaining G value (green) and B value (blue), so that the energy provided by the reference voltage to the three colors of red, green and blue can be closer.
[0126] In step S32, a first level corresponding to the pixel brightness and a second level corresponding to the screen load are determined.
[0127] Pixel brightness (dbv) refers to the brightness unit of the terminal screen.
[0128] The corresponding relationship between the pixel brightness and the first gear level may be preset first.
[0129] Pixel brightness First gear 0-100 5 gears 100-200 4 gears 200-300 3 positions 300-400 2 positions 400-500 1st gear
[0130] Table 3
[0131] For example, referring to Table 3, it can be assumed that the range of pixel brightness is 1-500, and the range of the first gear is 5-1. Table 3 shows that there is a negative correlation between pixel brightness and the first gear. The reason is that: the smaller the gear setting of the present disclosure is, the larger the reference voltage and the drain voltage are. Corresponding to Table 3, the greater the pixel brightness is, the greater the screen brightness is, and more energy is needed at this time, so the first gear will be smaller, and accordingly, the reference voltage will be larger, thereby providing more energy for increasing the screen brightness.
[0132] The corresponding relationship between the screen load and the second gear position may also be preset.
[0133] Screen Load Second gear 0-85 5 gears 86-170 3 positions 170-255 1st gear
[0134] Table 4
[0135] For example, referring to Table 4, it can be assumed that the range of the screen load is 0-255, the range of the second gear is 5-1, and the gear gradient is 2. Table 4 shows that the screen load is negatively correlated with the second gear, because the larger the screen load, the more energy is required, and the smaller the second gear will be. Correspondingly, the reference voltage will be larger, thereby providing more energy for the increase of the screen load.
[0136] In step S33, the sum of the first gear and the second gear is used as the target voltage gear.
[0137] The first gear is positively correlated with the target voltage gear, the second gear is positively correlated with the target voltage gear, and the first gear plus the second gear is the target voltage gear.
[0138] The present disclosure may assume that the relationship between the target voltage level and the reference voltage is:
[0139] Target voltage range Reference voltage 1 2.7 2 2.6 3 2.5 4 2.4 5 2.3 6 2.2 7 2.1 8 2.0 9 1.9 10 1.8
[0140] Table 5
[0141] Please refer to Table 5, the sum of the first gear and the second gear can be any one of the target voltage gears 1 to 10, and the voltage variation amplitude corresponding to two adjacent gears is 0.1, which is greatly reduced compared to the voltage variation amplitude of 2 in the related art.
[0142] In the related art, if the adjustment amplitude of the reference voltage is set larger, it will have a greater impact on the high grayscale. The reason is that the drain voltage is equal to the sum of the power supply voltage and the reference voltage. The reference voltage is used to provide energy for the terminal screen to emit light. When the power supply voltage remains unchanged, the smaller the reference voltage, the smaller the grayscale, and the darker the screen brightness. For low grayscale, the brightness of the low grayscale itself is very dark, and the energy required is very low, so the large adjustment amplitude of the reference voltage does not have much impact on the low grayscale. For example, the original low grayscale 10 corresponds to a grayscale brightness of 5. After the low grayscale 10 is greatly reduced to 0, the brightness of the low grayscale display is still very dark and will not change much; for high grayscale, the high grayscale is very bright. If the high grayscale is 255, after the high grayscale 255 is greatly reduced to 240, the high grayscale will have a large brightness change, which will have a greater impact on the high grayscale.
[0143] Based on this, the present disclosure adopts screen load to evaluate the number of high grayscale pixels (high grayscale pixels refer to pixels where high grayscale is located). The greater the screen load, the greater the number of high grayscale pixels. At this time, the larger the target voltage level calculated, the smaller the corresponding reference voltage, and the overall display brightness of the screen can be reduced, so that the brightness of the high grayscale pixels is reduced, and the overall display effect of the screen becomes darker. Then, even if the grayscale of the high grayscale pixels is reduced, the overall display effect is less affected. When the screen load is small, it indicates that the number of high grayscale pixels is small. At this time, the corresponding target voltage level calculated is small and the reference voltage is large. Since the number of high grayscales is small, even if the reference voltage is reduced a little, it will not have a significant impact on the display effect.
[0144] It can be understood that the smaller the reference voltage, the lower the overall display brightness of the screen, so the high grayscale pixels are darker than before the reference voltage is adjusted. Therefore, even if the grayscale of the high grayscale pixels is lowered and the grayscale brightness becomes darker, it will not have a significant impact on the brightness of the high grayscale pixels, and the overall display effect will not be greatly affected.
[0145] In the related art, the target voltage level is determined only based on the pixel brightness. The present application additionally considers the screen load. After the screen load is increased, the determined target voltage level will be larger than the target voltage level determined only based on the pixel brightness, and the obtained reference voltage will be smaller than the reference voltage obtained only based on the pixel brightness. Naturally, when the reference voltage is smaller, the power consumption will be further reduced.
[0146] Figure 6 is a block diagram of an image processing device according to an exemplary embodiment. Figure 6 The image processing device 600 includes an acquisition module 610 , a determination module 620 , a screening module 630 and a first calibration module 640 .
[0147] The acquisition module 610 is configured to acquire a corrected color mapping table corresponding to different voltage levels; wherein different voltage levels correspond to different reference voltages, the reference voltages are used to provide energy for screen display, and the corrected color mapping table is used to correct the color values in the image;
[0148] A determination module 620 is configured to determine a target voltage level when the current screen displays the image to be corrected;
[0149] A screening module 630 is configured to determine a target color mapping table corresponding to the target voltage level from among a plurality of corrected color mapping tables corresponding to different voltage levels;
[0150] The first calibration module 640 is configured to process the image to be corrected into a corrected image using the target color mapping table.
[0151] Optionally, the image processing device 600 includes:
[0152] a grayscale compensation value determination module, configured to determine a grayscale compensation value corresponding to a grayscale in a preset image when a reference screen displays the preset image under the reference voltage;
[0153] a correction module configured to correct the grayscale compensation value by using a gain value to obtain a target compensation value, wherein the gain value is used to represent a difference between the reference screen and the current screen when displaying the same preset image;
[0154] The compensation module is configured to use the target compensation value to compensate the grayscale in the preset image displayed on the reference screen to obtain a corrected output value; wherein the first color value in the preset image displayed by the current screen under the reference voltage and the corresponding corrected output value constitute the corrected color mapping table.
[0155] Optionally, the image processing device 600 includes:
[0156] A second calibration module is configured to calibrate the first color value through the color mapping table to be corrected to obtain a first output value; calibrate the second color value of the reference screen when the preset image is displayed under the reference voltage through the color mapping table to be corrected to obtain a second output value;
[0157] The gain value determination module is configured to obtain a gain value according to the first output value and the second output value.
[0158] Optionally, the correction module includes:
[0159] The first calculation submodule is configured to use the product of the grayscale compensation value and the gain value as the target compensation value.
[0160] Optionally, the compensation module includes:
[0161] The second calculation submodule is configured to take the sum of the grayscale in the preset image displayed on the reference screen and the target compensation value as the corrected output value.
[0162] Optionally, the determination module 620 includes:
[0163] The first determination submodule is configured to determine the target voltage level according to the pixel brightness and screen load when the current screen displays the image to be corrected.
[0164] Optionally, the image processing device 600 includes:
[0165] The screen load determination module is configured to obtain the screen load according to the color value of the pixel when the current screen displays the image to be corrected, the weight corresponding to the color value, and the total number of screen pixels.
[0166] Optionally, the first determining submodule includes:
[0167] a gear calculation submodule, configured to determine a first gear corresponding to the pixel brightness and a second gear corresponding to the screen load;
[0168] The second determining submodule is configured to use the sum of the first gear and the second gear as the target voltage gear.
[0169] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0170] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the image processing method provided by the present disclosure are implemented.
[0171] Figure 7 is a block diagram of an image processing apparatus 700 according to an exemplary embodiment. For example, the apparatus 700 may be an electronic device such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0172] Reference Figure 7 , the device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output interface 712 , a sensor component 714 , and a communication component 716 .
[0173] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned image processing method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0174] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0175] The power supply component 706 provides power to the various components of the device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.
[0176] The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0177] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the device 700 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0178] The input / output interface 712 provides an interface between the processing component 702 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0179] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, the sensor assembly 714 can also detect the position change of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration / deceleration of the device 700, and the temperature change of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0180] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0181] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned image processing method.
[0182] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by the processor 720 of the device 700 to complete the above-mentioned image processing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0183] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned image processing method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, such as the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction may be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned image processing method may be implemented; alternatively, the integrated circuit or chip may receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned image processing method.
[0184] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0185] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An image processing method, characterized in that: include: Obtaining a corrected color mapping table corresponding to different voltage levels; wherein different voltage levels correspond to different reference voltages, the reference voltage is used to provide energy for screen display, and the corrected color mapping table is used to correct the color value in the image; Determine the target voltage level when the current screen displays the image to be corrected; Determining a target color mapping table corresponding to the target voltage level from a plurality of corrected color mapping tables corresponding to different voltage levels; The target color mapping table is used to process the image to be corrected into a corrected image.
2. The method according to claim 1, characterized in that: The method further comprises: Determining a grayscale compensation value corresponding to a grayscale in the preset image when the reference screen displays the preset image under the reference voltage; The grayscale compensation value is corrected by using a gain value to obtain a target compensation value, wherein the gain value is used to represent the difference between the reference screen and the current screen when displaying the same preset image; The target compensation value is used to compensate the grayscale in the preset image displayed on the reference screen to obtain a corrected output value; wherein the first color value in the preset image displayed by the current screen under the reference voltage and the corresponding corrected output value constitute the corrected color mapping table.
3. The method according to claim 2, characterized in that The method further comprises: Calibrate the first color value through the color mapping table to be corrected to obtain a first output value; calibrate the second color value of the reference screen when displaying the preset image under the reference voltage through the color mapping table to be corrected to obtain a second output value; A gain value is obtained according to the first output value and the second output value.
4. The method according to claim 2, characterized in that: The grayscale compensation value is corrected by using the gain value to obtain a target compensation value, including: The product of the grayscale compensation value and the gain value is used as the target compensation value.
5. The method according to claim 2, characterized in that: The target compensation value is used to compensate the grayscale in the preset image displayed on the reference screen to obtain a corrected output value, including: The sum of the grayscale in the preset image displayed on the reference screen and the target compensation value is used as the corrected output value.
6. The method according to claim 1, characterized in that Determine the target voltage level when the current screen displays the image to be corrected, including: The target voltage level is determined according to the pixel brightness and screen load when the current screen displays the image to be corrected.
7. The method according to claim 6, characterized in that The method further comprises: The screen load is obtained according to the color values of pixels when the current screen displays the image to be corrected, the weights corresponding to the color values, and the total number of screen pixels.
8. The method according to claim 6, characterized in that Determining the target voltage level according to the pixel brightness and screen load when the current screen displays the image to be corrected includes: Determine a first gear corresponding to the pixel brightness and a second gear corresponding to the screen load; The sum of the first gear and the second gear is used as the target voltage gear.
9. An image processing device, characterized in that: include: An acquisition module is configured to acquire a corrected color mapping table corresponding to different voltage levels; wherein different voltage levels correspond to different reference voltages, the reference voltages are used to provide energy for screen display, and the corrected color mapping table is used to correct the color values in the image; A determination module, configured to determine a target voltage level when the current screen displays the image to be corrected; A screening module is configured to determine a target color mapping table corresponding to the target voltage level from a plurality of corrected color mapping tables corresponding to different voltage levels; The first calibration module is configured to process the image to be corrected into a corrected image using the target color mapping table.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Organic light-emitting diode display device and driving method thereof
CN103177693A
Environment color self-adaption device and method based on electrochromic device
CN105676556A
Display device and driving method thereof
CN110111731A
Display compensation method and display compensation device
CN113948045A
Display device
CN114519973A