Method for determining brightness voltage of unlocking area, program product and electronic device
By determining the voltage compensation value based on the current brightness level and screen load in the AMOLED display panel, the problem that the prior art cannot meet the brightness requirements of the unlocking area is solved, and a stable unlocking effect under different screen loads is achieved.
Patent Information
- Application Number
- CN202411866427.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-01
AI Technical Summary
The existing unlocking area brightness setting method cannot meet the actual unlocking needs of the AMOLED display panel under different picture loads, especially the brightness changes caused by the IR_drop effect.
By determining the basic brightness voltage value based on the current brightness level and determining the voltage compensation value based on the current brightness level and the picture load, the brightness voltage value of the unlocked area is synthesized to adapt to the brightness changes of different picture loads.
It effectively reduces the impact of different picture loads on the display panel brightness, ensures that the brightness of the unlocking area is always within the unlocking requirements, and solves the problem that the existing technology cannot meet the actual unlocking needs.
Smart Images

Figure CN119741893A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display screens, and in particular to a method for determining a brightness voltage of an unlocking area, a program product, and an electronic device. Background Art
[0002] Compared with traditional LCD panels, AMOLED display panels have the characteristics of high color gamut, high contrast, wide viewing angle and fast response. AMOLED display technology has been widely used in wearable devices, mobile phones, TVs and other products, and will have great application space in flexible and transparent products in the future.
[0003] Optical fingerprint unlocking has certain requirements for the brightness of the unlocking area. It is necessary to ensure that the brightness of the unlocking area is within the unlocking requirement range in order to unlock normally. The existing unlocking area brightness setting method is to set a fixed high brightness voltage value for the unlocking area to meet the unlocking brightness requirements. However, due to the IR_drop effect (referring to the voltage drop generated when current flows through the metal interconnect) of the AMOLED display panel, the existing unlocking area brightness setting method cannot meet the actual unlocking requirements. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present application is to provide a method for determining the brightness voltage of an unlocking area, a program product, and an electronic device, so as to solve the technical problem that the existing unlocking area brightness setting method cannot meet the actual unlocking requirements.
[0005] In a first aspect, an embodiment of the present application provides a method for determining a brightness voltage of an unlocking area, the method comprising:
[0006] According to the current brightness level, determine the basic brightness voltage value of the unlocking area;
[0007] Determining a voltage compensation value according to the current brightness level and the current picture load;
[0008] The regional brightness voltage value of the unlocking area is determined according to the basic brightness voltage value and the voltage compensation value.
[0009] In the above implementation process, the method for determining the brightness voltage of the unlocking area determines the basic brightness voltage value of the unlocking area according to the current brightness level; determines the voltage compensation value according to the current brightness level and the current screen load; and determines the regional brightness voltage value of the unlocking area according to the basic brightness voltage value and the voltage compensation value. Based on this method, in the process of determining the brightness voltage of the unlocking area, the current brightness level and the current screen load are fully considered, and the voltage compensation value is determined based on the current screen load, so as to compensate for the brightness change of the display panel caused by the current screen load according to the voltage compensation value, thereby reducing the influence of different screen loads on the brightness of the display panel, and thus ensuring that the brightness of the unlocking area is within the unlocking requirement range as much as possible. The technical problem that the existing unlocking area brightness setting method cannot meet the actual unlocking requirements is solved.
[0010] Optionally, in an embodiment of the present application, determining the voltage compensation value based on the current brightness level and the current picture load includes: determining a basic compensation value corresponding to the current brightness level; determining a compensation coefficient based on the current picture load; and determining the voltage compensation value based on the basic compensation value and the compensation coefficient.
[0011] In the above implementation process, the voltage compensation value can be determined according to the basic compensation value corresponding to the current brightness level and the compensation coefficient corresponding to the current picture load; the brightness change of the display panel caused by the current picture load can be compensated according to the voltage compensation value, thereby reducing the impact of different picture loads on the brightness of the display panel.
[0012] Optionally, in an embodiment of the present application, the method for determining the current picture load includes: determining the current picture load according to the grayscale of the current picture and a mapping relationship between the grayscale and the brightness.
[0013] In the above implementation process, the picture brightness corresponding to the current picture grayscale can be determined quickly and accurately according to the mapping relationship between grayscale and brightness, and then the current picture load can be determined according to the picture brightness.
[0014] Optionally, in an embodiment of the present application, determining the current picture load based on the grayscale of the current picture and the mapping relationship between the grayscale and the brightness includes: determining the pixel load corresponding to each pixel based on the pixel grayscale of each pixel in the current picture and the mapping relationship between the pixel grayscale and the brightness; calculating the average pixel load of the current picture based on the pixel load corresponding to each pixel; and determining the current picture load based on the average pixel load.
[0015] In the above implementation process, the average pixel load of the current picture may be calculated according to the pixel load corresponding to each pixel, so as to more accurately determine the current picture load according to the average pixel load.
[0016] Optionally, in an embodiment of the present application, the pixel grayscale includes: R component grayscale, G component grayscale and B component grayscale; the pixel load corresponding to each pixel is determined according to the pixel grayscale of each pixel in the current picture and the mapping relationship between the pixel grayscale and the brightness, including: determining the R component load corresponding to the R component of each pixel, the G component load corresponding to the G component and the B component load corresponding to the B component according to the R component grayscale, the G component grayscale, the B component grayscale and the mapping relationship between the pixel grayscale and the brightness; determining the pixel load according to the R component load, the G component load, the B component load and the influence factors of different component loads on the pixel load.
[0017] In the above implementation process, when the pixel grayscale includes: R component grayscale, G component grayscale and B component grayscale, the above pixel load is determined according to the R component load corresponding to the R component of each pixel, the G component load corresponding to the G component, the B component load corresponding to the B component and the influence factors of different component loads on the pixel load.
[0018] Optionally, in an embodiment of the present application, determining the basic brightness voltage value of the unlocked area according to the current brightness level includes: determining the basic brightness voltage value of the unlocked area according to the current brightness level and a mapping relationship between the brightness level and the voltage brightness value.
[0019] In the above implementation process, according to the mapping relationship between the brightness level and the voltage brightness value, the basic brightness voltage value of the unlocking area corresponding to the current brightness level can be determined quickly and accurately.
[0020] Optionally, in an embodiment of the present application, the mapping relationship between the brightness level and the voltage brightness value includes: a plurality of preset brightness levels and a preset brightness voltage value corresponding to each of the preset brightness levels; the determining the basic brightness voltage value of the unlocking area according to the current brightness level and the mapping relationship between the brightness level and the voltage brightness value includes: in the case where there is a preset brightness level that is the same as the current brightness level, determining the basic brightness voltage value according to the preset brightness voltage value corresponding to the preset brightness level; in the case where there is no preset brightness level that is the same as the current brightness level, determining the lower limit brightness level and the upper limit brightness level corresponding to the current brightness level; wherein the lower limit brightness level includes the highest brightness level among the preset brightness levels that is lower than the current brightness level; the upper limit brightness level includes the lowest brightness level among the preset brightness levels that is higher than the current brightness level; based on the mapping relationship between the brightness level and the voltage brightness value, determining a first preset brightness voltage value corresponding to the lower limit brightness level and a second preset brightness voltage value corresponding to the upper limit brightness level; and determining the basic brightness voltage value according to the lower limit brightness level, the first preset brightness voltage value, the upper limit brightness level and the second preset brightness voltage value, and based on an interpolation algorithm.
[0021] In the above implementation process, since the mapping relationship between the brightness level and the voltage brightness value includes: multiple preset brightness levels and the preset brightness voltage value corresponding to each preset brightness level. In the case where there is a preset brightness level that is the same as the current brightness level, the basic brightness voltage value can be determined according to the preset brightness voltage value corresponding to the preset brightness level; in the case where there is no preset brightness level that is the same as the current brightness level, the basic brightness voltage value can be determined according to the brightness level range in which the current brightness is equal and the interpolation algorithm.
[0022] Optionally, in the embodiment of the present application, the determining the basic brightness voltage value based on the lower limit brightness level, the first preset brightness voltage value, the upper limit brightness level and the second preset brightness voltage value and based on an interpolation algorithm includes: Determine the basic brightness voltage value; wherein, x0 represents the current brightness level, y0 represents the basic brightness voltage value, x1 represents the lower limit brightness level, y1 represents the first preset brightness voltage value, x2 represents the upper limit brightness level, and y2 represents the second preset brightness voltage value.
[0023] In the above implementation process, based on In the absence of a preset brightness level that is the same as the current brightness level, the basic brightness voltage value corresponding to the current brightness level can be determined simply and efficiently.
[0024] Optionally, in an embodiment of the present application, determining the basic compensation value corresponding to the current brightness level includes: determining the basic compensation value according to the current brightness level and a mapping relationship between the brightness level and the compensation value.
[0025] Optionally, in an embodiment of the present application, the mapping relationship between the brightness level and the compensation value includes: multiple compensation brightness levels and a preset compensation value corresponding to each of the compensation brightness levels; in a case where there is a compensation brightness level that is the same as the current brightness level, the basic compensation value is determined according to the preset compensation value corresponding to the compensation brightness level; in a case where there is no compensation brightness level that is the same as the current brightness level, a lower limit compensation level and an upper limit compensation level corresponding to the current brightness level are determined; wherein the lower limit compensation level includes the highest brightness level among the compensation brightness levels that is lower than the current brightness level; the upper limit compensation level includes the lowest brightness level among the compensation brightness levels that is higher than the current brightness level; based on the mapping relationship between the brightness level and the compensation value, a first compensation value corresponding to the lower limit compensation level and a second compensation value corresponding to the upper limit compensation level are determined; the basic compensation value is determined according to the lower limit compensation level, the first compensation value, the upper limit compensation level and the second compensation value, and based on an interpolation algorithm.
[0026] Optionally, in the embodiment of the present application, the determining the basic compensation value based on the lower limit compensation level, the first compensation value, the upper limit compensation level and the second compensation value and based on an interpolation algorithm includes: based on Determine the basic compensation value; wherein x0 represents the current brightness level, b0 represents the basic compensation value, a1 represents the lower limit compensation level, b1 represents the first compensation value, a2 represents the upper limit compensation level, and b2 represents the second compensation value.
[0027] In a second aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the method for determining the brightness voltage of an unlocking area as described in any one of the first aspects above.
[0028] In a third aspect, an embodiment of the present application further provides an electronic device; the electronic device includes:
[0029] Memory;
[0030] processor;
[0031] The memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the method for determining the brightness voltage of the unlocking area described in any one of the first aspects is performed.
[0032] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the method for determining the brightness voltage of an unlocking area as described in any one of the first aspects is executed.
[0033] The beneficial effects of the present application include at least: the method for determining the brightness voltage of the unlocked area determines the basic brightness voltage value of the unlocked area according to the current brightness level; determines the voltage compensation value according to the current brightness level and the current picture load; and determines the regional brightness voltage value of the unlocked area according to the basic brightness voltage value and the voltage compensation value. In the process of determining the brightness voltage of the unlocked area based on this method, the current brightness level and the current picture load are fully considered, and the voltage compensation value is determined based on the current picture load, so as to compensate for the brightness change of the display panel caused by the current picture load according to the voltage compensation value, thereby reducing the influence of different picture loads on the brightness of the display panel, and thus ensuring that the brightness of the unlocked area is within the unlocking requirement range as much as possible. The technical problem that the existing unlocked area brightness setting method cannot meet the actual unlocking requirements is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic flow chart of a method for determining the brightness voltage of an unlocking area provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a flow chart of a method for determining a voltage compensation value provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a mapping relationship between a picture grayscale and a picture load provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0041] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0042] IRdrop refers to a phenomenon in which the voltage on the power supply and ground network in an integrated circuit drops or rises. With the evolution of semiconductor technology, the width of metal interconnects has become narrower and narrower, resulting in an increase in resistance and a decrease in supply voltage, and the IRdrop effect has become more and more obvious. AMOLED display panels have an IRdrop effect, and the inventors found that when the screen load is small, the brightness of the unlocking area is relatively high, and when the screen load is large, the brightness of the unlocking area will become lower, resulting in the existing unlocking area brightness setting method being unable to meet the actual unlocking needs.
[0043] Based on this, this application provides a method for determining the brightness voltage of an unlocking area. Figure 1 A flow chart of a method for determining the brightness voltage of an unlocking area provided by an embodiment of the present application is shown. The method for determining the brightness voltage of an unlocking area may include the following steps:
[0044] S101, determining a basic brightness voltage value of an unlocking area according to a current brightness level;
[0045] S102, determining a voltage compensation value according to the current brightness level and the current picture load;
[0046] S103: Determine a regional brightness voltage value of the unlocking area according to the basic brightness voltage value and the voltage compensation value.
[0047] Wherein, in step 101, the display panel usually has a plurality of set display brightness levels, and the different display brightness levels may be continuously changed (for example, the display brightness level is adjusted by a continuously sliding brightness bar), or may be intermittent (for example, the display brightness level includes a plurality of intermittently set display brightness levels). The basic brightness voltage values corresponding to different brightness levels may be the same or different. When the VGS and VGM (corresponding to the minimum and maximum values of the gamma voltage, respectively) corresponding to different display brightness levels are the same, the basic brightness voltage values corresponding to different display brightness levels may also be the same; when the VGS and VGM corresponding to different display brightness levels are different, the above-mentioned basic brightness voltage value may be determined according to the mapping relationship between the brightness level and the voltage brightness value.
[0048] Among them, in step 102, the current picture load can be determined according to the picture grayscale of the current picture. When the display brightness level remains unchanged, the closer the picture grayscale is to 255, the larger the corresponding picture load. The mapping relationship between the picture load and the voltage compensation value at different brightness levels can be determined respectively. Then, the above-mentioned voltage compensation value is determined based on the mapping relationship between the picture load corresponding to the current brightness level and the voltage compensation value. It is also possible to determine the mapping relationship between the brightness level and the voltage compensation value under different picture loads. Then, the above-mentioned voltage compensation value is determined based on the mapping relationship between the brightness level corresponding to the current picture load and the voltage compensation value.
[0049] In step 103, the regional brightness voltage value of the unlocked area may be determined based on the sum of the basic brightness voltage value and the voltage compensation value. The regional brightness voltage value of the unlocked area may also be determined based on the basic brightness voltage value, the voltage compensation value, and the proportional coefficients corresponding to the basic brightness voltage value and the voltage compensation value, respectively.
[0050] It can be seen that the brightness voltage determination method of the unlocking area provided by the embodiment of the present application fully considers the current brightness level and the current picture load in the process of determining the brightness voltage of the unlocking area, and determines the voltage compensation value based on the current picture load, so as to compensate for the brightness change of the display panel caused by the current picture load according to the voltage compensation value, thereby reducing the influence of different picture loads on the brightness of the display panel, and thus ensuring that the brightness of the unlocking area is within the unlocking requirement range as much as possible. The technical problem that the existing unlocking area brightness setting method cannot meet the actual unlocking requirements is solved.
[0051] Please refer to Figure 2 , Figure 2A flow chart of a method for determining a voltage compensation value provided in an embodiment of the present application. In some optional embodiments, S102, determining a voltage compensation value according to the current brightness level and the current picture load, includes: S1021, determining a basic compensation value corresponding to the current brightness level; S1022, determining a compensation coefficient according to the current picture load; S1023, determining the voltage compensation value according to the basic compensation value and the compensation coefficient.
[0052] Among them, the above-mentioned basic compensation value can be determined according to the mapping relationship between the brightness level and the compensation value. The current picture load can be determined according to the current picture grayscale and the corresponding relationship between the picture grayscale and the picture load; and the compensation coefficient can be determined according to the current picture load. The compensation coefficient can be greater than or equal to 0, and less than or equal to 1. Exemplarily, when the display brightness level remains unchanged, the compensation coefficient corresponding to the picture grayscale of 255 (the brightest picture, corresponding to the picture load of 100%) can be set to 1, and the compensation coefficient corresponding to the picture grayscale of 0 (the darkest picture, corresponding to the picture load of 0%) can be set to 0; and the closer the picture grayscale is to 255, the larger the corresponding picture load, and accordingly, the closer the compensation coefficient is to 1. When the picture grayscale is 255, the corresponding picture load is 1 or 100%; when the picture grayscale is 0, the corresponding picture load is 0 or 0%, the picture load can be determined as the compensation coefficient. When the range of the picture load is not [0,1] or [0%, 100%], the picture load can be normalized, and the compensation coefficient is determined according to the normalization result of the picture load. By determining the voltage compensation value based on the basic compensation value corresponding to the current brightness level and the compensation coefficient corresponding to the current picture load; and compensating for the display panel brightness change caused by the current picture load based on the voltage compensation value, the impact of different picture loads on the display panel brightness can be reduced.
[0053] In some optional embodiments, the method for determining the current picture load includes: determining the current picture load according to the grayscale of the current picture and the mapping relationship between the grayscale and the brightness.
[0054] Among them, the mapping relationship between grayscale and brightness can be determined according to the gamma correction coefficient of the actual display panel (which can be 1.6, 2.0, 2.2 or other reasonable values, which is not specifically limited in this application). For example, when the grayscale of the picture is 255, the corresponding picture load can be 1; when the grayscale of the picture is 0, the corresponding picture load can be 0; on this basis, the mapping relationship between grayscale and brightness can be combined to determine the mapping relationship between grayscale and picture load. Please refer to Figure 3 , Figure 3 A schematic diagram of a mapping relationship between picture grayscale and picture load provided in an embodiment of the present application. Figure 3 FIG. 1 shows a schematic diagram of a mapping relationship between a picture grayscale and a picture load when the gamma correction coefficient of an actual display panel is 2.2, and FIG. Figure 3 Specifically, it shows the situation that "when the grayscale of the picture is 255, the corresponding picture load is 1; when the grayscale of the picture is 0, the corresponding picture load is 0". According to the mapping relationship between grayscale and brightness, the picture brightness corresponding to the current picture grayscale can be quickly and accurately determined, and then the current picture load can be determined according to the picture brightness.
[0055] In some optional embodiments, determining the current picture load based on the grayscale of the current picture and the mapping relationship between the grayscale and the brightness includes: determining the pixel load corresponding to each pixel based on the pixel grayscale of each pixel in the current picture and the mapping relationship between the pixel grayscale and the brightness; calculating the average pixel load of the current picture based on the pixel load corresponding to each pixel; and determining the current picture load based on the average pixel load.
[0056] The mapping relationship between the pixel grayscale and the brightness can also be determined based on the gamma correction coefficient of the actual display panel. The specific implementation method of "determining the pixel load corresponding to each pixel according to the pixel grayscale of each pixel in the current picture and the mapping relationship between the pixel grayscale and the brightness" can refer to the above description of "determining the current picture load according to the current picture grayscale and the mapping relationship between the grayscale and the brightness". The average pixel load of the current picture can be calculated based on the pixel load corresponding to each pixel, so as to more accurately determine the current picture load based on the average pixel load.
[0057] In some optional embodiments, the pixel grayscale includes: R component grayscale, G component grayscale and B component grayscale; determining the pixel load corresponding to each pixel according to the pixel grayscale of each pixel in the current picture and the mapping relationship between the pixel grayscale and the brightness includes: determining the R component load corresponding to the R component of each pixel, the G component load corresponding to the G component and the B component load corresponding to the B component according to the R component grayscale, the G component grayscale, the B component grayscale and the mapping relationship between the pixel grayscale and the brightness; determining the pixel load according to the R component load, the G component load, the B component load and the influence factors of different component loads on the pixel load.
[0058] Among them, the R component grayscale, the G component grayscale and the B component grayscale represent the red component grayscale, the green component grayscale and the blue component grayscale respectively. The grayscale value range of the R component grayscale, the G component grayscale and the B component grayscale can all be [0,255]. The mapping relationship between the pixel grayscale and the brightness can be determined based on the gamma correction coefficient of the actual display panel; and according to the mapping relationship between the pixel grayscale and the brightness, the component loads corresponding to the different component grayscales are determined. The specific implementation method of "determining the R component load corresponding to the R component of each pixel, the G component load corresponding to the G component and the B component load corresponding to the B component according to the R component grayscale, the G component grayscale, the B component grayscale and the mapping relationship between the pixel grayscale and the brightness of each pixel" can refer to the above description of "determining the current picture load according to the current picture grayscale and the mapping relationship between the grayscale and the brightness". The sum of the influence factors of different component loads on the pixel load is 1. Exemplarily, the influence factors of the R component load, the G component load and the B component load on the pixel load may be 0.3, 0.4 and 0.3 respectively (or 0.35, 0.35 and 0.3 respectively). The influence factors of different component loads on the pixel load may be adjusted according to actual needs, and the present application does not make specific limitations on this. The influence factors of different component loads corresponding to different brightness levels on the pixel load may be the same or may not be exactly the same. In the case where the pixel grayscale includes: R component grayscale, G component grayscale and B component grayscale, the above pixel load is determined based on the R component load corresponding to the R component of each pixel, the G component load corresponding to the G component, the B component load corresponding to the B component, and the influence factors of different component loads on the pixel load.
[0059] In some optional embodiments, S101, determining a basic brightness voltage value of the unlocked area according to a current brightness level, includes: determining a basic brightness voltage value of the unlocked area according to the current brightness level and a mapping relationship between the brightness level and the voltage brightness value.
[0060] Among them, when the VGS and VGM corresponding to different display brightness levels are different, the above-mentioned basic brightness voltage value can be determined according to the mapping relationship between the brightness level and the voltage brightness value. The mapping relationship between the brightness level and the voltage brightness value may include: a corresponding relationship between the brightness level and the voltage brightness value; it may also include multiple preset brightness levels and a preset brightness voltage value corresponding to each of the preset brightness levels. According to the mapping relationship between the brightness level and the voltage brightness value, the basic brightness voltage value of the unlocking area corresponding to the current brightness level can be quickly and accurately determined.
[0061] In some optional embodiments, the mapping relationship between the brightness level and the voltage brightness value includes: multiple preset brightness levels and a preset brightness voltage value corresponding to each of the preset brightness levels; the determining the basic brightness voltage value of the unlocking area according to the current brightness level and the mapping relationship between the brightness level and the voltage brightness value includes: in the case where there is a preset brightness level that is the same as the current brightness level, determining the basic brightness voltage value according to the preset brightness voltage value corresponding to the preset brightness level; in the case where there is no preset brightness level that is the same as the current brightness level, determining the lower limit brightness level and the upper limit brightness level corresponding to the current brightness level; wherein the lower limit brightness level includes the highest brightness level among the preset brightness levels that is lower than the current brightness level; the upper limit brightness level includes the lowest brightness level among the preset brightness levels that is higher than the current brightness level; based on the mapping relationship between the brightness level and the voltage brightness value, determining a first preset brightness voltage value corresponding to the lower limit brightness level and a second preset brightness voltage value corresponding to the upper limit brightness level; and determining the basic brightness voltage value according to the lower limit brightness level, the first preset brightness voltage value, the upper limit brightness level and the second preset brightness voltage value, and based on an interpolation algorithm.
[0062] Among them, the number of preset brightness levels can be adjusted according to actual application requirements. In the case where there is a preset brightness level that is the same as the current brightness level, the preset brightness voltage value corresponding to the preset brightness level that is the same as the current brightness level can be determined as the basic brightness voltage value. In the case where there is no preset brightness level that is the same as the current brightness level, the basic brightness voltage value corresponding to the current brightness level between the two adjacent preset brightness levels can be determined according to each two adjacent preset brightness levels. The interpolation algorithm may include a linear interpolation algorithm or a nonlinear interpolation algorithm, and a suitable interpolation algorithm may be selected according to actual requirements to calculate the above basic brightness voltage value. Since the mapping relationship between the brightness level and the voltage brightness value includes: multiple preset brightness levels and the preset brightness voltage value corresponding to each preset brightness level. In the case where there is a preset brightness level that is the same as the current brightness level, the basic brightness voltage value can be determined according to the preset brightness voltage value corresponding to the preset brightness level; in the case where there is no preset brightness level that is the same as the current brightness level, the basic brightness voltage value can be determined according to the brightness level range in which the current brightness is equal and the interpolation algorithm.
[0063] Wherein, in the case where there is a preset brightness level that is the same as the current brightness level, the “influence factor of different component loads on pixel load” corresponding to the current brightness level may be determined based on the “influence factor of different component loads on pixel load” corresponding to the preset brightness level that is the same as the current brightness level. In the case where there is no preset brightness level that is the same as the current brightness level, the “influence factor of different component loads on pixel load” corresponding to the lower limit brightness level (or upper limit brightness level) corresponding to the current brightness level may be determined based on the “influence factor of different component loads on pixel load” corresponding to the current brightness level.
[0064] In some optional embodiments, the determining the basic brightness voltage value based on the lower brightness level, the first preset brightness voltage value, the upper brightness level and the second preset brightness voltage value and based on an interpolation algorithm includes: Determine the basic brightness voltage value; wherein, x0 represents the current brightness level, y0 represents the basic brightness voltage value, x1 represents the lower limit brightness level, y1 represents the first preset brightness voltage value, x2 represents the upper limit brightness level, and y2 represents the second preset brightness voltage value.
[0065] Among them, based on In the absence of a preset brightness level that is the same as the current brightness level, the basic brightness voltage value corresponding to the current brightness level can be determined simply and efficiently.
[0066] In some optional embodiments, determining the basic compensation value corresponding to the current brightness level includes: determining the basic compensation value according to the current brightness level and a mapping relationship between the brightness level and the compensation value.
[0067] The mapping relationship between the brightness level and the compensation value may include: a corresponding relationship between the brightness level and the compensation value; or may include multiple compensation brightness levels and a preset compensation value corresponding to each compensation brightness level. According to the mapping relationship between the brightness level and the compensation value, the basic compensation value corresponding to the current brightness level can be quickly and accurately determined.
[0068] In some optional embodiments, the mapping relationship between the brightness level and the compensation value includes: multiple compensation brightness levels and a preset compensation value corresponding to each of the compensation brightness levels; determining the basic compensation value according to the current brightness level and the mapping relationship between the brightness level and the compensation value includes: in the case where there is a compensation brightness level that is the same as the current brightness level, determining the basic compensation value according to the preset compensation value corresponding to the compensation brightness level; in the case where there is no compensation brightness level that is the same as the current brightness level, determining the lower limit compensation level and the upper limit compensation level corresponding to the current brightness level; wherein the lower limit compensation level includes the highest brightness level among the compensation brightness levels that is lower than the current brightness level; the upper limit compensation level includes the lowest brightness level among the compensation brightness levels that is higher than the current brightness level; based on the mapping relationship between the brightness level and the compensation value, determining a first compensation value corresponding to the lower limit compensation level and a second compensation value corresponding to the upper limit compensation level; and determining the basic compensation value according to the lower limit compensation level, the first compensation value, the upper limit compensation level and the second compensation value, and based on an interpolation algorithm.
[0069] Among them, the number of compensation brightness levels can be adjusted according to actual application requirements. In the case where there is a compensation brightness level that is the same as the current brightness level, the preset compensation value corresponding to the compensation brightness level that is the same as the current brightness level can be determined as the basic compensation value. In the case where there is no compensation brightness level that is the same as the current brightness level, the basic compensation value corresponding to the current brightness level between the two adjacent compensation brightness levels can be determined based on each two adjacent compensation brightness levels. The interpolation algorithm may include a linear interpolation algorithm or a nonlinear interpolation algorithm, and a suitable interpolation algorithm may be selected according to actual requirements to calculate the above basic compensation value.
[0070] In some optional embodiments, determining the basic compensation value based on the lower compensation level, the first compensation value, the upper compensation level, and the second compensation value and based on an interpolation algorithm includes: Determine the basic compensation value; wherein x0 represents the current brightness level, b0 represents the basic compensation value, a1 represents the lower limit compensation level, b1 represents the first compensation value, a2 represents the upper limit compensation level, and b2 represents the second compensation value.
[0071] Among them, based on In the absence of a compensation brightness level that is the same as the current brightness level, the basic compensation value corresponding to the current brightness level can be determined simply and efficiently.
[0072] In some optional embodiments, the preset brightness voltage value corresponding to each preset brightness level may include: an R component basic voltage value, a G component basic voltage value, and a B component basic voltage value corresponding to each preset brightness level. The preset compensation value corresponding to each compensation brightness level may include: an R component basic compensation value, a G component basic compensation value, and a B component basic compensation value corresponding to each compensation brightness level. Determining the basic brightness voltage value of the unlocked area according to the current brightness level and the mapping relationship between the brightness level and the voltage brightness value includes: determining the R component basic area voltage value, the G component basic area voltage value, and the B component basic area voltage value of the unlocked area corresponding to the current brightness level according to the current brightness level and the mapping relationship between the brightness level and the voltage brightness value. Determining the basic compensation value according to the current brightness level and the mapping relationship between the brightness level and the compensation value includes: determining the R component area compensation value, the G component area compensation value, and the B component area compensation value corresponding to the current brightness level according to the current brightness level and the mapping relationship between the brightness level and the compensation value.
[0073] The regional brightness voltage value of the unlocked area includes the brightness voltage value of the R component, the brightness voltage value of the G component, and the brightness voltage value of the B component. The brightness voltage value of the R component is determined according to the sum of the voltage value of the R component base area and the regional compensation value of the R component; the brightness voltage value of the G component is determined according to the sum of the voltage value of the G component base area and the regional compensation value of the G component; and the brightness voltage value of the B component is determined according to the sum of the voltage value of the B component base area and the regional compensation value of the B component.
[0074] An embodiment of the present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the method for determining the brightness voltage of an unlocking area as described in any one of the first aspects above.
[0075] Please refer to Figure 4 , Figure 4 The present invention provides a schematic diagram of the structure of an electronic device 200 provided in an embodiment of the present application. The electronic device 200 includes: a memory 202 and a processor 201; the memory 202 stores a computer program executable by the processor 201, and when the computer program is executed by the processor 201, the method for determining the brightness voltage of the unlocking area described in any one of the first aspects is executed.
[0076] The memory 202 and the processor 201 may be interconnected and communicate with each other via a communication bus 203 and / or other forms of connection mechanisms (not shown). The memory 202 stores a computer program executable by the processor 201, and when the computer program is executed by the processor 201, the method for determining the brightness voltage of the unlocking area described in the first aspect above is executed.
[0077] The embodiment of the present application further provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by the processor 201, the brightness voltage determination method of the unlocking area described in the first aspect above is executed.
[0078] Among them, the storage medium 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 red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0079] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed device / system and method can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0080] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0081] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.
Claims
1. A method for determining the brightness voltage of an unlocking area, characterized in that: The method comprises: According to the current brightness level, determine the basic brightness voltage value of the unlocking area; Determining a voltage compensation value according to the current brightness level and the current picture load; The regional brightness voltage value of the unlocking area is determined according to the basic brightness voltage value and the voltage compensation value.
2. The method according to claim 1, characterized in that The determining of the voltage compensation value according to the current brightness level and the current picture load includes: Determining a basic compensation value corresponding to the current brightness level; Determining a compensation coefficient according to the current picture load; The voltage compensation value is determined according to the basic compensation value and the compensation coefficient.
3. The method according to claim 1 or 2, characterized in that: in, The current picture load is determined by: The current picture load is determined according to the current picture grayscale and the mapping relationship between the grayscale and the brightness.
4. The method according to claim 3, characterized in that The determining the current picture load according to the current picture grayscale and the mapping relationship between the grayscale and the brightness includes: Determine the pixel load corresponding to each pixel according to the pixel grayscale of each pixel in the current picture and the mapping relationship between the pixel grayscale and the brightness; Calculate the average pixel load of the current picture according to the pixel load corresponding to each pixel; The current picture load is determined according to the pixel average load.
5. The method according to claim 4, characterized in that in, The pixel grayscale includes: R component grayscale, G component grayscale and B component grayscale; The step of determining the pixel load corresponding to each pixel according to the pixel grayscale of each pixel in the current picture and the mapping relationship between the pixel grayscale and the brightness includes: Determine an R component load corresponding to the R component of each pixel, a G component load corresponding to the G component, and a B component load corresponding to the B component according to the R component grayscale, the G component grayscale, the B component grayscale of each pixel, and a mapping relationship between the pixel grayscale and the brightness; The pixel load is determined according to the R component load, the G component load, the B component load, and influence factors of different component loads on the pixel load.
6. The method according to claim 1, characterized in that The step of determining the basic brightness voltage value of the unlocking area according to the current brightness level includes: The basic brightness voltage value of the unlocking area is determined according to the current brightness level and a mapping relationship between the brightness level and the voltage brightness value.
7. The method according to claim 6, characterized in that in, The mapping relationship between the brightness level and the voltage brightness value includes: a plurality of preset brightness levels and a preset brightness voltage value corresponding to each of the preset brightness levels; The determining the basic brightness voltage value of the unlocking area according to the current brightness level and the mapping relationship between the brightness level and the voltage brightness value includes: In the case where there is a preset brightness level that is the same as the current brightness level, determining the basic brightness voltage value according to a preset brightness voltage value corresponding to the preset brightness level; In the case where there is no preset brightness level that is the same as the current brightness level, determining a lower brightness level and an upper brightness level corresponding to the current brightness level; wherein the lower brightness level includes the highest brightness level among the preset brightness levels that is lower than the current brightness level; and the upper brightness level includes the lowest brightness level among the preset brightness levels that is higher than the current brightness level; Based on the mapping relationship between the brightness level and the voltage brightness value, determining a first preset brightness voltage value corresponding to the lower limit brightness level and a second preset brightness voltage value corresponding to the upper limit brightness level; The basic brightness voltage value is determined based on an interpolation algorithm according to the lower brightness level, the first preset brightness voltage value, the upper brightness level, and the second preset brightness voltage value.
8. The method according to claim 7, characterized in that The determining the basic brightness voltage value based on the lower brightness level, the first preset brightness voltage value, the upper brightness level and the second preset brightness voltage value and based on an interpolation algorithm includes: based on Determine the basic brightness voltage value; wherein, x0 represents the current brightness level, y0 represents the basic brightness voltage value, x1 represents the lower limit brightness level, y1 represents the first preset brightness voltage value, x2 represents the upper limit brightness level, and y2 represents the second preset brightness voltage value.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
10. An electronic device, characterized in that: The electronic device comprises: Memory; processor; The memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the method according to any one of claims 1 to 8 is performed.
Citation Information
Cited By
Motor encoder calibration method and calibration device
CN121655599A