Screen folding angle determination method and device, electronic equipment and storage medium
By using a photosensitive sensor to collect the difference between the screen light intensity and the ambient light intensity during the dimming cycle, the problem of Hall sensor interference by magnetic field was solved, achieving high-precision screen folding angle detection and reducing hardware costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2023-12-22
- Publication Date
- 2026-07-24
AI Technical Summary
Hall effect sensors are easily affected by the surrounding magnetic field environment when detecting the angle of a folded screen, resulting in low detection accuracy. In particular, they cannot accurately determine the folding angle of the screen when there are magnetic interference objects near the electronic device.
A photosensitive sensor is used to collect the screen light intensity and ambient light intensity during the dimming cycle. By calculating the difference between the screen light intensity and the ambient light intensity, the folding angle of the screen is determined, thus avoiding dependence on the magnetic field environment.
It improves the accuracy of screen folding angle detection, reduces hardware costs, and is unaffected by the surrounding magnetic field environment, achieving low-cost, high-precision angle detection.
Smart Images

Figure CN117746740B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and specifically relates to a method, apparatus, electronic device and storage medium for determining the folding angle of a screen. Background Technology
[0002] Currently, foldable electronic devices typically detect the folding angle of the screen using hardware such as Hall sensors and magnets. Specifically, since Hall sensors can detect the strength of a magnetic field, during the screen folding process, a magnet located on one side of the foldable screen gradually approaches the Hall sensor located on the other side. As the magnet gets closer, the magnetic field strength detected by the Hall sensor continuously increases. Therefore, the folding angle of the screen can be determined based on the correlation between the magnetic field strength detected by the Hall sensor and the folding angle.
[0003] However, Hall effect sensors are susceptible to interference from the surrounding magnetic field environment. This interference can affect the detection results of the folding angle of electronic devices, and in severe cases, may even prevent the sensor from making a judgment. For example, when headphones are near an electronic device, the magnetic field strength detected by the Hall effect sensor will be enhanced. As a result, the accuracy of the electronic device in detecting the folding angle of the screen is relatively low. Summary of the Invention
[0004] The purpose of this application is to provide a method, apparatus, electronic device, and storage medium for determining the folding angle of a screen, which can improve the accuracy of electronic devices in detecting the folding angle of a screen.
[0005] In a first aspect, embodiments of this application provide a method for determining the folding angle of a screen. The screen includes a first screen and a second screen, and a photosensitive sensor is disposed below the first screen. The method includes: acquiring a first light intensity collected by the photosensitive sensor during a first time period in a dimming cycle, and a second light intensity collected by the photosensitive sensor during a second time period in the dimming cycle, wherein the screen is in a lit state during the first time period and in a turned-off state during the second time period; obtaining a third light intensity of the screen based on the first and second light intensities, wherein the first light intensity includes ambient light intensity and screen light intensity, and the second light intensity includes ambient light intensity; determining the light intensity of the first screen based on screen information of the first screen; subtracting the third light intensity from the light intensity of the first screen to obtain the light intensity of the second screen; and determining the folding angle of the screen based on the light intensity of the second screen and the screen information of the second screen.
[0006] Secondly, embodiments of this application provide a device for determining the folding angle of a screen. The screen includes a first screen and a second screen, and a photosensitive sensor is disposed below the first screen. The device includes: an acquisition module, a processing module, and a determination module. The acquisition module is used to acquire a first light intensity collected by the photosensitive sensor during a first time period in a dimming cycle, and a second light intensity collected by the photosensitive sensor during a second time period in the dimming cycle. During the first time period, the screen is in an on state, and during the second time period, the screen is in an off state. The processing module is used to obtain a third light intensity of the screen based on the first and second light intensities acquired by the acquisition module. The first light intensity includes ambient light intensity and screen light intensity, and the second light intensity includes ambient light intensity. The determination module is used to determine the light intensity of the first screen based on the screen information of the first screen. The processing module is also used to subtract the third light intensity from the light intensity of the first screen determined by the determination module to obtain the light intensity of the second screen. The determination module is also used to determine the folding angle of the screen based on the light intensity of the second screen obtained by the processing module and the screen information of the second screen.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0011] In this embodiment, since the photosensitive sensor can collect the total intensity of the screen light intensity and the ambient light intensity when the screen is on during the dimming cycle, and can collect the ambient light intensity when the screen is off during the dimming cycle, the screen light intensity, i.e., the aforementioned third light intensity, can be obtained based on the total intensity of the screen light intensity and the ambient light intensity, as well as the ambient light intensity. Simultaneously, since the photosensitive sensor is located below the first screen, it can detect the light intensity of the first screen regardless of the screen's folding angle. The light intensity of the second screen detected by the photosensitive sensor changes with the screen's folding angle. Therefore, this application can obtain the light intensity of the second screen at the current folding angle by subtracting the light intensity of the first screen determined based on the screen information of the first screen from the total screen light intensity. Since the light intensity of the second screen is related to the screen's folding angle, the screen folding angle can be determined based on the light intensity of the second screen and the screen information of the second screen. Furthermore, since this application determines the screen folding angle based on the photosensitive sensor, and the photosensitive sensor does not need to consider interference from the surrounding magnetic field environment, the accuracy of the electronic device in detecting the screen folding angle is improved. Attached Figure Description
[0012] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0013] Figure 2 This is one of the flowcharts illustrating a method for determining the folding angle of a screen according to an embodiment of this application;
[0014] Figure 3 This is a schematic diagram of a PWM waveform provided in an embodiment of this application;
[0015] Figure 4 This is a second flowchart illustrating a method for determining the folding angle of a screen according to an embodiment of this application.
[0016] Figure 5 This is the third flowchart illustrating a method for determining the folding angle of a screen according to an embodiment of this application;
[0017] Figure 6 This is a schematic diagram of an electronic device screen in a fully folded state, as provided in an embodiment of this application.
[0018] Figure 7 This is a schematic diagram of an electronic device screen not being fully folded, according to an embodiment of this application.
[0019] Figure 8 This is a schematic diagram of the structure of a screen folding angle determination device provided in an embodiment of this application;
[0020] Figure 9 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;
[0021] Figure 10 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0022] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0023] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0024] The method for determining the folding angle of the screen provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0025] The method for determining the folding angle of the screen in this application embodiment can be applied to scenarios involving detecting the folding angle of the screen.
[0026] Currently, foldable electronic devices typically detect the folding angle of the screen using hardware such as Hall sensors and magnets. Specifically, since Hall sensors can detect the strength of a magnetic field, during the screen folding process, a magnet located on one side of the foldable screen gradually approaches the Hall sensor located on the other side. As the magnet gets closer, the magnetic field strength detected by the Hall sensor continuously increases. Therefore, the folding angle of the screen can be determined based on the correlation between the magnetic field strength detected by the Hall sensor and the folding angle.
[0027] However, Hall effect sensors are susceptible to interference from the surrounding magnetic field environment. This interference can affect the detection results of the folding angle of electronic devices, and in severe cases, may even prevent the sensor from making a judgment. For example, when headphones are near an electronic device, the magnetic field strength detected by the Hall effect sensor will be enhanced. As a result, the accuracy of the electronic device in detecting the folding angle of the screen is relatively low.
[0028] In the screen folding angle determination method, apparatus, electronic device, and storage medium provided in this application embodiment, since the photosensitive sensor can collect the total intensity of the screen light intensity and ambient light intensity when the screen is on during the dimming cycle, and can collect the ambient light intensity when the screen is off during the dimming cycle, the screen light intensity, i.e., the aforementioned third light intensity, can be obtained based on the total intensity of the screen light intensity and ambient light intensity, as well as the ambient light intensity. Simultaneously, since the photosensitive sensor is located below the first screen, it can detect the light intensity of the first screen regardless of the screen folding angle. The light intensity of the second screen detected by the photosensitive sensor changes with the screen folding angle. Therefore, this application can obtain the light intensity of the second screen at the current folding angle by subtracting the light intensity of the first screen determined based on the screen information of the first screen from the total screen light intensity. Since the light intensity of the second screen is related to the screen folding angle, the screen folding angle can be determined based on the light intensity of the second screen and the screen information of the second screen. Furthermore, since this application determines the folding angle of the screen based on a photosensitive sensor, and the photosensitive sensor does not need to consider the interference of the surrounding magnetic field environment, the accuracy of the electronic device in detecting the folding angle of the screen is improved.
[0029] Furthermore, the Hall sensor used in the current solution requires additional hardware, which incurs certain hardware costs. In contrast, this application reuses the photosensitive sensor built into the electronic device to detect the light intensity of the screen, achieving low-cost detection of the folding angle.
[0030] For example, the aforementioned photosensitive sensor can detect light and is used to detect the light intensity of the screen of an electronic device. This photosensitive sensor, also known as a photoelectric sensor or phototransistor, is a device that converts light signals into electrical signals.
[0031] For example, typically only one photosensor is placed in the screen of an electronic device.
[0032] For example, the aforementioned photosensor is disposed below the screen of an electronic device.
[0033] For example, such as Figure 1 As shown, the electronic device is in a fully unfolded state. The screen of the electronic device includes a first screen 11 and a second screen 12. A photosensitive sensor 13 is disposed below the first screen 11.
[0034] It is understandable that during the process of unfolding and folding the screen of an electronic device, the photosensitive sensor 13 initially can only receive screen light from the screen side 12, but gradually can receive screen light from the screen side 11. The intensity of the screen light collected will gradually increase, and when the screen of the electronic device is completely folded, the intensity of the screen light collected by the photosensitive sensor 13 will reach its maximum value.
[0035] The execution subject of the screen folding angle determination method provided in this application embodiment can be a screen folding angle determination device, which can be an electronic device, or a functional module or entity in the electronic device. The following uses an electronic device as an example to illustrate the technical solution provided in this application embodiment.
[0036] This application provides a method for determining the folding angle of a screen. Figure 2 A flowchart illustrating a method for determining the folding angle of a screen according to an embodiment of this application is shown. This method can be applied to an electronic device whose screen includes a first screen and a second screen, with a photosensor disposed below the first screen. Figure 2 As shown, the method for determining the folding angle of the screen provided in this application embodiment may include the following steps 201 to 205.
[0037] Step 201: Obtain the first light intensity collected by the photosensitive sensor during the first time period of the dimming cycle, and the second light intensity collected by the photosensitive sensor during the second time period of the dimming cycle.
[0038] In the embodiments of this application, the screen is lit during the first time period and turned off during the second time period.
[0039] In the embodiments of this application, the first light intensity includes ambient light intensity and screen light intensity, and the second light intensity includes ambient light intensity.
[0040] In some embodiments of this application, the first time period and the second time period are consecutive time periods.
[0041] In some embodiments of this application, when the screen power of the electronic device is on, the screen includes a lit state and a turned-off state.
[0042] Understandably, current screen dimming methods include Pulse Width Modulation (PWM). Under this dimming method, the screen brightness can be adjusted by controlling the periodic on and off of the screen. Since each cycle is very short and the human eye has the persistence of vision effect, the screen appears to be constantly on, but in reality, the screen is rapidly flickering between "on-off-on-off".
[0043] It is understandable that when the screen is briefly lit, it is called the lit state, and when the screen is briefly off, it is called the off state. This off state is different from the screen-off state when the electronic device's screen power is off.
[0044] For example, when the screen brightness is 70%, the screen turns off for 0.3 milliseconds every 0.7 milliseconds it is on. If you want the screen brightness to be reduced to 10%, you can control the screen to turn off for 0.9 milliseconds every 0.1 milliseconds it is on.
[0045] For example, such as Figure 3 As shown in the figure, which is represented by a PWM waveform, when the brightness of the electronic device's screen is 70%, the screen turns off for 0.3 milliseconds every 0.7 milliseconds it is on.
[0046] It should be noted that when the screen of an electronic device is powered on, each consecutive cycle of the screen turning on and off is called a dimming cycle, or a flicker cycle.
[0047] In some embodiments of this application, when the screen of an electronic device is lit, a photosensor can collect the screen light and the ambient light penetrating the screen to obtain a first light intensity.
[0048] For example, the aforementioned first light intensity can be expressed by the following formula:
[0049] S on =I screen +I ambient Formula 1
[0050] Among them, I screen For screen light intensity, I ambient α represents the ambient light intensity, and α represents the screen transmittance coefficient.
[0051] In some embodiments of this application, when the screen of the electronic device is off, the photosensitive sensor can collect ambient light, i.e., natural light, that penetrates the screen to obtain a second light intensity, thereby avoiding interference from screen light.
[0052] For example, the second light intensity mentioned above can be expressed by the following formula:
[0053] S off =I ambient Formula 2
[0054] Among them, I ambient α represents the ambient light intensity, and α represents the screen transmittance coefficient.
[0055] In some embodiments of this application, combined with Figure 2 ,like Figure 4 As shown, step 201 above can be specifically implemented through step 201a below.
[0056] Step 201a: If no touch screen operation is detected during the dimming cycle, the electronic device acquires the first light intensity collected by the photosensitive sensor during the first time period of the dimming cycle, and the second light intensity collected by the photosensitive sensor during the second time period of the dimming cycle.
[0057] In some embodiments of this application, the electronic device can detect in real time whether there is a touch screen operation. When no touch screen operation is detected, it can then acquire the first light intensity collected by the photosensitive sensor during the first time period of the dimming cycle, and the second light intensity collected by the photosensitive sensor during the second time period of the dimming cycle.
[0058] It is understandable that when there is touch screen operation on electronic devices, objects may block the light emission path, causing the first and second light intensities collected by the photosensitive sensor to be inaccurate. Therefore, it is necessary to obtain the first light intensity collected by the photosensitive sensor in the first time period of the dimming cycle and the second light intensity collected by the photosensitive sensor in the second time period of the dimming cycle when there is no touch screen operation.
[0059] In some embodiments of this application, the object that obstructs the light emission path can be at least one of the following: a hand, a stylus, a watch, etc.
[0060] Thus, since the electronic device acquires the first light intensity collected by the photosensitive sensor in the first time period of the dimming cycle and the second light intensity collected by the photosensitive sensor in the second time period of the dimming cycle only when there is no touch screen operation, the accuracy of the acquired first and second light intensities is guaranteed.
[0061] Step 202: The electronic device obtains the third light intensity of the screen based on the first light intensity and the second light intensity.
[0062] In some embodiments of this application, the third light intensity mentioned above includes the screen light intensity.
[0063] In some embodiments of this application, the electronic device can subtract the first light intensity from the second light intensity to calculate the third light intensity.
[0064] It is understandable that when the screen of an electronic device is lit, the photosensitive sensor cannot distinguish the collected light. Therefore, the screen light intensity can be calculated based on the ambient light intensity obtained when the screen is off.
[0065] For example, the electronic device can subtract the first light intensity from the second light intensity to calculate the third light intensity, as shown in Formula 3:
[0066] I screen =S on -S off Formula 3
[0067] Among them, I screen The third light intensity, S on S is the first light intensity. off This is the second light intensity.
[0068] In some embodiments of this application, the dimming cycle includes N dimming cycles; the above step 201 can be specifically implemented by the following step 201b.
[0069] Step 201b: The electronic device acquires the first light intensity collected by the photosensitive sensor in the first time period of each of the N dimming cycles, and acquires the second light intensity collected by the photosensitive sensor in the second time period of each dimming cycle.
[0070] In the embodiments of this application, N is an integer greater than 1.
[0071] It can be understood that within each of the above N dimming cycles, the electronic device acquires the first light intensity collected by the photosensitive sensor in the first time period and the second light intensity collected by the photosensitive sensor in the second time period.
[0072] It should be noted that the detailed steps for the first light intensity and the second light intensity can be found in the description in the above embodiments, and will not be repeated here.
[0073] In some embodiments of this application, step 202 can be specifically implemented by the following steps 202a and 202b.
[0074] Step 202a: The electronic device subtracts the first light intensity corresponding to the first dimming cycle from the second light intensity corresponding to the first dimming cycle to obtain the fourth light intensity corresponding to the first dimming cycle.
[0075] In the embodiments of this application, the first dimming cycle is one of N dimming cycles.
[0076] In some embodiments of this application, the fourth light intensity is the screen light intensity.
[0077] It should be noted that for the detailed steps of calculating the fourth light intensity corresponding to the first dimming cycle, please refer to the description in step 202 above where the electronic device subtracts the first light intensity from the second light intensity to calculate the third light intensity, which will not be repeated here.
[0078] Step 202b: The electronic device averages the N fourth light intensities corresponding to N dimming cycles to obtain the third light intensity.
[0079] It is understandable that the electronic device can subtract the first light intensity from the second light intensity corresponding to each of the N dimming cycles to obtain the fourth light intensity corresponding to each dimming cycle. Then, the fourth light intensities corresponding to each dimming cycle can be added together to calculate the average value to obtain the aforementioned third light intensity.
[0080] For example, if N is 3, the N fourth light intensities corresponding to the above N dimming cycles are A, B, and C, respectively. The electronic device can calculate the third light intensity = (A+B+C) / 3.
[0081] Thus, since the electronic device obtains the first light intensity and the second light intensity corresponding to each of the N dimming cycles, and then calculates the third light intensity corresponding to each dimming cycle based on the first light intensity and the second light intensity corresponding to each dimming cycle, and then determines the folding angle of the screen based on the average of the N third light intensities corresponding to the N dimming cycles, the power of the electronic device is saved.
[0082] Step 203: The electronic device determines the light intensity of the first screen based on the screen information of the first screen.
[0083] In some embodiments of this application, since the photosensitive sensor is located below the first screen, the photosensitive sensor can detect the light intensity of the first screen regardless of how the folding angle of the screen changes. Therefore, the electronic device can determine the light intensity of the first screen based on the screen information of the first screen.
[0084] In some embodiments of this application, the screen information of the first screen includes: the screen brightness of the first screen and the color value of the pixels in the first screen; the above step 203 can be specifically implemented by the following steps 203a to 203c.
[0085] Step 203a: The electronic device calculates the luminous intensity of the first pixel based on the screen brightness of the first screen and the color value of the first pixel in the first screen.
[0086] In the embodiments of this application, the first pixel is a pixel in the first screen.
[0087] For example, an electronic device can calculate the luminous intensity of the first pixel using Formula 4:
[0088]
[0089] Where DC is the screen brightness of the first screen, DC max c is the maximum brightness of the first screen.i γ is a coefficient related to the color value of the first pixel in the first screen. i It is an index related to the color value of the first pixel in the first screen.
[0090] It should be noted that different color values of pixels correspond to different values of c and γ.
[0091] For example, taking 8-bit as an example, the maximum screen brightness DC max The value is 255, and the screen brightness DC is a value between 0 and 255.
[0092] For example, the coefficients c and the exponent γ mentioned above are constants determined through production calibration.
[0093] Step 203b: The electronic device weights the luminous intensity of the first pixel based on the luminous contribution weight of the first pixel to obtain the first luminous intensity of the first pixel.
[0094] In the embodiments of this application, the light emission contribution weight of the first pixel is related to the position of the first pixel in the first screen.
[0095] For example, an electronic device can calculate the first luminous intensity of the first pixel using Formula 5:
[0096]
[0097] For example, W i (x,y) represents the luminous contribution weight of the first pixel.
[0098] For example, as the first pixel moves further away from the photosensor, W i The smaller (x,y) is, the smaller it becomes, with a minimum value of 0. And the closer W is to the photosensor, the better. i The larger (x,y) is, the greater W is when the first pixel is directly above the photosensitive sensor. i (x,y) reaches its maximum, W i (x,y) can be determined through prior fitting and production calibration.
[0099] Step 203c: The electronic device sums up the first luminous intensity of each pixel in the first screen to obtain the light intensity of the first screen.
[0100] For example, the electronic device can calculate the light intensity of the first screen using Formula Six:
[0101]
[0102] in, Let (x, y) be the i-th pixel in the first screen. i The first luminous intensity.
[0103] Thus, since the electronic device can calculate the first luminous intensity of each pixel based on the luminous contribution weight of each pixel in the first screen, and then accumulate the first luminous intensity of each pixel to obtain the light intensity of the first screen, the reliability of determining the light intensity of the first screen is improved.
[0104] Step 204: The electronic device subtracts the light intensity of the first screen from the third light intensity to obtain the light intensity of the second screen.
[0105] In some embodiments of this application, since the light intensity of the first screen and the third light intensity are known, the light intensity of the second screen can be determined based on Formula 7.
[0106] N B =NN A Formula 7
[0107] Where, N B N represents the light intensity of the second screen. A Let N be the light intensity of the first screen and N be the light intensity of the third screen.
[0108] Step 205: The electronic device determines the folding angle of the screen based on the light intensity of the second screen and the screen information of the second screen.
[0109] It is understandable that since the light intensity of the second screen is related to the folding angle of the screen, the folding angle of the screen can be determined based on the light intensity of the second screen and the screen information of the second screen.
[0110] In some embodiments of this application, the screen information of the second screen includes: the screen brightness of the second screen and the color value of each pixel in the second screen; combined with Figure 2 ,like Figure 5 As shown, step 205 above can be implemented through step 205a below.
[0111] Step 205a: The electronic device determines the folding angle of the screen based on the light intensity of the second screen, the screen brightness of the second screen, the color value of each pixel in the second screen, and the first formula.
[0112] In the embodiments of this application, the first formula is as follows:
[0113]
[0114] Where, N B Let be the light intensity of the second screen, i∈{1,2,3…M}, M be the total number of pixels in the second screen, α be the screen transmittance coefficient, and DC be the screen brightness of the second screen. maxc is the maximum brightness of the second screen. i γ is a coefficient related to the color value of the i-th pixel in the second screen. i The exponent associated with the color value of the i-th pixel in the second screen, θ, is the screen folding angle, and W i (x,y,θ) represents the luminous contribution weight of the i-th pixel in the second screen when the folding angle is θ.
[0115] It is understandable that, since the light intensity of the second screen, the brightness of the second screen, and the color value of each pixel in the second screen are known, the electronic device can substitute the light intensity of the second screen, the brightness of the second screen, the exponent γ and the coefficient c related to the color value of each pixel in the second screen into the above formula to calculate the folding angle of the screen.
[0116] In the method for determining the folding angle of the screen provided in this application embodiment, since the photosensitive sensor can collect the total intensity of the screen light intensity and the ambient light intensity when the screen is on during the dimming cycle, and can collect the ambient light intensity when the screen is off during the dimming cycle, the screen light intensity, i.e., the aforementioned third light intensity, can be obtained based on the total intensity of the screen light intensity and the ambient light intensity, as well as the ambient light intensity. Simultaneously, since the photosensitive sensor is located below the first screen, it can detect the light intensity of the first screen regardless of the screen's folding angle. The light intensity of the second screen detected by the photosensitive sensor changes with the screen's folding angle. Therefore, this application can obtain the light intensity of the second screen at the current folding angle by subtracting the light intensity of the first screen determined based on the screen information of the first screen from the total screen light intensity. Since the light intensity of the second screen is related to the screen's folding angle, the screen folding angle can be determined based on the light intensity of the second screen and the screen information of the second screen. Furthermore, since this application determines the folding angle of the screen based on a photosensitive sensor, and the photosensitive sensor does not need to consider the interference of the surrounding magnetic field environment, the accuracy of the electronic device in detecting the folding angle of the screen is improved.
[0117] In some embodiments of this application, if the intensity of the third light obtained remains unchanged within a preset number of times, the electronic device may not need to determine the folding angle of the screen.
[0118] It is understandable that since the intensity of the third light obtained within the preset number of times remains unchanged, it can be assumed that the folding angle of the screen has not changed. Therefore, it is not necessary to judge the folding angle of the screen, thereby reducing power consumption.
[0119] For example, when the intensity of the acquired third light changes, the electronic device can begin to determine the folding angle of the screen.
[0120] In some embodiments of this application, when the folding angle is less than or equal to a first threshold, the electronic device determines that the screen of the electronic device has been fastened, that is, it is in a fully folded state.
[0121] In some embodiments of this application, the first threshold is obtained by subtracting the angle calculation error from the folding angle when the screen is fully folded.
[0122] In some embodiments of this application, the screen of the electronic device being in a fully folded state can be understood as follows: the two screens of the electronic device are folded together and hidden inside, and the folding angle of the screen of the electronic device is infinitely close to 0.
[0123] For example, combined with Figure 1 ,like Figure 6 As shown, the electronic device is in a fully folded state, with the second screen 12 of the electronic device folded 180° along the common axis x, so that the first screen 11 and the second screen 12 are folded and hidden inside.
[0124] In some embodiments of this application, when the folding angle is greater than a first threshold, the electronic device determines that the screen of the electronic device is not fastened, that is, it is in an incompletely folded state.
[0125] In some embodiments of this application, the screen of the electronic device being in a partially folded state can be understood as: the two screens of the electronic device are not attached together, and the folding angle of the screen of the electronic device is greater than 0.
[0126] For example, combined with Figure 1 ,like Figure 7 As shown, the electronic device is in a partially folded state, and the folding angle between the first screen 11 and the second screen 12 of the electronic device is β°.
[0127] In some embodiments of this application, when the electronic device determines that the screen of the electronic device has been closed, it can output the status information that the screen has been closed to the operating system.
[0128] In some embodiments of this application, when the folding angle is greater than a first threshold, the electronic device may also output the folding angle to the operating system.
[0129] In some embodiments of this application, the acquisition frequency of the aforementioned photosensitive sensor is a first frequency. The method for determining the folding angle of the screen provided in the embodiments of this application may further include the following step 301.
[0130] Step 301: When the camera application is running, or when the application running in the foreground is detected to support split-screen mode, the electronic device adjusts the sampling frequency of the photosensor from the first frequency to the second frequency.
[0131] In the embodiments of this application, the second frequency is higher than the first frequency, and the second frequency is determined based on the application running in the foreground.
[0132] It is understandable that when running a camera application, users may fold the screen of their electronic device to a certain preset folding angle to trigger the electronic device to display a camera preview interface on one side of the screen and shooting controls on the other side, so that users can take pictures. Therefore, when running a camera application, the real-time detection of the screen folding angle is required to be high, so the sampling frequency of the photosensitizer can be increased.
[0133] Similarly, when it is detected that the application running in the foreground supports split-screen mode, the user may fold the screen of the electronic device to a certain preset folding angle to trigger the electronic device to enter split-screen mode. Therefore, when it is detected that the application running in the foreground supports split-screen mode, the real-time detection of the screen folding angle is required to be high, so the sampling frequency of the photosensitive sensor can be increased.
[0134] In some embodiments of this application, for an electronic device, a certain function in the application can be triggered by adjusting the screen of the electronic device to a certain preset folding angle. When the electronic device detects that the application is running in the foreground, the electronic device can adjust the sampling frequency of the photosensitive sensor from a first frequency to a second frequency.
[0135] In some embodiments of this application, different applications have different real-time requirements for detecting the screen folding angle. Therefore, different applications can correspond to different acquisition frequencies. For example, the second frequency corresponding to the camera application can be higher than the second frequency corresponding to the application that supports split-screen mode.
[0136] In some embodiments of this application, when the application requires real-time detection of the screen folding angle to be performed once every t milliseconds, the second frequency T≤t.
[0137] For example, an electronic device can determine the real-time detection requirements of the screen folding angle based on the number of times the user folds the screen during the application's historical runtime.
[0138] Thus, when the application being run has high real-time requirements for detecting the folding angle of the screen, the electronic device can adjust the sampling frequency of the photosensitive sensor from the first frequency to the second frequency, thereby improving the timeliness of the electronic device in detecting the folding angle of the folding screen.
[0139] In some embodiments of this application, the electronic device stops detecting the screen's folding angle when the screen power is off.
[0140] It should be noted that the screen folding angle determination method provided in this application embodiment can be executed by a screen folding angle determination device. This application embodiment uses a screen folding angle determination device executing the screen folding angle determination method as an example to illustrate the screen folding angle determination device provided in this application embodiment.
[0141] Figure 8 This illustration shows a possible structural diagram of a screen folding angle determination device according to an embodiment of this application. The screen folding angle determination device is applied to an electronic device, the screen of which includes a first screen and a second screen, and a photosensor is disposed below the first screen, such as... Figure 8 As shown, the device 70 for determining the folding angle of the screen may include: an acquisition module 71, a processing module 72, and a determination module 73.
[0142] The acquisition module 71 is used to acquire the first light intensity collected by the photosensitive sensor during the first time period of the dimming cycle, and the second light intensity collected by the photosensitive sensor during the second time period of the dimming cycle. The screen is in the lit state during the first time period and the screen is in the off state during the second time period.
[0143] The processing module 72 is used to obtain the third light intensity of the screen based on the first light intensity and the second light intensity obtained by the acquisition module 71. The first light intensity includes the ambient light intensity and the screen light intensity, and the second light intensity includes the ambient light intensity.
[0144] The determining module 73 is used to determine the light intensity of the first screen based on the screen information of the first screen;
[0145] The processing module 72 is also used to subtract the light intensity of the first screen determined by the determining module 73 from the third light intensity to obtain the light intensity of the second screen;
[0146] The determining module 73 is also used to determine the folding angle of the screen based on the light intensity of the second screen and the screen information of the second screen obtained by the processing module 72.
[0147] This application provides a device for determining the folding angle of a screen. Since a photosensitive sensor can collect the total intensity of the screen light intensity and ambient light intensity when the screen is on during a dimming cycle, and can collect the ambient light intensity when the screen is off during a dimming cycle, the screen light intensity (the aforementioned third light intensity) can be obtained based on the total intensity of the screen light intensity and ambient light intensity, as well as the ambient light intensity. Simultaneously, since the photosensitive sensor is located below the first screen, it can detect the light intensity of the first screen regardless of the screen's folding angle. The light intensity of the second screen detected by the photosensitive sensor changes with the screen's folding angle. Therefore, this application can obtain the light intensity of the second screen at the current folding angle by subtracting the total screen light intensity from the light intensity of the first screen determined based on the screen information of the first screen. Since the light intensity of the second screen is related to the screen's folding angle, the screen folding angle can be determined based on the light intensity of the second screen and the screen information of the second screen. Furthermore, since this application determines the folding angle of the screen based on a photosensitive sensor, and the photosensitive sensor does not need to consider the interference of the surrounding magnetic field environment, the accuracy of the electronic device in detecting the folding angle of the screen is improved.
[0148] In one possible implementation, the screen information of the first screen includes: the screen brightness of the first screen and the color values of the pixels in the first screen; the determining module 73 is specifically used to calculate the luminous intensity of the first pixel based on the screen brightness of the first screen and the color values of the first pixel in the first screen, wherein the first pixel is a pixel in the first screen; and to weight the luminous intensity of the first pixel based on the luminous contribution weight of the first pixel to obtain the first luminous intensity of the first pixel, wherein the luminous contribution weight of the first pixel is related to the position of the first pixel in the first screen; and to accumulate the first luminous intensity of each pixel in the first screen to obtain the light intensity of the first screen.
[0149] In one possible implementation, the dimming cycle includes N dimming cycles; the acquisition module 71 is specifically used to acquire the first light intensity collected by the photosensitive sensor in a first time period within each of the N dimming cycles, and to acquire the second light intensity collected by the photosensitive sensor in a second time period within each dimming cycle, where N is an integer greater than 1. The processing module 72 is specifically used to subtract the first light intensity corresponding to the first dimming cycle from the second light intensity corresponding to the first dimming cycle to obtain the fourth light intensity corresponding to the first dimming cycle, where the first dimming cycle is one of the N dimming cycles; and to average the N fourth light intensities corresponding to the N dimming cycles to obtain the third light intensity.
[0150] In one possible implementation, the acquisition module 71 is specifically used to acquire the first light intensity collected by the photosensitive sensor during a first time period in the dimming cycle and the second light intensity collected by the photosensitive sensor during a second time period in the dimming cycle when no touch screen operation is detected during the dimming cycle.
[0151] In one possible implementation, the sampling frequency of the photosensitive sensor is a first frequency; the screen folding angle determination device 70 provided in this application embodiment further includes: an adjustment module; the adjustment module is used to adjust the sampling frequency of the photosensitive sensor from the first frequency to a second frequency when a camera application is running, or when it is detected that the application running in the foreground supports split-screen mode, the second frequency being higher than the first frequency, and the second frequency being determined based on the application running in the foreground.
[0152] The device for determining the folding angle of the screen in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0153] The device for determining the screen folding angle in this embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this embodiment does not specifically limit the specific operating system used.
[0154] The screen folding angle determination device provided in this application embodiment can realize the various processes implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0155] Optionally, such as Figure 9As shown, this application embodiment also provides an electronic device 900, including a processor 901 and a memory 902. The memory 902 stores a program or instructions that can run on the processor 901. When the program or instructions are executed by the processor 901, they implement the various steps of the above method embodiments and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0156] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0157] Figure 10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0158] The electronic device 100 includes, but is not limited to, components such as: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110. The screen of the electronic device 100 includes a first screen and a second screen, with a photosensor positioned below the first screen.
[0159] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0160] The processor 110 is configured to acquire a first light intensity collected by a photosensitive sensor during a first time period in the dimming cycle, and a second light intensity collected by a photosensitive sensor during a second time period in the dimming cycle, wherein the screen is on during the first time period and off during the second time period; and to obtain a third light intensity of the screen based on the first and second light intensities, wherein the first light intensity includes ambient light intensity and screen light intensity, and the second light intensity includes ambient light intensity; and to determine the light intensity of the first screen based on the screen information of the first screen; and to subtract the third light intensity from the light intensity of the first screen to obtain the light intensity of the second screen; and to determine the folding angle of the screen based on the light intensity of the second screen and the screen information of the second screen.
[0161] This application provides an electronic device. Since a photosensitive sensor can collect the total intensity of the screen light intensity and ambient light intensity when the screen is on during a dimming cycle, and can collect the ambient light intensity when the screen is off during a dimming cycle, the screen light intensity (the aforementioned third light intensity) can be obtained based on the total intensity of the screen light intensity and ambient light intensity, as well as the ambient light intensity. Simultaneously, because the photosensitive sensor is located below the first screen, it can detect the light intensity of the first screen regardless of the screen's folding angle. The light intensity of the second screen detected by the photosensitive sensor changes with the screen's folding angle. Therefore, this application can obtain the light intensity of the second screen at the current folding angle by subtracting the total screen light intensity from the light intensity of the first screen determined based on the screen information of the first screen. Since the light intensity of the second screen is related to the screen's folding angle, the screen folding angle can be determined based on the light intensity of the second screen and the screen information of the second screen. Furthermore, since this application determines the screen folding angle based on a photosensitive sensor, and the photosensitive sensor does not need to consider interference from the surrounding magnetic field environment, the accuracy of the electronic device in detecting the screen folding angle is improved.
[0162] In some embodiments of this application, the screen information of the first screen includes: the screen brightness of the first screen and the color values of the pixels in the first screen; the processor 110 is specifically used to calculate the luminous intensity of the first pixel based on the screen brightness of the first screen and the color values of the first pixel in the first screen, wherein the first pixel is a pixel in the first screen; and to weight the luminous intensity of the first pixel based on the luminous contribution weight of the first pixel to obtain the first luminous intensity of the first pixel, wherein the luminous contribution weight of the first pixel is related to the position of the first pixel in the first screen; and to accumulate the first luminous intensity of each pixel in the first screen to obtain the light intensity of the first screen.
[0163] In some embodiments of this application, the dimming cycle includes N dimming cycles; the processor 110 is specifically used to obtain the first light intensity collected by the photosensitive sensor in a first time period in each of the N dimming cycles, and to obtain the second light intensity collected by the photosensitive sensor in a second time period in each dimming cycle, where N is an integer greater than 1.
[0164] The processor 110 is specifically used to subtract the first light intensity corresponding to the first dimming cycle from the second light intensity corresponding to the first dimming cycle to obtain the fourth light intensity corresponding to the first dimming cycle, where the first dimming cycle is one of N dimming cycles; and to average the N fourth light intensities corresponding to the N dimming cycles to obtain the third light intensity.
[0165] In some embodiments of this application, the processor 110 is specifically used to acquire the first light intensity collected by the photosensitive sensor during a first time period in the dimming cycle and the second light intensity collected by the photosensitive sensor during a second time period in the dimming cycle when no touch screen operation is detected during the dimming cycle.
[0166] In some embodiments of this application, the sampling frequency of the photosensitive sensor is a first frequency; the processor 110 is further configured to adjust the sampling frequency of the photosensitive sensor from the first frequency to a second frequency when running a camera application or when detecting that the application running in the foreground supports split-screen mode, wherein the second frequency is higher than the first frequency and the second frequency is determined based on the application running in the foreground.
[0167] The electronic device provided in this application embodiment can implement the various processes implemented in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0168] For details on the beneficial effects of the various implementation methods in this embodiment, please refer to the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, these will not be repeated here.
[0169] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0170] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0171] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0172] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0173] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0174] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0175] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0176] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here.
[0177] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0178] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0179] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for determining the folding angle of a screen, characterized in that, The screen includes a first screen and a second screen, and a photosensor is disposed below the first screen. The method includes: The first light intensity collected by the photosensitive sensor during a first time period in the dimming cycle, and the second light intensity collected by the photosensitive sensor during a second time period in the dimming cycle, wherein the screen is in a lit state during the first time period and the screen is in a turned-off state during the second time period; Based on the first light intensity and the second light intensity, the third light intensity of the screen is obtained. The first light intensity includes the ambient light intensity and the screen light intensity, and the second light intensity includes the ambient light intensity. Based on the screen information of the first screen, the light intensity of the first screen is determined. The screen information of the first screen includes: the screen brightness of the first screen and the color value of the pixel in the first screen. Subtracting the third light intensity from the light intensity of the first screen yields the light intensity of the second screen; Based on the light intensity of the second screen and the screen information of the second screen, the folding angle of the screen is determined. The screen information of the second screen includes: the screen brightness of the second screen and the color value of each pixel in the second screen. The dimming cycle includes N dimming cycles; acquiring the first light intensity collected by the photosensitive sensor during a first time period within the dimming cycle, and the second light intensity collected by the photosensitive sensor during a second time period within the dimming cycle, includes: The first light intensity collected by the photosensitive sensor during the first time period in each of the N dimming cycles is obtained, and the second light intensity collected by the photosensitive sensor during the second time period in each of the N dimming cycles is obtained, where N is an integer greater than 1; The step of obtaining the third light intensity of the screen based on the first light intensity and the second light intensity includes: Subtract the first light intensity corresponding to the first dimming cycle from the second light intensity corresponding to the first dimming cycle to obtain the fourth light intensity corresponding to the first dimming cycle. The first dimming cycle is one of the N dimming cycles. The third light intensity is obtained by averaging the N fourth light intensities corresponding to the N dimming cycles.
2. The method according to claim 1, characterized in that, Determining the light intensity of the first screen based on the screen information of the first screen includes: The luminous intensity of the first pixel is calculated based on the screen brightness of the first screen and the color value of the first pixel in the first screen. The first pixel is a pixel in the first screen. Based on the light emission contribution weight of the first pixel, the light emission intensity of the first pixel is weighted to obtain the first light emission intensity of the first pixel. The light emission contribution weight of the first pixel is related to the position of the first pixel in the first screen. The light intensity of the first screen is obtained by summing the first luminous intensity of each pixel in the first screen.
3. The method according to claim 1, characterized in that, The acquisition of the first light intensity collected by the photosensitive sensor during a first time period in the dimming cycle, and the second light intensity collected by the photosensitive sensor during a second time period in the dimming cycle, includes: If no touch screen operation is detected during the dimming cycle, the first light intensity collected by the photosensitive sensor during the first time period of the dimming cycle, and the second light intensity collected by the photosensitive sensor during the second time period of the dimming cycle are obtained.
4. The method according to any one of claims 1 to 3, characterized in that, The photosensitive sensor has a first sampling frequency; the method further includes: When the camera application is running, or when it is detected that the application running in the foreground supports split-screen mode, the acquisition frequency of the photosensitive sensor is adjusted from the first frequency to a second frequency, the second frequency being higher than the first frequency, and the second frequency being determined based on the application running in the foreground.
5. A device for determining the folding angle of a screen, characterized in that, The screen includes a first screen and a second screen, and a photosensitive sensor is disposed below the first screen. The device includes: an acquisition module, a processing module, and a determination module. The acquisition module is used to acquire the first light intensity collected by the photosensitive sensor during a first time period in the dimming cycle, and the second light intensity collected by the photosensitive sensor during a second time period in the dimming cycle, wherein the screen is in a lit state during the first time period and the screen is in a turned-off state during the second time period. The processing module is used to obtain a third light intensity of the screen based on the first light intensity and the second light intensity obtained by the acquisition module. The first light intensity includes the ambient light intensity and the screen light intensity, and the second light intensity includes the ambient light intensity. The determining module is used to determine the light intensity of the first screen based on the screen information of the first screen, wherein the screen information of the first screen includes: the screen brightness of the first screen and the color value of the pixel in the first screen. The processing module is further configured to subtract the light intensity of the first screen determined by the determining module from the third light intensity to obtain the light intensity of the second screen; The determining module is further configured to determine the folding angle of the screen based on the light intensity of the second screen and the screen information of the second screen obtained by the processing module. The screen information of the second screen includes: the screen brightness of the second screen and the color value of each pixel in the second screen. The dimming cycle includes N dimming cycles; the acquisition module is specifically used to acquire the first light intensity collected by the photosensitive sensor in the first time period of each of the N dimming cycles, and to acquire the second light intensity collected by the photosensitive sensor in the second time period of each of the N dimming cycles, where N is an integer greater than 1; The processing module is specifically used to subtract the first light intensity corresponding to the first dimming cycle from the second light intensity corresponding to the first dimming cycle to obtain the fourth light intensity corresponding to the first dimming cycle, wherein the first dimming cycle is one of the N dimming cycles; and to average the N fourth light intensities corresponding to the N dimming cycles to obtain the third light intensity.
6. The apparatus according to claim 5, characterized in that, The determining module is specifically used to calculate the luminous intensity of the first pixel based on the screen brightness of the first screen and the color value of the first pixel in the first screen, wherein the first pixel is a pixel in the first screen. Based on the light emission contribution weight of the first pixel, the light emission intensity of the first pixel is weighted to obtain the first light emission intensity of the first pixel. The light emission contribution weight of the first pixel is related to the position of the first pixel in the first screen. And the light intensity of the first screen is obtained by summing the first luminous intensity of each pixel in the first screen.
7. The apparatus according to claim 5, characterized in that, The acquisition module is specifically used to acquire the first light intensity collected by the photosensitive sensor during the first time period of the dimming cycle and the second light intensity collected by the photosensitive sensor during the second time period of the dimming cycle when no touch screen operation is detected during the dimming cycle.
8. The apparatus according to any one of claims 5 to 7, characterized in that, The photosensitive sensor has a first sampling frequency; the device also includes an adjustment module. The adjustment module is used to adjust the acquisition frequency of the photosensitive sensor from the first frequency to a second frequency when the camera application is running or when it is detected that the application running in the foreground supports split-screen mode. The second frequency is higher than the first frequency and is determined based on the application running in the foreground.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method for determining the folding angle of the screen as described in any one of claims 1-4.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method for determining the folding angle of the screen as described in any one of claims 1-4.