Screen light leakage amount determination and brightness adjustment method and device, and electronic device
By constructing a light leakage mapping relationship, the amount of light leakage on the screen under different display content can be directly queried, which solves the problem of screen light leakage interference, improves efficiency and accuracy, and reduces costs.
Patent Information
- Application Number
- CN202110235300.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-03
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2041-03-03
AI Technical Summary
In the prior art, electronic devices are affected by screen light leakage when sensing ambient light brightness, resulting in perception deviation and affecting screen display effect. Furthermore, the methods for determining screen light leakage are costly and inefficient.
By constructing a light leakage mapping relationship, the amount of light leakage on the screen under different display content is determined in advance. The amount of light leakage corresponding to the target display content can be directly queried from the mapping relationship, avoiding screen light leakage calculation and reducing resource consumption and errors.
It improves the efficiency and accuracy of determining screen light leakage, reduces costs, and ensures the effectiveness of screen brightness adjustment.
Smart Images

Figure CN115019730B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a screen light leakage amount determination method and device, electronic equipment and computer readable storage medium, and a screen brightness adjustment method and device, electronic equipment and computer readable storage medium. BACKGROUND
[0002] With the wide application of electronic equipment, people have higher and higher requirements for the screen display of electronic equipment, such as higher and higher requirements for the picture quality and clarity of the display picture, and automatic adjustment of screen brightness. When the screen automatically adjusts the brightness, the display brightness of the screen is generally adjusted according to the sensed ambient light brightness, such as adjusting the display brightness of the screen when the sensed ambient light brightness is high, so as to ensure the screen display effect.
[0003] However, the ambient light brightness sensed by the electronic equipment is often disturbed by the screen self-emission light leakage problem, resulting in deviation of the sensed ambient light brightness and affecting the screen display effect. In the current screen light leakage determination method, a large amount of resources are required for screen light leakage calculation, and the cost of screen light leakage determination is high and the efficiency is low. SUMMARY
[0004] The present application provides a screen light leakage amount determination method, device, electronic equipment and computer readable storage medium, and a screen brightness adjustment method, device, electronic equipment and computer readable storage medium, which can reduce the cost of determining the screen light leakage amount and improve the processing efficiency of determining the screen light leakage amount.
[0005] A screen light leakage amount determination method, the method comprising:
[0006] determining the target display content of the screen;
[0007] querying the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the preset light leakage mapping relationship;
[0008] The light leakage mapping relationship includes the screen light leakage amount corresponding to the screen in the case of displaying various display contents.
[0009] A screen light leakage amount determination device, the device comprising:
[0010] The display content determination module is configured to determine the target display content of the screen;
[0011] The light leakage amount query module is configured to query the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the preset light leakage mapping relationship;
[0012] The light leakage mapping relationship includes screen light leakage amounts corresponding to the screen in displaying various display contents.
[0013] An electronic device includes a memory storing a computer program and a processor, which, when executing the computer program, implements the following steps:
[0014] Determining target display content of the screen;
[0015] Obtaining, from a preset light leakage mapping relationship, a screen light leakage amount corresponding to the screen in displaying the target display content;
[0016] The light leakage mapping relationship includes screen light leakage amounts corresponding to the screen in displaying various display contents.
[0017] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0018] Determining target display content of the screen;
[0019] Obtaining, from a preset light leakage mapping relationship, a screen light leakage amount corresponding to the screen in displaying the target display content;
[0020] The light leakage mapping relationship includes screen light leakage amounts corresponding to the screen in displaying various display contents.
[0021] A screen brightness adjustment method includes:
[0022] Obtaining an ambient light sensation amount;
[0023] Determining a screen light leakage amount corresponding to the screen in displaying target display content; the screen light leakage amount is obtained by querying a preset light leakage mapping relationship;
[0024] Obtaining an actual light sensation amount according to the ambient light sensation amount and the screen light leakage amount;
[0025] Adjusting the brightness of the screen based on the actual light sensation amount.
[0026] A screen brightness adjustment device includes:
[0027] An ambient light sensation amount obtaining module for obtaining an ambient light sensation amount;
[0028] A screen light leakage amount determining module for determining a screen light leakage amount corresponding to the screen in displaying target display content; the screen light leakage amount is obtained by querying a preset light leakage mapping relationship;
[0029] The actual light-sensing amount determination module is configured to obtain the actual light-sensing amount according to the ambient light-sensing amount and the screen light leakage amount.
[0030] The brightness adjustment module is configured to adjust the brightness of the screen based on the actual light-sensing amount.
[0031] An electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0032] Obtain the ambient light-sensing amount.
[0033] Determine the screen light leakage amount corresponding to the screen when displaying the target display content; the screen light leakage amount is obtained by querying from a preset light leakage mapping relationship.
[0034] Obtain the actual light-sensing amount according to the ambient light-sensing amount and the screen light leakage amount.
[0035] Adjust the brightness of the screen based on the actual light-sensing amount.
[0036] A computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
[0037] Obtain the ambient light-sensing amount.
[0038] Determine the screen light leakage amount corresponding to the screen when displaying the target display content; the screen light leakage amount is obtained by querying from a preset light leakage mapping relationship.
[0039] Obtain the actual light-sensing amount according to the ambient light-sensing amount and the screen light leakage amount.
[0040] Adjust the brightness of the screen based on the actual light-sensing amount.
[0041] The screen light leakage determination and screen brightness adjustment method, device, electronic device, and storage medium, by querying the screen light leakage amount corresponding to the screen when displaying the target display content from the preset light leakage mapping relationship including the screen light leakage amounts corresponding to the screen when displaying various display contents, respectively, can directly query the corresponding screen light leakage amount from the preset light leakage mapping relationship after determining the target display content of the screen, without consuming a large amount of resources for screen light leakage calculation, effectively reducing the cost of determining the screen light leakage amount and improving the processing efficiency of determining the screen light leakage amount. BRIEF DESCRIPTION OF DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0043] Figure 1 For an embodiment of the application environment diagram of screen light leakage amount determination method and screen brightness adjustment method;
[0044] Figure 2 For an embodiment of the flow chart of screen light leakage amount determination method;
[0045] Figure 3 For an embodiment of the interface schematic diagram of screen display bright display content;
[0046] Figure 4 For an embodiment of the interface schematic diagram of screen display dim display content;
[0047] Figure 5 For an embodiment of the schematic diagram of screen light leakage principle;
[0048] Figure 6 For an embodiment of the formula fitting result schematic diagram of screen capture algorithm;
[0049] Figure 7 For an embodiment of the flow chart of querying screen light leakage amount;
[0050] Figure 8 For an embodiment of the flow chart of screen brightness adjustment method;
[0051] Figure 9 For an embodiment of the structural block diagram of screen light leakage amount determination device;
[0052] Figure 10 For an embodiment of the structural block diagram of screen brightness adjustment device;
[0053] Figure 11 For an embodiment of the internal structure diagram of electronic equipment. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the present application more clear, the following will further describe the present application in combination with the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
[0055] It can be understood that the terms "first", "second", etc. used in the present application can be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first client can be called the second client, and similarly, the second client can be called the first client. The first client and the second client are both clients, but they are not the same client.
[0056] Figure 1 An application environment schematic diagram of the screen light leakage amount determination method in an embodiment. As shown in the figure, the application environment includes an electronic device 102 with a screen and a server 104. The screen of the electronic device 102 is used to display a picture, and the displayed picture can be content stored locally by the electronic device 102 or content issued by the server 104. The electronic device 102 determines the target display content of the screen, and queries the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the preset light leakage mapping relationship. Figure 1
[0057] Among them, the electronic device 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, smart watches, smart bracelets and other portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0058] Figure 1 It can also be an application environment schematic diagram of the screen brightness adjustment method in an embodiment. As shown in the figure, the screen of the electronic device 102 is used to display a picture, and the displayed picture can be content stored locally by the electronic device 102 or content issued by the server 104. The electronic device 102 obtains the ambient light sensing amount and determines the screen light leakage amount corresponding to the screen in the case of displaying the target display content, which is obtained by querying from the preset light leakage mapping relationship. The electronic device 102 obtains the actual light sensing amount according to the ambient light sensing amount and the screen light leakage amount, such as removing the influence of the screen light leakage amount from the ambient light sensing amount to obtain the actual light sensing amount which can accurately reflect the intensity of the ambient light, and adjusts the brightness of the screen based on the actual light sensing amount, effectively reducing the cost of screen brightness adjustment and improving the processing efficiency of screen brightness adjustment. Figure 1
[0059] Figure 2 A flowchart of the screen light leakage amount determination method in an embodiment. The screen light leakage amount determination method in the present embodiment is described taking the electronic device running in the application environment as an example. As shown in the figure, the screen light leakage amount determination method includes steps 202 to 204. Figure 1 Figure 2
[0060] Step 202: Determine the target content to be displayed on the screen.
[0061] Specifically, the screen refers to the display screen of an electronic device, used to display images on the device. The target display content refers to the image that needs to be displayed on the screen of the electronic device or the image that is already displayed on the screen. In other words, the method for determining screen light leakage can be implemented either before the target display content is displayed on the screen or after the corresponding target display content has already been displayed on the screen.
[0062] For example, when the electronic device is a wristband, the target display content can be various screens pre-configured on the wristband, such as watch faces, settings interfaces, sleep monitoring interfaces, and exercise interfaces. Different electronic devices have different target display content, and the number of target display contents that can be displayed also varies.
[0063] Step 204: From the preset light leakage mapping relationship, query the screen light leakage amount corresponding to the screen when displaying the target display content; wherein, the light leakage mapping relationship includes the screen light leakage amount corresponding to the screen when displaying various display contents.
[0064] The light leakage mapping relationship includes the amount of light leakage from the screen when displaying various content. Electronic devices display different content, resulting in varying levels of light leakage due to differences in the screen's own emission levels. For example... Figure 3 As shown, when the electronic device screen displays a colorful, bright daytime image, the screen's own light emission is strong, resulting in significant light leakage. However, as... Figure 4 As shown, when the electronic device's screen displays a dim, nighttime scene, the screen's own light emission is weak, resulting in minimal light leakage. Specifically, the various display contents the electronic device needs to display can be predetermined, along with the corresponding screen light leakage. This can be achieved by controlling the electronic device's screen to display different contents and measuring the light leakage for each content. Based on these various display contents and their corresponding light leakage amounts, a light leakage mapping relationship can be constructed.
[0065] In a specific implementation, considering the diversity of screen display pictures of various electronic devices, the target display content of the screen can be summarized. For example, when the number of target display content of the electronic device screen is limited, such as 100 display contents, a mapping relationship between the 100 display contents and the corresponding screen light leakage amount can be constructed to obtain the light leakage mapping relationship. When the number of target display content of the electronic device screen is large, such as a smart phone can connect to the Internet through an application program to obtain various information in the Internet for display, the number of display content of the screen is difficult to enumerate, and the display content can be classified and summarized. For example, the display content can be classified and summarized according to the application program category, and the screen light leakage amount of the display content corresponding to various application programs can be determined. For example, a display test can be performed on the display content supported by the application program to obtain the screen light leakage amount corresponding to the application program according to the test results. The screen interface can also be classified and summarized, such as a music playing interface, a video playing interface, a webpage, etc., to determine different display contents and measure the corresponding screen light leakage amount to establish the light leakage mapping relationship. In addition, a mapping relationship between general display content and general screen light leakage amount can also be set, and the general screen light leakage amount can be set according to the actual application scenario. When the target display content cannot be determined, such as the target display content does not belong to the display content in the light leakage mapping relationship, the general display content displayed on the screen can be determined, and the general screen light leakage amount corresponding to the general display content can be determined as the screen light leakage amount of the screen when displaying the target display content.
[0066] In a specific application, the electronic device can query the preset light leakage mapping relationship, and the light leakage mapping relationship includes the screen light leakage amount of the electronic device screen when displaying various display contents. The electronic device queries the screen light leakage amount corresponding to the target display content from the light leakage mapping relationship. For example, the target content identifier of the target display content can be matched with the content identifier of various display contents in the light leakage mapping relationship, and the screen light leakage amount corresponding to the content identifier matched with the target content identifier can be determined as the screen light leakage amount corresponding to the target display content.
[0067] In practical implementations, smartwatches and fitness trackers typically incorporate ALS (Ambient Light Sensors) to automatically adjust screen brightness under varying ambient light conditions. To enhance the aesthetics of these devices, ALS sensors are generally not designed with separate openings; instead, they are placed directly beneath the AMOLED (Active-matrix organic light-emitting diode) screen, utilizing the screen's low light transmittance (approximately 2%–3% transmittance) to detect ambient light. Figure 5 As shown, the ALS under the screen receives both ambient light and light leakage from the AMOLED screen's own light emission. To adjust screen brightness, it's necessary to detect ambient light, but the screen's own light emission can interfere with the ALS's sensing value. To accurately obtain the ambient light intensity, an algorithm is needed to remove the interference from the screen's own light emission.
[0068] Assuming the raw light sensing value acquired by the ALS is Raw_data, where the light sensing value generated by ambient light is A_data (the ambient light passes through the screen and is sensed by the ALS), reflecting the actual light intensity above the screen, and the light leakage from the screen is L_data, then Raw_data = A_data + L_data. Therefore, the ambient light sensing value A_data = Raw_data – L_data is obtained. Raw_data is the real-time output value of the ALS sensor and can be directly read. Accurately calculating the screen's own light leakage L_data becomes the key technical point for automatic screen brightness adjustment.
[0069] Traditional solutions use screenshot algorithms to capture the screen display content in the light-sensing area and calculate the current amount of light leakage. This method requires real-time capture of the current screen display and calculation of the light leakage. Each screenshot and calculation requires significant data processing, consuming substantial CPU resources and power, placing a heavy burden on battery life, especially for electronic devices like watches and fitness trackers with limited battery capacity and high battery endurance requirements. Furthermore, traditional solutions rely on pre-fitting a formula for screen light leakage trends. This formula can only be obtained through fitting, and calculating the light leakage amount using the formula introduces errors, limiting the accuracy of the determined light leakage. Figure 6 As shown, in the formula fitting process of the screenshot algorithm in a specific embodiment, the horizontal and vertical coordinates of each curve are in pixels; the red fitting curve is curve 1, and its curve formula is R_Comp=R_Cal*[0.00002*R 3 +0.001*R 2+ 0.4942 * R], the determined coefficient of determination R R 2 = 0.9999, the curve 1 corresponds to the vertical coordinate R Comp, indicating the red fitting result, the horizontal coordinate R is the red pixel value, R Cal is the red calibration coefficient; the green fitting curve is curve 2, and the curve formula of the curve 2 is G Comp = G Cal *[0.00002 * G 3 + 0.0009 * G 2 + 0.34565 * G], the curve 2 corresponds to the vertical coordinate G Comp, indicating the green fitting result, the horizontal coordinate R is the green pixel value, G Cal is the green calibration coefficient, and the determined coefficient of determination R G 2 = 0.9998; the blue fitting curve is curve 3, and the curve formula of the curve 3 is B Comp = B Cal *[0.000008 * B 3 + 0.001 * B 2 + 0.1564 * B], the determined coefficient of determination R B 2 = 0.9995, the curve 3 corresponds to the vertical coordinate B Comp, indicating the blue fitting result, the horizontal coordinate R is the blue pixel value, B Cal is the blue calibration coefficient. The determined coefficient of determination reflects the fitting degree, and the closer the coefficient of determination is to 1, the higher the fitting degree is. There is a certain error in the fitting, and generally, a completely fitted curve (i.e., the coefficient of determination is 1) cannot be obtained.
[0070] In the embodiment, for the electronic device such as a smart watch or a bracelet, the number of display contents of the electronic device is limited, various display contents of the screen of the electronic device can be exhausted, and the screen light leakage amount corresponding to the screen when displaying various display contents can be determined, so as to construct the light leakage mapping relationship of the electronic device. When the target display content of the screen of the electronic device is determined, the screen light leakage amount corresponding to the screen when displaying the target display content can be directly queried from the light leakage mapping relationship, so as to avoid the screen capture and the light leakage calculation and processing of the screen display content, reduce the consumption of the calculation resource, reduce the cost of determining the screen light leakage amount, and improve the determination efficiency of the screen light leakage amount. Meanwhile, the light leakage mapping relationship is pre-established and determined by querying, without formula fitting, so as to reduce the error of determining the screen light leakage amount and improve the accuracy of determining the screen light leakage amount, thereby ensuring the effect of the screen brightness adjustment.
[0071] The screen light leakage amount determination method in the embodiment can directly query the corresponding screen light leakage amount from the preset light leakage mapping relationship after determining the target display content of the screen, without consuming a large amount of resources for screen light leakage calculation, effectively reducing the cost of determining the screen light leakage amount, and improving the processing efficiency of determining the screen light leakage amount.
[0072] In one embodiment, before querying the screen light leakage amount corresponding to the target display content of the screen from the preset light leakage mapping relationship, the method further includes: determining a target brightness level of the screen.
[0073] The target brightness level represents the brightness of the screen of the electronic device when displaying, and can be set by the user, for example, the user sets the target brightness level of the screen through the brightness adjustment control in the display brightness interface of the electronic device. The target brightness level of the screen can also be flexibly set by the electronic device according to the preset brightness setting condition, for example, the corresponding brightness level can be set according to the display content category of the screen of the electronic device, for example, when the electronic device displays a two-dimensional code for payment, in order to ensure that the two-dimensional code can be successfully scanned, the target brightness level of the screen can be set to be high. For another example, the corresponding brightness level can be set according to the ambient light intensity of the electronic device, for example, the electronic device obtains the ambient light intensity sensed by the ALS sensor, and sets the corresponding brightness level based on the ambient light intensity.
[0074] Specifically, the electronic device can query the brightness level information of the screen before querying the light leakage mapping relationship, so as to obtain the target brightness level of the screen according to the brightness level information.
[0075] Further, querying the target light leakage amount corresponding to the target display content of the screen from the preset light leakage mapping relationship includes: querying a preset brightness light leakage mapping relationship; the brightness light leakage mapping relationship includes light leakage amounts corresponding to various display contents displayed by the screen at different brightness levels; and querying the screen light leakage amount corresponding to the target display content of the screen from the brightness light leakage mapping relationship according to the target display content and the target brightness level.
[0076] The luminance light leakage mapping relationship includes light leakage amounts corresponding to the screen in different luminance levels displaying various display contents, that is, for the same display content, the light leakage amount of the screen is different when the screen displays the display content at different luminance levels. Specifically, after the target luminance level of the screen, the electronic device queries the preset luminance light leakage mapping relationship, and according to the target display content and the target luminance level, the screen light leakage amount corresponding to the screen in the case of displaying the target display content is obtained from the luminance light leakage mapping relationship. For example, a query relationship can be obtained according to the target content identifier of the target display content and the target luminance level, and based on the query relationship, the screen light leakage amount corresponding to the screen in the case of displaying the target display content is obtained from the luminance light leakage mapping relationship.
[0077] In this embodiment, according to the target display content and the target luminance level of the screen, the screen light leakage amount corresponding to the screen in the case of displaying the target display content is obtained from the preset luminance light leakage mapping relationship including light leakage amounts corresponding to the screen in different luminance levels displaying various display contents, so that the corresponding screen light leakage amount is obtained according to the luminance level and the display content of the screen. It does not need to consume a large amount of resources to calculate the screen light leakage amount under different luminance levels and different display contents, effectively reduces the cost of determining the screen light leakage amount, and improves the determination efficiency of the screen light leakage amount.
[0078] In one embodiment, the luminance light leakage mapping relationship includes a light leakage mapping table; according to the target display content and the target luminance level, the screen light leakage amount corresponding to the screen in the case of displaying the target display content is obtained from the luminance light leakage mapping relationship, including: obtaining a table lookup parameter according to the target content identifier of the target display content and the target luminance level; according to the table lookup parameter, the light leakage mapping table is queried to obtain the screen light leakage amount corresponding to the screen in the case of displaying the target display content.
[0079] The luminance light leakage mapping relationship includes a light leakage mapping table. The light leakage mapping table records the corresponding light leakage amount of the screen in the case of displaying various display contents at different luminance levels in the form of a list or a table. Specifically, when querying the screen light leakage amount, the electronic device obtains a table lookup parameter according to the target content identifier of the target display content and the target luminance level. The target content identifier is used to identify the target display content, which can be a picture number, a content name, etc. of the target display content. Different display contents correspond to different content identifiers, so that various display contents of the electronic device can be distinguished through the content identifiers. The form of the table lookup parameter can correspond to the light leakage mapping table, which can be (target content identifier, target luminance level) or (target luminance level, target content identifier), or various forms such as “target content identifier_target luminance level”. After obtaining the table lookup parameter, the electronic device queries the light leakage mapping table according to the table lookup parameter, and obtains the corresponding screen light leakage amount of the screen in the case of displaying the target display content according to the query result. For example, the target content identifier and the target luminance level in the table lookup parameter can be compared with the content identifier and the luminance level in the light leakage mapping table respectively, and the screen light leakage amount corresponding to the matching content identifier and luminance level is determined as the screen light leakage amount corresponding to the case that the screen displays the target display content at the target luminance level.
[0080] In this embodiment, the table lookup parameter is obtained according to the target content identifier and the target luminance level of the target display content, and the corresponding screen light leakage amount of the screen in the case of displaying the target display content is obtained from the light leakage mapping table according to the table lookup parameter. The determination of the screen light leakage amount is simplified to one table lookup process, which effectively reduces the processing complexity of the determination of the screen light leakage amount, reduces the cost of determining the screen light leakage amount, and improves the determination efficiency of the screen light leakage amount.
[0081] In one embodiment, as shown in FIG. 7, Figure 7 The process of querying the screen light leakage amount, i.e., obtaining the corresponding screen light leakage amount of the screen in the case of displaying the target display content from the preset light leakage mapping relationship, includes steps 702 to 706.
[0082] Step 702, determining the target content identifier of the target display content.
[0083] The target content identifier is used to identify the target display content, which can be a picture number, a content name, etc. of the target display content. Different display contents correspond to different content identifiers, so that various display contents of the electronic device can be distinguished through the content identifiers.
[0084] Specifically, when the light leakage amount of the query screen is queried, the electronic device can determine the target content identifier of the target display content, specifically can query the content description information of the target display content, and determine the target content identifier of the target display content from the content description information.
[0085] In step 704, the preset content light leakage mapping relationship is queried. The content light leakage mapping relationship includes the screen light leakage amount corresponding to the screen displaying various display contents.
[0086] The content light leakage mapping relationship includes the screen light leakage amount corresponding to the screen displaying various display contents. When the screen displays different display contents, the screen itself emits light to different degrees, so the screen light leakage amount caused by the self-emission of the screen is also different. The content light leakage mapping relationship can be obtained by an exhaustive method, for example, the electronic device screen can display each display content respectively, and the corresponding screen light leakage amount is measured when the screen displays various display contents, and then the content light leakage mapping relationship is established.
[0087] In step 706, the screen light leakage amount corresponding to the screen displaying the target display content is queried from the content light leakage mapping relationship according to the target content identifier.
[0088] Specifically, after determining the target content identifier of the target display content and obtaining the preset content light leakage mapping relationship, the electronic device queries the screen light leakage amount corresponding to the screen displaying the target display content from the content light leakage mapping relationship based on the target content identifier. In specific implementation, the content light leakage mapping relationship can include the mapping relationship between the content identifiers of various display contents and the corresponding screen light leakage amount, and the electronic device can match the target content identifier with each content identifier in the content light leakage mapping relationship, and determine the screen light leakage amount corresponding to the matching content identifier as the screen light leakage amount corresponding to the screen displaying the target display content.
[0089] In this embodiment, the screen light leakage amount corresponding to the screen displaying the target display content is queried from the preset content light leakage mapping relationship including the screen light leakage amount corresponding to the screen displaying various display contents according to the target content identifier of the target display content, without consuming a large amount of resources for screen light leakage calculation, effectively reducing the cost of determining the screen light leakage amount and improving the processing efficiency of determining the screen light leakage amount.
[0090] In one embodiment, the screen light leakage amount determination method further includes: obtaining a calibration coefficient of the screen; and performing calibration processing on the screen light leakage amount according to the calibration coefficient to obtain a calibrated screen light leakage amount.
[0091] The calibration coefficient reflects the influence of the screen itself on the screen light leakage amount. Different screens have different influences on the light leakage amount due to different materials, structures, or processes, and the influence is fixed when the screen is finalized and will not change significantly. For example, the screen itself has different light transmittances, different shapes, and different sizes.
[0092] Specifically, the electronic device obtains the calibration coefficient of the screen, which is related to the screen and can include but is not limited to the light transmittance of the screen, the shape or area of the screen, and the like. The calibration coefficient can be obtained by querying the attribute information of the screen, which includes various parameters describing the screen itself, such as the manufacturer of the screen, the light transmittance of the screen, the shape and size of the screen, and the like. Based on the calibration coefficient of the screen, the electronic device calibrates the obtained screen light leakage amount to correct the light leakage interference caused by the screen itself, and obtains the calibrated screen light leakage amount.
[0093] In this embodiment, the calibrated screen light leakage amount not only reflects the influence of the screen display content on the light leakage amount, but also reflects the interference of the screen itself on the light leakage amount. The calibrated screen light leakage amount can accurately reflect the light leakage of the screen when displaying the target display content, ensuring the accuracy of the screen light leakage amount.
[0094] In one embodiment, obtaining the calibration coefficient of the screen includes: determining a light transmission parameter of the screen; and determining the calibration coefficient of the screen based on the light transmission parameter.
[0095] The light transmission parameter can include the light transmittance of the screen, which is related to the material, structure, and process of the screen itself, and is also related to the shape and size of the screen. The light transmittance of the screen refers to the ratio of the light flux of light transmitted through the screen to the light flux of light incident on the screen, which is expressed in percentage. The light transmittance of the screen reflects the ability of the screen to transmit light, and the higher the transmittance, the more light is transmitted through the screen.
[0096] Specifically, the electronic device determines the light transmission parameter of the screen, which can be extracted from the attribute information of the screen. The electronic device determines the calibration coefficient of the screen based on the light transmission parameter, such as mapping the light transmission parameter to obtain the calibration coefficient of the screen. In this embodiment, the calibration coefficient of the screen is determined based on the light transmission parameter of the screen, so that the calibration coefficient of the screen light leakage amount is determined according to the light transmission ability of the screen, which can correct the light leakage interference caused by the screen itself and improve the accuracy of the screen light leakage amount.
[0097] In one embodiment, the light leakage mapping relationship is determined according to the screen light leakage amount corresponding to each display content displayed by the standard screen.
[0098] The display content is all the screens of the electronic device that can display the picture, different electronic devices correspond to different display pictures, and the electronic device can also have different display pictures in different scenes. For example, the screen of the electronic device such as a smart phone and a notebook computer can display a large number of pictures without limitation; and the screen of the wearable electronic device such as a smart watch and a smart bracelet can display a limited number of pictures, for example, the watch can display a limited number of pictures such as a watch dial, a phone, music, and an email. The standard screen is the screen of the electronic device that displays the display content, and the standard screen and the screen for determining the light leakage amount can be the same type of screen, for example, the screen of a smart bracelet. The standard screen can include a plurality of screens of the same type of electronic device, so that the light leakage mapping relationship can be constructed based on the screens of the plurality of same type of electronic devices. For example, the electronic device is a smart watch A, and the standard screen can be the screen of a plurality of smart watches A, each smart watch A displays each display content according to the standard screen, so that the light leakage mapping relationship corresponding to the smart watch A is constructed after the screen light leakage amount is determined, and when the screen light leakage amount of the electronic device is determined, the screen light leakage amount corresponding to the display of the target display content can be directly queried based on the light leakage mapping relationship corresponding to the smart watch A.
[0099] Specifically, when the electronic device determines each display content of the screen, the electronic device can obtain picture description information of the electronic device, and the picture description information records the content of each picture displayed on the screen of the electronic device, for example, the picture displayed on the screen of the smart watch when displaying the watch dial. The electronic device analyzes the picture description information to obtain each display content of the screen. For example, the pictures corresponding to different function scenes can be divided into different display contents, and the pictures corresponding to different interfaces can be divided into different display contents.
[0100] After determining each display content of the screen, the standard screen of the electronic device is determined to correspond to the screen light leakage amount when displaying each display content. Specifically, the electronic device can control the standard screen to display each display content respectively, and measure the corresponding screen light leakage amount when the standard screen displays each display content respectively. The standard screen and the screen for determining the light leakage amount belong to the same type of screen of the same type of electronic device, and the electronic device establishes the mapping relationship between each display content and the corresponding screen light leakage amount to obtain the light leakage mapping relationship. For example, the electronic device can determine the content identifier corresponding to each display content, and establish the mapping relationship between the content identifier corresponding to each display content and the corresponding screen light leakage amount to obtain the light leakage mapping relationship, so that the screen light leakage amount when the screen displays the target display content can be queried in the light leakage mapping relationship through the target content identifier of the target display content.
[0101] In this embodiment, according to various display contents of the screen and the screen light leakage amount corresponding to the standard screen in the case of displaying various display contents, the light leakage mapping relationship of the screen is established, so that the light leakage mapping relationship is determined according to the screen light leakage amount corresponding to the standard screen in the case of displaying various display contents. After the target display content of the screen is determined, the corresponding screen light leakage amount can be directly queried from the light leakage mapping relationship, without consuming a large amount of resources for screen light leakage calculation, effectively reducing the cost of determining the screen light leakage amount, and improving the processing efficiency of determining the screen light leakage amount.
[0102] In one embodiment, the application also provides an application scenario for applying the above-mentioned screen light leakage amount determination method. Specifically, the screen light leakage amount determination method is applied in the following application scenario:
[0103] The screen light leakage amount determination method is applied to electronic devices such as smart watches or smart bands with limited display screens. The screen light leakage amount of each display screen is pre-set by an exhaustive method and saved in the system. When needed, the current screen light leakage amount is obtained directly by table lookup, thereby saving the steps of screen capture and calculation, reducing power consumption, and the light leakage amount does not need to be calculated by formula fitting and back calculation, so that the screen light leakage amount can be more accurately obtained.
[0104] Specifically, the light leakage amount of the screen is mainly determined by three factors: first, the screen display content, different display contents produce different light leakage amounts; second, the screen brightness level, different brightness levels produce different light leakage amounts; third, the screen's own transmittance, which is basically fixed when the screen module is shaped, only with small range of distribution fluctuation, without large amplitude change. For the screen display content and the screen brightness level, a light leakage amount relational function can be formed, i.e. light leakage amount L_data≈f(picture, brightness). Assuming that the screen brightness has 256 levels (0-255) in total, and the screen picture of the electronic device has n in total, a light leakage mapping table can be pre-constructed, as shown in Table 1 below.
[0105] Table 1
[0106]
[0107] For the screen's own transmittance, although the screen transmittance has small amplitude fluctuation, the overall is linear change, so a calibration coefficient can be multiplied on the basis of the light leakage amount L_data data to complete the calibration. Assuming that the calibration coefficient is cal, the relationship of the screen light leakage L_data can be obtained as L_data=f(picture, brightness)*cal. According to this relationship, only the display picture number, brightness level and calibration coefficient at that time need to be determined, and the light leakage amount L_data of the picture at that time can be accurately obtained.
[0108] In the embodiment, the screen light leakage amount of the current picture is obtained by the table lookup method, so that the steps of screen capturing and calculation are omitted, the energy consumption is reduced, the light leakage calculation accuracy is improved, and the user experience is improved.
[0109] Figure 8 A flowchart of the screen brightness adjustment method in one embodiment. The screen brightness adjustment method in the embodiment is described by taking an electronic device running on an electronic device as an example. As shown in Figure 1 , the screen light leakage amount determination method includes steps 802 to 808. Figure 8
[0110] Step 802, obtaining an ambient light intensity;
[0111] Step 804, determining the screen light leakage amount corresponding to the screen displaying the target display content; the screen light leakage amount is obtained by querying from a preset light leakage mapping relationship;
[0112] Step 806, obtaining an actual light intensity according to the ambient light intensity and the screen light leakage amount;
[0113] Step 808, adjusting the brightness of the screen based on the actual light intensity.
[0114] The ambient light intensity represents the current ambient light intensity of the screen of the electronic device, which can be obtained by the electronic device through the set ambient light sensor. The ambient light sensor can sense the surrounding light condition and inform the processing chip to automatically adjust the display backlight brightness, thereby reducing the power consumption of the product. The ambient light sensor is based on the thermoelectric effect principle, the sensing element adopts a wire-plated multi-point thermocouple, the surface is coated with a black coating with high absorption rate, the hot junction is on the sensing surface, and the cold junction is in the body. The cold and hot junctions generate a temperature difference potential. In the linear range, the output signal is proportional to the solar irradiance. In order to reduce the influence of temperature, a temperature compensation circuit is provided. In order to prevent the influence of the environment on its performance, two layers of quartz glass covers are used. The cover is precisely machined by optical cold processing.
[0115] The light leakage mapping relationship includes screen light leakage amounts corresponding to the screen in displaying various display contents. Specifically, various display contents that the electronic device needs to display can be determined in advance, and screen light leakage amounts corresponding to the various display contents can be determined, such as by measuring screen light leakage amounts corresponding to the screen in displaying various display contents by controlling the screen of the electronic device to display various display contents. According to various display contents that the electronic device needs to display and corresponding screen light leakage amounts, a light leakage mapping relationship is constructed. When the screen displays content, the screen itself emits light, and when the ambient light sensor senses ambient light, it detects the light leakage generated by the light emitted by the screen itself, thereby causing the ambient light sensing amount to have a certain error. The actual light sensing amount represents the actual ambient light intensity without the error introduced by the screen light leakage amount.
[0116] Specifically, when the electronic device performs screen brightness adjustment processing, the electronic device obtains an ambient light sensing amount, which is sensed by the ambient light sensor of the electronic device. The electronic device determines a screen light leakage amount corresponding to the screen in displaying target display content; the screen light leakage amount is obtained by querying a preset light leakage mapping relationship. For example, a target content identifier of the target display content can be matched with content identifiers of various display contents in the light leakage mapping relationship, and a screen light leakage amount corresponding to a content identifier that matches the target content identifier is determined as the screen light leakage amount corresponding to the screen in displaying the target display content.
[0117] After determining the screen light leakage amount corresponding to the screen in displaying the target display content, the electronic device obtains an actual light sensing amount according to the ambient light sensing amount and the screen light leakage amount, such as obtaining the actual light sensing amount according to a difference between the ambient light sensing amount and the screen light leakage amount, and adjusts the brightness of the screen based on the actual light sensing amount, such as brightening or dimming the screen.
[0118] In this embodiment, the screen light leakage amount corresponding to the screen in displaying the target display content is obtained by querying a preset light leakage mapping relationship that includes screen light leakage amounts corresponding to the screen in displaying various display contents, so that after determining the target display content of the screen, the corresponding screen light leakage amount can be directly queried from the preset light leakage mapping relationship without consuming a large amount of resources for screen light leakage calculation, effectively reducing the cost of determining the screen light leakage amount and improving the processing efficiency of determining the screen light leakage amount. Further, the screen light leakage amount is used to determine the actual light sensing amount according to the ambient light sensing amount, and the brightness of the screen is adjusted based on the actual light sensing amount, effectively reducing the cost of screen brightness adjustment and improving the processing efficiency of screen brightness adjustment.
[0119] In one embodiment, the screen light leakage amount corresponding to the screen in the case of displaying the target display content is determined by: determining a target brightness level of the screen; querying a preset brightness-light leakage mapping relationship; the brightness-light leakage mapping relationship comprises screen light leakage amounts corresponding to the screen in the case of displaying various display contents at different brightness levels respectively; and querying the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the brightness-light leakage mapping relationship according to the target display content and the target brightness level.
[0120] The target brightness level represents the brightness of the screen of the electronic device when displaying, and can be set by a user, for example, the user sets the target brightness level of the screen through a brightness adjustment control in a display brightness interface of the electronic device. The electronic device can query the brightness level information of the screen, and thus obtain the target brightness level of the screen according to the brightness level information. The brightness-light leakage mapping relationship comprises screen light leakage amounts corresponding to the screen in the case of displaying various display contents at different brightness levels respectively, that is, for the same display content, the screen light leakage amount is different when the screen displays the display content at different brightness levels. Specifically, after the target brightness level of the screen is set, the electronic device queries the preset brightness-light leakage mapping relationship, and queries the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the brightness-light leakage mapping relationship according to the target display content and the target brightness level. For example, a query relationship can be obtained according to the target content identifier of the target display content and the target brightness level, and the screen light leakage amount corresponding to the screen in the case of displaying the target display content is queried from the brightness-light leakage mapping relationship based on the query relationship.
[0121] In this embodiment, the screen light leakage amount corresponding to the screen in the case of displaying the target display content is queried from the preset brightness-light leakage mapping relationship according to the target display content and the target brightness level of the screen, the brightness-light leakage mapping relationship comprising screen light leakage amounts corresponding to the screen in the case of displaying various display contents at different brightness levels respectively, so that the corresponding screen light leakage amount is queried according to the brightness level and the display content of the screen, without consuming a large amount of resources to calculate the screen light leakage amount under different brightness levels and different display contents, thereby effectively reducing the cost of determining the screen light leakage amount and improving the determination efficiency of the screen light leakage amount.
[0122] In one embodiment, the brightness-light leakage mapping relationship comprises a light leakage mapping table, and the screen light leakage amount corresponding to the screen in the case of displaying the target display content is queried from the brightness-light leakage mapping relationship according to the target display content and the target brightness level by: obtaining a table lookup parameter according to the target content identifier of the target display content and the target brightness level; and querying the light leakage mapping table according to the table lookup parameter to obtain the screen light leakage amount corresponding to the screen in the case of displaying the target display content.
[0123] The brightness light leakage mapping relationship includes a light leakage mapping table. The light leakage mapping table records the corresponding light leakage amounts of the screen in different brightness levels displaying various display contents in the form of a list or a table. Specifically, when querying the screen light leakage amount, the electronic device obtains a table lookup parameter according to the target content identifier of the target display content and the target brightness level. The target content identifier is used to identify the target display content, such as a picture number, a content name, etc. Different display contents correspond to different content identifiers, so that various display contents of the electronic device can be distinguished through the content identifiers. After obtaining the table lookup parameter, the electronic device queries the light leakage mapping table according to the table lookup parameter, and obtains the corresponding screen light leakage amount of the screen displaying the target display content according to the query result. For example, the target content identifier and the target brightness level in the table lookup parameter can be compared with the content identifier and the brightness level in the light leakage mapping table respectively, and the screen light leakage amount corresponding to the matching content identifier and brightness level is determined as the screen light leakage amount corresponding to the target display content displayed by the screen at the target brightness level.
[0124] In this embodiment, the table lookup parameter is obtained according to the target content identifier of the target display content and the target brightness level, and the corresponding screen light leakage amount of the screen displaying the target display content is obtained from the light leakage mapping table according to the table lookup parameter. The determination of the screen light leakage amount is simplified to one table lookup process, which effectively reduces the processing complexity of the determination of the screen light leakage amount, reduces the cost of determining the screen light leakage amount, and improves the determination efficiency of the screen light leakage amount.
[0125] In one embodiment, determining the screen light leakage amount corresponding to the target display content includes: determining a target content identifier of the target display content; querying a preset content light leakage mapping relationship; the content light leakage mapping relationship includes screen light leakage amounts corresponding to various display contents; and querying the screen light leakage amount corresponding to the target display content from the content light leakage mapping relationship according to the target content identifier.
[0126] The target content identifier is used to identify the target display content, such as a picture number, a content name, etc. Different display contents correspond to different content identifiers, so that various display contents of the electronic device can be distinguished through the content identifiers. The content light leakage mapping relationship includes screen light leakage amounts corresponding to various display contents. The content light leakage mapping relationship can be obtained by an exhaustive method, such as making the electronic device screen display each display content, measuring the corresponding screen light leakage amount when the screen displays various display contents, and then establishing the content light leakage mapping relationship.
[0127] Specifically, when the screen light leakage amount is queried, the electronic device can determine the target content identifier of the target display content, specifically, query the content description information of the target display content, and determine the target content identifier of the target display content from the content description information. After determining the target content identifier of the target display content and obtaining the preset content light leakage mapping relationship, the electronic device queries the screen light leakage amount corresponding to the case where the screen displays the target display content from the content light leakage mapping relationship based on the target content identifier. In specific implementation, the content light leakage mapping relationship can include the mapping relationship between the content identifiers of various display contents and the corresponding screen light leakage amounts, and the electronic device can match the target content identifier with each content identifier in the content light leakage mapping relationship, and determine the screen light leakage amount corresponding to the matching content identifier as the screen light leakage amount corresponding to the case where the screen displays the target display content.
[0128] In the embodiment, the screen light leakage amount corresponding to the case where the screen displays the target display content is queried from the preset content light leakage mapping relationship including the screen light leakage amounts corresponding to the cases where the screen displays various display contents, according to the target content identifier of the target display content, without consuming a large amount of resources for screen light leakage calculation, effectively reducing the cost of determining the screen light leakage amount and improving the processing efficiency of determining the screen light leakage amount.
[0129] In one embodiment, before obtaining the actual light sensation amount according to the ambient light sensation amount and the screen light leakage amount, further comprising: obtaining a calibration coefficient of the screen; and performing calibration processing on the screen light leakage amount according to the calibration coefficient to obtain a calibrated screen light leakage amount.
[0130] The calibration coefficient reflects the influence of the screen itself on the screen light leakage amount. Different screens have different influences on the light leakage amount due to different materials, structures, or processes, and the influence is fixed when the screen is shaped and will not change significantly. Specifically, the electronic device obtains the calibration coefficient of the screen, which is related to the screen and can include but is not limited to the transmittance of the screen to light, the shape or area of the screen itself, etc. The calibration coefficient can be obtained by querying the attribute information of the screen. The attribute information of the screen includes various parameters describing the screen itself, such as the manufacturer of the screen, the transmittance of the screen to light, the shape and size of the screen, etc. The electronic device performs calibration processing on the screen light leakage amount obtained by querying based on the calibration coefficient of the screen, to correct the light leakage amount interference caused by the factors of the screen itself, and obtains the calibrated screen light leakage amount.
[0131] Further, obtaining the actual light sensation amount according to the ambient light sensation amount and the screen light leakage amount includes: obtaining the actual light sensation amount according to the ambient light sensation amount and the calibrated screen light leakage amount.
[0132] After obtaining the calibrated screen light leakage amount, the electronic device obtains the actual light sense amount according to the ambient light sense amount and the calibrated screen light leakage amount, thereby improving the accuracy of the actual light sense amount and ensuring the effect of brightness adjustment.
[0133] In this embodiment, the calibrated screen light leakage amount not only reflects the influence of the screen display content on the light leakage amount, but also reflects the interference of the screen itself on the light leakage amount. The calibrated screen light leakage amount can accurately reflect the light leakage of the screen in the case of displaying the target display content, thereby ensuring the accuracy of the screen light leakage amount, improving the accuracy of the actual light sense amount, and ensuring the effect of brightness adjustment.
[0134] In one embodiment, the calibration coefficient of the screen is obtained, including: determining a light transmission parameter of the screen; and determining the calibration coefficient of the screen based on the light transmission parameter.
[0135] The light transmission parameter can include the transmittance of the screen to light, which is related to the material, structure and process of the screen itself, and also related to the shape and size of the screen. Specifically, the electronic device determines the light transmission parameter of the screen, which can be extracted from the attribute information of the screen. The electronic device determines the calibration coefficient of the screen based on the light transmission parameter, such as mapping the light transmission parameter to obtain the calibration coefficient of the screen. In this embodiment, the calibration coefficient of the screen is determined based on the light transmission parameter of the screen, so that the calibration coefficient is calibrated according to the light transmission capability of the screen. The light leakage amount interference caused by the screen itself can be corrected, thereby improving the accuracy of the screen light leakage amount.
[0136] In one embodiment, the light leakage mapping relationship is determined according to the screen light leakage amount corresponding to each display content displayed by the standard screen.
[0137] The display content is all the pictures that can be displayed on the screen of the electronic device. Different electronic devices correspond to different display pictures, and the electronic device can also have different display pictures in different scenarios. Specifically, when determining the display content of the screen, the electronic device can obtain picture description information of the electronic device, which records the content of each picture displayed on the screen of the electronic device, such as the picture displayed on the screen when the smart watch displays the watch face. The electronic device analyzes the picture description information to obtain the display content of the screen. For example, the pictures corresponding to different function scenarios can be divided into different display contents, and the pictures corresponding to different interfaces can also be divided into different display contents.
[0138] After determining the display content of the screen, the electronic device determines the screen light leakage amount corresponding to the standard screen respectively in the case of displaying the display content. Specifically, the electronic device can control the standard screen to display the display content respectively, and measure the corresponding screen light leakage amount when the standard screen displays the display content respectively. The electronic device establishes the mapping relationship between the display content and the corresponding screen light leakage amount respectively, and obtains the light leakage mapping relationship. For example, the electronic device can determine the content identifier corresponding to the display content, and establish the mapping relationship between the content identifier corresponding to the display content and the corresponding screen light leakage amount, and obtain the light leakage mapping relationship, so that the screen light leakage amount of the screen in the case of displaying the target display content can be obtained by querying the light leakage mapping relationship through the target content identifier of the target display content.
[0139] In this embodiment, the light leakage mapping relationship of the screen is established according to various display contents of the screen and the screen light leakage amount corresponding to the standard screen respectively in the case of displaying various display contents, so that the light leakage mapping relationship is determined according to the screen light leakage amount corresponding to the standard screen respectively in the case of displaying the display content. After determining the target display content of the screen, the corresponding screen light leakage amount can be directly obtained from the light leakage mapping relationship, without consuming a large amount of resources for screen light leakage calculation, effectively reducing the cost of determining the screen light leakage amount, and improving the processing efficiency of determining the screen light leakage amount.
[0140] It should be understood that, although Figure 2 、 7 Each step in the flowchart of -8 is displayed in sequence according to the direction of the arrow, but these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps has no strict order limitation, and these steps can be executed in other orders. Moreover, Figure 2 、 7 At least part of the steps in -8 can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be alternately executed with other steps or sub-steps or stages of other steps.
[0141] Figure 9 The structural block diagram of the screen light leakage determination apparatus 900 of an embodiment is shown. As shown in Figure 9 The screen light leakage determination apparatus 900 includes a display content determination module 902 and a light leakage amount query module 904.
[0142] The display content determination module 902 is configured to determine the target display content of the screen.
[0143] The light leakage amount querying module 904 is configured to query the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the preset light leakage mapping relationship.
[0144] The light leakage mapping relationship includes the screen light leakage amount corresponding to the screen in the case of displaying various display contents.
[0145] In one embodiment, the light leakage amount querying module 904 includes a brightness mapping relationship querying module and a brightness mapping relationship processing module, wherein: the brightness mapping relationship querying module is configured to query the preset brightness light leakage mapping relationship; the brightness light leakage mapping relationship includes the screen light leakage amount corresponding to the screen in the case of displaying various display contents at different brightness levels; and the brightness mapping relationship processing module is configured to query the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the brightness light leakage mapping relationship according to the target display content and the target brightness level.
[0146] In one embodiment, the brightness light leakage mapping relationship includes a light leakage mapping table; and the brightness mapping relationship processing module is further configured to obtain a table lookup parameter according to the target content identifier of the target display content and the target brightness level, and perform a table lookup in the light leakage mapping table according to the table lookup parameter to obtain the screen light leakage amount corresponding to the screen in the case of displaying the target display content.
[0147] In one embodiment, the light leakage amount querying module 904 includes a target identifier determining module, a content mapping relationship querying module, and a content mapping relationship processing module, wherein: the target identifier determining module is configured to determine the target content identifier of the target display content; the content mapping relationship querying module is configured to query the preset content light leakage mapping relationship; the content light leakage mapping relationship includes the screen light leakage amount corresponding to the screen in the case of displaying various display contents; and the content mapping relationship processing module is configured to query the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the content light leakage mapping relationship according to the target content identifier.
[0148] In one embodiment, the light leakage amount querying module 904 includes a target identifier determining module, a content mapping relationship querying module, and a content mapping relationship processing module, wherein: the target identifier determining module is configured to determine the target content identifier of the target display content; the content mapping relationship querying module is configured to query the preset content light leakage mapping relationship; the content light leakage mapping relationship includes the screen light leakage amount corresponding to the screen in the case of displaying various display contents; and the content mapping relationship processing module is configured to query the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the content light leakage mapping relationship according to the target content identifier.
[0149] In one embodiment, the calibration coefficient obtaining module is further configured to determine the light transmission parameter of the screen; and the calibration coefficient of the screen is determined based on the light transmission parameter.
[0150] In one embodiment, the light leakage mapping relationship is determined according to the screen light leakage amount corresponding to the standard screen in the case of displaying various display contents.
[0151] Figure 10 A structural block diagram of a screen brightness adjustment apparatus 1000 in one embodiment. As shown, the screen brightness adjustment apparatus 1000 includes an ambient light intensity acquisition module 1002, a screen light leakage amount determination module 1004, an actual light intensity determination module 1006, and a brightness adjustment module 1008, wherein: Figure 10
[0152] The ambient light intensity acquisition module 1002 is configured to acquire an ambient light intensity.
[0153] The screen light leakage amount determination module 1004 is configured to determine a screen light leakage amount corresponding to a screen displaying a target display content; the screen light leakage amount is obtained by querying a preset light leakage mapping relationship.
[0154] The actual light intensity determination module 1006 is configured to obtain an actual light intensity according to the ambient light intensity and the screen light leakage amount.
[0155] The brightness adjustment module 1008 is configured to adjust a brightness of the screen based on the actual light intensity.
[0156] In one embodiment, the screen light leakage amount determination module 1004 includes a brightness level determination module, a brightness mapping relationship query module, and a brightness mapping relationship processing module; wherein: the brightness level determination module is configured to determine a target brightness level of the screen; the brightness mapping relationship query module is configured to query a preset brightness light leakage mapping relationship; the brightness light leakage mapping relationship includes screen light leakage amounts corresponding to the screen displaying various display contents at different brightness levels; and the brightness mapping relationship processing module is configured to query the screen light leakage amount corresponding to the screen displaying the target display content from the brightness light leakage mapping relationship according to the target display content and the target brightness level.
[0157] In one embodiment, the brightness light leakage mapping relationship includes a light leakage mapping table; and the brightness mapping relationship processing module is further configured to obtain a table lookup parameter according to a target content identifier of the target display content and the target brightness level; and perform a table lookup in the light leakage mapping table according to the table lookup parameter to obtain the screen light leakage amount corresponding to the screen displaying the target display content.
[0158] In one embodiment, the screen light leakage amount determination module 1004 comprises a target identification determination module, a content mapping relationship query module and a content mapping relationship processing module, wherein: the target identification determination module is configured to determine a target content identification of the target display content; the content mapping relationship query module is configured to query a preset content light leakage mapping relationship; the content light leakage mapping relationship comprises screen light leakage amounts corresponding to the screen respectively in the case of displaying various display contents; and the content mapping relationship processing module is configured to query the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the content light leakage mapping relationship according to the target content identification.
[0159] In one embodiment, the screen light leakage amount determination module 1004 comprises a target identification determination module, a content mapping relationship query module and a content mapping relationship processing module, wherein: the target identification determination module is configured to determine a target content identification of the target display content; the content mapping relationship query module is configured to query a preset content light leakage mapping relationship; the content light leakage mapping relationship comprises screen light leakage amounts corresponding to the screen respectively in the case of displaying various display contents; and the content mapping relationship processing module is configured to query the screen light leakage amount corresponding to the screen in the case of displaying the target display content from the content light leakage mapping relationship according to the target content identification.
[0160] In one embodiment, the calibration coefficient acquisition module is further configured to determine a light transmission parameter of the screen; and the calibration coefficient of the screen is determined based on the light transmission parameter.
[0161] In one embodiment, the light leakage mapping relationship is determined according to screen light leakage amounts corresponding to a standard screen respectively in the case of displaying various display contents.
[0162] The division of each module in the above screen light leakage amount determination apparatus or screen brightness adjustment apparatus is merely for example, and in other embodiments, the screen light leakage amount determination apparatus or screen brightness adjustment apparatus can be divided into different modules as needed to complete all or part of the functions of the screen light leakage amount determination apparatus or screen brightness adjustment apparatus.
[0163] For specific limitations of the screen light leakage amount determination apparatus or screen brightness adjustment apparatus, refer to the limitations of the screen light leakage amount determination method or screen brightness adjustment method described above, which will not be repeated here. Each module in the screen light leakage amount determination apparatus or screen brightness adjustment apparatus can be realized by software, hardware and combinations thereof in whole or in part. Each module can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each module.
[0164] Figure 11 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. As shown in FIG. 1, the electronic device comprises a processor 1001, a memory 1002 and a screen 1003. Figure 11As shown, the electronic device includes a processor and a memory connected through a system bus. The processor is configured to provide computing and control capabilities to support the operation of the entire electronic device. The memory can include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a screen light leakage amount determination method or a screen brightness adjustment method provided by each of the embodiments. The internal memory provides a cache running environment for the operating system and computer program in the non-volatile storage medium. The electronic device can be any terminal device with a display device, such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc.
[0165] The implementation of each module in the screen light leakage amount determination apparatus or the screen brightness adjustment apparatus provided in the embodiments of the present application can be in the form of a computer program. The computer program can run on a terminal or a server. The program modules constituted by the computer program can be stored on the memory of the electronic device. When the computer program is executed by the processor, the steps of the method described in the embodiments of the present application are implemented.
[0166] The embodiments of the present application further provide a computer readable storage medium. One or more non-volatile computer readable storage media containing computer executable instructions, when the computer executable instructions are executed by one or more processors, cause the processors to perform the steps of the screen light leakage amount determination method.
[0167] A computer program product containing instructions, when executed on a computer, causes the computer to perform the screen light leakage amount determination method.
[0168] The embodiments of the present application further provide a computer readable storage medium. One or more non-volatile computer readable storage media containing computer executable instructions, when the computer executable instructions are executed by one or more processors, cause the processors to perform the steps of the screen brightness adjustment method.
[0169] A computer program product containing instructions, when executed on a computer, causes the computer to perform the screen brightness adjustment method.
[0170] As used herein, any reference to memory, storage, a database or other medium is intended to include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache. By way of illustration, and not limitation, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus direct memory access (RDMA), and Rambus in-memory direct computer architecture (RIM) DRAM.
[0171] The above-described embodiments are merely illustrative for carrying out the present application and are not in any way to restrict the scope of the patent. It should be noted that those skilled in the art can make several modifications and improvements without departing from the spirit of the present application, and these should all fall within the scope of the patent. Therefore, the patent protection scope of the present application should be subject to the appended claims.
Claims
1. A method for determining screen light leakage, characterized in that, The method comprises: determining target display content of a screen, the target display content being selected from a limited number of display contents for display in the screen, the limited number of display contents being classified and summarized for various display pictures of the screen; determining a target brightness level of the screen; inquiring a preset brightness light leakage mapping relationship, the brightness light leakage mapping relationship comprising light leakage amounts respectively corresponding to the screen displaying various display contents at different brightness levels; inquiring, from the brightness light leakage mapping relationship, a screen light leakage amount corresponding to the screen displaying the target display content according to the target display content and the target brightness level; calibrating the screen light leakage amount by using a calibration parameter of the screen to obtain a calibrated screen light leakage amount, the calibration parameter being determined based on factors affecting the light leakage amount of the screen itself.
2. The method of claim 1, wherein, The brightness light leakage mapping relationship comprises a light leakage mapping table, and the inquiring, from the brightness light leakage mapping relationship, a screen light leakage amount corresponding to the screen displaying the target display content according to the target display content and the target brightness level comprises: obtaining a table lookup parameter according to a target content identifier of the target display content and the target brightness level; inquiring the light leakage mapping table according to the table lookup parameter to obtain the screen light leakage amount corresponding to the screen displaying the target display content.
3. The method of claim 1, wherein, The method further comprises: determining a target content identifier of the target display content; inquiring a preset content light leakage mapping relationship, the content light leakage mapping relationship comprising screen light leakage amounts respectively corresponding to the screen displaying various display contents; inquiring, from the content light leakage mapping relationship, a screen light leakage amount corresponding to the screen displaying the target display content according to the target content identifier.
4. The method of claim 1, wherein, The calibrating the screen light leakage amount by using the calibration parameter of the screen to obtain the calibrated screen light leakage amount comprises: obtaining a calibration coefficient of the screen; calibrating the screen light leakage amount according to the calibration coefficient to obtain the calibrated screen light leakage amount.
5. The method of claim 4, wherein, The obtaining the calibration coefficient of the screen comprises: determining a light transmission parameter of the screen; determining the calibration coefficient of the screen based on the light transmission parameter.
6. The method according to any one of claims 1 to 5, characterized in that, The light leakage mapping relationship is determined according to screen light leakage amounts respectively corresponding to a standard screen displaying various display contents.
7. A method of adjusting the brightness of a screen, characterized by, The method comprises: obtaining an ambient light sensation amount; determining a screen light leakage amount corresponding to the screen displaying target display content; the screen light leakage amount is obtained by the method according to any one of claims 1 to 6; obtaining an actual light sensation amount according to the ambient light sensation amount and the screen light leakage amount; adjusting brightness of the screen based on the actual light sensation amount.
8. The method of claim 7, wherein, The determining a screen light leakage amount corresponding to the screen displaying target display content comprises: determining a target brightness level of the screen; inquiring a preset brightness light leakage mapping relationship, the brightness light leakage mapping relationship comprising light leakage amounts respectively corresponding to the screen displaying various display contents at different brightness levels; According to the target display content and the target brightness level, the screen leakage amount corresponding to the screen in the case of displaying the target display content is obtained from the brightness-screen leakage mapping relationship.
9. The method of claim 8, wherein, The brightness-screen leakage mapping relationship includes a screen leakage mapping table, and the screen leakage amount corresponding to the screen in the case of displaying the target display content is obtained from the brightness-screen leakage mapping relationship according to the target display content and the target brightness level by performing the following steps: According to the target content identifier of the target display content and the target brightness level, a table lookup parameter is obtained; According to the table lookup parameter, the screen leakage mapping table is queried to obtain the screen leakage amount corresponding to the screen in the case of displaying the target display content.
10. The method of claim 7, wherein, Before the actual light sensation amount is obtained according to the ambient light sensation amount and the screen leakage amount, the following steps are further included: A calibration coefficient of the screen is obtained; The screen leakage amount is calibrated according to the calibration coefficient to obtain a calibrated screen leakage amount; The actual light sensation amount is obtained according to the ambient light sensation amount and the calibrated screen leakage amount. The following steps are included:
11. A screen light leakage amount determination apparatus characterized by comprising: A display content determination module is configured to determine a target display content of a screen, the target display content being selected from a limited number of display contents for display on the screen, the limited number of display contents being obtained by classifying and summarizing various display pictures of the screen; A screen leakage amount query module is configured to determine a target brightness level of the screen, query a preset brightness-screen leakage mapping relationship, and obtain the screen leakage amount corresponding to the screen in the case of displaying the target display content from the brightness-screen leakage mapping relationship according to the target display content and the target brightness level, the brightness-screen leakage mapping relationship including screen leakage amounts corresponding to the screen in the case of displaying various display contents at different brightness levels; A calibration processing module is configured to calibrate the screen leakage amount according to a calibration parameter of the screen to obtain a calibrated screen leakage amount, the calibration parameter being determined based on factors affecting the screen leakage amount. The following steps are included:
12. A screen brightness adjusting apparatus, characterized by comprising: An ambient light sensation amount acquisition module is configured to obtain an ambient light sensation amount; A screen leakage amount determination module is configured to determine a screen leakage amount corresponding to the screen in the case of displaying a target display content, the screen leakage amount being obtained by the method of any one of claims 1 to 6; An actual light sensation amount determination module is configured to obtain an actual light sensation amount according to the ambient light sensation amount and the screen leakage amount; A brightness adjustment module is configured to adjust the brightness of the screen based on the actual light sensation amount. The computer program is executed by the processor to enable the processor to perform the steps of the method of any one of claims 1 to 10.
13. An electronic device comprising a memory and a processor, said memory having stored therein a computer program, characterised in that, The computer program is executed by the processor to enable the processor to perform the steps of the method of any one of claims 1 to 10.
14. A computer readable storage medium having stored thereon a computer program, characterized in that, 15. A computer program product comprising instructions which, when executed on a computer, cause the computer to carry out the steps of a method as claimed in any one of claims 1 to 10.
Citation Information
Patent Citations
Screen brightness adjusting method and mobile terminal
CN107665697A
Screen brightness adjusting method and device, computer readable medium and electronic equipment
CN112289280A