Screen control method and device, electronic equipment and storage medium
The screen control parameters are determined through the environmental parameters collected by the first device and sent these parameters to the second device, which solves the problem of inaccurate screen adjustment caused by the difference in light perception between the user and the electronic device and improves the user experience.
Patent Information
- Application Number
- CN202311754605.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-06-20
AI Technical Summary
When there is a distance between the user and the electronic device, there is a difference between the lighting conditions detected by the electronic device and the lighting conditions felt by the user, resulting in inaccurate screen adjustments and affecting the display effect and user experience.
Through the environmental parameters collected by the first device (such as a mobile phone), the screen control parameters are determined and these parameters are sent to the second device (such as a TV), so that the second device adjusts its screen display according to these parameters. The method more accurately reflects the lighting situation perceived by the user when the distance between the first device and the user is smaller than the distance between the second device and the user.
Through the cross-device screen control method, the screen display effect of the second device is better, more in line with user perception, and improve the user's user experience.
Smart Images

Figure CN120183359A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular, to a screen control method, apparatus, electronic device, and storage medium. Background Art
[0002] With the development of computer technologies, the brightness, color temperature, etc. of the screens of more and more electronic devices can be adjusted, so that users feel more comfortable when viewing the screens. When each electronic device works independently, it adjusts the brightness, color temperature, etc. of the screen according to the light conditions in the environment where it is located. However, when there is a certain distance between the position of the user and the position of the electronic device, there will be a difference between the light conditions perceived by the user and the light conditions detected by the electronic device. If the electronic device still adjusts according to the detected light conditions, the adjustment will not be accurate enough, which affects the display effect of the electronic device and the user experience is poor. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a screen control method, apparatus, electronic device, and storage medium.
[0004] According to a first aspect of the embodiments of the present disclosure, a screen control method is provided, which is applied to a first device. The method includes:
[0005] Obtaining first environmental parameters collected by the first device, where the first environmental parameters are used to characterize the light conditions detected by the first device;
[0006] Determining screen control parameters based on the first environmental parameters;
[0007] Sending the screen control parameters to a second device, where the screen control parameters are used to adjust the screen display of the second device;
[0008] Wherein, the first device, the second device, and the user are at different positions in the same environment, and a first distance between the first device and the user is less than a second distance between the second device and the user.
[0009] In some embodiments, the method further includes:
[0010] Receiving second environmental parameters sent by the second device, where the second environmental parameters are collected by the second device, and the second environmental data is used to characterize the light conditions detected by the second device;
[0011] The determining the screen control parameters based on the first environmental parameters includes:
[0012] Determining the screen control parameters based on the first environmental parameters and the second environmental parameters.
[0013] In some embodiments, the first environmental parameter includes a first ambient illuminance, the second environmental parameter includes a second ambient illuminance, the screen control parameter includes a brightness control parameter, and determining the screen control parameter based on the first environmental parameter and the second environment includes:
[0014] Determine the difference between the first ambient illuminance and the second ambient illuminance;
[0015] When the difference is greater than a first threshold, determine the brightness control parameter based on the first ambient illuminance;
[0016] When the difference is less than or equal to the first threshold, determine the brightness control parameter based on the second ambient illuminance.
[0017] In some embodiments, determining the brightness control parameter based on the first ambient illuminance includes:
[0018] Determine the brightness control parameter based on the second distance and the first ambient illuminance; wherein, the brightness control parameter has a positive correlation with the second distance.
[0019] In some embodiments, the first environmental parameter includes a first color temperature, the second environmental parameter includes a second color temperature, the screen control parameter includes a color temperature control parameter, and determining the screen control parameter based on the first environmental parameter and the second environment includes:
[0020] Determine the color temperature control parameter based on the first color temperature.
[0021] In some embodiments, the method further includes:
[0022] Collect holding data and a first image based on the first device, where the holding data is used to characterize whether the user holds the first device;
[0023] Determine the first distance between the first device and the user based on the holding data and / or the first image.
[0024] In some embodiments, the method further includes:
[0025] Determine the second distance between the second device and the user based on a second image, where the second image is captured by the first device and includes the user and the second device, or the second image is captured by the second device and includes the user.
[0026] In some embodiments, determining the screen control parameter based on the first environmental parameter includes:
[0027] Collect a third image based on the first device, where the third image includes a light source and the user;
[0028] Determine a third distance between the light source and the user based on the third image;
[0029] When the third distance is less than a second threshold, determine the screen control parameter based on the first environmental parameter.
[0030] In some embodiments, the determining the screen control parameter based on the first environmental parameter includes:
[0031] Determine the screen control parameter based on the first environmental parameter and a preset mapping relationship, where the preset mapping relationship is used to represent the mapping relationship between the environmental parameter and the screen control parameter.
[0032] According to a second aspect of the embodiments of the present disclosure, there is provided a screen control method, which is applied to a second device. The method includes:
[0033] Receive a screen control parameter sent by a first device, where the screen control parameter is determined by the first device based on the collected first environmental parameter, and the first environmental parameter is used to represent the illumination condition detected by the first device;
[0034] Adjust the screen display of the second device based on the screen control parameter;
[0035] Wherein, the first device, the second device and the user are at different positions in the same environment, and a first distance between the first device and the user is less than a second distance between the second device and the user.
[0036] In some embodiments, the method further includes:
[0037] Send the collected second environmental parameter to the first device, where the second environmental parameter is used to represent the illumination condition detected by the second device;
[0038] Wherein, the screen control parameter is determined by the first device based on the first environmental parameter and the second environmental parameter.
[0039] According to a third aspect of the embodiments of the present disclosure, there is provided a screen control device, which is configured in a first device. The device includes:
[0040] An environmental parameter acquisition module, which is configured to acquire a first environmental parameter collected by the first device, and the first environmental parameter is used to represent the illumination condition detected by the first device;
[0041] A control parameter determination module, configured to determine a screen control parameter based on the first environmental parameter;
[0042] A control parameter sending module, configured to send the screen control parameter to a second device, where the screen control parameter is used to adjust the screen display of the second device;
[0043] Wherein, the first device, the second device, and the user are at different positions in the same environment, and a first distance between the first device and the user is less than a second distance between the second device and the user.
[0044] In some embodiments, the device further includes:
[0045] An environmental parameter receiving module, configured to receive a second environmental parameter sent by the second device, where the second environmental parameter is collected by the second device, and the second environmental data is used to characterize the light condition detected by the second device;
[0046] The control parameter determination module is configured to determine the screen control parameter based on the first environmental parameter and the second environmental parameter.
[0047] In some embodiments, the first environmental parameter includes a first environmental illuminance, the second environmental parameter includes a second environmental illuminance, the screen control parameter includes a brightness control parameter, and the control parameter determination module is configured to:
[0048] Determine the difference between the first environmental illuminance and the second environmental illuminance;
[0049] When the difference is greater than a first threshold, determine the brightness control parameter based on the first environmental illuminance;
[0050] When the difference is less than or equal to the first threshold, determine the brightness control parameter based on the second environmental illuminance.
[0051] In some embodiments, the control parameter determination module is configured to determine the brightness control parameter based on the second distance and the first environmental illuminance; wherein, the brightness control parameter has a positive correlation with the second distance.
[0052] In some embodiments, the first environmental parameter includes a first color temperature, the second environmental parameter includes a second color temperature, the screen control parameter includes a color temperature control parameter, and the control parameter determination module is configured to determine the color temperature control parameter based on the first color temperature.
[0053] In some embodiments, the device further includes:
[0054] A grip detection module, configured to collect grip data and a first image based on the first device, where the grip data is used to characterize whether the user grips the first device;
[0055] A first distance determination module, configured to determine the first distance between the first device and the user based on the grip data and / or the first image.
[0056] In some embodiments, the device further includes:
[0057] A second distance determination module, configured to determine the second distance between the second device and the user based on a second image, where the second image is captured by the first device and includes the user and the second device, or the second image is captured by the second device and includes the user.
[0058] In some embodiments, the control parameter determination module is configured to:
[0059] Collect a third image based on the first device, where the third image includes a light source and the user;
[0060] Determine a third distance between the light source and the user based on the third image;
[0061] When the third distance is less than a second threshold, determine the screen control parameter based on the first environmental parameter.
[0062] In some embodiments, the control parameter determination module is configured to determine the screen control parameter based on the first environmental parameter and a preset mapping relationship, where the preset mapping relationship is used to characterize the mapping relationship between the environmental parameter and the screen control parameter.
[0063] According to a fourth aspect of the embodiments of the present disclosure, there is provided a screen control device configured in a second device. The device includes:
[0064] A control parameter receiving module, configured to receive the screen control parameter sent by the first device, where the screen control parameter is determined by the first device based on the collected first environmental parameter, and the first environmental parameter is used to characterize the illumination condition detected by the first device;
[0065] A display adjustment module, configured to adjust the screen display of the second device based on the screen control parameter;
[0066] Wherein, the first device, the second device, and the user are at different positions in the same environment, and the first distance between the first device and the user is less than the second distance between the second device and the user.
[0067] In some embodiments, the device further includes:
[0068] An environmental parameter sending module, configured to send the collected second environmental parameters to the first device, where the second environmental parameters are used to characterize the illumination condition detected by the second device;
[0069] Wherein, the screen control parameter is determined by the first device based on the first environmental parameter and the second environmental parameter.
[0070] According to a fifth aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0071] A processor;
[0072] A memory for storing instructions executable by the processor;
[0073] Wherein, the processor is configured to execute the method described in the first aspect or the second aspect of the embodiments of the present disclosure.
[0074] According to a sixth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the method described in the first aspect or the second aspect of the embodiments of the present disclosure.
[0075] Adopting the above method of the present disclosure, the following beneficial effects are achieved:
[0076] In the method provided by the embodiments of the present disclosure, in the same environment, when the distance between the user and the first device is less than the distance between the user and the second device, it indicates that the first environmental parameter collected by the first device at this time is more in line with the illumination condition actually perceived by the user. Therefore, based on the first environmental parameter, the screen control parameter is determined, and then the screen control parameter is sent to the second device, so that the second device adjusts the screen display based on the screen control parameter, thereby making the screen display effect of the second device better, more in line with the user's perception, and improving the user experience.
[0077] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.
[0079] Figure 1 is a schematic diagram of an application scenario shown according to an exemplary embodiment;
[0080] Figure 2 is a flowchart of a screen control method shown according to an exemplary embodiment;
[0081] Figure 3 is a flowchart of a screen control method shown according to an exemplary embodiment;
[0082] Figure 4 is a schematic diagram of a multi-device interaction process shown according to an exemplary embodiment;
[0083] Figure 5 is a flowchart of a screen control method shown according to an exemplary embodiment;
[0084] Figure 6 is a flowchart of a screen control method shown according to an exemplary embodiment;
[0085] Figure 7 is a block diagram of a screen control device shown according to an exemplary embodiment;
[0086] Figure 8 is a block diagram of a screen control device shown according to an exemplary embodiment;
[0087] Figure 9 is a block diagram of an electronic device shown according to an exemplary embodiment. Detailed Description of the Invention
[0088] Here, exemplary embodiments will be described in detail, and examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0089] In the related art, when each electronic device works independently, it adjusts the brightness, color temperature, etc. of the screen according to the light conditions in the environment. When there is a certain distance between the position of the user and the position of the electronic device, there will be a difference between the light conditions perceived by the user and the light conditions detected by the electronic device. If the electronic device still adjusts according to the detected light conditions, the adjustment will not be accurate enough, affecting the display effect of the electronic device and resulting in a poor user experience.
[0090] See Figure 1Schematic diagram of the application scenario shown. Taking an electronic device as a TV as an example, when a user is watching TV, the light source is located around the user, and the light source is relatively far from the TV. In this case, the actual light condition perceived by the user is significantly different from the light condition detected by the TV. For the light condition perceived by the user, when a mobile phone is located around the user, the light condition detected by the mobile phone can be used to represent the light condition perceived by the user. For example, the user is holding a mobile phone in their hand, and the mobile phone detects that the ambient illuminance is 200 lux (lux) and the color temperature is 6500 K (Kelvin). The TV is 2 meters away from the user, and the TV detects that the ambient illuminance is 100 lux and the color temperature is 10000 K. It can be seen that the ambient illuminance and color temperature detected by the TV are significantly different from those perceived by the user. When the TV adjusts the screen according to the detected ambient illuminance and color temperature, it cannot be correctly synchronized with the user's perception, which will cause discomfort to the human eye and a poor user experience.
[0091] Embodiments of the present disclosure address the above problems and provide a screen control method, that is, based on the first environmental parameters detected by the first device, to adjust the screen display of the second device. Among them, the first device can be a device relatively close to the user, such as a mobile phone, a tablet computer, a laptop computer, a wearable device, etc., and the second device is a device relatively far from the user, such as a TV, a laptop computer, a display screen, etc. The first device and the second device are in the same environment, and the first device and the second device are connected by a wireless connection method. For example, the first device and the second device are connected by Bluetooth, or by a local area network connection, or by a WiFi (Wireless Fidelity) connection, etc.
[0092] Figure 2 is a flowchart of a screen control method shown according to an exemplary embodiment, executed by the first device. Refer to Figure 2 and the method includes the following steps:
[0093] Step S201, obtain the first environmental parameters collected by the first device, where the first environmental parameters are used to represent the light condition detected by the first device.
[0094] Among them, the first environmental parameters are the environmental parameters collected by the first device and are used to represent the light condition detected by the first device. The first environmental parameters may include the first ambient illuminance and the first color temperature. Of course, the first environmental parameters may also include other parameters representing the light condition.
[0095] In some embodiments, the first device includes a first photosensitive sensor, and the first device collects the first environmental parameters through the first photosensitive sensor. Among them, the number of the first photosensitive sensors is one or more.
[0096] Step S202, determine the screen control parameters based on the first environmental parameters.
[0097] Among them, the screen control parameter is used to adjust the screen display of the device. For example, it can adjust the brightness, color temperature, etc. of the device's screen.
[0098] In some embodiments, based on the first environmental parameter and the preset mapping relationship, the screen control parameter is determined; the preset mapping relationship is used to represent the mapping relationship between the environmental parameter and the screen control parameter. For example, the preset mapping relationship is: screen control parameter = first environmental parameter * preset coefficient.
[0099] Optionally, for different environmental parameters, the preset mapping relationships are different. For example, when the first environmental parameter includes the first environmental illuminance, the screen control parameter includes the brightness control parameter. Based on the first environmental parameter and the preset mapping relationship, determining the screen control parameter includes: based on the first environmental illuminance and the first preset mapping relationship, determining the brightness control parameter, and the first preset mapping relationship is used to represent the mapping relationship between the environmental illuminance and the brightness control parameter. When the first environmental parameter includes the first color temperature, the screen control parameter includes the color temperature control parameter. Based on the first environmental parameter and the preset mapping relationship, determining the screen control parameter includes: based on the first color temperature and the second preset mapping relationship, determining the color temperature control parameter, and the second preset mapping relationship is used to represent the mapping relationship between the color temperature and the color temperature control parameter.
[0100] Of course, other methods can also be used to calculate the screen control parameter based on the first environmental parameter.
[0101] Step S203: Send the screen control parameter to the second device. The screen control parameter is used to adjust the screen display of the second device; among them, the first device, the second device, and the user are at different positions in the same environment, and the first distance between the first device and the user is less than the second distance between the second device and the user.
[0102] In the embodiments of the present disclosure, when the first distance between the first device and the user is less than the second distance between the second device and the user, it means that the first device is closer to the user and the second device is farther from the user. The first environmental parameter collected by the first device can more accurately represent the lighting situation perceived by the user. Therefore, when it is necessary to adjust the screen display of the second device, the first device sends the screen control parameter to the second device, so that the second device adjusts based on the screen control parameter, thereby making the screen display of the second device more in line with the user's perception.
[0103] For the adjustment of the screen display, when the screen control parameter includes the brightness control parameter and the color temperature control parameter, the second device adjusts the brightness of the second device's screen based on the brightness control parameter and adjusts the color temperature of the second device's screen based on the color temperature control parameter.
[0104] It should be noted that for the first device, the first device can use the screen control parameter to adjust the screen display of the first device. The first device can also calculate other screen control parameters based on the first environmental parameter and use other implementation manners to adjust the screen display of the first device. The embodiments of the present disclosure do not limit the adjustment of the screen display of the first device.
[0105] In the method provided by the embodiments of the present disclosure, in the same environment, when the distance between the user and the first device is less than the distance between the user and the second device, it indicates that the first environmental parameter collected by the first device at this time is more in line with the light condition actually perceived by the user. Therefore, based on the first environmental parameter, the screen control parameter is determined, and then the screen control parameter is sent to the second device, so that the second device adjusts the screen display based on the screen control parameter. Thus, through this cross-device screen control method, the screen display effect of the second device is better, more in line with the user's perception, and the user experience is improved.
[0106] Figure 3 is a flowchart of a screen control method shown according to an exemplary embodiment, which is executed by the second device. Refer to Figure 3 The method includes the following steps:
[0107] Step S301: Receive the screen control parameter sent by the first device. The screen control parameter is determined by the first device based on the first environmental parameter collected. The first environmental parameter is used to characterize the light condition detected by the first device. The first device, the second device, and the user are at different positions in the same environment, and the first distance between the first device and the user is less than the second distance between the second device and the user.
[0108] Step S302: Adjust the screen display of the second device based on the screen control parameter.
[0109] For the implementation manners of step S301 and step S302, refer to the implementation manners of the above steps S201 - S203, which will not be elaborated here.
[0110] In the method provided by the embodiments of the present disclosure, in the same environment, when the distance between the user and the first device is less than the distance between the user and the second device, it indicates that the first environmental parameter collected by the first device at this time is more in line with the light condition actually perceived by the user. Therefore, the second device receives the screen control parameter sent by the first device and adjusts the screen display based on the screen control parameter. The screen control parameter is determined by the first device based on the first environmental parameter. Thus, through this cross-device screen control method, the screen display effect of the second device is better, more in line with the user's perception, and the user experience is improved.
[0111] In some embodiments, in addition to the first device collecting the first environmental parameter, the second device also collects the second environmental parameter, and then determines the screen control parameter based on the first environmental parameter and the second environmental parameter. In one example, referring to Figure 4 the schematic diagram of the multi-device interaction process shown in Figure 5 , the first device and the second device respectively collect the first environmental parameter and the second environmental parameter, and then the first device and the second device adjust the screen display through interaction. The following uses
[0112] Figure 5 a flowchart of a screen control method shown according to an exemplary embodiment, which is executed by the first device and the second device, referring to Figure 5 , and the method includes the following steps:
[0113] Step S501, the first device collects the first environmental parameter.
[0114] For the implementation manner of step S501, refer to the above step S201, and details are not described herein again.
[0115] Step S502, the second device collects the second environmental parameter and sends the second environmental parameter to the first device.
[0116] Among them, the second environmental parameter is the environmental parameter collected by the second device, which is used to characterize the light condition detected by the second device. The second environmental parameter may include the second environmental illuminance and the second color temperature. Of course, the second environmental parameter may also include other parameters characterizing the light condition.
[0117] In some embodiments, the second device includes a second photosensitive sensor, and the second device collects the second environmental parameter through the second photosensitive sensor. Among them, the number of the second photosensitive sensors is one or more.
[0118] Step S503, the first device receives the second environmental parameter sent by the second device.
[0119] Step S504, the first device determines the first distance between the first device and the user, and the second distance between the second device and the user.
[0120] In the embodiments of the present disclosure, considering that if the user is far from the first device and close to the second device, the second environmental parameter collected by the second device is closer to the user's perception than the first environmental parameter collected by the first device. Therefore, when the first distance is less than the second distance, the screen display of the second device needs to be adjusted based on the first environmental parameter of the first device.
[0121] In some embodiments, grip data and a first image are collected based on a first device. The grip data is used to characterize whether a user is gripping the first device. Based on the grip data and / or the first image, a first distance between the first device and the user is determined. Among them, the grip data is collected based on a gravity sensor of the first device, and the first image is collected by an imaging module of the first device. Optionally, when the grip data characterizes that the user is gripping the first device, the first distance between the first device and the user is determined to be 0. When the grip data characterizes that the user is not gripping the first device, based on whether the first image includes the user, the first distance between the first device and the user is determined. For example, when the imaging module collects the first image, it can directly determine the distance between the imaging module and the object being collected (the user), and determine this distance as the first distance. Also, for example, the closer the first device is to the user, the fewer body parts of the user are included in the first image collected. If only a small part of the user's body is included in the first image, the first distance is determined to be smaller; or if most of the user's body is included in the first image, the first distance is determined to be larger.
[0122] In some embodiments, based on a second image, a second distance between a second device and the user is determined. Among them, the second image is captured by the first device and includes the user and the second device. In this case, the second distance is determined according to the distance between the user and the second device in the second image. Or when the imaging module of the first device collects the second image, it directly determines the distance between the imaging module and the user being collected, and the distance between the imaging module and the second device being collected, and then determines the second distance based on these two distances. Or, the second image is captured by the second device and includes the user. In this case, when the imaging module of the second device collects the second image, it directly determines the distance between the imaging module of the second device and the user being collected, and uses this distance as the second distance.
[0123] In the embodiments of the present disclosure, when the first distance is less than the second distance, step S505 is executed. When the first distance is not less than the second distance, subsequent steps are no longer executed.
[0124] Step S505: When the first distance is less than the second distance, the first device determines a screen control parameter based on a first environmental parameter and a second environmental parameter, and sends the screen control parameter to the second device.
[0125] In some embodiments, the first environmental parameter includes the first environmental illuminance, the second environmental parameter includes the second environmental illuminance, the screen control parameter includes a brightness control parameter, and the brightness control parameter is used to adjust the brightness of the screen of the second device. Based on the first environmental parameter and the second environment, the screen control parameter is determined, including: determining the difference between the first environmental illuminance and the second environmental illuminance; when the difference is greater than the first threshold, determining the brightness control parameter based on the first environmental illuminance; when the difference is less than or equal to the first threshold, determining the brightness control parameter based on the second environmental illuminance. Wherein, the difference is used to characterize the degree of difference between the first environmental illuminance and the second environmental illuminance. Optionally, the difference can directly be the difference between the first environmental illuminance and the second environmental illuminance. In this case, the first threshold is a preset value of an environmental illuminance. Or, the difference can be the ratio of the difference between the first environmental illuminance and the second environmental illuminance to the second environmental illuminance or the first environmental illuminance. In this case, the first threshold is a preset percentage value.
[0126] When the difference is greater than the first threshold, it indicates that the difference between the second environmental illuminance and the first environmental illuminance is relatively large, and the brightness control parameter needs to be determined based on the first environmental illuminance. When the difference is less than or equal to the first threshold, it indicates that the difference between the second environmental illuminance and the first environmental illuminance is relatively small, and the brightness control parameter can be directly determined based on the second environmental illuminance.
[0127] Of course, in some embodiments, regardless of the difference between the first environmental illuminance and the second environmental illuminance, the brightness control parameter can be directly determined based on the first environmental illuminance; or, the brightness control parameter can also be determined based on the average environmental illuminance of the first environmental illuminance and the second environmental illuminance.
[0128] In some embodiments, the brightness control parameter is determined based on the second distance and the first environmental illuminance; wherein, the brightness control parameter has a positive correlation with the second distance. That is to say, the farther the distance between the user and the second device, in order to allow the user to clearly see the screen of the second device, the greater the brightness of the screen of the second device needs to be. Therefore, the intensity control parameter is determined based on the second distance and the second environmental illuminance. Optionally, based on the second distance, a target ratio is determined, and the target ratio has a positive correlation with the second distance. The first environmental illuminance is increased by the target ratio to determine the third environmental illuminance, and the brightness control parameter is determined based on the third environmental illuminance. For example, if the second distance is 2 meters, the target ratio is 20%. The first environmental illuminance is increased by 20%, that is, the first environmental illuminance * 120% to obtain the third environmental illuminance. For example, if the first environmental illuminance is 200 lux and the second environmental illuminance is 150 lux, the brightness control parameter is determined based on 240 lux.
[0129] In some embodiments, the first environmental parameter includes a first color temperature, the second environmental parameter includes a second color temperature, the screen control parameter includes a color temperature control parameter, and the color temperature control parameter is used to adjust the color temperature of the screen of the second device. Considering that the color temperature closer to the user is more accurate, therefore, based on the first environmental parameter and the second environment, the screen control parameter is determined, including: determining the color temperature control parameter based on the first color temperature. For example, if the first color temperature is 6500K and the second color temperature is 10000K, then the color temperature control parameter is determined based on 6500K.
[0130] In another embodiment, a third image including a light source and a user is collected based on the first device; based on the third image, a third distance between the light source and the user is determined; when the third distance is less than a second threshold, the screen control parameter is determined based on the first environmental parameter. That is to say, when the user is relatively close to the light source, the influence of the distance between the user and the first device and the second device is considered, while when the user is relatively far from the light source, the influence of the distance between the user and the first device and the second device is no longer considered.
[0131] Optionally, the third distance is determined according to the distance between the user and the light source in the third image, or when the camera module of the first device collects the third image, the distance between the camera module and the collected user and the distance between the camera module and the collected light source are directly determined, and then the third distance is determined according to these two distances.
[0132] It should be noted that the embodiments of the present disclosure are only described by taking into account the distance between the user and the first device and the second device as an example. In another embodiment, after receiving the second environmental parameter, the first device can directly determine the screen control parameter based on the first environmental parameter and the second environmental parameter, without determining whether the first distance is less than the second distance.
[0133] Step S506, the second device receives the screen control parameter sent by the first device.
[0134] Step S507, the second device adjusts the screen display of the second device based on the screen control parameter.
[0135] When receiving the screen control parameter, the second device directly adjusts the screen display of the second device based on the screen control parameter.
[0136] In an example, refer to Figure 6The flowchart of the screen control method shown. Taking the first device as a mobile phone and the second device as a TV as an example, the mobile phone and the TV discover each other and add each other through a wireless connection method respectively. Then the mobile phone detects the surrounding environment based on its own photosensitive sensor to obtain the first environmental parameter; the TV detects the surrounding environment based on its own photosensitive sensor to obtain the second environmental parameter; then it is determined whether the mobile phone is located around the user. If the mobile phone is not located around the user, no subsequent operations are performed. If the mobile phone is located around the user, the mobile phone determines the screen control parameters (brightness, color temperature) based on the collected first environmental parameter and the second environmental parameter collected by the TV, and sends the screen control parameters to the TV through a wireless transmission method. The TV adjusts the screen display according to the obtained screen control parameters.
[0137] It should be noted that the above embodiments are only described by taking the second device as an example that can collect the second environmental parameter. In another embodiment, when the second device does not have the function of collecting the second environmental parameter, the first device directly determines the screen control parameter based on the first environmental parameter.
[0138] In the method provided by the embodiments of the present disclosure, in the same environment, when the distance between the user and the first device is less than the distance between the user and the second device, it means that the first environmental parameter collected by the first device at this time is more in line with the actual light situation perceived by the user. Therefore, based on the first environmental parameter, the screen control parameter is determined, and then the screen control parameter is sent to the second device, so that the second device adjusts the screen display based on the screen control parameter. Thus, through this cross-device screen control method, the screen display effect of the second device is better, more in line with the user's perception, improving the user experience and making the user more comfortable to watch.
[0139] Figure 7 It is a block diagram of a screen control device shown according to an exemplary embodiment, configured in the first device. Refer to Figure 7 and the device includes:
[0140] An environmental parameter acquisition module 701, configured to acquire the first environmental parameter collected by the first device, and the first environmental parameter is used to characterize the light situation detected by the first device;
[0141] A control parameter determination module 702, configured to determine the screen control parameter based on the first environmental parameter;
[0142] A control parameter sending module 703, configured to send the screen control parameter to the second device, and the screen control parameter is used to adjust the screen display of the second device;
[0143] Wherein, the first device, the second device and the user are at different positions in the same environment, and the first distance between the first device and the user is less than the second distance between the second device and the user.
[0144] In some embodiments, the device further comprises:
[0145] An environmental parameter receiving module, configured to receive second environmental parameters sent by a second device, where the second environmental parameters are collected by the second device, and the second environmental data is used to characterize the illumination condition detected by the second device;
[0146] A control parameter determining module 702, configured to determine screen control parameters based on the first environmental parameters and the second environmental parameters.
[0147] In some embodiments, the first environmental parameters include a first environmental illuminance, the second environmental parameters include a second environmental illuminance, the screen control parameters include brightness control parameters, and the control parameter determining module 702 is configured to:
[0148] Determine the difference between the first environmental illuminance and the second environmental illuminance;
[0149] When the difference is greater than a first threshold, determine the brightness control parameters based on the first environmental illuminance;
[0150] When the difference is less than or equal to the first threshold, determine the brightness control parameters based on the second environmental illuminance.
[0151] In some embodiments, the control parameter determining module 702 is configured to determine the brightness control parameters based on the second distance and the first environmental illuminance; wherein, the brightness control parameters are positively correlated with the second distance.
[0152] In some embodiments, the first environmental parameters include a first color temperature, the second environmental parameters include a second color temperature, the screen control parameters include color temperature control parameters, and the control parameter determining module 702 is configured to determine the color temperature control parameters based on the first color temperature.
[0153] In some embodiments, the device further comprises:
[0154] A grip detection module, configured to collect grip data and a first image based on the first device, where the grip data is used to characterize whether a user grips the first device;
[0155] A first distance determining module, configured to determine a first distance between the first device and the user based on the grip data and / or the first image.
[0156] In some embodiments, the device further comprises:
[0157] A second distance determining module, configured to determine a second distance between the second device and the user based on a second image, where the second image is captured by the first device and includes the user and the second device, or the second image is captured by the second device and includes the user.
[0158] In some embodiments, the control parameter determination module 702 is configured to:
[0159] Collect a third image based on a first device, the third image including a light source and a user;
[0160] Determine a third distance between the light source and the user based on the third image;
[0161] When the third distance is less than a second threshold, determine a screen control parameter based on a first environmental parameter.
[0162] In some embodiments, the control parameter determination module 702 is configured to determine a screen control parameter based on a first environmental parameter and a preset mapping relationship, and the preset mapping relationship is used to represent the mapping relationship between the environmental parameter and the screen control parameter.
[0163] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0164] Figure 8 is a block diagram of a screen control device shown according to an exemplary embodiment, and is configured in a second device. Refer to Figure 8 , the device includes:
[0165] A control parameter receiving module 801, configured to receive a screen control parameter sent by a first device, where the screen control parameter is determined by the first device based on a first environmental parameter collected, and the first environmental parameter is used to represent the illumination condition detected by the first device;
[0166] A display adjustment module 802, configured to adjust the screen display of the second device based on the screen control parameter;
[0167] Wherein, the first device, the second device, and the user are at different positions in the same environment, and a first distance between the first device and the user is less than a second distance between the second device and the user.
[0168] In some embodiments, the device further includes:
[0169] An environmental parameter sending module, configured to send a second environmental parameter collected to the first device, and the second environmental parameter is used to represent the illumination condition detected by the second device;
[0170] Wherein, the screen control parameter is determined by the first device based on the first environmental parameter and the second environmental parameter.
[0171] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0172] An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the screen control method in the above embodiment.
[0173] Figure 9 It is a block diagram of an electronic device 900 shown according to an exemplary embodiment.
[0174] Referring to Figure 9 , the electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.
[0175] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0176] The memory 904 is configured to store various types of data to support the operation of the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0177] The power supply component 906 provides power to various components of the electronic device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900.
[0178] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0179] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
[0180] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0181] The sensor component 914 includes one or more sensors for providing an assessment of the various aspects of the status of the electronic device 900. For example, the sensor component 914 can detect the on / off state of the electronic device 900, the relative positioning of components, such as the display and the keypad of the electronic device 900. The sensor component 914 can also detect a change in the position of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor component 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 914 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 914 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0182] The communication component 916 is configured to facilitate communication between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0183] In an exemplary embodiment, the electronic device 900 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0184] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the above instructions can be executed by a processor 920 of the electronic device 900 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0185] The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the screen control method in the above embodiments.
[0186] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and embodiments are only to be considered as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0187] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A screen control method, characterized in that, Applied to a first device, the method includes: Obtaining first environmental parameters collected by the first device, where the first environmental parameters are used to characterize the light conditions detected by the first device; Determining screen control parameters based on the first environmental parameters; Sending the screen control parameters to a second device, where the screen control parameters are used to adjust the screen display of the second device; Wherein, the first device, the second device, and the user are at different positions in the same environment, and a first distance between the first device and the user is less than a second distance between the second device and the user.
2. The method according to claim 1, characterized in that, The method further includes: Receiving second environmental parameters sent by the second device, where the second environmental parameters are collected by the second device, and the second environmental data is used to characterize the light conditions detected by the second device; The determining the screen control parameters based on the first environmental parameters includes: Determining the screen control parameters based on the first environmental parameters and the second environmental parameters.
3. The method according to claim 2, characterized in that, The first environmental parameters include a first environmental illuminance, the second environmental parameters include a second environmental illuminance, the screen control parameters include brightness control parameters, and the determining the screen control parameters based on the first environmental parameters and the second environment includes: Determining the difference between the first environmental illuminance and the second environmental illuminance; When the difference is greater than a first threshold, determining the brightness control parameters based on the first environmental illuminance; When the difference is less than or equal to the first threshold, determining the brightness control parameters based on the second environmental illuminance.
4. The method according to claim 3, characterized in that, The determining the brightness control parameters based on the first environmental illuminance includes: Determining the brightness control parameters based on the second distance and the first environmental illuminance; wherein, the brightness control parameters are positively correlated with the second distance.
5. The method according to claim 2, characterized in that, The first environmental parameters include a first color temperature, the second environmental parameters include a second color temperature, the screen control parameters include color temperature control parameters, and the determining the screen control parameters based on the first environmental parameters and the second environment includes: Determining the color temperature control parameters based on the first color temperature.
6. The method according to claim 1, characterized in that, The method further includes: Based on the first device collecting holding data and a first image, where the holding data is used to characterize whether the user is holding the first device; Determining the first distance between the first device and the user based on the holding data and / or the first image.
7. The method according to claim 1, characterized in that, The method further includes: Determining the second distance between the second device and the user based on a second image, where the second image is captured by the first device and includes the user and the second device, or the second image is captured by the second device and includes the user.
8. The method according to claim 1, characterized in that, The determining the screen control parameters based on the first environmental parameters includes: Based on the first device collecting a third image, where the third image includes a light source and the user; Determining a third distance between the light source and the user based on the third image; When the third distance is less than a second threshold, determining the screen control parameters based on the first environmental parameters.
9. The method according to claim 1, characterized in that, Determining screen control parameters based on the first environmental parameter includes: Determining the screen control parameter based on the first environmental parameter and a preset mapping relationship, where the preset mapping relationship is used to represent the mapping relationship between the environmental parameter and the screen control parameter.
10. A screen control method, characterized in that, Applied to a second device, the method includes: Receiving screen control parameters sent by a first device, where the screen control parameters are determined by the first device based on the first environmental parameter collected, and the first environmental parameter is used to represent the light condition detected by the first device; Adjusting the screen display of the second device based on the screen control parameters; Wherein, the first device, the second device, and the user are at different positions in the same environment, and a first distance between the first device and the user is less than a second distance between the second device and the user.
11. According to the method of claim 10, wherein, The method further includes: Sending the second environmental parameter collected to the first device, where the second environmental parameter is used to represent the light condition detected by the second device; Wherein, the screen control parameter is determined by the first device based on the first environmental parameter and the second environmental parameter.
12. A screen control device, characterized in that, Configured in a first device, the apparatus includes: An environmental parameter acquisition module configured to acquire the first environmental parameter collected by the first device, where the first environmental parameter is used to represent the light condition detected by the first device; A control parameter determination module configured to determine screen control parameters based on the first environmental parameter; A control parameter sending module configured to send the screen control parameters to a second device, where the screen control parameters are used to adjust the screen display of the second device; Wherein, the first device, the second device, and the user are at different positions in the same environment, and a first distance between the first device and the user is less than a second distance between the second device and the user.
13. A screen control device, characterized in that, Configured in a second device, the apparatus includes: A control parameter receiving module configured to receive screen control parameters sent by a first device, where the screen control parameters are determined by the first device based on the first environmental parameter collected, and the first environmental parameter is used to represent the light condition detected by the first device; A display adjustment module configured to adjust the screen display of the second device based on the screen control parameters; Wherein, the first device, the second device, and the user are at different positions in the same environment, and a first distance between the first device and the user is less than a second distance between the second device and the user.
14. An electronic device, characterized in that, Includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the method according to any one of claims 1-9, or the processor is configured to execute the method according to any one of claims 10-11.
15. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the method according to any one of claims 1-9, or the electronic device is enabled to execute the method according to any one of claims 10-11.