Screen brightness calibration method and device, medium and electronic equipment
By building a blank form and changing its background color to generate grayscale images with different grayscale values, the problem of low screen brightness calibration efficiency is solved, and the effect of quickly calibrating screen brightness is achieved.
Patent Information
- Application Number
- CN202311786768.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2025-06-24
AI Technical Summary
In actual production lines and R&D processes, calibration screen brightness requires more grayscale images to measure, which takes a long time, resulting in low screen calibration efficiency.
By responding to the target grayscale number specified by the user, a blank form is constructed, and a target grayscale image with different grayscale values is generated by changing the background color of the blank form according to the target grayscale number, the brightness value of each grayscale image is obtained, and the screen brightness is calibrated according to the grayscale value and brightness value.
This method can quickly generate grayscale images, shorten the time for measuring grayscale images, thereby quickly calibrating screen brightness and improving screen brightness calibration efficiency during actual production and development.
Smart Images

Figure CN120199203A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technologies, and in particular, to a method, apparatus, medium, and electronic device for calibrating screen brightness. Background Art
[0002] Screens are widely used in devices such as computers, smartphones, TVs, tablets, game consoles, etc. With the continuous development and innovation of screen technologies, people's requirements for screen display effects are getting higher and higher. The brightness of a screen is a particularly important characteristic of screen display properties. The screen brightness can be calibrated according to the gray values and brightness values of grayscale images. However, in actual production lines and the R & D process, a large number of grayscale images need to be measured for calibrating the screen brightness, which takes a long time. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a method, apparatus, medium, and electronic device for calibrating screen brightness.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a method for calibrating screen brightness, the method including:
[0005] In response to receiving a specified number of target gray levels by a user, constructing a target blank form;
[0006] Generating grayscale images with the specified number of target gray levels and different gray values by changing the background color of the blank form according to the specified number of target gray levels;
[0007] Obtaining the brightness value corresponding to each of the grayscale images;
[0008] Calibrating the screen brightness according to the gray value and the brightness value of each of the grayscale images.
[0009] Optionally, the calibrating the screen brightness according to the gray value and the brightness value of each of the grayscale images includes:
[0010] Determining the gamma curve of the screen according to the gray value and the brightness value of each of the grayscale images;
[0011] Calibrating the screen brightness according to the gamma curve of the screen.
[0012] Optionally, the calibrating the screen brightness according to the gamma curve of the screen includes:
[0013] In the case where it is determined according to the gamma curve of the screen that the screen brightness display is abnormal, determining the standard screen brightness corresponding to each gray value according to a standard gamma curve;
[0014] For each grayscale image corresponding to each grayscale value, when it is determined that the screen brightness is lower than the standard screen brightness, increase the power supply voltage or current of the screen;
[0015] When it is determined that the screen brightness is higher than the standard screen brightness, decrease the power supply voltage or current of the screen.
[0016] Optionally, the determining that the screen brightness display is abnormal according to the gamma curve of the screen includes:
[0017] Obtain a preset standard gamma curve;
[0018] When the standard gamma curve does not match the gamma curve of the screen, determine that the screen brightness display is abnormal.
[0019] Optionally, the generating grayscale images with the target number of grayscale values by changing the background color of the blank form according to the target number of grayscale levels includes:
[0020] Determine the target number of different grayscale values according to the target number of grayscale levels;
[0021] Generate a grayscale image corresponding to each grayscale value by changing the background color of the blank form, so as to obtain grayscale images with the target number of different grayscale values.
[0022] Optionally, the determining the target number of different grayscale values according to the target number of grayscale levels includes:
[0023] Obtain a preset lower grayscale limit value and an upper grayscale limit value;
[0024] Divide the grayscale interval corresponding to the lower grayscale limit value and the upper grayscale limit value into the target number of grayscale sub-intervals;
[0025] Determine the target number of different grayscale values according to the target number of grayscale sub-intervals.
[0026] Optionally, the determining the target number of different grayscale values according to the target number of grayscale sub-intervals includes:
[0027] Determine a grayscale value from each grayscale sub-interval to obtain the target number of different grayscale values corresponding to the target number of grayscale sub-intervals.
[0028] According to a second aspect of the embodiments of the present disclosure, there is provided a screen brightness calibration device, the device includes:
[0029] A response module, configured to construct a target blank form in response to receiving the number of target gray levels specified by a user;
[0030] A generation module, configured to generate grayscale images with the number of target gray levels of different gray values by changing the background color of the blank form according to the number of target gray levels;
[0031] An acquisition module, configured to acquire the brightness value corresponding to each grayscale image;
[0032] A calibration module, configured to calibrate the screen brightness according to the gray value and the brightness value of each grayscale image.
[0033] Optionally, the calibration module is configured to:
[0034] Determine the gamma curve of the screen according to the gray value and the brightness value of each grayscale image;
[0035] Calibrate the screen brightness according to the gamma curve of the screen.
[0036] Optionally, the calibration module is configured to:
[0037] In the case where it is determined that the screen brightness display is abnormal according to the gamma curve of the screen, determine the standard screen brightness corresponding to each gray value according to the standard gamma curve;
[0038] For the grayscale image corresponding to each gray value, in the case where it is determined that the screen brightness is lower than the standard screen brightness, increase the power supply voltage or power supply current of the screen;
[0039] In the case where it is determined that the screen brightness is higher than the standard screen brightness, decrease the power supply voltage or power supply current of the screen.
[0040] Optionally, the calibration module is configured to:
[0041] Acquire a preset standard gamma curve;
[0042] In the case where the standard gamma curve does not match the gamma curve of the screen, determine that the screen brightness display is abnormal.
[0043] Optionally, the generation module is configured to:
[0044] Determine the number of target gray levels of different gray values according to the number of target gray levels;
[0045] Generate a grayscale image corresponding to each gray value by changing the background color of the blank form, so as to obtain grayscale images with the number of target gray levels of different gray values.
[0046] Optionally, the generating module is configured to:
[0047] Obtain a preset lower grayscale limit value and an upper grayscale limit value;
[0048] Divide the grayscale interval corresponding to the lower grayscale limit value and the upper grayscale limit value into the target number of grayscale sub - intervals;
[0049] Determine the target number of different grayscale values according to the target number of grayscale sub - intervals.
[0050] Optionally, the generating module is configured to:
[0051] Determine a grayscale value from each grayscale sub - interval to obtain the target number of different grayscale values corresponding to the target number of grayscale sub - intervals.
[0052] According to a third aspect of the embodiments of the present disclosure, there is provided a non - transitory computer - readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the method according to the first aspect of the embodiments of the present disclosure are implemented.
[0053] According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0054] A memory, on which a computer program is stored;
[0055] A processor, configured to execute the computer program in the memory to implement the steps of the method according to the first aspect of the embodiments of the present disclosure.
[0056] Through the above - mentioned technical solutions, for the screen brightness calibration method provided by the present disclosure, after receiving the target number of grayscale levels specified by the user, a blank form is constructed, and according to the target number of grayscale levels, a grayscale image with the target number of different grayscale values is generated by changing the background color of the blank form, the brightness value corresponding to each grayscale image is obtained, and the screen brightness is calibrated according to the grayscale value and the brightness value of each grayscale image. In this way, by changing the background color of the blank form to generate a grayscale image with the target number of different grayscale values, a grayscale image can be quickly generated, thereby shortening the time for measuring the grayscale image, and thus quickly calibrating the screen brightness, effectively improving the screen brightness calibration efficiency in the actual production and R & D process.
[0057] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings here are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0059] Figure 1 is a flowchart of a screen brightness calibration method shown according to an exemplary embodiment;
[0060] Figure 2 is according to Figure 1 a flowchart of a screen brightness calibration method shown according to the illustrated embodiment;
[0061] Figure 3 is according to Figure 2 a flowchart of a screen brightness calibration method shown according to the illustrated embodiment;
[0062] Figure 4 is according to Figure 3 a flowchart of a screen brightness calibration method shown according to the illustrated embodiment;
[0063] Figure 5 is according to Figure 1 a flowchart of another screen brightness calibration method shown according to the illustrated embodiment;
[0064] Figure 6 is according to Figure 5 a flowchart of a screen brightness calibration method shown according to the illustrated embodiment;
[0065] Figure 7 is a block diagram of a screen brightness calibration device shown according to an exemplary embodiment;
[0066] Figure 8 is a block diagram of a device for screen brightness calibration shown according to an exemplary embodiment;
[0067] Figure 9 is a block diagram of a device for screen brightness calibration shown according to an exemplary embodiment. Detailed Description of the Invention
[0068] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0069] It should be noted that all actions of obtaining signals, information, or data in this disclosure are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0070] Before introducing the specific embodiments of the present disclosure in detail, the application scenarios of the present disclosure are described as follows. The present disclosure can be applied to the scenario of calibrating the screen brightness display. The brightness of the screen is a particularly important feature of the screen display characteristics. The screen brightness can be calibrated according to the gray value and brightness value of the grayscale image. In the related art, the method of generating a grayscale image is as follows: according to the specified number of target gray levels, determine the number of target gray levels of different gray values, generate the number of target gray levels of new forms according to the specified number of target gray levels, and generate a grayscale image with the number of target gray levels of different gray values according to the number of target gray levels of different gray values and the number of target gray levels of new forms. In this way, by generating the number of target gray levels of new forms to generate the number of target gray levels of grayscale images, the process of generating the number of target gray levels of grayscale images takes a long time. In actual production lines and R & D processes, a large number of grayscale images need to be measured for calibrating the screen brightness. Using the method of generating grayscale images in the prior art to calibrate the screen brightness is time-consuming and will result in low efficiency of screen calibration in the actual production and R & D processes.
[0071] To solve the above technical problems, the present disclosure provides a method for calibrating screen brightness. After receiving the specified number of target gray levels designated by the user, a blank form is constructed, and the number of target gray levels of grayscale images with different gray values is generated by changing the background color of the blank form according to the number of target gray levels. The brightness value corresponding to each grayscale image is obtained, and the screen brightness is calibrated according to the gray value and the brightness value of each grayscale image. In this way, by changing the background color of the blank form to generate the number of target gray levels of grayscale images with different gray values, grayscale images can be generated quickly, and then the time for measuring grayscale images can be shortened, so that the screen brightness can be calibrated quickly, effectively improving the efficiency of screen brightness calibration in the actual production and R & D processes.
[0072] The following elaborates on the specific embodiments of the present disclosure in conjunction with specific drawings.
[0073] Figure 1 is a flowchart of a method for calibrating screen brightness shown according to an exemplary embodiment. As Figure 1 shown, the method for calibrating screen brightness is used in a terminal and includes the following steps.
[0074] Step 101, in response to receiving the specified number of target gray levels designated by the user, construct a target blank form.
[0075] Among them, the number of target gray levels can be understood as the number of images with different gray levels.
[0076] In this step, after receiving the instruction of the user specifying the target grayscale number, a blank window is constructed in the image refresh interface as a target blank window to be used. The target blank window can be understood as a window without any controls and display content.
[0077] Step 102 : generating grayscale images with the target number of grayscale values by changing the background color of the blank window according to the target number of grayscale values.
[0078] The grayscale image includes multiple images of different grayscale levels, and each grayscale level may include one or more grayscale values.
[0079] In this step, the target number of different grayscale values are determined according to the target grayscale number, and a grayscale image corresponding to each grayscale value is generated by changing the background color of the blank window to obtain grayscale images with the target number of different grayscale values.
[0080] Step 103: Obtain the brightness value corresponding to each of the grayscale images.
[0081] The brightness value may be measured by a preset brightness detection device. For example, during the process of screen refreshing to generate different grayscale images, the brightness value of the corresponding grayscale image may be acquired by a color brightness detection probe.
[0082] Step 104: calibrate the screen brightness according to the grayscale value of each grayscale image and the brightness value.
[0083] In this step, the brightness value corresponding to the grayscale image represents the screen brightness corresponding to the grayscale image, that is, each grayscale image can show different display effects under different brightness, so it can be determined whether the screen brightness is abnormal by the brightness value of each grayscale image. In the case where the screen brightness value corresponding to the grayscale image does not match the standard screen brightness value corresponding to the grayscale image (including too bright, too dark, etc.), it can be determined that the screen brightness corresponding to the grayscale image is abnormal. In the case where it is determined that the screen brightness corresponding to the grayscale image is abnormal, the brightness value corresponding to the grayscale image can be adjusted according to the brightness value corresponding to the grayscale image and the standard screen brightness value corresponding to the grayscale image, and the screen brightness corresponding to the grayscale image can be calibrated by adjusting the power supply voltage or power supply current of the screen. According to the screen brightness value corresponding to each grayscale image and the standard screen brightness value corresponding to each grayscale image, the screen brightness corresponding to each grayscale image can be calibrated.
[0084] The above technical solution can generate grayscale images with the target number of gray levels having different grayscale values by changing the background color of the blank form, can quickly generate grayscale images, and thus can shorten the time for measuring grayscale images, and thereby can quickly calibrate the screen brightness, effectively improving the efficiency of screen brightness calibration in the actual production and R & D process.
[0085] Figure 2 is a screen brightness calibration method shown according to Figure 1 the embodiment shown, as Figure 2 shown, Figure 1 calibrating the screen brightness according to the grayscale value of each grayscale image and the brightness value as described in step 104 in
[0086] Step 1041: Determine the gamma curve of the screen according to the grayscale value of each grayscale image and the brightness value.
[0087] Among them, the gamma curve of the screen can reflect the brightness display effect of the screen.
[0088] In this step, taking the grayscale value of the grayscale image as the abscissa and the brightness value corresponding to the grayscale image as the ordinate, a rectangular coordinate system is established. The grayscale value and brightness value of a grayscale image correspond to a point in this rectangular coordinate system. Connecting the target number of points corresponding to the target number of grayscale images can draw an initial gamma curve. Using a curve fitting method, such as the least squares method, etc., to approximate the fitting curve to the initial gamma curve can obtain a more accurate and continuous gamma curve of the screen.
[0089] Step 1042: Calibrate the screen brightness according to the gamma curve of the screen.
[0090] In this step, a preset standard gamma curve can be obtained. The standard gamma curve includes the standard screen brightness corresponding to each grayscale value. There is a backlight unit in the screen display. By changing the voltage or current of the backlight unit, the brightness of the screen can be adjusted. According to the gamma curve of the screen, the voltage value or current value of the backlight unit of the screen can be determined. By adjusting the backlight voltage value or current value of the screen, the actual display brightness of the gamma curve of the screen is made as close as possible to the standard screen brightness of the standard gamma curve.
[0091] Figure 3 is a flowchart of a screen brightness calibration method shown according to Figure 2 the embodiment shown, as Figure 3 shown, Figure 2 calibrating the screen brightness according to the gamma curve of the screen as described in step 1042 in
[0092] S1. When it is determined that the screen brightness display is abnormal according to the gamma curve of the screen, determine the standard screen brightness corresponding to each gray value according to the standard gamma curve.
[0093] Among them, the gamma curve of the screen includes the screen brightness corresponding to each gray value, and the standard gamma curve includes the standard screen brightness corresponding to each gray value.
[0094] S2. For the gray image corresponding to each gray value, when it is determined that the screen brightness is lower than the standard screen brightness, increase the power supply voltage or current of the screen.
[0095] In this step, according to the gamma curve of the screen, obtain the screen brightness corresponding to the gray image, and according to the standard gamma curve, obtain the standard screen brightness corresponding to the gray image. When it is determined that the screen brightness is lower than the standard screen brightness, by increasing the power supply voltage or current of the backlight unit in the screen display, increase the screen display brightness.
[0096] S3. For the gray image corresponding to each gray value, when it is determined that the screen brightness is higher than the standard screen brightness, reduce the power supply voltage or current of the screen.
[0097] In this step, according to the gamma curve of the screen, obtain the screen brightness corresponding to the gray image, and according to the standard gamma curve, obtain the standard screen brightness corresponding to the gray image. When it is determined that the screen brightness is higher than the standard screen brightness, by reducing the power supply voltage or current of the backlight unit in the screen display, reduce the screen display brightness.
[0098] The above technical solution can adjust the screen display brightness by adjusting the voltage or current of the backlight unit in the screen display, so as to effectively calibrate the screen brightness, and further effectively improve the display effect of the screen.
[0099] Figure 4 is according to Figure 3 shown in the flowchart of a screen brightness calibration method shown in the embodiments, as Figure 4 shown, Figure 3 In step S1 described above, determining that the screen brightness display is abnormal according to the gamma curve of the screen may include:
[0100] S11. Obtain a preset standard gamma curve.
[0101] Among them, the standard gamma curve is a preset value in the screen factory or industry standard document.
[0102] Exemplarily, the gamma curves of most common televisions and computer monitors conform to a distribution with γ = 2.2, and the gamma curves of some professional graphics and image processing applications conform to a distribution with γ = 2.4.
[0103] S12. When the standard gamma curve does not match the gamma curve of the screen, determine that the screen brightness display is abnormal.
[0104] In this step, compare the brightness values corresponding to the gray levels in the standard gamma curve and the gamma curve of the screen, calculate the difference value between the brightness value corresponding to the gray level in the standard gamma curve and the brightness value corresponding to the gray level in the gamma curve of the screen. This difference value can be an absolute value or a percentage. When the difference value exceeds the preset value, it can be determined that the screen brightness display is abnormal.
[0105] Exemplarily, the preset value is 0.05 or 5%. When the standard gamma curve has a corresponding brightness value of 0.8 at a gray level of 253, and the gamma curve of the screen has a corresponding brightness value of 0.6 at a gray level of 253, the calculated difference value is 0.2 or 75%. At this time, since the difference value is greater than the preset value, it can be determined that the screen display is abnormal.
[0106] The above technical solution can determine that the screen brightness display is abnormal by comparing the standard gamma curve with the gamma curve of the screen, providing a basis for subsequent calibration of the screen brightness.
[0107] Figure 5 is based on Figure 1 Another flowchart of a screen brightness calibration method shown in the illustrated embodiment, as Figure 5 shown, Figure 1 The step of generating a grayscale image with the target number of gray levels by changing the background color of the blank form according to the target number of gray levels as described in step 102 in
[0108] Step 1021. Determine the target number of different gray levels according to the target number of gray levels.
[0109] In this step, obtain the preset lower gray level value and upper gray level value, divide the gray level interval corresponding to the lower gray level value and the upper gray level value into the target number of gray level sub - intervals, and determine the target number of different gray levels according to the target number of gray level sub - intervals. Determine a gray level value from each gray level sub - interval to obtain the target number of different gray levels corresponding to the target number of gray level sub - intervals.
[0110] Step 1022: Generate grayscale images corresponding to each grayscale value by changing the background color of the blank form, so as to obtain grayscale images of the target number of gray levels with different grayscale values.
[0111] Among them, the grayscale image includes images with multiple different grayscale values.
[0112] In this step, the background color of the blank form can be set to a specified grayscale value to generate the grayscale image corresponding to the specified grayscale value. By sequentially setting the values of the background color of the blank form to the target number of different grayscale values, grayscale images of the target number of gray levels with different grayscale values can be obtained.
[0113] The above technical solution can quickly generate grayscale images by changing the background color of the blank form to generate grayscale images corresponding to each grayscale value, thereby effectively shortening the time for measuring grayscale images.
[0114] Figure 6 is based on Figure 5 The flowchart of a screen brightness calibration method shown in the illustrated embodiment, as Figure 6 shown, Figure 5 In step 1021 described above, determining the target number of different grayscale values according to the target number of gray levels may include:
[0115] S21: Obtain the preset grayscale lower limit value and grayscale upper limit value.
[0116] In this step, generally, the preset grayscale lower limit value is 0, and the grayscale upper limit value is 255. It can also be represented by floating-point numbers, with the preset grayscale lower limit value being 0.0 and the grayscale upper limit value being 1.0.
[0117] S22: Divide the grayscale interval corresponding to the grayscale lower limit value and the grayscale upper limit value into the target number of grayscale sub-intervals.
[0118] Exemplarily, when the target number of gray levels is 128, with the preset grayscale lower limit value being 0 and the grayscale upper limit value being 255, it is divided into 128 grayscale sub-intervals, and the group distance of the grayscale sub-intervals is 2. At this time, the grayscale sub-intervals are [0, 1], [2, 3], [4, 5], [6, 7], …… [254, 255]. When the target number of gray levels is 16, with the preset grayscale lower limit value being 0 and the grayscale upper limit value being 255, it is divided into 16 grayscale sub-intervals, and the group distance of the grayscale sub-intervals is 17. At this time, the grayscale sub-intervals are [0, 16], [17, 33], [34, 50] …… [239, 255].
[0119] S23: Determine the target number of different grayscale values according to the target number of grayscale sub-intervals.
[0120] In this step, a gray value is determined from each gray sub-interval to obtain the target number of gray values corresponding to the target number of different gray sub-intervals.
[0121] A possible implementation in this step is: determining a gray value from each gray sub-interval and determining the minimum gray value in each gray sub-interval as the target gray value.
[0122] Exemplarily, when the target number of gray levels is 128, the gray sub-intervals are successively [0, 1], [2, 3], [4, 5], [6, 7], …… [254, 255]. By determining the minimum gray value in each gray sub-interval as the target gray value, the target number of different gray values can be determined as 0, 2, 4, 6, …… 254 successively. When the target number of gray levels is 16, the gray sub-intervals are successively [0, 16], [17, 33], [34, 50] …… [239, 255]. By determining the minimum gray value in each gray sub-interval as the target gray value, the target number of different gray values can be determined as 0, 17, 34, …… 239 successively.
[0123] Another possible implementation in this step is: determining a gray value from each gray sub-interval and determining the maximum gray value in each gray sub-interval as the target gray value.
[0124] Exemplarily, when the target number of gray levels is 128, the gray sub-intervals are successively [0, 1], [2, 3], [4, 5], [6, 7], …… [254, 255]. By determining the maximum gray value in each gray sub-interval as the target gray value, the target number of different gray values can be determined as 1, 3, 5, 7, …… 255 successively. When the target number of gray levels is 16, the gray sub-intervals are successively [0, 16], [17, 33], [34, 50] …… [239, 255]. By determining the maximum gray value in each gray sub-interval as the target gray value, the target number of different gray values can be determined as 16, 33, 50, …… 255 successively.
[0125] Figure 7 It is a block diagram of a screen brightness calibration device shown according to an exemplary embodiment. Refer to Figure 7 This device includes a response module 701, a generation module 702, an acquisition module 703, and a calibration module 704.
[0126] The response module 701 is configured to construct a target blank form in response to receiving the target number of gray levels specified by the user.
[0127] The generation module 702 is configured to generate grayscale images with the target number of grayscale levels by changing the background color of the blank form according to the target number of grayscale levels.
[0128] The acquisition module 703 is configured to acquire the luminance value corresponding to each of the grayscale images.
[0129] The calibration module 704 is configured to calibrate the screen luminance according to the grayscale value and the luminance value of each of the grayscale images.
[0130] Through the above technical solutions, after receiving the target number of grayscale levels specified by the user, a blank form is constructed, and grayscale images with the target number of grayscale levels are generated by changing the background color of the blank form according to the target number of grayscale levels. The luminance value corresponding to each of the grayscale images is acquired, and the screen luminance is calibrated according to the grayscale value and the luminance value of each of the grayscale images. In this way, by changing the background color of the blank form to generate grayscale images with the target number of grayscale levels, grayscale images can be generated quickly, thereby shortening the time for measuring grayscale images, and thus quickly calibrating the screen luminance, effectively improving the efficiency of screen luminance calibration in the actual production and R & D process.
[0131] Optionally, the calibration module 704 is configured to:
[0132] Determine the gamma curve of the screen according to the grayscale value and the luminance value of each of the grayscale images;
[0133] Calibrate the screen luminance according to the gamma curve of the screen.
[0134] Optionally, the calibration module 704 is configured to:
[0135] In the case where it is determined that the screen luminance display is abnormal according to the gamma curve of the screen, determine the preset standard screen luminance corresponding to each grayscale value according to the standard gamma curve;
[0136] For the grayscale image corresponding to each grayscale value, in the case where it is determined that the screen luminance is lower than the standard screen luminance, increase the power supply voltage or power supply current of the screen;
[0137] For the grayscale image corresponding to each grayscale value, in the case where it is determined that the screen luminance is higher than the standard screen luminance, decrease the power supply voltage or power supply current of the screen.
[0138] Optionally, the calibration module 704 is configured to:
[0139] Acquire the preset standard gamma curve;
[0140] In the case where the standard gamma curve does not match the gamma curve of the screen, it is determined that the screen brightness display is abnormal.
[0141] Optionally, the generating module 702 is configured to:
[0142] Determine the target gray level number of different gray values according to the target gray level number;
[0143] Generate gray images corresponding to each gray value by changing the background color of the blank form, so as to obtain gray images of the target gray level number of different gray values.
[0144] Optionally, the generating module 702 is configured to:
[0145] Obtain a preset lower gray level value and an upper gray level value;
[0146] Divide the gray level interval corresponding to the lower gray level value and the upper gray level value into the target gray level number of gray sub-intervals;
[0147] Determine the target gray level number of different gray values according to the target gray level number of gray sub-intervals.
[0148] Optionally, the generating module 702 is configured to:
[0149] Determine a gray value from each gray sub-interval to obtain the target gray level number of different gray values corresponding to the target gray level number of different gray sub-intervals.
[0150] Through the above technical solution, the screen brightness calibration device provided by the present disclosure can generate gray images of the target gray level number of different gray values by changing the background color of the blank form, can quickly generate gray images, and further can shorten the time for measuring gray images, thereby being able to quickly calibrate the screen brightness and effectively improve the efficiency of actual production and research and development.
[0151] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0152] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the screen brightness calibration method provided by the present disclosure are implemented.
[0153] Figure 8FIG. 0 is a block diagram of a screen brightness calibration apparatus 800 shown in accordance with an exemplary embodiment. For example, apparatus 800 can be 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.
[0154] Referring Figure 8 to FIG. 5, apparatus 800 can include one or more of the following components: a first processing component 802, a first memory 804, a first power component 806, a multimedia component 808, an audio component 810, a first input / output interface 812, a sensor component 814, and a communication component 816.
[0155] The first processing component 802 generally controls the overall operation of apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The first processing component 802 can include one or more first processors 820 to execute instructions to complete all or part of the steps of the above-described screen brightness calibration method. In addition, the first processing component 802 can include one or more modules to facilitate interaction between the first processing component 802 and other components. For example, the first processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the first processing component 802.
[0156] The first memory 804 is configured to store various types of data to support the operation of apparatus 800. Examples of such data include instructions for any application program or method operating on apparatus 800, contact data, phone book data, messages, pictures, videos, etc. The first memory 804 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, a disk, or an optical disk.
[0157] The first power component 806 provides power to the various components of apparatus 800. The first power component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for apparatus 800.
[0158] The multimedia component 808 includes a screen that provides an output interface between the device 800 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 can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0159] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the first memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0160] The first input / output interface 812 provides an interface between the first processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0161] The sensor component 814 includes one or more sensors for providing a status assessment of various aspects of the device 800. For example, the sensor component 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and the keypad of the device 800. The sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0162] The communication component 816 is configured to facilitate communication, either wired or wirelessly, between the device 800 and other devices. The device 800 may access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0163] In an exemplary embodiment, the device 800 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 for performing the above-described screen brightness calibration method.
[0164] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a first memory 804 including instructions that can be executed by a first processor 820 of the device 800 to complete the above-described screen brightness calibration method. For example, the non-transitory computer-readable storage medium may be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0165] 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. The integrated circuit can be a single 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), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or code) to implement the above-mentioned screen brightness calibration method. The executable instructions can be stored in the integrated circuit or chip, or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory, and when the executable instructions are executed by the processor, the above-mentioned screen brightness calibration method is implemented. Alternatively, the integrated circuit or chip can receive the executable instructions through the interface and transmit them to the processor for execution to implement the above-mentioned screen brightness calibration method.
[0166] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned screen brightness calibration method when executed by the programmable device.
[0167] Figure 9 is a block diagram of a screen brightness calibration device 900 shown according to an exemplary embodiment. For example, the device 900 can be provided as a server. Referring to Figure 9 , the device 900 includes a second processing component 922, which further includes one or more processors, and memory resources represented by a second memory 932 for storing instructions executable by the second processing component 922, such as application programs. The application programs stored in the second memory 932 can include one or more modules each corresponding to a set of instructions. In addition, the second processing component 922 is configured to execute instructions to perform the above-mentioned screen brightness calibration method.
[0168] The apparatus 900 may further include a second power component 926 configured to perform power management of the apparatus 900, a wired or wireless network interface 950 configured to connect the apparatus 900 to a network, and a second input / output interface 958. The apparatus 900 may operate based on an operating system stored in the memory 932, such as Windows Server TM , Mac OSX TM , Unix TM , Linux TM , FreeBSD TM or the like.
[0169] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of 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 known common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0170] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A method for calibrating screen brightness, characterized in that, The method includes: In response to receiving the number of target gray levels specified by the user, constructing a target blank form; Generating gray images with the number of target gray levels of different gray values by changing the background color of the blank form according to the number of target gray levels; Obtaining the brightness value corresponding to each of the gray images; Calibrating the screen brightness according to the gray value and the brightness value of each of the gray images.
2. The method according to claim 1, wherein The calibrating the screen brightness according to the gray value and the brightness value of each of the gray images includes: Determining the gamma curve of the screen according to the gray value and the brightness value of each of the gray images; Calibrating the screen brightness according to the gamma curve of the screen.
3. The method according to claim 2, wherein The calibrating the screen brightness according to the gamma curve of the screen includes: In the case where it is determined that the screen brightness display is abnormal according to the gamma curve of the screen, determining the standard screen brightness corresponding to each gray value according to the standard gamma curve; For the gray image corresponding to each gray value, in the case where it is determined that the screen brightness is lower than the standard screen brightness, increasing the power supply voltage or power supply current of the screen; In the case where it is determined that the screen brightness is higher than the standard screen brightness, decreasing the power supply voltage or power supply current of the screen.
4. The method according to claim 3, wherein The determining that the screen brightness display is abnormal according to the gamma curve of the screen includes: Obtaining a preset standard gamma curve; In the case where the standard gamma curve does not match the gamma curve of the screen, determining that the screen brightness display is abnormal.
5. The method according to claim 1, wherein The generating gray images with the number of target gray levels of different gray values by changing the background color of the blank form according to the number of target gray levels includes: Determining the number of target gray levels of different gray values according to the number of target gray levels; Generating a gray image corresponding to each gray value by changing the background color of the blank form to obtain gray images with the number of target gray levels of different gray values.
6. The method according to claim 5, characterized in that, The determining the number of target gray levels of different gray values according to the number of target gray levels includes: Obtaining a preset lower gray value and an upper gray value; Dividing the gray interval corresponding to the lower gray value and the upper gray value into the number of target gray level gray sub-intervals; Determining the number of target gray levels of different gray values according to the number of target gray level gray sub-intervals.
7. The method according to claim 6, wherein The determining the number of target gray levels of different gray values according to the number of target gray level gray sub-intervals includes: Determining a gray value from each gray sub-interval to obtain the number of target gray levels of different gray values corresponding to the number of target gray level gray sub-intervals.
8. A screen brightness calibration device, characterized in that, The apparatus includes: A response module configured to construct a target blank form in response to receiving the number of target gray levels specified by the user; A generating module configured to generate gray images with the number of target gray levels of different gray values by changing the background color of the blank form according to the number of target gray levels; An obtaining module configured to obtain the brightness value corresponding to each of the gray images; A calibrating module configured to calibrate the screen brightness according to the gray value and the brightness value of each of the gray images.
9. A non-transitory computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that, Comprising: a memory storing a computer program thereon; a processor configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1-7.