A screen brightness adjusting method and device, intelligent device and storage medium
Patent Information
- Application Number
- CN202210564684.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2042-05-23
AI Technical Summary
[0002]当前市面上的终端,如手机大多具备随着用户所处的光环境照度不同自动调节亮度的功能,然而,由于多种技术原因,自动调节亮度功能的实现效果仍然较难达到用户满意的程度,原因包括但不限于以下:
[0015]本申请实施例可以获取终端所在光照环境的照明数据集;基于所述光照环境的三维地图模型对所述终端进行定位,以确定所述终端在所述三维地图模型中的目标位置;根据所述照明数据集以及所述目标位置计算所述目标位置对应的光照强度;根据所述光照强度调节所述终端的屏幕亮度。这样基于终端所处空间的光分布特征来准确确定终端所受的光照强度,而摆脱了终端上光传感器测量不准确的问题,提高了终端屏幕亮度调节的准确性。
Smart Images

Figure CN117116228B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a screen brightness adjustment method, apparatus, smart device, and storage medium. Background Technology
[0002] Most current mobile devices on the market, such as smartphones, have the function of automatically adjusting brightness according to the ambient light level. However, due to various technical reasons, the effectiveness of this automatic brightness adjustment function is still difficult to achieve to a level that satisfies users. These reasons include, but are not limited to, the following: First, because one or more fixed light sensors in a mobile phone can only measure the light in its three-dimensional location, the illuminance value measured in actual use is often not equal to the actual illuminance of the environment. Therefore, the light sensors in mobile phones are difficult to accurately measure the true illuminance of the environment.
[0003] Secondly, when a user walks while holding a mobile phone, the ambient light level changes rapidly due to varying lighting conditions in different areas. To avoid visual discomfort caused by the instantaneous adjustment of the phone screen brightness, an anti-shake filtering strategy is employed. However, this often results in the phone screen brightness failing to keep up with changes in ambient light, making it difficult to match the display brightness required for comfortable visual viewing. Therefore, current mobile phone screen brightness adjustment is not accurate. Summary of the Invention
[0004] This application provides a screen brightness adjustment method, apparatus, smart device, and storage medium, which can improve the accuracy of terminal screen brightness adjustment.
[0005] To address the aforementioned technical problems, this application provides the following technical solutions: This application provides a screen brightness adjustment method, including: Obtain the lighting dataset of the lighting environment where the terminal is located; The terminal is located based on the three-dimensional map model of the lighting environment to determine the target position of the terminal in the three-dimensional map model; Calculate the light intensity corresponding to the target location based on the lighting dataset and the target location; The screen brightness of the terminal is adjusted according to the light intensity.
[0006] In one embodiment, calculating the light intensity corresponding to the target location based on the lighting dataset and the target location includes: Extract luminaire information from the lighting dataset that matches the lighting space of the target location in the lighting environment; The illumination intensity corresponding to the target location is calculated based on the lighting information.
[0007] In one embodiment, the luminaire information includes the luminaire installation location and the illuminance light distribution characteristics of the luminaire. The illuminance light distribution characteristics of the luminaire include the mapping relationship between positions at different distances from the luminaire installation location and illuminance intensity. Calculating the illuminance intensity corresponding to the target location based on the luminaire information includes: Based on the installation location of each lamp and the target location, calculate the distance between the installation location of the lamp and the target location; Based on the distance and the illuminance distribution characteristics of each lamp, determine the reference illuminance of each lamp at the target location; The illuminance at the target location is calculated based on the reference illuminance of each luminaire at the target location.
[0008] In one embodiment, the illuminance distribution characteristics of the luminaire include a mapping relationship between different distances between the luminaire's installation location and the ground projection point, and the step of calculating the distance between the luminaire's installation location and the target location based on the installation location of each luminaire and the target location includes: Based on the installation location of each lamp and the target location, calculate the distance between the projection point of the center of each lamp onto the ground and the target location; The distance between the installation location of the lamp and the target location is determined based on the distance between the projection point of the center of each lamp onto the ground and the target location.
[0009] In one embodiment, extracting luminaire information from the lighting dataset that matches the lighting space of the target location within the lighting environment includes: Determine whether the terminal is outdoors based on the target location and the 3D map model; If the terminal is outdoors, the lighting information corresponding to the target location is determined based on the lighting dataset and the target location; Correspondingly, the step of extracting luminaire information from the lighting dataset that matches the lighting space of the target location within the lighting environment includes: If the terminal is indoors, then extract the lighting information of the lamps in the lighting environment that match the lighting space of the target location from the lighting dataset.
[0010] In one embodiment, the method of locating the terminal based on the three-dimensional map model of the lighting environment to determine the target location of the terminal in the three-dimensional map model includes: The location information of the terminal is obtained through a preset positioning algorithm; The location information is matched with the three-dimensional map model to determine the target location of the terminal in the three-dimensional map.
[0011] In one embodiment, before locating the terminal based on the three-dimensional map model of the lighting environment to determine the target location of the terminal in the three-dimensional map model, the method further includes: Scan the lighting environment to obtain environmental information about the lighting environment; Based on the environmental information, a three-dimensional map model corresponding to the lighting environment is generated.
[0012] According to one aspect of this application, a screen brightness adjustment device is also provided, comprising: The acquisition module is used to acquire the lighting dataset of the lighting environment where the terminal is located; The positioning module is used to locate the terminal based on the three-dimensional map model of the lighting environment, so as to determine the target position of the terminal in the three-dimensional map model; The calculation module is used to calculate the light intensity corresponding to the target location based on the lighting dataset and the target location; An adjustment module is used to adjust the screen brightness of the terminal according to the light intensity.
[0013] According to one aspect of this application, a smart device is also provided, including a processor and a memory, wherein the memory stores a computer program, and the processor executes any of the screen brightness adjustment methods provided in the embodiments of this application when it invokes the computer program in the memory.
[0014] According to one aspect of this application, a storage medium is also provided for storing a computer program, which is loaded by a processor to execute any of the screen brightness adjustment methods provided in the embodiments of this application.
[0015] This application embodiment can acquire a lighting dataset of the lighting environment in which the terminal is located; locate the terminal based on a 3D map model of the lighting environment to determine the target position of the terminal in the 3D map model; calculate the light intensity corresponding to the target position based on the lighting dataset and the target position; and adjust the screen brightness of the terminal based on the light intensity. This accurately determines the light intensity received by the terminal based on the light distribution characteristics of the space in which the terminal is located, thus overcoming the problem of inaccurate measurements by the light sensor on the terminal and improving the accuracy of the terminal screen brightness adjustment. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic flowchart of the screen brightness adjustment method provided in the embodiments of this application; Figure 2 This is another schematic flowchart of the screen brightness adjustment method provided in the embodiments of this application; Figure 3 This is a graph showing the illuminance light distribution characteristics of lamp A in this embodiment of the application; Figure 4 This is a graph showing the illuminance distribution characteristics of luminaire B in the embodiments of this application; Figure 5 This is another graph showing the illuminance light distribution characteristics of lamp A in this embodiment of the application; Figure 6 This is another graph showing the illuminance distribution characteristics of luminaire B in this embodiment of the application; Figure 7 This is a schematic diagram of the screen brightness adjustment device provided in the embodiments of this application; Figure 8 This is a schematic diagram of the structure of the smart device provided in the embodiments of this application. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] This application provides a screen brightness adjustment method, apparatus, smart device, and storage medium (i.e., computer-readable storage medium). The screen brightness adjustment method may include a screen brightness adjustment device, which can be integrated into a smart device. This smart device can communicate with a server or terminal, etc. The smart device can also be a terminal. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms, but is not limited thereto. The server and terminal can be directly or indirectly connected via wired or wireless communication, which is not limited herein. The terminal can be a mobile phone, tablet, computer, home appliance, or wearable device, etc.
[0020] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0021] In this embodiment, the description will be from the perspective of a smart device. Please refer to [link / reference]. Figure 1 , Figure 1 This is a schematic flowchart of a screen brightness adjustment method according to an embodiment of this application. The screen brightness adjustment method may include: S10. Obtain the lighting dataset of the lighting environment where the terminal is located.
[0022] The lighting environment can refer to a lit environment within the landmark environment where the terminal is located, and the lighting data in this environment can be acquired. This lighting environment can be indoors or outdoors, such as inside a building, on a lit road, or in a lit square. The lighting dataset can include at least one of the following: lamp identification information, lamp installation location, illuminance distribution characteristics of the lamps, and a 3D map model of the lighting environment. There can be one or more lamps, and the lighting direction of the lamps can be the same or different. The terminal can be a mobile phone, tablet, computer, home appliance, or wearable device. In this embodiment, the execution subject of the screen adjustment method can be a smart device, a terminal, or a server. The smart device can be the terminal itself or a third-party device independent of the terminal. The lighting dataset can be lighting data corresponding to all lamps in the lighting environment collected by the smart device through a network, along with a 3D map model of the lighting environment, or it can be obtained from a third-party information source, which can be a smart device, a terminal, a server, or the lighting system corresponding to the lighting environment.
[0023] For example, a smart device may retrieve a lighting dataset of its own ambient lighting environment from local storage, or from its own internal storage, or from a server, or from the lighting system corresponding to the ambient lighting environment. Alternatively, the device may retrieve the lighting dataset of its own ambient lighting environment, or from a server, or from the lighting system corresponding to the ambient lighting environment. Finally, the server may retrieve the lighting dataset of the device's ambient lighting environment, or from the lighting system corresponding to the ambient lighting environment.
[0024] S20. The terminal is located based on the three-dimensional map model of the lighting environment to determine the target position of the terminal in the three-dimensional map model.
[0025] The 3D map model of the lighting environment can be extracted from the lighting dataset or generated by a smart device by scanning the environmental information of the lighting environment. The target location can be a relative location in the 3D map model of the lighting environment, such as a room in a building, a location on a road, or a corner in a square.
[0026] Optionally, step S20 may include: The terminal's location information is obtained through a preset positioning algorithm; The location information is matched with the 3D map model to determine the target location of the terminal in the 3D map.
[0027] The preset positioning algorithm can be a GPS positioning algorithm, a BeiDou positioning algorithm, a mobile network positioning algorithm, or a base station positioning algorithm, etc. This embodiment does not impose specific restrictions on the terminal's positioning algorithm. The positioning information can be latitude and longitude information, or a landmark location on a world map, such as "Company XX" or "Provincial Highway XX".
[0028] For example, after a smart device obtains the terminal's location information through a mobile network positioning algorithm, it uses this location information to obtain a three-dimensional map model of the surrounding area from the lighting dataset of the lighting environment where the terminal is located, and determines the relative position of the location information in the three-dimensional map model.
[0029] Optionally, in one embodiment, before step S20, the following may be included: Scan the lighting environment to obtain environmental information about the lighting environment; Based on the environmental information, a 3D map model corresponding to the lighting environment is generated.
[0030] Understandably, if a 3D map model corresponding to the lighting environment exists in the lighting dataset of the lighting environment where the terminal is located, then the 3D map model is obtained from the lighting dataset. If a 3D map model corresponding to the lighting environment does not exist in the lighting dataset of the lighting environment where the terminal is located, then the smart device automatically scans the lighting environment to obtain the environmental information of the lighting environment; based on the environmental information, a 3D map model corresponding to the lighting environment is generated.
[0031] Among them, the lighting environment can be scanned using radar technology or infrared sensing technology to obtain environmental information. This environmental information can be information about the buildings and walls around the terminal, or information about roads, ditches, streetlights, and trees. Based on at least one of the information about the buildings and walls around the terminal, roads, ditches, streetlights, and trees, a three-dimensional map model corresponding to the lighting environment can be generated.
[0032] S30. Calculate the light intensity corresponding to the target location based on the lighting dataset and the target location.
[0033] The illuminance is the sum of the illuminance emitted by all the lamps in the lighting environment corresponding to the target location. For example, the installation positions of the lamps and the illuminance distribution characteristics of the lamps in the central lighting data corresponding to the target location are obtained. Based on the installation positions of the lamps and the illuminance distribution characteristics of the lamps, the illuminance intensity of the light emitted by each lamp at the target location is calculated. The illuminance intensity of all lamps at the target location is calculated to obtain the illuminance corresponding to the target location.
[0034] In one embodiment, the distance between the lamp installation location and the target location can be calculated to determine the illuminance of the light emitted by the lamp at the target location. Alternatively, the azimuth difference between the lamp's illumination direction and the target location's orientation can be considered, and the combined illuminance of the target location can be calculated by integrating the distance between the lamp installation location and the target location, as well as the azimuth difference between the lamp's illumination direction and the target location's orientation. This allows for accurate determination of the illuminance at the target location within the lighting environment, based on the lighting dataset and the terminal's target location, without being affected by inaccurate illuminance detection by the terminal's light sensor, thus improving the accuracy of illuminance determination.
[0035] S40. Adjust the screen brightness of the terminal according to the light intensity.
[0036] The screen brightness can be the screen brightness of a smart device or the screen brightness of a terminal.
[0037] Optionally, the smart device acquires the mapping relationship between light intensity and the terminal's screen brightness, and adjusts the terminal's screen brightness according to the light intensity and the mapping relationship. For example, it determines the target brightness value of the terminal screen based on the light intensity and the mapping relationship, acquires the current brightness value of the terminal screen, determines the brightness value to be adjusted of the terminal screen based on the target brightness value and the current brightness value, and controls the terminal screen to adjust the brightness value to be adjusted to achieve the target brightness value, thereby achieving the effect of accurately adjusting the brightness of the terminal screen.
[0038] In this embodiment, the smart device can acquire a lighting dataset of the lighting environment in which the terminal is located; locate the terminal based on a 3D map model of the lighting environment to determine the target position of the terminal in the 3D map model; calculate the light intensity corresponding to the target position based on the lighting dataset and the target position; and adjust the screen brightness of the terminal according to the light intensity. This method accurately determines the light intensity received by the terminal based on the light distribution characteristics of the space in which the terminal is located, thus eliminating the problem of inaccurate measurements by the light sensor on the terminal and improving the accuracy of the terminal screen brightness adjustment.
[0039] See Figure 2 , Figure 2 This is a schematic flowchart of a screen brightness adjustment method provided in an embodiment of this application. Based on the above embodiment, step S30 in this embodiment may include: S31. Extract luminaire information from the lighting dataset that matches the lighting space of the target location in the lighting environment. The illumination space can be the space where the light source illuminates the target location in the illumination environment of the terminal, or it can be the space within a preset range around the target location. The light source information can include the installation location of the light source and the illuminance distribution characteristics of the light source. The installation location of the light source can be its relative position in the three-dimensional map model of the terminal's illumination environment. The illuminance distribution characteristics of the light source can be the mapping relationship between the light intensity of each light source and the target location of the terminal.
[0040] For example, the preset range can be fixed within a three-dimensional circle with a radius of 5 meters centered on the target location, or it can be set according to the illuminance distribution characteristics of the lamps in the lighting environment. If the illuminance distribution characteristics of the lamps in the lighting environment indicate that the lamps have strong illumination capabilities, that is, the farther the illumination range of the lamps is, the longer the preset range will be set.
[0041] Optionally, in one embodiment, S31 may include: Determine whether the terminal is outdoors based on the target location and the 3D map model; If the terminal is outdoors, extract the lighting information of the lamps in the lighting environment that matches the lighting space of the target location from the lighting dataset; Correspondingly, luminaire information matching the illumination space of the target location in the illumination dataset is extracted from the illumination dataset, including: If the terminal is indoors, extract the lighting information from the lighting dataset to match the lighting environment of the enclosed space where the target location is located.
[0042] In real-world scenarios, if the terminal is in an indoor environment, the illuminated space can be the smallest enclosed room corresponding to the target location of the terminal, such as the space corresponding to a bedroom with the door closed, or the space corresponding to a bedroom and living room with the bedroom door open. If the terminal is in an outdoor environment, such as on a road, the illuminated space can be a preset range around the target location of the terminal, such as a three-dimensional circle with a radius of 5 meters around the target location.
[0043] S32. Calculate the light intensity corresponding to the target location based on the lighting information.
[0044] In one embodiment, the illuminance distribution characteristics of the luminaire may include a mapping relationship between positions at different distances from the luminaire's installation location and illuminance intensity. Correspondingly, calculating the illuminance intensity corresponding to the target location based on the luminaire information may include: S1. Calculate the distance between the installation location and the target location of each lamp based on the installation location and the target location of each lamp.
[0045] The lighting fixture can be multiple fixtures located in different directions around the target location. The intelligent device calculates the distance between the installation location of each lighting fixture and the target location based on the installation location of each lighting fixture and the target location. This can include: obtaining the coordinate information of each lighting fixture and the target location in the three-dimensional map model corresponding to the lighting environment to obtain the coordinate information of the lighting fixture and the coordinate information of the target location; and calculating the straight-line distance between the lighting fixture and the target location based on the coordinate information of each lighting fixture and the target location coordinate information of the terminal.
[0046] S2. Based on the distance and the illuminance distribution characteristics of each lamp, determine the reference illuminance of each lamp at the target location.
[0047] It should be noted that, referring to Figure 3 as well as Figure 4 , Figure 3 as well as Figure 4 This is a schematic diagram of the illuminance light distribution characteristics of the lamps in this embodiment, wherein... Figure 3 This is a graph showing the illuminance distribution characteristics of luminaire A. The horizontal axis represents the distance from the center of luminaire A, and the vertical axis represents the illuminance intensity of luminaire A, that is, the change of the reference illuminance intensity from luminaire A with respect to the distance from the center of luminaire A. Figure 3 As can be seen, the closer the distance from the center of lamp A is to 0, the stronger the reference illuminance from lamp A, the stronger the illuminance received from lamp A. The closest illuminance reaches 500 lux. The farther the distance from the center of lamp A is, the weaker the reference illuminance received from lamp A. Figure 4 This is a graph showing the illuminance distribution characteristics of luminaire B. The horizontal axis represents the distance from the center of luminaire B, and the vertical axis represents the illuminance intensity of luminaire B, that is, the change of the reference illuminance intensity from luminaire B with the distance from the center of luminaire B. Figure 4 As can be seen, within a certain range, the reference illuminance from luminaire B is at its strongest, 1000 lux, while the reference illuminance from luminaire B gradually weakens as the distance exceeds this range.
[0048] In one embodiment, if the target location is located in an illumination space that includes lamp A and lamp B, and the target location corresponding to the terminal is 0.6 meters away from lamp A and 2 meters away from lamp B, then according to the illuminance distribution curve of lamp A, it can be known that the reference illuminance of lamp A to the terminal is 400 lux, and according to the illuminance distribution curve of lamp B, it can be known that the reference illuminance of lamp B to the terminal is 1000 lux.
[0049] S3. Calculate the illumination intensity at the target location based on the reference illumination intensity of each luminaire at the target location.
[0050] The illumination intensity can be calculated by directly summing the reference illumination intensity of each lamp at the target position, or by weighting the reference illumination intensity of each lamp at the target position by comprehensively considering the azimuth difference between the orientation of each lamp and the direction of the target position.
[0051] In one embodiment, if the influence of the orientation of the lamps on the light intensity is not considered, for example, if the reference light intensity of the terminal is 400 lux from lamp A and the reference light intensity of the terminal is 1000 lux from lamp B, then the light intensity at the target location is 400 lux + 1000 lux = 1400 lux.
[0052] In one embodiment, if the luminaire is a directional spotlight, the influence of the luminaire orientation on the light intensity can be considered. Different azimuth differences between the luminaire orientation and the target position direction correspond to the luminaire illuminance distribution characteristics, and corresponding weights can be set. Optionally, based on the reference light intensity of each luminaire at the target position, the following can be included: obtaining the azimuth difference between the luminaire orientation and the target position direction, determining the weight corresponding to the reference light intensity of the luminaire at the target position based on the azimuth difference, and calculating the reference light intensity of the luminaire at the target position based on the weight.
[0053] The azimuth difference can be the angle between the direction of the lamp's illumination and the direction of the target position. The weight value can be a fixed value pre-set for different azimuth differences, or different weight values can be set according to different types of lamps. Taking a fixed value set for different azimuth differences as an example: if the azimuth difference between the lamp's orientation and the target position direction is 0-44 degrees, then the weight value of the illuminance light distribution characteristic corresponding to the lamp in the target position direction is 1; if the azimuth difference is 45-89 degrees, then the weight value is 0.6; if the azimuth difference is 90-134 degrees, then the weight value is 0.4; and if the azimuth difference is 135-180 degrees, then the weight value is 0.
[0054] For example, if the terminal receives a reference illuminance of 400 lux from lamp A, and the azimuth difference between the direction of lamp A and the target position is 30 degrees, the corresponding weight is 1; and the terminal receives a reference illuminance of 1000 lux from lamp B, and the azimuth difference between the direction of lamp B and the target position is 90 degrees, the corresponding weight is 0.4, then the illuminance at the target position is 1 x 400 lux + 0.4 x 1000 lux = 800 lux.
[0055] In one embodiment, the illuminance distribution characteristics of the luminaire include the mapping relationship between the position at different distances from the luminaire's installation location to the ground projection point and the illuminance intensity. S1 may include: (1) Calculate the distance between the center of each lamp and the target position based on the installation position and target position of each lamp.
[0056] The lighting fixtures can be multiple fixtures located in different directions around the target location. The intelligent device calculates the distance between the installation location of each fixture and the target location based on the installation location of each fixture and the target location. This can include: obtaining the coordinate information of the projection point of each fixture onto the ground and the projection point of the target location onto the ground in the 3D map model corresponding to the lighting environment, so as to obtain the coordinate information of the projection point of the fixture onto the ground and the coordinate information of the projection point of the target location onto the ground; and calculating the distance between the fixture and the target location based on the coordinate information of the projection point of each fixture onto the ground and the coordinate information of the projection point of the target location onto the ground.
[0057] (2) Determine the distance between the installation location of the lamp and the target location based on the distance between the projection point of the center of each lamp onto the ground and the target location.
[0058] In one embodiment, the distance between the projection point of each lamp center onto the ground and the target position can be used as the distance between the lamp installation position and the target position. Alternatively, the ordinates of the lamp and the target position can be obtained, and the height difference between the lamp and the target position can be calculated based on the ordinates of the lamp and the target position. The distance between the lamp installation position and the target position can also be calculated based on the distance between the projection point of each lamp center onto the ground and the target position, as well as the height difference between the lamp and the target position.
[0059] Correspondingly, after determining the distance between the lamp installation location and the target location in (2), it can include: determining the reference illuminance of each lamp at the target location based on the distance and the illuminance light distribution characteristics of each lamp, and calculating the illuminance of the target location based on the reference illuminance of each lamp at the target location.
[0060] Reference Figure 5 as well as Figure 6 , Figure 5 as well as Figure 6 This is a schematic diagram of the illuminance light distribution characteristics of the lamps in this embodiment, wherein... Figure 5 This is a graph showing the illuminance distribution characteristics of luminaire A. The horizontal axis represents the distance from the center of luminaire A to the ground projection point, and the vertical axis represents the illuminance intensity of luminaire A, that is, the change of the reference illuminance intensity of luminaire A with respect to the distance from the center of luminaire A to the ground projection point. Figure 5As can be seen, the closer the distance between the center of lamp A and the projection point on the ground is to 0, that is, the closer it is to lamp A, the stronger the reference illuminance received from lamp A. The closest illuminance reaches 500 lux. The farther the distance between the center of lamp A and the projection point on the ground, the weaker the reference illuminance received from lamp A. Figure 6 This is a graph showing the illuminance distribution characteristics of luminaire B. The horizontal axis represents the distance from the center of luminaire B to the ground projection point, and the vertical axis represents the illuminance intensity of luminaire B, that is, the change of the reference illuminance intensity of luminaire B with the distance from the center of luminaire B to the ground projection point. Figure 6 As can be seen, within a certain range, the reference illuminance from luminaire B is at its strongest, 1000 lux, when the distance between the center of luminaire B and the projection point on the ground is within a certain range. However, as the distance exceeds this range, the reference illuminance from luminaire B gradually weakens.
[0061] In one embodiment, if the illumination space surrounding the target location includes luminaire A and luminaire B, and the distance between the target location corresponding to the terminal and the projection point of the center of luminaire A onto the ground is 0.6 meters, and the distance between the target location and the projection point of the center of luminaire A onto the ground is 2 meters, then according to the illuminance distribution curve of luminaire A, the reference illuminance intensity received by the terminal from luminaire A is 400 lux, and according to the illuminance distribution curve of luminaire B, the reference illuminance intensity received by the terminal from luminaire B is 1000 lux. Correspondingly, the illuminance intensity at the target location can be 400 lux + 1000 lux = 1400 lux.
[0062] In the technical solution provided in this embodiment, after acquiring the lighting dataset of the lighting environment in which the terminal is located, the smart device locates the terminal based on a three-dimensional map model of the lighting environment to determine the target position of the terminal in the three-dimensional map model. Then, it extracts the lighting fixture information from the lighting dataset that matches the lighting space of the target position, and calculates the light intensity corresponding to the target position based on the lighting fixture information. This method accurately calculates the light intensity at the target position of the terminal by using the lighting fixture information from the three-dimensional map of the terminal's environment that matches the lighting space of the target position, thus overcoming the problem of inaccurate measurements by the terminal's light sensor and improving the accuracy of the terminal's screen brightness adjustment.
[0063] To facilitate better implementation of the screen brightness adjustment method provided in this application embodiment, this application embodiment also provides an apparatus based on the above-described screen brightness adjustment method. The meanings of the terms used are the same as in the screen brightness adjustment method described above, and specific implementation details can be found in the description of the method embodiment.
[0064] Please see Figure 7 , Figure 7This is a schematic diagram of the structure of the screen brightness adjustment device provided in the embodiment of this application. The screen brightness adjustment device 300 may include an acquisition module 301, a positioning module 302, a connection module 303, a first sending module 304, and a second sending module 305, etc.
[0065] Among them, the acquisition module 301 is used to acquire the lighting dataset of the lighting environment where the terminal is located; The positioning module 302 is used to locate the terminal based on a 3D map model of the lighting environment, so as to determine the target position of the terminal in the 3D map model; Calculation module 303 is used to calculate the light intensity corresponding to the target position based on the lighting dataset and the target position; The adjustment module 304 is used to adjust the screen brightness of the terminal according to the light intensity.
[0066] Optionally, the screen brightness adjustment device may also include: The first extraction module is used to extract luminaire information from the lighting dataset that matches the lighting space of the target location in the lighting environment. The first calculation module is used to calculate the light intensity corresponding to the target location based on the lighting information.
[0067] The second calculation module is used to calculate the distance between the installation position of each lamp and the target position based on the installation position of each lamp and the target position. The first determining module is used to determine the reference illuminance of each lamp at the target location based on the distance and the illuminance light distribution characteristics of each lamp. The third calculation module is used to calculate the illuminance at the target location based on the reference illuminance of each luminaire at the target location.
[0068] The fourth calculation module is used to calculate the distance between the center of each lamp and the target position, based on the installation position and target position of each lamp. The second determining module is used to determine the distance between the lamp installation position and the target position based on the distance between the projection point of the center of each lamp onto the ground and the target position.
[0069] The judgment module is used to determine whether the terminal is outdoors based on the target location and the 3D map model. The third determining module is used to extract, from the lighting dataset, information on lighting fixtures that match the lighting space of the target location in the lighting environment if the terminal is outdoors. The second extraction module is used to extract, if the terminal is indoors, lighting information matching the enclosed space where the target location is located from the lighting dataset.
[0070] The first acquisition module is used to acquire the terminal's location information through a preset positioning algorithm; The matching module is used to match the location information with the 3D map model to determine the target location of the terminal in the 3D map.
[0071] The second acquisition module is used to scan the lighting environment to obtain environmental information about the lighting environment. The generation module is used to generate a 3D map model corresponding to the lighting environment based on environmental information.
[0072] In this embodiment, the acquisition module 301 in the screen brightness adjustment device can acquire the lighting dataset of the lighting environment where the terminal is located; the positioning module 302 can locate the terminal based on a three-dimensional map model of the lighting environment to determine the target position of the terminal in the three-dimensional map model; the calculation module 303 can calculate the light intensity corresponding to the target position based on the lighting dataset and the target position; and the adjustment module 304 can adjust the screen brightness of the terminal based on the light intensity. This accurately determines the light intensity received by the terminal based on the light distribution characteristics of the space where the terminal is located, thus overcoming the problem of inaccurate measurement by the light sensor on the terminal and improving the accuracy of the terminal screen brightness adjustment. This application also provides a smart device, which can be a terminal such as a mobile phone, etc. Figure 8 As shown, it illustrates a structural schematic diagram of the smart device involved in the embodiments of this application, specifically: The intelligent device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 8 The smart device structure shown does not constitute a limitation on the smart device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 401 is the control center of the smart device. It connects various parts of the smart device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402, thereby providing overall monitoring of the smart device. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0073] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created based on the use of the smart device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0074] The smart device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0075] The smart device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0076] Although not shown, the smart device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the smart device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, as follows: Smart devices can acquire lighting datasets of the lighting environment in which the terminal is located; locate the terminal based on a 3D map model of the lighting environment to determine the target position of the terminal in the 3D map model; calculate the light intensity corresponding to the target position based on the lighting dataset and the target position; and adjust the screen brightness of the terminal according to the light intensity.
[0077] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description of the screen brightness adjustment method above, which will not be repeated here.
[0078] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a smart device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the smart device to perform the methods provided in the various optional implementations of the above embodiments.
[0079] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by computer instructions, or by controlling related hardware through computer instructions. These computer instructions can be stored in a storage medium and loaded and executed by a processor. The storage medium is a computer-readable storage medium. Therefore, embodiments of this application provide a storage medium storing a computer program, which may include computer instructions. This computer program can be loaded by a processor to execute any of the screen brightness adjustment methods provided in the embodiments of this application.
[0080] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0081] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0082] Since the computer instructions stored in the storage medium can execute any of the screen brightness adjustment methods provided in the embodiments of this application, the beneficial effects that any of the screen brightness adjustment methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0083] The above provides a detailed description of a screen brightness adjustment method, apparatus, smart device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for adjusting screen brightness, characterized in that, The method includes: Obtain the lighting dataset of the lighting environment where the terminal is located; The terminal is located based on the three-dimensional map model of the lighting environment to determine the target position of the terminal in the three-dimensional map model; Calculate the light intensity corresponding to the target location based on the lighting dataset and the target location; Adjust the screen brightness of the terminal according to the light intensity; The step of calculating the light intensity corresponding to the target location based on the lighting dataset and the target location includes: Extract luminaire information from the lighting dataset that matches the lighting space of the target location in the lighting environment; The illumination intensity corresponding to the target location is calculated based on the lighting information.
2. The screen brightness adjustment method according to claim 1, characterized in that, The lighting fixture information includes the fixture installation location and the illuminance distribution characteristics of the fixture. The illuminance distribution characteristics include the mapping relationship between positions at different distances from the fixture installation location and illuminance intensity. Calculating the illuminance intensity corresponding to the target location based on the lighting fixture information includes: Based on the installation location of each lamp and the target location, calculate the distance between the installation location of the lamp and the target location; Based on the distance and the illuminance distribution characteristics of each lamp, determine the reference illuminance of each lamp at the target location; The illuminance at the target location is calculated based on the reference illuminance of each luminaire at the target location.
3. The screen brightness adjustment method according to claim 2, characterized in that, The illuminance distribution characteristics of the luminaires include the mapping relationship between the luminaire's installation location and the illuminance intensity at different distances from the projection point on the ground. The step of calculating the distance between the luminaire's installation location and the target location based on the installation location of each luminaire and the target location includes: Based on the installation location of each lamp and the target location, calculate the distance between the projection point of the center of each lamp onto the ground and the target location; The distance between the installation location of the lamp and the target location is determined based on the distance between the projection point of the center of each lamp onto the ground and the target location.
4. The screen brightness adjustment method according to claim 1, characterized in that, The step of extracting luminaire information from the lighting dataset that matches the lighting space of the target location in the lighting environment includes: Determine whether the terminal is outdoors based on the target location and the 3D map model; If the terminal is outdoors, then extract the lighting information of the lamps in the lighting environment that matches the lighting space of the target location from the lighting dataset; Correspondingly, the step of extracting luminaire information from the lighting dataset that matches the lighting space of the target location within the lighting environment includes: If the terminal is indoors, then extract the lighting information of the lamps in the lighting environment that match the enclosed space where the target location is located from the lighting dataset.
5. The screen brightness adjustment method according to claim 1, characterized in that, The method of locating the terminal based on the 3D map model of the lighting environment to determine the target location of the terminal in the 3D map model includes: The location information of the terminal is obtained through a preset positioning algorithm; The location information is matched with the three-dimensional map model to determine the target location of the terminal in the three-dimensional map.
6. The screen brightness adjustment method according to claim 1, characterized in that, Before locating the terminal using a 3D map model based on the lighting environment to determine the target location of the terminal in the 3D map model, the method further includes: Scan the lighting environment to obtain environmental information about the lighting environment; Based on the environmental information, a three-dimensional map model corresponding to the lighting environment is generated.
7. A screen brightness adjustment device, characterized in that, include: The acquisition module is used to acquire the lighting dataset of the lighting environment where the terminal is located; The positioning module is used to locate the terminal based on the three-dimensional map model of the lighting environment, so as to determine the target position of the terminal in the three-dimensional map model; The calculation module is used to calculate the light intensity corresponding to the target location based on the lighting dataset and the target location; An adjustment module is used to adjust the screen brightness of the terminal according to the light intensity; The first extraction module is used to extract luminaire information from the lighting dataset that matches the lighting space of the target location in the lighting environment. The first calculation module is used to calculate the light intensity corresponding to the target location based on the lighting information.
8. A terminal, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the screen brightness adjustment method as described in any one of claims 1 to 6 when it invokes the computer program in the memory.
9. A storage medium, characterized in that, The storage medium is used to store a computer program, which is loaded by a processor to execute the screen brightness adjustment method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Display screen brightness adjusting method and device
CN105575368A
Information terminal
WO2018219294A1