Screen brightness adjusting method and device, electronic equipment, medium and product

By obtaining and adjusting the quantization value of the brightness level in electronic devices, the problem of inconsistent screen brightness before and after unlocking is solved, and the consistency of brightness and display effect are improved.

CN119274468APending Publication Date: 2025-01-07YUNGU GUAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411734055.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

In the process of unlocking electronic devices, the screen brightness of the background screen before and after unlocking is inconsistent, resulting in poor user experience.

Method used

By obtaining the current brightness level quantization value before the user inputs the unlock information, determine the target brightness level quantization value according to the dimming area where the brightness level quantization value is located, and adjust the screen brightness of the background screen after unlocking according to the target brightness level quantization value, so that it Ensure consistency of brightness within the preset screen brightness value range.

Benefits of technology

Improve the consistency of screen brightness before and after unlocking, avoid brightness flickering and low grayscale fault problems, improve display effect, and reduce the complexity and manual participation of screen brightness adjustment, improve the accuracy and efficiency of adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119274468A_ABST
    Figure CN119274468A_ABST
Patent Text Reader

Abstract

The invention relates to a screen brightness adjusting method and device, electronic equipment, a medium and a product. The method comprises the following steps: acquiring a current brightness level quantized value of a first background picture on the electronic equipment before a user inputs unlocking information, and determining a target brightness level quantized value according to a dimming area where the current brightness level quantized value is located, according to the target brightness level quantized value, the screen brightness value of the second background picture after the user inputs the unlocking information is adjusted, the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined according to the screen brightness value of the first background picture. By adopting the method, corresponding processing can be performed according to the actual display scene of the display panel in the electronic equipment in the unlocking process of the electronic equipment, so that the screen brightness before and after a user inputs the unlocking information is basically kept consistent, and the consistency of the screen brightness before and after the user inputs the unlocking information is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a method, device, electronic device, medium and product for adjusting screen brightness. Background Art

[0002] With the development of science and technology, information recognition technology has been widely used in electronic devices such as mobile phones, tablets, smart locks, smart watches, smart bracelets, etc., forming electronic devices with unlocking functions.

[0003] In the related art, when unlocking an electronic device, the unlocking information input by the user is usually verified first, and then the electronic device is unlocked to enter the application interface of the electronic device after the verification is successful.

[0004] However, in the unlocking process of the related technology, there is a problem that the screen brightness of the background image of the electronic device is inconsistent before and after unlocking. Summary of the invention

[0005] Based on this, it is necessary to provide a screen brightness adjustment method, device, electronic device, medium and product to address the above technical problems, which can improve the consistency of the screen brightness of the background image of the electronic device before and after unlocking during the process of unlocking the electronic device.

[0006] In a first aspect, an embodiment of the present application provides a method for adjusting screen brightness, the method comprising:

[0007] Obtaining a current quantized value of the brightness level of a first background image before a user inputs unlock information on the electronic device;

[0008] Determine the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located;

[0009] According to the target brightness level quantization value, the screen brightness value of the second background picture after the user inputs the unlock information is adjusted; wherein the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined based on the screen brightness value of the first background picture.

[0010] In one embodiment, determining the target brightness level quantization value according to the dimming zone in which the current brightness level quantization value is located includes:

[0011] The target brightness level quantization value is obtained according to the dimming zone where the current brightness level quantization value is located and the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone.

[0012] In one embodiment, obtaining a target brightness level quantization value according to a dimming zone where a current brightness level quantization value is located and a plurality of brightness level quantization values ​​corresponding to the pulse width modulation dimming zone includes:

[0013] If the dimming zone where the current brightness level quantization value is located is a pulse width modulation dimming zone, a first brightness level quantization value is obtained from multiple corresponding brightness level quantization values ​​in the pulse width modulation dimming zone, and the first brightness level quantization value is determined as the target brightness level quantization value.

[0014] In one embodiment, obtaining a target brightness level quantization value according to a dimming zone where a current brightness level quantization value is located and a plurality of brightness level quantization values ​​corresponding to the pulse width modulation dimming zone includes:

[0015] If the dimming zone where the current brightness level quantization value is located is a DC dimming zone, a second brightness level quantization value is obtained from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone, and the second brightness level quantization value is determined as the target brightness level quantization value.

[0016] In one embodiment, adjusting the screen brightness value of the second background image after the user inputs unlocking information according to the target brightness level quantization value includes:

[0017] Adjusting the current brightness level quantization value of the first background image to the target brightness level quantization value;

[0018] Under the target brightness level quantization value, the grayscale value of the first background picture is adjusted to the target grayscale value to complete the adjustment of the screen brightness value of the second background picture; the target grayscale value is determined based on the screen brightness value of the first background picture and the target brightness level quantization value.

[0019] In one embodiment, before determining the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located, the method further includes:

[0020] Obtaining a brightness level range of each display brightness dimming zone corresponding to the electronic device; each brightness level range includes a plurality of different brightness level quantization values;

[0021] The display brightness dimming zone corresponding to the brightness level range where the brightness level quantization value equal to the current brightness level quantization value is located is determined as the dimming zone where the current brightness level quantization value is located.

[0022] In a second aspect, an embodiment of the present application provides a device for adjusting screen brightness, the device comprising:

[0023] A level value acquisition module, used to acquire a current brightness level quantization value of the first background image before the user inputs unlock information on the electronic device;

[0024] A brightness value determination module, used to determine a target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located;

[0025] An adjustment module is used to adjust the screen brightness value of the second background picture after the user inputs unlocking information according to the target brightness level quantization value; wherein the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined based on the screen brightness value of the first background picture.

[0026] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the method of any embodiment of the first aspect when executing the computer program.

[0027] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method of any embodiment in the above-mentioned first aspect are implemented.

[0028] In a fifth aspect, an embodiment of the present application further provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method of any embodiment of the first aspect above.

[0029] The screen brightness adjustment method, device, electronic device, medium and product provided in the embodiments of the present application include: obtaining the current brightness level quantization value of the first background screen on the electronic device before the user inputs unlocking information, determining the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located, and adjusting the screen brightness value of the second background screen after the user inputs unlocking information according to the target brightness level quantization value, wherein the adjusted screen brightness value of the second background screen is within a preset screen brightness value range, and the screen brightness value range is determined according to the screen brightness value of the first background screen. The above method can determine different target brightness level quantization values ​​according to different dimming zones into which the current brightness level quantization value of the first background picture before the user inputs the unlock information falls, and adjust the screen brightness value of the second background picture after the user inputs the unlock information based on the different target brightness level quantization values, so that during the unlocking process of the electronic device, corresponding processing can be performed according to the actual display scene of the display panel in the electronic device, so that the display panel can ensure that the screen brightness value of the second background picture after the final user inputs the unlock information is within the preset screen brightness value range under different display scenes, that is, the screen brightness before and after the user inputs the unlock information is basically consistent, avoiding the problem of brightness flickering and low grayscale fault of the display panel before and after the electronic device is unlocked, thereby improving the consistency of the screen brightness before and after the user inputs the unlock information, and further improving the display effect of the display panel in the electronic device; at the same time, the above method does not require the participation of complex algorithms, and can reduce the complexity of the screen brightness adjustment method, improve the speed and efficiency of the screen brightness adjustment processing, while ensuring that the screen brightness before and after the user inputs the unlock information is basically consistent, and the process does not require manual participation, which can reduce manual participation errors, thereby improving the accuracy of screen brightness adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] FIG1 is a schematic diagram of a flow chart of a method for adjusting screen brightness in one embodiment;

[0031] FIG. 2 is a screen brightness comparison diagram of a background image before and after a user inputs unlock information on an electronic device in one embodiment;

[0032] FIG3 is a schematic diagram of a flow chart of a method for adjusting screen brightness in another embodiment;

[0033] FIG4 is a schematic diagram of a flow chart of a method for adjusting screen brightness in another embodiment;

[0034] FIG5 is a structural block diagram of a screen brightness adjustment device in one embodiment;

[0035] FIG. 6 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] In the field of electronic devices, information recognition technologies (such as fingerprint recognition technology, face recognition technology and / or gesture recognition technology, etc.) are widely used in electronic devices to form electronic devices with fingerprint unlocking functions, face unlocking functions and / or gesture unlocking functions. In the related art, when unlocking an electronic device, the unlocking information input by the user is usually verified first, and then the electronic device is unlocked to enter the application interface of the electronic device after the verification is successful. However, in the process of implementing this application, the applicant found that there are the following problems in the related art: in the process of unlocking, there is a problem of inconsistent screen brightness of the background picture of the electronic device before and after unlocking. Based on this, an embodiment of the present application provides a screen brightness adjustment method, which can improve the consistency of the screen brightness of the background picture of the electronic device before and after unlocking in the process of unlocking the electronic device.

[0038] The screen brightness adjustment method provided in the embodiment of the present application can be applied to electronic devices and to the unlocking process of electronic devices. In the embodiment of the present application, the screen brightness adjustment method can be understood as Alpha mode. Optionally, the above-mentioned electronic device can be, but is not limited to, various personal computers, laptops, smart phones and tablets, smart bracelets, smart watches. This embodiment does not limit the specific form of the electronic device, as long as it is a device with unlocking and display functions. The specific process of the screen brightness adjustment method will be specifically introduced in the following embodiment, and the specific process of the screen brightness adjustment method will be introduced with the execution subject being an electronic device.

[0039] As shown in FIG. 1 , a flow chart of a screen brightness adjustment method provided in an embodiment of the present application is shown. The method may include the following steps:

[0040] S100: Obtain a current quantized value of brightness level of a first background image before a user inputs unlock information on an electronic device.

[0041] The unlocking information input by the user on the electronic device may be, but is not limited to, fingerprint information, facial information, and gesture information; the type of the unlocking information may be determined according to the type of unlocking function of the electronic device. In practical applications, the background image before the user inputs the unlocking information on the electronic device may be referred to as the first background image.

[0042] In one implementation, the electronic device can obtain the current screen brightness value (i.e., LV value) of the first background picture, and then search for the current screen brightness value of the first background picture in the association relationship between different screen brightness values ​​and different brightness level quantization values ​​(i.e., DBV values) corresponding to the display panel of the electronic device, and determine the brightness level quantization value corresponding to the screen brightness value that matches the current screen brightness value as the current brightness level quantization value (i.e., DBV value) of the first background picture.

[0043] In another implementation, the electronic device may respond to the screen brightness value query instruction of the first background image and output the current brightness level quantization value of the first background image. Optionally, the current brightness level quantization value of the first background image may be output in the form of voice broadcast, text, video, etc.

[0044] S200: Determine a target brightness level quantization value according to a dimming zone in which a current brightness level quantization value is located.

[0045] Among them, the dimming zone is any one of a plurality of different display brightness dimming zones of the display panel of the electronic device. It should be noted here that the display panel of the electronic device can output different screen brightnesses; in actual applications, different screen brightnesses correspond to different screen brightness values, and different screen brightness values ​​correspond to different brightness level quantization values. Correspondingly, the display panel of the electronic device corresponds to a plurality of different display brightness dimming zones between the maximum screen brightness and the minimum screen brightness, wherein the current brightness level quantization value of the first background picture can fall into any display brightness dimming zone, and the display brightness dimming zone can be referred to as the dimming zone where the current brightness level quantization value is located.

[0046] Specifically, the electronic device may pre-train an algorithm model, and then input the dimming zone where the current brightness level quantization value is located into the algorithm model, and the algorithm model outputs the target brightness level quantization value corresponding to the current brightness level quantization value.

[0047] In addition, the electronic device can also find the dimming zone where the current brightness level quantization value is located based on the association between different dimming zones and different brightness level quantization values, and determine the brightness level quantization value corresponding to the dimming zone that matches the dimming zone where the current brightness level quantization value is located as the target brightness level quantization value.

[0048] S300: adjusting the screen brightness value of the second background picture after the user inputs the unlock information according to the target brightness level quantization value, wherein the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined according to the screen brightness value of the first background picture.

[0049] In actual applications, the electronic device can determine the screen brightness adjustment strategy based on the target brightness level quantization value obtained in the previous step, and then adjust the screen brightness value of the second background picture after the user inputs the unlock information according to the screen brightness adjustment strategy, so that the adjusted screen brightness value of the second background picture falls within the preset screen brightness value range. Optionally, the screen brightness value range can be [r1, r2], where r1 can be equal to the difference between -r and the screen brightness value of the first background picture, r2 can be equal to the sum of r and the screen brightness value of the first background picture, and r is a very small positive number.

[0050] In an embodiment of the present application, the adjusted screen brightness value of the second background picture falls within a preset screen brightness value range, which can be understood as the adjusted screen brightness value of the second background picture can be greater than, equal to or less than the screen brightness value of the first background picture, indicating that the adjusted screen brightness value of the second background picture is basically the same as the screen brightness value of the first background picture.

[0051] In one embodiment, the method for determining the screen brightness adjustment strategy based on the target brightness level quantization value can be to pre-train a strategy formulation model, and then input the target brightness level quantization value and the current brightness level quantization value of the first background picture into the strategy formulation model, and then the strategy formulation model outputs the screen brightness adjustment strategy.

[0052] Optionally, the above-mentioned strategy formulation model can be implemented by at least one of a convolutional neural network model, a fully connected neural network model, a long short-term memory neural network model, a recurrent neural network model, a residual neural network model, etc.

[0053] In addition, the electronic device can also generate a parameter adjustment instruction for the display panel based on the target brightness level quantization value obtained in the previous step, and adjust the screen brightness value of the second background picture after the user inputs the unlock information in response to the parameter adjustment instruction, so that the adjusted screen brightness value of the second background picture is within a preset screen brightness value range. Optionally, the above parameter adjustment instruction can carry relevant parameters such as the screen brightness value, the target brightness level quantization value and / or the grayscale value.

[0054] It should be noted here that the second background screen after the user inputs the unlock information can be understood as the background screen when the electronic device is unlocked by the unlock information after the user inputs the unlock information. As shown in Figure 2, it is a comparison diagram of the first background screen before the user inputs the unlock information on the electronic device and the second background screen after the user inputs the unlock information, and the second background screen in Figure 2 is the screen brightness before the screen brightness value is adjusted after the user inputs the unlock information.

[0055] The technical solution in the embodiment of the present application obtains the current brightness level quantization value of the first background picture before the user inputs the unlocking information on the electronic device, determines the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located, and adjusts the screen brightness value of the second background picture after the user inputs the unlocking information according to the target brightness level quantization value, wherein the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined according to the screen brightness value of the first background picture; the above method can determine different target brightness level quantization values ​​according to the different dimming zones into which the current brightness level quantization value of the first background picture before the user inputs the unlocking information falls, and adjusts the screen brightness value of the second background picture after the user inputs the unlocking information based on the different target brightness level quantization values, so that during the unlocking process of the electronic device, the screen brightness value of the second background picture can be adjusted according to the target brightness level quantization value. The actual display scene of the display panel in the sub-device is processed accordingly, so that the display panel can ensure that the screen brightness value of the second background picture after the final user enters the unlock information falls within the preset screen brightness value range under different display scenes, that is, the screen brightness before and after the user enters the unlock information is basically consistent, avoiding the problem of display panel brightness flickering and low grayscale faults before and after the electronic device is unlocked, thereby improving the consistency of the screen brightness before and after the user enters the unlock information, and further improving the display effect of the display panel in the electronic device; at the same time, the above method does not require the participation of complex algorithms. While ensuring that the screen brightness before and after the user enters the unlock information is basically consistent, it can reduce the complexity of the screen brightness adjustment method and improve the speed and efficiency of the screen brightness adjustment processing. In addition, the process does not require manual participation, which can reduce manual participation errors, thereby improving the accuracy of screen brightness adjustment.

[0056] In some scenarios, during the unlocking process of an electronic device, it is necessary to first adjust the brightness level quantization value of the display panel of the electronic device to a fixed brightness level quantization value (i.e., a target brightness level quantization value), and then lower the screen brightness of the display panel. The following is a process of determining the target brightness level quantization value of the display panel. In one embodiment, the step of determining the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located in S200 may include: obtaining the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located and a plurality of brightness level quantization values ​​corresponding to the pulse width modulation dimming zone.

[0057] In the embodiment of the present application, regardless of whether the dimming zone in which the current brightness level quantization value is located is the same, the target brightness level quantization values ​​corresponding to the display panel at different times are selected from multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone.

[0058] Among them, the display panel of the electronic device corresponds to multiple continuous different brightness level quantization values ​​between the maximum screen brightness and the minimum screen brightness. In an embodiment of the present application, the multiple different brightness level quantization values ​​of the display panel of the electronic device can be divided to generate multiple display brightness dimming zones, wherein the current brightness level quantization value of the first background image can be located in any one of these multiple display brightness dimming zones. Optionally, the above-mentioned multiple display brightness dimming zones may include a pulse width modulation (PWM) dimming zone, i.e., an EM black insertion zone. In an embodiment of the present application, the above-mentioned pulse width modulation dimming zone can be called a low brightness zone.

[0059] It should be noted here that the target brightness level quantization value is different for different dimming zones where the current brightness level quantization value is located. Specifically, the electronic device can determine a selection strategy for the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located, and then select the maximum value, median value, minimum value, mode value or specific value from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone according to the selection strategy as the target brightness level quantization value.

[0060] In addition, the electronic device can also determine the calculation method of the target brightness level quantization value according to the dimming zone in which the current brightness level quantization value is located, and then select the maximum value, median value, minimum value, mode value and specific value data from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone based on the calculation method, and then perform arithmetic operations on the selected data according to the calculation method to obtain the target brightness level quantization value.

[0061] Optionally, the above-mentioned arithmetic operation processing can be implemented by at least one of addition operation, subtraction operation, multiplication operation, division operation, logarithmic operation, exponential operation, etc.

[0062] The following is an explanation of the process of determining the dimming zone where the current brightness level quantization value is located. In one embodiment, before executing the step in S200 above, the method may further include the following steps:

[0063] S400: Obtain a brightness level range of each display brightness dimming zone corresponding to the electronic device, wherein each brightness level range includes a plurality of different brightness level quantization values.

[0064] In the embodiment of the present application, the brightness level range of each display brightness dimming zone corresponding to the electronic device includes multiple different continuous brightness level quantization values ​​of the display panel in the electronic device, but the multiple brightness level quantization values ​​in the same brightness level range are successively increased or decreased in sequence. Optionally, the above brightness level quantization values ​​can represent the brightness coordinates of the display panel.

[0065] Specifically, the electronic device can respond to a read instruction for the brightness level range of each display brightness dimming zone and read the brightness level range of each display brightness dimming zone corresponding to itself from a location such as the cloud, a local location, a disk or a hard disk.

[0066] S500, determining a display brightness dimming zone corresponding to a brightness level range where a brightness level quantization value equal to the current brightness level quantization value is located as the dimming zone where the current brightness level quantization value is located.

[0067] Exemplarily, if the display panel corresponds to two display brightness dimming zones, namely display brightness dimming zone 1 and display brightness dimming zone 2, the brightness level range of display brightness dimming zone 1 includes multiple different brightness level quantization values ​​1, and these multiple brightness level quantization values ​​1 can belong to the range of A1~A2, and the brightness level range of display brightness dimming zone 2 includes multiple different brightness level quantization values ​​2, and these multiple brightness level quantization values ​​2 can belong to the range of A3~A4, wherein A1 may be greater than A2, A2 may be greater than A3, and A3 may be greater than A4, or A1 may be less than A2, A2 may be less than A3, and A3 may be less than A4.

[0068] In actual applications, the electronic device can compare the current brightness level quantization value of the first screen image with the brightness level quantization values ​​within the brightness level range of different display brightness dimming zones, obtain the brightness level range where the brightness level quantization value equal to the current brightness level quantization value is located based on the comparison result, and determine the display brightness dimming zone corresponding to the brightness level range as the dimming zone where the current brightness level quantization value is located.

[0069] In addition, the electronic device can pre-train an algorithm model, and then input the current brightness level quantization value and the brightness level range of different display brightness dimming zones into the algorithm model. The algorithm model outputs the display brightness dimming zone corresponding to the brightness level range where the brightness level quantization value equal to the current brightness level quantization value is located, and determines the display brightness dimming zone as the dimming zone where the current brightness level quantization value is located.

[0070] This embodiment can obtain the brightness level range of each display brightness dimming zone corresponding to the electronic device, and determine the display brightness dimming zone corresponding to the brightness level range where the brightness level quantization value equal to the current brightness level quantization value is located as the dimming zone where the current brightness level quantization value is located; this method can obtain the dimming zone where the current brightness level quantization value of the first background picture before the user inputs the unlocking information on the electronic device is located, so as to provide dependent information for further obtaining different reference information (i.e., the target brightness level quantization value) required for ideal adjustment of the display brightness of the display panel in different display scenarios (i.e., the screen brightness of the display panel is basically the same before and after the user inputs the unlocking information); at the same time, the processing process in this method is relatively simple, which can improve the speed and efficiency of obtaining the dimming zone where the current brightness level quantization value is located.

[0071] The technical solution in the embodiment of the present application obtains a target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located and the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone; the above method can determine different target brightness level quantization values ​​according to the different dimming zones where the current brightness level quantization value of the first background picture before the user inputs the unlocking information on the electronic device is located, so as to provide reference information for ideally adjusting the screen brightness value of the second background picture of the display panel after the user inputs the unlocking information in different display scenarios based on the different target brightness level quantization values; at the same time, the method does not require the participation of complex algorithms, the processing process is relatively simple, and can improve the speed and efficiency of determining the different reference information (i.e., the target brightness level quantization value) required for the display panel to adjust the screen brightness in different display scenarios.

[0072] In some scenarios, the current brightness level quantization value of the first background screen on the electronic device before the user enters the unlock information will fall into the pulse width modulation dimming zone. The following describes the process of determining the target brightness level quantization value when the current brightness level quantization value of the first background screen falls into the pulse width modulation dimming zone.

[0073] In one embodiment, the above-mentioned step of selecting the target brightness level quantization value from the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone according to the dimming zone where the current brightness level quantization value is located may include: if the dimming zone where the current brightness level quantization value is located is the pulse width modulation dimming zone, then obtaining the first brightness level quantization value from the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone, and determining the first brightness level quantization value as the target brightness level quantization value.

[0074] In actual applications, when the dimming zone where the current brightness level quantization value of the first background image before the user inputs the unlock information on the electronic device is located is a pulse width modulation dimming zone, the electronic device can obtain the first brightness level quantization value from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone, and determine the first brightness level quantization value as the target brightness level quantization value. Optionally, the first brightness level quantization value can be any brightness level quantization value among the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone.

[0075] In one embodiment, the method for obtaining the first brightness level quantization value from the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone can be to obtain the maximum value of the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone, and determine the maximum brightness level quantization value as the first brightness level quantization value.

[0076] In another embodiment, the method for obtaining the first brightness level quantization value from the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone can also be to compare the brightness level quantization values ​​between each of the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone, and determine the first brightness level quantization value based on the comparison result.

[0077] In other scenarios, the current brightness level quantization value of the first background screen on the electronic device before the user inputs the unlock information will fall into the direct current (DC) dimming area. The following describes the process of determining the target brightness level quantization value when the current brightness level quantization value of the first background screen falls into the DC dimming area.

[0078] In one embodiment, the above-mentioned step of selecting the target brightness level quantization value from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone according to the dimming zone where the current brightness level quantization value is located may include: if the dimming zone where the current brightness level quantization value is located is a DC dimming zone, then obtaining a second brightness level quantization value from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone, and determining the second brightness level quantization value as the target brightness level quantization value.

[0079] In the embodiment of the present application, the DC dimming area can be called a high brightness area; wherein, when the dimming area where the current brightness level quantization value of the first background image before the user inputs the unlocking information on the electronic device is located is the DC dimming area, the electronic device can obtain the second brightness level quantization value from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming area, and determine the second brightness level quantization value as the target brightness level quantization value. Optionally, the second brightness level quantization value can be any brightness level quantization value among the corresponding multiple brightness level quantization values ​​in the DC dimming area.

[0080] In one embodiment, the second brightness level quantization value may be obtained from the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone by calculating the second value of the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone to obtain the second brightness level quantization value.

[0081] In another embodiment, the method for obtaining the second brightness level quantization value from the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone can also be to compare the brightness level quantization values ​​between each of the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone, and determine the second brightness level quantization value based on the comparison result.

[0082] According to the technical solution in the embodiment of the present application, if the dimming zone where the current brightness level quantization value is located is a pulse width modulation dimming zone, a first brightness level quantization value is obtained from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone, and the first brightness level quantization value is determined as the target brightness level quantization value; the above method can determine different target brightness level quantization values ​​through different dimming zones where the current brightness level quantization value of the first background picture before the user inputs the unlocking information on the electronic device is located, so as to provide reference information for ideally adjusting the screen brightness value of the second background picture of the display panel after the user inputs the unlocking information in different display scenarios based on different target brightness level quantization values, and the processing process is relatively simple and does not require the participation of complex algorithms.

[0083] The following is a description of the process of adjusting the screen brightness value of the second background image after the user inputs the unlock information according to the target brightness level quantization value. In one embodiment, as shown in FIG. 3 , the steps in S300 above can be implemented in the following manner:

[0084] S310: Adjust the current brightness level quantization value of the first background image to the target brightness level quantization value.

[0085] In an embodiment of the present application, after the user inputs unlocking information during the unlocking process of the electronic device, the electronic device may first adjust the current brightness level quantization value of the first background image to the target brightness level quantization value.

[0086] S320, adjusting the grayscale value of the first background picture to the target grayscale value under the target brightness level quantization value to complete the adjustment of the screen brightness value of the second background picture; the target grayscale value is determined based on the screen brightness value of the first background picture and the target brightness level quantization value.

[0087] Furthermore, the electronic device may adjust the grayscale value of the first background image to a target grayscale value under the target brightness level quantization value. Optionally, the target grayscale value may be less than 255.

[0088] It should be noted here that in order to make the adjusted screen brightness value of the second background picture slightly greater than or equal to the screen brightness value of the first background picture, the target grayscale value can be obtained according to the target brightness level quantization value and the screen brightness value of the first background picture, so that when the first background picture of the display panel is at the target brightness level quantization value and the target grayscale value, the corresponding screen brightness value of the second background picture is basically restored to the screen brightness value before the user inputs the unlock information, so that the screen brightness value of the second background picture can be basically consistent with the screen brightness value of the first background picture.

[0089] Among them, the method of obtaining the target grayscale value according to the target brightness level quantization value and the screen brightness value of the first background picture can be to search for the grayscale value corresponding to the screen brightness value that matches the screen brightness value of the first background picture in the association relationship under the target brightness level quantization value, that is, the target grayscale value. Optionally, the above association relationship may include the corresponding relationship between different brightness level quantization values, different screen brightness values ​​and different grayscale values.

[0090] In addition, the target grayscale value can be obtained according to the target brightness level quantization value and the screen brightness value of the first background picture by pre-training an algorithm model, and then inputting the target brightness level quantization value and the screen brightness value of the first background picture into the algorithm model, which outputs the target grayscale value.

[0091] For example, if the screen brightness value of the first background image on the electronic device before the user inputs the unlock information is 2nit and the grayscale value is 255, the dimming zone where the brightness level quantization value corresponding to 2nit is located is the pulse width modulation dimming zone, in this case, the brightness level quantization value of the second background image after the user inputs the unlock information can be adjusted to 327 first. At this time, to make the screen brightness value of the second background image less than or equal to the target grayscale value x corresponding to 2nit under the brightness level quantization value 327, the formula 2=80*(x / 255)^2.2 can be satisfied, and correspondingly x is equal to 48, and then the grayscale value of the second background image under the brightness level quantization value 327 can be adjusted to 48, so that the adjusted screen brightness value LV of the second background image is equal to 80*(48 / 255)^2.208, that is, 2.0027nit, which is slightly greater than 2nit. It should be noted here that the 2.208 here means that when the grayscale value of the second background image under the brightness level quantization value 327 is 48, the second background image actually conforms to the gamma 2.208 curve. Furthermore, the grayscale of 0-255 can be expanded by the grayscale of 0-48 at the brightness level quantization value 327 of the second background image.

[0092] The technical solution in the embodiment of the present application adjusts the current brightness level quantization value of the first background picture to the target brightness level quantization value, and adjusts the grayscale value of the first background picture to the target grayscale value under the target brightness level quantization value, so as to complete the adjustment of the screen brightness value of the second background picture; the target grayscale value is determined according to the screen brightness value of the first background picture and the target brightness level quantization value; the above method can adjust the screen brightness value of the second background picture after the user inputs the unlocking information according to the target brightness level quantization value, so that the screen brightness of the electronic device remains basically consistent before and after the unlocking of the electronic device, avoiding the problem of brightness flickering and low grayscale faults of the display panel before and after the unlocking of the electronic device, thereby improving the display effect of the display panel in the electronic device; at the same time, the above method does not require complicated operations, and the screen brightness adjustment process is relatively simple, thereby improving the adjustment speed and efficiency of the display brightness.

[0093] In one embodiment, the present application also provides a screen brightness adjustment method, which is applied to an electronic device. As shown in FIG4 , the method includes the following process:

[0094] S10, obtaining a current quantized value of the brightness level of the first background image before the user inputs unlocking information on the electronic device;

[0095] S20, obtaining a brightness level range of each display brightness dimming zone corresponding to the electronic device; each brightness level range includes a plurality of different brightness level quantization values;

[0096] S30, determining the display brightness dimming zone corresponding to the brightness level range where the brightness level quantization value equal to the current brightness level quantization value is located as the dimming zone where the current brightness level quantization value is located;

[0097] S40, obtaining a target brightness level quantization value according to a dimming zone where the current brightness level quantization value is located and a plurality of brightness level quantization values ​​corresponding to the pulse width modulation dimming zone;

[0098] The steps in S40 above may be implemented in any of the following ways:

[0099] The first method includes:

[0100] S41, if the dimming zone where the current brightness level quantization value is located is a pulse width modulation dimming zone, obtaining a first brightness level quantization value from a plurality of corresponding brightness level quantization values ​​in the pulse width modulation dimming zone, and determining the first brightness level quantization value as a target brightness level quantization value;

[0101] The second method includes:

[0102] S42, if the dimming zone where the current brightness level quantization value is located is a DC dimming zone, obtaining a second brightness level quantization value from a plurality of corresponding brightness level quantization values ​​in the pulse width modulation dimming zone, and determining the second brightness level quantization value as the target brightness level quantization value;

[0103] S50, adjusting the current brightness level quantization value of the first background image to the target brightness level quantization value;

[0104] S60. Adjust the grayscale value of the first background picture to the target grayscale value under the target brightness level quantization value to complete the adjustment of the screen brightness value of the second background picture; the target grayscale value is determined based on the screen brightness value of the first background picture and the target brightness level quantization value; wherein, the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined based on the screen brightness value of the first background picture.

[0105] The execution process of the above S10 to S60 may be specifically referred to the description of the above embodiment, and the implementation principle and technical effect thereof are similar and will not be described in detail here.

[0106] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0107] Based on the same inventive concept, the embodiment of the present application also provides a screen brightness adjustment device for implementing the above-mentioned screen brightness adjustment method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more screen brightness adjustment device embodiments provided below can refer to the above-mentioned limitations on the screen brightness adjustment method, and will not be repeated here.

[0108] In one embodiment, FIG5 is a schematic diagram of the structure of a screen brightness adjustment device in an embodiment of the present application. The screen brightness adjustment device provided in the embodiment of the present application can be applied to electronic devices. As shown in FIG5, the screen brightness adjustment device in the embodiment of the present application may include: a level value acquisition module 11, a brightness value determination module 12 and an adjustment module 13, wherein:

[0109] The level value acquisition module 11 is used to obtain the current brightness level quantization value of the first background image before the user inputs the unlocking information on the electronic device;

[0110] The brightness value determination module 12 is used to determine the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located;

[0111] The adjustment module 13 is used to adjust the screen brightness value of the second background picture after the user inputs the unlocking information according to the target brightness level quantization value; wherein the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined according to the screen brightness value of the first background picture.

[0112] The screen brightness adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned screen brightness adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0113] In one embodiment, the brightness value determination module 12 includes: an acquisition unit, wherein:

[0114] The acquisition unit is used to acquire the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located and the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone.

[0115] The screen brightness adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned screen brightness adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0116] In one embodiment, the acquisition unit includes: a first determination subunit, wherein:

[0117] The first determination subunit is used to obtain a first brightness level quantization value from multiple corresponding brightness level quantization values ​​in the pulse width modulation dimming zone if the dimming zone where the current brightness level quantization value is located is a pulse width modulation dimming zone, and determine the first brightness level quantization value as the target brightness level quantization value.

[0118] The screen brightness adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned screen brightness adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0119] In one embodiment, the acquisition unit includes: a second determination subunit, wherein:

[0120] The second determination subunit is used to obtain a second brightness level quantization value from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone if the dimming zone where the current brightness level quantization value is located is the DC dimming zone, and determine the second brightness level quantization value as the target brightness level quantization value.

[0121] The screen brightness adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned screen brightness adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0122] In one embodiment, the adjustment module 13 is specifically used for:

[0123] Adjusting the current brightness level quantization value of the first background image to the target brightness level quantization value;

[0124] Under the target brightness level quantization value, the grayscale value of the first background picture is adjusted to the target grayscale value to complete the adjustment of the screen brightness value of the second background picture; the target grayscale value is determined based on the screen brightness value of the first background picture and the target brightness level quantization value.

[0125] The screen brightness adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned screen brightness adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0126] In one embodiment, the screen brightness adjustment device further includes: a brightness range acquisition module and a dimming zone determination module, wherein:

[0127] A brightness range acquisition module is used to acquire a brightness level range of each display brightness dimming zone corresponding to the electronic device; each brightness level range includes a plurality of different brightness level quantization values;

[0128] The dimming zone determination module is used to determine the display brightness dimming zone corresponding to the brightness level range where the brightness level quantization value equal to the current brightness level quantization value is located as the dimming zone where the current brightness level quantization value is located.

[0129] The screen brightness adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned screen brightness adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0130] For the specific definition of the screen brightness adjustment device, please refer to the definition of the screen brightness adjustment method above, which will not be repeated here. Each module in the above-mentioned screen brightness adjustment device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0131] In one embodiment, an electronic device is provided, and the internal structure diagram of the electronic device can be shown in Figure 6. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide processing capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store the current brightness level quantization value of the first background picture before the user inputs the unlock information on the electronic device, the adjusted screen brightness value of the second background picture and the target brightness level quantization value. The network interface of the electronic device is used to communicate with an external end point through a network connection. When the computer program is executed by the processor, a screen brightness adjustment method is implemented.

[0132] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0133] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the technical solution in the above-mentioned screen brightness adjustment method embodiment of the present application is implemented. The implementation principle and technical effect are similar and will not be repeated here.

[0134] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the technical solution of the above-mentioned screen brightness adjustment method of the present application is implemented. The implementation principle and technical effect are similar and will not be repeated here.

[0135] In one embodiment, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the technical solution of the above-mentioned screen brightness adjustment method of the present application. The implementation principle and technical effect are similar and will not be repeated here.

[0136] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0138] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A screen brightness adjustment method, characterized in that: The method comprises: Obtaining a current quantized value of the brightness level of a first background image before a user inputs unlock information on the electronic device; Determining a target brightness level quantization value according to the dimming zone in which the current brightness level quantization value is located; According to the target brightness level quantization value, the screen brightness value of the second background picture after the user inputs the unlock information is adjusted; wherein, the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined based on the screen brightness value of the first background picture.

2. The method according to claim 1, characterized in that The step of determining the target brightness level quantization value according to the dimming zone in which the current brightness level quantization value is located comprises: The target brightness level quantization value is obtained according to the dimming zone where the current brightness level quantization value is located and the multiple brightness level quantization values ​​corresponding to the pulse width modulation dimming zone.

3. The method according to claim 2, characterized in that The step of acquiring the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located and the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone comprises: If the dimming zone where the current brightness level quantization value is located is the pulse width modulation dimming zone, a first brightness level quantization value is obtained from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone, and the first brightness level quantization value is determined as the target brightness level quantization value.

4. The method according to claim 2, characterized in that: The step of acquiring the target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located and the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone comprises: If the dimming zone where the current brightness level quantization value is located is a DC dimming zone, a second brightness level quantization value is obtained from the corresponding multiple brightness level quantization values ​​in the pulse width modulation dimming zone, and the second brightness level quantization value is determined as the target brightness level quantization value.

5. The method according to any one of claims 1 to 4, characterized in that The step of adjusting the screen brightness value of the second background picture after the user inputs the unlocking information according to the target brightness level quantization value comprises: Adjusting the current brightness level quantization value of the first background image to the target brightness level quantization value; Under the target brightness level quantization value, the grayscale value of the first background picture is adjusted to the target grayscale value to complete the adjustment of the screen brightness value of the second background picture; the target grayscale value is determined based on the screen brightness value of the first background picture and the target brightness level quantization value.

6. The method according to any one of claims 1 to 4, characterized in that Before determining the target brightness level quantization value according to the dimming zone in which the current brightness level quantization value is located, the method further includes: Acquire a brightness level range of each display brightness dimming zone corresponding to the electronic device; each brightness level range includes a plurality of different brightness level quantization values; A display brightness dimming zone corresponding to a brightness level range where a brightness level quantization value equal to the current brightness level quantization value is located is determined as the dimming zone where the current brightness level quantization value is located.

7. A screen brightness adjustment device, characterized in that: The device comprises: A level value acquisition module, used to acquire a current brightness level quantization value of the first background image before the user inputs unlocking information on the electronic device; A brightness value determination module, used to determine a target brightness level quantization value according to the dimming zone where the current brightness level quantization value is located; An adjustment module is used to adjust the screen brightness value of the second background picture after the user inputs unlocking information according to the target brightness level quantization value; wherein the adjusted screen brightness value of the second background picture is within a preset screen brightness value range, and the screen brightness value range is determined based on the screen brightness value of the first background picture.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.