Light sensing detection method, device and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2026-08-14
AI Technical Summary
[0002]电子设备正在往多形态发展,随着目前的全面屏移动设备发展创新甚微,电子设备逐渐向着其它方向发展,比如折叠,卷轴等形态,卷轴在合上时和正常的电子设备一样,在卷轴伸展和合上过程中则会随着屏幕移动而变化,卷轴屏的背光显示区域大小会发生变化,导致无法准确检测外界光强
[0065]In this embodiment, by determining the current state information of the rollable screen, the electronic device can be controlled to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity. The target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen. This disclosure can select a corresponding detection strategy for light sensing detection based on different state information of the rollable screen, ensuring accurate and rapid determination of the target ambient light intensity under different states. This allows for adjustment of appropriate screen brightness, reducing power consumption of the electronic device, increasing standby time, and improving user experience.
Smart Images

Figure CN115855239B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a light-sensing detection method, apparatus and storage medium. Background Technology
[0002] Electronic devices are evolving into more diverse forms. With limited innovation in current full-screen mobile devices, electronic devices are gradually moving in other directions, such as foldable and rollable forms. While a rollable device functions like a normal electronic device when closed, its size changes as the screen moves during the unfolding and closing process. This alters the size of the backlight display area on the rollable screen, making it difficult to accurately detect ambient light intensity. Therefore, how to accurately detect light during the unfolding and closing of a rollable screen has become a research problem for engineers. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this disclosure provides a light-sensing detection method, device and storage medium.
[0004] According to a first aspect of the present disclosure, a light sensing detection method is provided, applied to an electronic device having a rollable screen, comprising:
[0005] Determine the current status information of the scroll screen;
[0006] The electronic device is controlled to perform light sensing detection on the scroll screen according to the target detection strategy corresponding to the current state information, so as to obtain the target ambient light intensity;
[0007] The target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen.
[0008] In some embodiments, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes:
[0009] When it is determined that the rollable screen is in the first state, the electronic device is controlled to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information to obtain the target ambient light intensity;
[0010] The first state includes: the motion state after receiving a push command to start the scroll function of the scroll screen and before receiving a stop command to stop the scroll function of the scroll screen, and the current state information includes at least: the current sampling frequency of the electronic device performing light sensing sampling.
[0011] In some embodiments, when it is determined that the rollable screen is in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes:
[0012] When the scroll screen is in the first state and the current sampling frequency is greater than the preset sampling threshold, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0013] In some embodiments, when it is determined that the rollable screen is in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes:
[0014] When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, the scrolling speed of the scrolling screen is adjusted according to the current sampling frequency.
[0015] After the scrolling speed of the scroll screen is adjusted, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0016] In some embodiments, adjusting the scrolling speed of the scrolling screen according to the current sampling frequency includes:
[0017] Based on the current sampling frequency and a preset first mapping relationship, a target scrolling speed corresponding to the current sampling frequency is determined; wherein, the first mapping relationship is used to characterize the correlation between the sampling frequency and the scrolling speed;
[0018] Adjust the scrolling speed of the scroll screen to the target scrolling speed.
[0019] In some embodiments, the method further includes:
[0020] Determine the refresh rate and preset channel wavelength of the scroll screen;
[0021] The light leakage intensity corresponding to the scroll screen is obtained by predicting the refresh rate and the preset channel wavelength using a numerical model.
[0022] In some embodiments, when it is determined that the rollable screen is in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes:
[0023] When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, frame interpolation is performed on the current display screen based on a preset time interval.
[0024] The light intensity collected during the frame interpolation process is determined as the target ambient light intensity.
[0025] In some embodiments, the method further includes:
[0026] When the scroll screen enters the second state, light sensing detection is stopped, and the collected light intensity is deleted.
[0027] The second state includes: a static state before receiving a push command to start the scroll function of the scroll screen, or a static state after receiving a stop command to stop the scroll function of the scroll screen.
[0028] In some embodiments, the method further includes:
[0029] Collect the light intensity of the scroll screen at the time of restart, and determine the light intensity at the time of restart as the target ambient light intensity; or
[0030] The preset standard light intensity is determined as the target ambient light intensity;
[0031] The restart time includes the moment when a restart command for the scroll screen is detected.
[0032] According to a second aspect of the present disclosure, a light-sensing detection device is provided, applied to an electronic device having a rollable screen, comprising:
[0033] The determination module is configured to determine the current status information of the scroll screen;
[0034] The control module is configured to control the electronic device to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information, and obtain the target ambient light intensity; wherein the target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen.
[0035] In some embodiments, the control module is configured to:
[0036] When it is determined that the rollable screen is in the first state, the electronic device is controlled to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information to obtain the target ambient light intensity;
[0037] The first state includes: the motion state after receiving a push command to start the scroll function of the scroll screen and before receiving a stop command to stop the scroll function of the scroll screen, and the current state information includes at least: the current sampling frequency of the electronic device performing light sensing sampling.
[0038] In some embodiments, the control module is configured to:
[0039] When the scroll screen is in the first state and the current sampling frequency is greater than the preset sampling threshold, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0040] In some embodiments, the control module is configured to:
[0041] When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, the scrolling speed of the scrolling screen is adjusted according to the current sampling frequency.
[0042] After the scrolling speed of the scroll screen is adjusted, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0043] In some embodiments, the control module is configured to:
[0044] Based on the current sampling frequency and a preset first mapping relationship, a target scrolling speed corresponding to the current sampling frequency is determined; wherein, the first mapping relationship is used to characterize the correlation between the sampling frequency and the scrolling speed;
[0045] Adjust the scrolling speed of the scroll screen to the target scrolling speed.
[0046] In some embodiments, the apparatus further includes:
[0047] The second determining module is configured to determine the refresh frequency and preset channel wavelength of the scroll screen;
[0048] The prediction module is configured to perform prediction processing on the refresh frequency and the preset channel wavelength using a numerical model to obtain the light leakage intensity corresponding to the scroll screen.
[0049] In some embodiments, the control module is configured to:
[0050] When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, frame interpolation is performed on the current display screen based on a preset time interval.
[0051] The light intensity collected during the frame interpolation process is determined as the target ambient light intensity.
[0052] In some embodiments, the apparatus further includes:
[0053] The deletion module is configured to stop light sensing detection and delete the collected light intensity when the scroll screen enters the second state.
[0054] The second state includes: a static state before receiving a push command to start the scroll function of the scroll screen, or a static state after receiving a stop command to stop the scroll function of the scroll screen.
[0055] In some embodiments, the apparatus further includes:
[0056] The acquisition module is configured to acquire the light intensity of the scroll screen at the restart time, and determine the light intensity at the restart time as the target ambient light intensity; or
[0057] The third determining module is configured to determine the preset standard light intensity as the target ambient light intensity;
[0058] The restart time includes the moment when a restart command for the scroll screen is detected.
[0059] According to a third aspect of the present disclosure, a light-sensing detection device is provided, comprising:
[0060] processor;
[0061] Memory configured to store processor-executable instructions;
[0062] The processor is configured to implement the steps of any of the light-sensing detection methods in the first aspect above during execution.
[0063] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of a light-sensing detection device, the device is enabled to perform the steps of any of the light-sensing detection methods of the first aspect described above.
[0064] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0065] In this embodiment, by determining the current state information of the rollable screen, the electronic device can be controlled to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity. The target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen. This disclosure can select a corresponding detection strategy for light sensing detection based on different state information of the rollable screen, ensuring accurate and rapid determination of the target ambient light intensity under different states. This allows for adjustment of appropriate screen brightness, reducing power consumption of the electronic device, increasing standby time, and improving user experience.
[0066] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0067] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0068] Figure 1 This is a flowchart illustrating a light-sensing detection method according to an exemplary embodiment of the present disclosure.
[0069] Figure 2 This is a schematic diagram of an optical inspection method for a rollable screen according to an exemplary embodiment of the present disclosure.
[0070] Figure 3 This is a schematic diagram illustrating the unfolding of a scroll screen according to an exemplary embodiment of the present disclosure.
[0071] Figure 4A This is a schematic diagram illustrating a spectral response function transformation result according to an exemplary embodiment of the present disclosure.
[0072] Figure 4B This is a schematic diagram illustrating a spectral function transformation result according to an exemplary embodiment of the present disclosure.
[0073] Figure 4C This is a schematic diagram illustrating a response convolution spectral function transformation result according to an exemplary embodiment of the present disclosure.
[0074] Figure 4D This is a schematic diagram illustrating the time-domain characteristic transformation result of the back spectrum of a rollable screen according to an exemplary embodiment of the present disclosure.
[0075] Figure 4E This is a schematic diagram illustrating the result of spectral frequency domain characteristic transformation of the back of a rollable screen according to an exemplary embodiment of the present disclosure.
[0076] Figure 5This is a block diagram of a light-sensing detection device according to an exemplary embodiment of the present disclosure.
[0077] Figure 6 This is a hardware structure block diagram of a light-sensing detection device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0078] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0079] Figure 1 This is a flowchart illustrating a light-sensing detection method according to an exemplary embodiment, such as... Figure 1 As shown, this method is applied to electronic devices with rollable screens and mainly includes the following steps:
[0080] In step 101, the current state information of the scroll screen is determined;
[0081] In step 102, the electronic device is controlled to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information to obtain the target ambient light intensity;
[0082] The target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen.
[0083] In this embodiment, a rollable screen refers to a flexible rollable screen whose size can be changed through stretching or pushing operations. The range of screen size changes can be between 6.7 inches and 7.4 inches, and it is commonly used in electronic devices such as mobile phones or tablets. For example, the working principle of a rollable screen used in a mobile phone is that the flexible rollable screen is wound around two shafts, and there are two internal drive motors that provide power for stretching the screen and can control the stretching state of the screen. Through internal stacking design, the screen is subjected to uniform force and will not cause damage to the screen. In actual use, the two shells on the mobile phone move relative to each other, pulling one end of the flexible rollable screen, so that the display area on the flexible rollable screen can be adjusted as needed, and ultimately the display area on the flexible rollable screen can present multiple states. The current drive structure of rollable screens generally uses a motor combined with a track. The track engages with the flexible screen, and the motor is controlled by a button to drive the track to achieve the purpose of rollable screen unfolding and retracting, ensuring that the rollable screen does not buckle during unfolding and closing.
[0084] The current status information may include at least one of the following: motion status information corresponding to the rollable screen, the time interval between receiving a push command or a stop command and the current time, the sampling frequency corresponding to the light intensity of the rollable screen, and the roll-up or roll-down speed of the rollable screen. The current status information described in this disclosure does not specifically specify any particular type or category of status information; it is used to distinguish it from status information at other times and to represent the current status information of the rollable screen, not the battery, antenna, or other components.
[0085] The motion state information may include at least: the motion state during the unfolding and closing process, the stationary state before unfolding and after closing, the stop state during the unfolding and closing process when there is a sudden power-off or low battery that cannot guarantee sufficient energy to push the device to the target position, the restart state after the stop state and the reset state after the stop state and the device returns to the initial position.
[0086] Light intensity can refer to the light intensity, luminous intensity, or luminance of the environment surrounding the scroll screen as detected by the light sensor. A light sensor, also called a brightness sensor, can be placed above the screen of a handheld device to automatically adjust the screen brightness based on the ambient light, providing the user with the best visual experience.
[0087] For example, in a dark environment, the backlight of a handheld device's screen will automatically dim to reduce the harmful light from the screen on the user's eyes. In other words, the function of a light sensor is to sense the intensity of light and then feed it back to the handheld device so that it can automatically adjust the screen brightness, thereby saving power and protecting the user's eyes. In some embodiments, the light sensor can consist of two components (a projector and a receiver). The projector uses a lens to focus the light, and then transmits the focused light to the receiver, which in turn transmits it to the receiving sensor. The receiving sensor converts the received light signal into an electrical signal, which can instruct the electronic device to perform corresponding actions, such as adjusting the on / off state of a switch.
[0088] Electronic devices can determine the current state information of a rollable screen by the type of received command and the screen's unfolded distance. For example, if the electronic device determines that the most recent command received to control the rollable screen is a push command, and detects that the current unfolded distance of the screen is greater than zero and less than the maximum unfolded distance, then the electronic device can determine that the rollable screen is in a motion state during the unfolding and closing process. If the current unfolded distance of the screen increases, it indicates a motion state during the unfolding process; if the current unfolded distance of the rollable screen decreases, it indicates a motion state during the closing process, and so on.
[0089] Because the size of the light-emitting area of the screen changes when the rollable screen is unfolded or closed, the relevant technologies cannot accurately detect the light intensity of the external environment during the unfolding and closing of the rollable screen, or there is no suitable established strategy to detect the light intensity during the unfolding or closing of the rollable screen.
[0090] In this embodiment of the disclosure, different forms of light intensity detection strategies can be preset to form a set of detection strategies. During the implementation process, the corresponding target detection strategy can be determined from the preset set of detection strategies based on the current state information.
[0091] The detection strategy can refer to the strategy used to detect the light intensity of the scrolling screen, such as: using the light intensity collected by the light sensor as the actual external light intensity; using the detection strategy by controlling the sampling frequency or the scrolling speed of the scrolling screen; using the light intensity obtained by accurately estimating the light intensity collected by the light sensor as the actual external light intensity; using the light intensity collected after the scrolling screen is turned off as the actual external light intensity, etc.
[0092] The target detection strategy can refer to the detection strategy corresponding to the current state information, designed to distinguish it from the detection strategies corresponding to other previous or subsequent state information. For example, an electronic device may employ a target detection strategy that does not collect light intensity within a preset time after receiving a push command, a target detection strategy that increases the scrolling speed of the scrolling screen after the preset time after receiving the push command and before receiving a stop command, and a target detection strategy that increases the sampling frequency from receiving a stop command until complete cessation, etc. The embodiments of this disclosure do not specifically limit the selection form of the target detection strategy or the specific implementation method of the target detection strategy.
[0093] After determining the target detection strategy, the electronic device can control itself to perform light sensing detection on the rollable screen according to the target detection strategy to obtain the target ambient light intensity. The target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen. Light sensing detection refers to the process by which the electronic device collects the initial light intensity through a light sensor, and then performs preprocessing such as filtering and enhancement on the initial light intensity to obtain an accurate and true external ambient light intensity.
[0094] The target ambient light intensity refers to the accurate and true ambient light intensity outside the scroll screen obtained through light sensing detection using the target detection strategy, in order to distinguish it from the ambient light intensity obtained using other detection strategies. For example: if the electronic device uses target detection strategy A to detect light and obtains a target ambient light intensity of 50 lux (Lx or Lux), then the screen brightness of the scroll screen can be adjusted to 400 nits (nit); if the electronic device uses target detection strategy B to detect light and obtains a target ambient light intensity of 75 Lx, then the screen brightness of the scroll screen can be adjusted to 600 nits, etc. Adjusting the screen brightness appropriately helps reduce user eye fatigue, save power of electronic devices, increase standby time, and improve the user experience.
[0095] In one possible embodiment, such as Figure 2 The diagram illustrates a method for optical detection of a rollable screen. The microcontroller unit (MCU) 201 sends control commands, such as pushing or stopping, to the motor 203. Upon receiving these commands, the motor 203 controls its rotation to unfold or close the rollable screen 205. During this process, the MCU determines the displacement, direction, and speed of the rollable screen 205 based on the Hall sensor 204 and components such as magnets located beneath the screen. The application processor (AP) 202 receives this information from the MCU and controls the light sensor 206 to employ a suitable detection strategy to obtain the ambient light intensity of the rollable screen 205. This allows for adjustment of the screen brightness to provide a suitable display for the user, effectively protecting their eyes and saving battery power.
[0096] In one possible embodiment, such as Figure 3 As shown, this diagram illustrates the unfolded state of a rollable screen. The left rectangular area 301 represents the screen size when the rollable screen is closed, and the combined matrix area of the left rectangular area 301 and the right rectangular area 302 represents the screen size when the rollable screen is fully unfolded. i D represents the displacement of the scroll screen as it is pushed open, and D represents the maximum displacement of the scroll screen as it is unfolded.
[0097] In this embodiment, by determining the current state information of the rollable screen, the electronic device can be controlled to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity. The target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen. This disclosure can select a corresponding detection strategy for light sensing detection based on different state information of the rollable screen, ensuring accurate and rapid determination of the target ambient light intensity under different states. This allows for adjustment of appropriate screen brightness, reducing power consumption of the electronic device, increasing standby time, and improving user experience.
[0098] In some embodiments, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes:
[0099] When it is determined that the rollable screen is in the first state, the electronic device is controlled to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information to obtain the target ambient light intensity;
[0100] The first state includes: the motion state after receiving a push command to start the scroll function of the scroll screen and before receiving a stop command to stop the scroll function of the scroll screen, and the current state information includes at least: the current sampling frequency of the electronic device performing light sensing sampling.
[0101] In this embodiment of the disclosure, after the electronic device determines the current state information of the scroll screen, it can obtain a first time interval between the current time and the time when it last received the push command for starting the scroll function of the scroll screen, and can obtain a second time interval between the current time and the time when it last received the termination command for stopping the scroll function of the scroll screen. If the first time interval is less than the second time interval, that is, the electronic device is in a motion state of receiving the push command but not yet receiving the termination command, then the electronic device can determine that the scroll screen is in the first state.
[0102] After determining that the scrolling screen is in a first state, the electronic device can further determine the target detection strategy based on the current state information. For example, the electronic device can determine different detection strategies based on the scrolling speed of the scrolling screen. If the scrolling speed of the scrolling screen is within a first range, the electronic device can adopt a first detection strategy; if the scrolling speed of the scrolling screen is within a second range, the electronic device can adopt a second detection strategy; if the scrolling speed of the scrolling screen is within a third range, the electronic device can adopt a third detection strategy, and so on.
[0103] For example, electronic devices can also determine the corresponding target detection strategy based on different levels of the sampling frequency of the light sensor and different time periods corresponding to the current time obtained by the electronic device. The specific content of the current state information and the specific method of the target detection strategy described in this embodiment are not specifically limited.
[0104] In this embodiment of the disclosure, before determining the target detection strategy based on the current state information, it is first determined whether the scroll screen is in the first state. If the scroll screen is determined to be in the first state, the target detection strategy is then determined based on the current state information. This can quickly and accurately determine the target detection strategy, simply and clearly classify the detection strategy, and also accurately optimize and add corresponding detection strategies, reducing the workload of researchers.
[0105] In some embodiments, when it is determined that the rollable screen is in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes:
[0106] When the scroll screen is in the first state and the current sampling frequency is greater than the preset sampling threshold, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0107] In this embodiment of the disclosure, after the electronic device determines that the scrolling screen is in the first state, it can further determine the current sampling frequency at which the electronic device performs light sensing sampling. The electronic device can determine the specific current sampling frequency by parsing the configuration parameters currently set by the light sensor. The sampling frequency can refer to the sampling speed or sampling rate corresponding to the light intensity being collected, and the reciprocal of the sampling frequency is the sampling period (sampling time). For example, by reading the current configuration parameters of the light sensor, the electronic device determines that the current sampling frequency for light sensing sampling by the light sensor in the scrolling screen is 60Hz, which is greater than a preset sampling threshold (e.g., but not limited to 50Hz).
[0108] After determining the current sampling frequency, the electronic device can select different target detection strategies based on different ranges corresponding to the current sampling frequency. For example, when the electronic device determines that the current sampling frequency is greater than a preset sampling threshold, it can obtain the target ambient light intensity based on the collected light intensity and the predicted light leakage intensity. The light leakage intensity can refer to the light intensity generated when the scroll screen emits light. The light leakage intensity can be different light leakage intensities corresponding to different state information preset by the electronic device, or it can be the corresponding light leakage intensity predicted in real time through the current state information, etc. This disclosure does not make specific limitations. Since the currently collected light intensity is generated by the current ambient light intensity and the brightness of the scroll screen itself, it needs to be filtered (e.g., but not limited to subtracting the predicted light leakage intensity from the collected light intensity) to obtain the accurate target ambient light intensity. The filtering process can be understood as error analysis or filtering. For example, if the light intensity currently collected by the electronic device is 90 Lx, and the light leakage intensity to be subtracted for different time periods is preset to be 15 Lx from 6-10, 30 Lx from 10-16, 15 Lx from 16-20, and 10 Lx from 20-6, and the electronic device determines that the current time is 18:00, then after filtering, the target ambient light intensity is determined to be 75 Lx.
[0109] In this embodiment of the disclosure, after determining that the rollable screen is in the first state, if it is further determined that the current sampling frequency of the electronic device performing light sensing sampling is greater than a preset sampling threshold, the target ambient light intensity can be obtained based on the collected light intensity and the predicted light leakage intensity. This disclosure can simply and quickly determine the target detection strategy corresponding to the rollable screen in the first state and when the current sampling frequency is greater than the preset sampling threshold, and can improve the accuracy of the target ambient light intensity through filtering processing.
[0110] In some embodiments, when it is determined that the rollable screen is in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes:
[0111] When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, the scrolling speed of the scrolling screen is adjusted according to the current sampling frequency.
[0112] After the scrolling speed of the scroll screen is adjusted, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0113] In this embodiment of the disclosure, after the electronic device determines that the scrolling screen is in the first state, it can determine configuration parameters such as the current sampling frequency for light sensing sampling. The electronic device can parse the pre-set configuration parameters of the light sensor to determine the specific current sampling frequency. For example, by reading the preset configuration parameters of the light sensor, the electronic device determines that the current sampling frequency for light sensing sampling in the scrolling screen is 30Hz, which is less than a preset sampling threshold (e.g., but not limited to 50Hz). Then, when the scrolling screen is in the first state and the current sampling frequency for light sensing sampling by the electronic device is less than or equal to the preset sampling threshold, the scrolling speed of the scrolling screen can be adjusted according to the current sampling frequency. After the scrolling speed of the scrolling screen is adjusted, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0114] It should be noted that the scrolling speed of the scroll screen refers to the displacement speed of the scroll screen during unfolding or closing. Due to a low sampling frequency, the electronic device may collect less light intensity data during unfolding or closing, making it impossible to accurately estimate the target ambient light intensity. Therefore, the scrolling speed of the scroll screen can be adjusted to ensure sufficient light intensity data is collected. The electronic device can adjust the scrolling speed of the scroll screen based on the current sampling frequency and a preset threshold. For example, if the current sampling frequency is 30Hz, which is less than the preset threshold of 40Hz, the electronic device can set the scrolling speed of the scroll screen to a default speed of 0.02 meters per second; if the current sampling frequency is 45Hz, which is greater than the preset threshold of 40Hz, the electronic device can set the scrolling speed of the scroll screen to a preset default speed of 0.015 meters per second. This embodiment does not specifically limit the method of adjusting the scrolling speed based on the sampling frequency.
[0115] After the electronic device adjusts the scrolling speed of the scrolling screen, the corresponding light intensity also needs to be filtered. Since there is a definite time between adjusting the scrolling speed of the scrolling screen and the scrolling screen being fully unfolded or closed, the target ambient light intensity only needs to be determined within the definite time based on the light intensity collected (e.g., but not limited to a single collection or multiple collections to determine the average value) and the determined light leakage intensity. For example, after adjusting the scrolling speed of the scrolling screen, the electronic device collects a light intensity of 90 Lx. Different light leakage intensities can be pre-set for different sampling frequency ranges. For example, if the collected light intensity range is 30-50Hz, it corresponds to 7 Lx; if it's 50-70Hz, 10 Lx; if it's 70-100Hz, 15 Lx; and if it's 100-150Hz, 25 Lx, etc. If the electronic device determines the current sampling frequency is 80Hz and the light leakage intensity is 15 Lx, then the target ambient light intensity can be determined to be 75 Lx. Theoretically, the sampling rate can be increased if it's insufficient. However, an excessively high sampling rate can affect the voltage data in the sensor analog front-end circuit (Sensor Afe) used to ensure the normal operation of the light sensor, leading to overvoltage and other faults in the Sensor Afe circuit. In this case, the light sensing accuracy performance requirements can be met by adjusting the scrolling speed.
[0116] In this embodiment of the disclosure, after determining that the scroll screen is in the first state, if it is further determined that the sampling frequency of the electronic device performing light sensing sampling is less than or equal to a preset sampling threshold, the scrolling speed of the scroll screen can be adjusted according to the current sampling frequency. Then, after adjusting the scrolling speed of the scroll screen, the target ambient light intensity can be obtained based on the collected light intensity and the predicted light leakage intensity. This disclosure can simply and quickly determine the target detection strategy corresponding to the case where the scroll screen is in the first state and the current sampling frequency is less than or equal to the preset sampling threshold, to ensure that enough light intensity can be collected, thereby ensuring that the target ambient light intensity can be accurately obtained.
[0117] In some embodiments, adjusting the scrolling speed of the scrolling screen according to the current sampling frequency includes:
[0118] Based on the current sampling frequency and a preset first mapping relationship, a target scrolling speed corresponding to the current sampling frequency is determined; wherein, the first mapping relationship is used to characterize the correlation between the sampling frequency and the scrolling speed;
[0119] Adjust the scrolling speed of the scroll screen to the target scrolling speed.
[0120] In this embodiment, the electronic device can pre-set the correlation between sampling frequency and scrolling speed. In some embodiments, the correlation can be negative, meaning that a higher sampling frequency corresponds to a lower scrolling speed. For example, when the sampling frequency is 30Hz, the scrolling speed needs to exceed 0.07 meters per second; when the sampling frequency is 60Hz, the scrolling speed needs to exceed 0.035 meters per second to collect sufficient light intensity data. Therefore, the electronic device can pre-set correlations such as a scrolling speed of 0.07 meters per second for a sampling frequency of 20-30Hz, 0.04 meters per second for a sampling frequency of 40-50Hz, and 0.035 meters per second for a sampling frequency of 50-60Hz. If the current sampling frequency is determined to be 45Hz, then the scrolling speed of the scrolling screen needs to be adjusted to 0.04 meters per second, etc. The correlation in this embodiment is not specifically limited; it can be a one-to-one correlation or a range-based correlation between sampling frequency and a certain scrolling speed, etc.
[0121] In this embodiment, a target scrolling speed corresponding to the current sampling frequency can be determined first based on the sampling frequency and a preset first mapping relationship, wherein the first mapping relationship is used to characterize the correlation between the sampling frequency and the scrolling speed. Then, the scrolling speed of the scrolling screen is adjusted to the target scrolling speed. This disclosure, by pre-setting the first mapping relationship, can easily and accurately determine the target scrolling speed during the unfolding or closing of the scrolling screen, thus improving operational efficiency.
[0122] In some embodiments, the method further includes:
[0123] Determine the refresh rate and preset channel wavelength of the scroll screen;
[0124] The light leakage intensity corresponding to the scroll screen is obtained by predicting the refresh rate and the preset channel wavelength using a numerical model.
[0125] In this embodiment, the refresh rate refers to the number of images that the scroll screen can display per second. A higher refresh rate results in higher image quality. The preset channel wavelength refers to the wavelength of each color of light displayed on the scroll screen, such as 647-700nm for the red channel, 491-574nm for the green channel, 424-490nm for the blue channel, and 485-500nm for the cyan channel. The numerical model may include a neural network module trained using historical refresh rates, historical channel wavelengths, and corresponding historical screen brightness (i.e., historical light leakage intensity). The numerical model may include a corresponding parameter matrix a. i b i c iTraining parameters, where the parameter matrix refers to the set of parameters such as weights of each layer and node that the numerical model needs to train during the training process. For example: if an electronic device determines that the light intensity it collects is 90 Lx, the refresh rate of the scrolling screen is 60 Hz, and the preset channels include red, green, and blue channels, then the numerical model can estimate the corresponding light leakage intensity to be 23 Lx. The electronic device can then subtract the light intensity collected by the light sensor from the estimated light leakage intensity to obtain the target ambient light intensity as 67 Lx.
[0126] In one possible embodiment, if the sampling frequency of the light sensor is high enough, sufficient light intensity data can be collected without considering the scrolling speed of the scrolling screen. In this case, only high-speed sampling is needed, and the collected light intensity is processed by a preset algorithm to remove the light leakage intensity of the scrolling screen itself to determine the target ambient light intensity. In another possible embodiment, the electronic device can pre-train parameter matrices corresponding to different displacement magnitudes (scrolling distances) in the numerical model. After determining the required scrolling displacement of the scrolling screen during actual use of the numerical model, the corresponding parameter matrix can be directly called, improving operating efficiency. That is, if the required scrolling distance of the scrolling screen is different, different parameter matrices a can be called. i b i c i If the scrolling distance required for the scrolling screen is the same, then the same parameter matrix can be used. The formula for calculating the target ambient light intensity based on the collected light intensity and the predicted light leakage intensity can be as follows:
[0127] F i (λ); i = C / R / G / B (1);
[0128] In formula (1), F i (λ) represents the spectral response function transformation value, i represents the corresponding channel type, λ represents the wavelength of the corresponding channel, C represents the cyan channel, R represents the red channel, G represents the green channel, and B represents the blue channel.
[0129] F j (λ); j=1.2.3...n (2);
[0130] In formula (2), F j (λ) represents the spectral function transformation value, j represents the corresponding frequency, and λ represents the wavelength of the corresponding channel.
[0131]
[0132] In formula (3), R ij(λ) represents the transform value of the response convolution spectral function, i represents the corresponding channel type, j represents the corresponding frequency, λ represents the wavelength of the corresponding channel, C represents the cyan channel, R represents the red channel, G represents the green channel, and B represents the blue channel.
[0133]
[0134] T = 1 / f (5);
[0135] In formulas (4) and (5), The spectral temporal characteristics of the back of the rollable screen are represented by t, f, T, i, C, R, G, and B. t represents the corresponding refresh period variable, f represents the corresponding refresh frequency, T represents the corresponding refresh period, i represents the corresponding channel type, C represents the cyan channel, R represents the red channel, G represents the green channel, and B represents the blue channel.
[0136]
[0137] In formula (6), This indicates the spectral frequency domain characteristics of the back of the rollable screen. Goertzel indicates the temporal spectral characteristics of the back of a rollable screen. i (x i ) represents the Götzl algorithm transformation, f represents the base frequency of the corresponding refresh frequency, nf represents the multiplier of the corresponding refresh frequency, i represents the corresponding channel type, C represents the cyan channel, R represents the red channel, G represents the green channel, and B represents the blue channel.
[0138] Let the numerical model (adc count) of the amplitude and effect of the Fast Fourier Transform (FFT) of the scrollable screen refresh rate f be f(x) = ax n +bx n-1 +cx n-2 +......+zx 0 Here we take n=2, for a 4-channel system then:
[0139]
[0140] In formula (7), f i (x) represents the predicted value of the self-emission of the rollable screen. This represents the spectral frequency domain characteristics of the back of a rollable screen, where f represents the fundamental frequency of the corresponding refresh rate, nf represents the multiplier of the corresponding refresh rate, x represents the cumulative frequency domain characteristics, i represents the corresponding channel type, C represents the cyan channel, R represents the red channel, G represents the green channel, B represents the blue channel, and a... i b i c iThis represents the parameter matrix of the numerical model after pre-training.
[0141] Ambient i (x) = Register i (x)-f i (x); i = C / R / G / B (8);
[0142] In formula (8), Ambient i (x) represents the ambient light corresponding to the scroll screen. Register i (x) represents the light intensity acquired by the sensor register, f i (x) represents the predicted self-emission value of the rollable screen, x represents the cumulative frequency domain characteristic, i represents the corresponding channel type, C represents the cyan channel, R represents the red channel, G represents the green channel, and B represents the blue channel.
[0143]
[0144] In formula (9), Lux represents the target ambient light intensity, and Ambient... i (x) represents the ambient light corresponding to the scroll screen, K ij The coefficients represent different light source fitting coefficients, i represents the corresponding channel type, C represents cyan, R represents red channel, G represents green channel, and B represents blue channel.
[0145] In one possible embodiment, such as Figure 4A As shown, the spectral response function F can be represented. i (λ) Transformation result diagram, the horizontal axis represents wavelength, the vertical axis represents the corresponding transformation result I, the top curve 1 represents the cyan channel, and the lower part from left to right curves 2, 3 and 4 represent the blue channel, green channel and red channel respectively. Figure 4B As shown, the spectral function F can be represented. j (λ) Schematic diagram of the transformation results, where the horizontal axis represents wavelength and the vertical axis represents the corresponding transformation result I. Different curves represent the transformation results for frequencies of 1, 2, 3, and n, respectively. Figure 4C As shown, the response convolution spectral function R can be represented. ij (λ) Transformation result diagram. The top curve region 1 represents the cyan channel, and the lower part, from left to right, curve regions 2, 3, and 4 represent the blue, green, and red channels, respectively. Figure 4D As shown, this can represent the temporal characteristics of the back spectral spectrum of the rollable screen. The diagram illustrates the transformation results. The horizontal axis represents the refresh period t, and the vertical axis represents the corresponding transformation result I. From top to bottom, line segments 1, 2, 3, and 4 correspond to the cyan, green, red, and blue channels, respectively. Figure 4EAs shown, the spectral frequency domain characteristics of the back of the rollable screen can be represented. The diagram shows the transformation results. The horizontal axis represents the refresh rate multiplier, and the vertical axis represents the corresponding transformation result I. From top to bottom, curves 1, 2, 3, and 4 correspond to the cyan channel, green channel, red channel, and blue channel, respectively.
[0146] In this embodiment, the refresh rate and preset channel wavelength of the rollable screen are first determined, and then the refresh rate and preset channel wavelength are predicted using a numerical model to obtain the light leakage intensity corresponding to the rollable screen. Finally, the light leakage intensity is subtracted from the collected light intensity to obtain the target ambient light intensity. By calling a pre-trained numerical model, the corresponding light leakage intensity can be accurately estimated, thereby obtaining an accurate target ambient light intensity.
[0147] In some embodiments, when it is determined that the rollable screen is in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes:
[0148] When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, frame interpolation is performed on the current display screen based on a preset time interval.
[0149] The light intensity collected during the frame interpolation process is determined as the target ambient light intensity.
[0150] In this embodiment of the disclosure, after the electronic device determines that the scrolling screen is in the first state, it can further determine the current sampling frequency for light sensing sampling. The electronic device can parse the pre-set configuration parameters of the light sensor to determine the specific current sampling frequency. For example, by reading the current configuration parameters of the light sensor, the electronic device determines that the current sampling frequency for light sensing sampling in the scrolling screen is 30Hz, which is less than a preset sampling threshold (e.g., but not limited to 50Hz). Therefore, when the scrolling screen is in the first state and the current sampling frequency for light sensing sampling by the electronic device is less than or equal to the preset sampling threshold, frame interpolation processing can be performed on the current display screen based on a preset time interval. The light intensity collected during the frame interpolation process is determined as the target ambient light intensity.
[0151] The scrollable screen displays corresponding images in consecutive frames using a preset refresh rate, thus forming the scrollable screen display. The frame interpolation process refers to inserting blank or black images between corresponding images displayed on the scrollable screen. By reducing the number of image frames displaying red, yellow, blue, and other colors of light, the influence of the scrollable screen's own brightness on light sensing is reduced. For example, if the electronic device determines that 30 frames need to be displayed during the unfolding or closing of the scrollable screen, the electronic device can replace the images at even-numbered frames (frames 2, 4, 6...30) (where frame interpolation is performed according to a preset time interval due to a fixed refresh rate) with blank or completely black images, perform frame interpolation, and then display the 30 consecutive frames after frame interpolation at the preset refresh rate.
[0152] In this embodiment, the preset time interval (e.g., but not limited to 0.5 seconds) is not specifically limited. It can be a fixed value of 0.05 seconds or not fixed, where the first is 0.05 seconds, the second is 0.07 seconds, etc. The electronic device can directly determine the light intensity collected during the frame interpolation process as the target ambient light intensity without the need for filtering. For example, if the electronic device determines that the currently collected light intensity is 90 Lx at any time between the start and end of the frame interpolation process, then the target ambient light intensity can be determined to be 90 Lx, etc.
[0153] In this embodiment of the disclosure, after determining that the rollable screen is in the first state, if it is further determined that the sampling frequency of the electronic device performing light sensing sampling is less than or equal to a preset sampling threshold, then frame interpolation processing can be performed on the current display screen of the rollable screen based on a preset time interval. The light intensity collected during the frame interpolation process is determined as the target ambient light intensity. This disclosure can reduce the impact of the rollable screen's own screen brightness on determining the target ambient light intensity by performing frame interpolation processing on the display screen, while reducing the calculation and filtering process and improving operating efficiency.
[0154] In some embodiments, the method further includes:
[0155] When the scroll screen enters the second state, light sensing detection is stopped, and the collected light intensity is deleted.
[0156] The second state includes: a static state before receiving a push command to start the scroll function of the scroll screen, or a static state after receiving a stop command to stop the scroll function of the scroll screen.
[0157] In this embodiment of the disclosure, the scrollable screen can continuously transition between different states. For example, upon receiving a push command, it can be determined that it has entered a first state; upon receiving a stop command, it can be determined that it has entered a second state. The scrollable screen receiving push commands, stop commands, and push commands again is a continuous process.
[0158] After receiving the termination command, if the electronic device determines that it has entered the second state, the light sensing detection can be stopped and the collected light intensity can be deleted because this transition process is very short. That is, during the process of entering the second state, the screen brightness of the scrolling screen can remain unchanged. The second state here can refer to the static state from when the electronic device determines that the battery is sufficient until it receives the push command to start the scrolling function of the scrolling screen, or from when it receives the termination command to stop the scrolling function of the scrolling screen until it determines that the scrolling screen has completely stopped scrolling. This static state can be understood as an instantaneous static state, not a static state that remains after the scrolling screen is fully unfolded or fully closed. During the completely static state when the scrolling screen is fully unfolded or closed, the corresponding detection strategy still needs to be used for light sensing detection.
[0159] In this embodiment of the disclosure, when it is determined that the scroll screen has entered the second state, the light sensing detection is stopped and the collected light intensity is deleted to save storage space. It can also accurately control the light sensing detection during the continuous switching of different states of the scroll screen to prevent abnormal situations of logical disorder.
[0160] In some embodiments, the method further includes:
[0161] Collect the light intensity of the scroll screen at the time of restart, and determine the light intensity at the time of restart as the target ambient light intensity; or
[0162] The preset standard light intensity is determined as the target ambient light intensity;
[0163] The restart time includes the moment when a restart command for the scroll screen is detected.
[0164] In this embodiment, the electronic device may suddenly shut down or run out of power during the pushing or closing process, which may prevent sufficient energy from pushing the scroll screen to its final position, potentially causing the scroll screen to pause during the unfolding or closing process. When the electronic device powers on or is determined to have sufficient power for scrolling, it can restart after receiving a restart command. During the restart time after receiving the restart command until the scroll screen is fully unfolded or fully closed, the electronic device may not perform light sensing detection or adjust the screen brightness.
[0165] If light sensing is required, the electronic device can determine the light intensity at the moment of restart as the target ambient light intensity. For example, after receiving a restart command, if the electronic device performs a light sensing sampling and obtains a light intensity of 75 Lx, then the electronic device can use 75 Lx as the target ambient light intensity, and subsequent light sensing can be omitted, which helps save the power of the electronic device.
[0166] In some embodiments, the electronic device can directly determine the preset standard light intensity as the target ambient light intensity, further simplifying the calculation process and saving power.
[0167] If the electronic device does not perform light sensing detection and directly determines the preset standard light intensity (e.g., but not limited to 60Lx or 75Lx) as the target ambient light intensity, then the screen brightness of the rollable screen can be adjusted based on this standard light intensity.
[0168] In other embodiments, after receiving a restart command, if the electronic device has collected the light intensity of the scroll screen at the restart time, it can determine whether the light intensity of the scroll screen at the restart time is less than a preset threshold. If the light intensity of the scroll screen at the restart time is less than the preset threshold, the preset threshold can be determined as the target ambient light intensity. For example, if the light intensity obtained from a single light sensor sampling is 75Lx, which is less than the preset threshold of 90Hz, then the electronic device can use 90Hz as the target ambient light intensity. By comparing the collected light intensity with a suitable preset threshold, unreasonable data from light sensor sampling due to various reasons can be filtered out, further ensuring the accuracy of the target ambient light intensity.
[0169] In one possible embodiment, the electronic device can determine a target detection strategy based on the current state information. For example, the electronic device can determine the current state of the scrolling screen based on the current state information, and then determine the target detection strategy based on the current state of the scrolling screen and a preset second mapping relationship, wherein the second mapping relationship is used to characterize the correlation between the state of the scrolling screen and each detection strategy.
[0170] In this embodiment, the electronic device can determine the current state of the scrolling screen based on current state information such as sampling frequency, scrolling speed, moving distance, control command receiving time interval, or refresh frequency. Then, it pre-determines the association between different states and different detection strategies (e.g., but not limited to, state A associated with detection strategy A, state B associated with detection strategy B, etc.). For example, the electronic device can determine that the scrolling screen's current state is A by determining that the moving distance is 0, and then determine that detection strategy A can be used as the target detection strategy based on the pre-defined association. By adopting the above embodiment, the electronic device can easily and accurately determine the target detection strategy during the light-sensing detection process, improving operating efficiency.
[0171] In this embodiment of the disclosure, when a restart occurs due to various factors during the unfolding or closing of the scroll screen, the light intensity of the scroll screen at the restart moment can be collected and determined as the target ambient light intensity, or a preset standard light intensity can be determined as the target ambient light intensity, which can effectively prevent the scroll screen from experiencing logical disorder during the restart process.
[0172] The technical solution disclosed herein enables the electronic device to determine the current state information of the rollable screen and control it to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information, thereby obtaining the target ambient light intensity. The target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen. This disclosure allows for the selection of a corresponding detection strategy for light sensing detection based on different state information of the rollable screen, ensuring accurate and rapid determination of the target ambient light intensity under different states. This enables the adjustment of appropriate screen brightness, reduces power consumption of the electronic device, increases standby time, and improves user experience.
[0173] Figure 5 This is a block diagram illustrating a light-sensing detection device according to an exemplary embodiment. For example... Figure 5 As shown, the device is applied to an electronic device with a rollable screen, and the light sensing detection device 500 mainly includes:
[0174] The determination module 501 is configured to determine the current status information of the scroll screen;
[0175] The control module 502 is configured to control the electronic device to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information, and obtain the target ambient light intensity; wherein the target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen.
[0176] In some embodiments, the control module 502 is configured to:
[0177] When it is determined that the rollable screen is in the first state, the electronic device is controlled to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information to obtain the target ambient light intensity;
[0178] The first state includes: the motion state after receiving a push command to start the scroll function of the scroll screen and before receiving a stop command to stop the scroll function of the scroll screen, and the current state information includes at least: the current sampling frequency of the electronic device performing light sensing sampling.
[0179] In some embodiments, the control module 502 is configured to:
[0180] When the scroll screen is in the first state and the current sampling frequency is greater than the preset sampling threshold, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0181] In some embodiments, the control module 502 is configured to:
[0182] When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, the scrolling speed of the scrolling screen is adjusted according to the current sampling frequency.
[0183] After the scrolling speed of the scroll screen is adjusted, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
[0184] In some embodiments, the control module 502 is configured to:
[0185] Based on the current sampling frequency and a preset first mapping relationship, a target scrolling speed corresponding to the current sampling frequency is determined; wherein, the first mapping relationship is used to characterize the correlation between the sampling frequency and the scrolling speed;
[0186] Adjust the scrolling speed of the scroll screen to the target scrolling speed.
[0187] In some embodiments, the device 500 further includes:
[0188] The second determining module is configured to determine the refresh frequency and preset channel wavelength of the scroll screen;
[0189] The prediction module is configured to perform prediction processing on the refresh frequency and the preset channel wavelength using a numerical model to obtain the light leakage intensity corresponding to the scroll screen.
[0190] In some embodiments, the control module 502 is configured to:
[0191] When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, frame interpolation is performed on the current display screen based on a preset time interval.
[0192] The light intensity collected during the frame interpolation process is determined as the target ambient light intensity.
[0193] In some embodiments, the device 500 further includes:
[0194] The deletion module is configured to stop light sensing detection and delete the collected light intensity when the scroll screen enters the second state.
[0195] The second state includes: a static state before receiving a push command to start the scroll function of the scroll screen, or a static state after receiving a stop command to stop the scroll function of the scroll screen.
[0196] In some embodiments, the device 500 further includes:
[0197] The acquisition module is configured to acquire the light intensity of the scroll screen at the restart time, and determine the light intensity at the restart time as the target ambient light intensity; or
[0198] The third determining module is configured to determine the preset standard light intensity as the target ambient light intensity;
[0199] The restart time includes the moment when a restart command for the scroll screen is detected.
[0200] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0201] Figure 6 This is a hardware structure block diagram illustrating a light-sensing detection device according to an exemplary embodiment. For example, device 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0202] Reference Figure 6 The device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.
[0203] Processing component 602 typically controls the overall operation of device 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
[0204] Memory 604 is configured to store various types of data to support the operation of device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, etc. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0205] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 600.
[0206] Multimedia component 608 includes a screen that provides an output interface between the device 600 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 may be implemented as a touchscreen 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 may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0207] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when device 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.
[0208] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0209] Sensor assembly 614 includes one or more sensors for providing status assessments of various aspects of device 600. For example, sensor assembly 614 may detect the on / off state of device 600, the relative positioning of components such as the display and keypad of device 600, changes in the position of device 600 or a component of device 600, the presence or absence of user contact with device 600, the orientation or acceleration / deceleration of device 600, and temperature changes of device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0210] Communication component 616 is configured to facilitate wired or wireless communication between device 600 and other devices. Device 300 can access wireless networks based on communication standards, such as Wi-Fi, 4G, or 8G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0211] In an exemplary embodiment, the apparatus 600 may 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 to perform the methods described above.
[0212] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of the device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0213] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a light-sensing device, enables the light-sensing device to perform a light-sensing detection method, the method being applied to an electronic device having a rollable screen, comprising:
[0214] Determine the current status information of the scroll screen;
[0215] The electronic device is controlled to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information to obtain the target ambient light intensity; wherein, the target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen.
[0216] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0217] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A photosensitive detection method, characterized in that, Applied to electronic devices with rollable screens, the method includes: Determine the current state information of the rollable screen; the rollable screen includes a flexible rollable screen whose screen size can be changed by stretching or pushing back. The electronic device is controlled to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information, so as to obtain the target ambient light intensity; The target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the rollable screen; The step of controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes: When it is determined that the rollable screen is in the first state, the electronic device is controlled to perform light sensing detection on the rollable screen according to the target detection strategy corresponding to the current state information to obtain the target ambient light intensity; The first state includes: a motion state after receiving a push command to start the scroll function of the scroll screen and before receiving a stop command to stop the scroll function of the scroll screen, wherein the current state information includes at least: the current sampling frequency of the electronic device performing light sensing sampling; Wherein, when it is determined that the rollable screen is in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes: When the scroll screen is in the first state and the current sampling frequency is greater than the preset sampling threshold, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity. The light leakage intensity is related to the refresh rate of the scroll screen and the preset channel wavelength; the preset channel wavelength includes the wavelength of each color light displayed by the scroll screen.
2. The method according to claim 1, characterized in that, When the rollable screen is determined to be in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes: When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, the scrolling speed of the scrolling screen is adjusted according to the current sampling frequency. After the scrolling speed of the scroll screen is adjusted, the target ambient light intensity is obtained based on the collected light intensity and the predicted light leakage intensity.
3. The method according to claim 2, characterized in that, Adjusting the scrolling speed of the scrolling screen according to the current sampling frequency includes: Based on the current sampling frequency and a preset first mapping relationship, a target scrolling speed corresponding to the current sampling frequency is determined; wherein, the first mapping relationship is used to characterize the correlation between the sampling frequency and the scrolling speed; Adjust the scrolling speed of the scroll screen to the target scrolling speed.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Determine the refresh rate and the preset channel wavelength of the scroll screen; The refresh rate and the preset channel wavelength are predicted using a numerical model to obtain the light leakage intensity corresponding to the rollable screen.
5. The method according to claim 1, characterized in that, When the rollable screen is determined to be in a first state, controlling the electronic device to perform light sensing detection on the rollable screen according to a target detection strategy corresponding to the current state information to obtain the target ambient light intensity includes: When the scrolling screen is in the first state and the current sampling frequency is less than or equal to a preset sampling threshold, frame interpolation is performed on the current display screen based on a preset time interval. The light intensity collected during the frame interpolation process is determined as the target ambient light intensity.
6. The method according to claim 1, characterized in that, The method further includes: When the scroll screen enters the second state, light sensing detection is stopped, and the collected light intensity is deleted. The second state includes: a static state before receiving a push command to start the scroll function of the scroll screen, or a static state after receiving a stop command to stop the scroll function of the scroll screen.
7. The method according to claim 1, characterized in that, The method further includes: Collect the light intensity of the scroll screen at the time of restart, and determine the light intensity at the time of restart as the target ambient light intensity; or The preset standard light intensity is determined as the target ambient light intensity; The restart time includes the moment when a restart command for the scroll screen is detected.
8. A light-sensing detection device, characterized in that, An electronic device having a rollable screen, the device comprising: The determination module is configured to determine the current state information of the rollable screen; the rollable screen includes a flexible rollable screen whose screen size can be changed by stretching or pushing back operations; The control module is configured to control the electronic device to perform light sensing detection on the scrolling screen according to a target detection strategy corresponding to the current state information, and obtain the target ambient light intensity; wherein the target ambient light intensity is used to instruct the electronic device to adjust the screen brightness of the scrolling screen; specifically configured to: when it is determined that the scrolling screen is in a first state, control the electronic device to perform light sensing detection on the scrolling screen according to a target detection strategy corresponding to the current state information, and obtain the target ambient light intensity; wherein the first state includes: a motion state after receiving a push command for starting the scrolling function of the scrolling screen and before receiving a termination command for stopping the scrolling function of the scrolling screen, and the current state information includes at least: the current sampling frequency of the electronic device performing light sensing sampling; further specifically configured to: when the scrolling screen is in the first state and the current sampling frequency is greater than a preset sampling threshold, obtain the target ambient light intensity based on the collected light sensing intensity and the predicted light leakage intensity; wherein the light leakage intensity is related to the refresh frequency of the scrolling screen and a preset channel wavelength; the preset channel wavelength includes the wavelengths of the colors of light displayed by the scrolling screen.
9. A light-sensing detection device, characterized in that, include: processor; Memory configured to store processor-executable instructions; The processor is configured to implement the steps of any one of the light-sensing detection methods of claims 1 to 7 during execution.
10. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a light-sensing detection device, enable the device to perform the steps of any one of the light-sensing detection methods of claims 1 to 7.
Citation Information
Patent Citations
A backlight adjustment method and device for electronic equipment, the electronic equipment and a storage medium
CN109147679A
Ambient light detection method and device, electronic equipment and storage medium
CN111486950A