Method and device for determining folding angle of folding screen, and storage medium
By acquiring the acceleration parameters and angular velocity of the foldable screen, and combining them with three-dimensional coordinate system calculations and confidence level correction, the problem of inaccurate angle determination of foldable screens in existing technologies has been solved, achieving accurate response and display effects during device movement.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2022-11-16
- Publication Date
- 2026-07-24
AI Technical Summary
Existing technology cannot accurately determine the folding angle of a foldable screen, especially during device movement, leading to inaccurate response.
By obtaining the acceleration-related parameters of the first and second folds of the foldable screen, the angle is estimated using acceleration calculations in a three-dimensional coordinate system, and the included angle is corrected by combining angular velocity and confidence level, thus achieving an accurate definition of the folding angle.
Accurately determining the angle of the folding screen improves the device's response accuracy and display effect during movement.
Smart Images

Figure CN115683028B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of foldable screen technology, and in particular to a method, apparatus and storage medium for determining the folding angle of a foldable screen. Background Technology
[0002] Among related technologies, with the development of foldable screen technology for electronic devices, foldable screens have attracted much attention due to their tolerance and flexibility. Currently, the angle of a foldable screen is usually determined by methods such as ultrasound and magnetism to determine whether the screen is open or closed, but it cannot determine the exact angle of the fold.
[0003] Therefore, providing a method to determine the folding angle of a foldable screen is an urgent technical problem to be solved. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this disclosure provides a method, apparatus and storage medium for determining the folding angle of a foldable screen.
[0005] According to a first aspect of the present disclosure, a method for determining the folding angle of a foldable screen is provided, wherein the foldable screen includes at least a first folding portion and a second folding portion disposed adjacent to each other, and the method for determining the folding angle of the foldable screen includes:
[0006] Obtain the first acceleration-related parameters of the first folded portion and the second acceleration-related parameters of the second folded portion;
[0007] Based on the first acceleration-related parameter and the second acceleration-related parameter, the estimated angle between the first fold and the second fold is determined;
[0008] Determine the confidence level of the estimated angle;
[0009] Obtain the first angular velocity related parameters of the first folded portion and the second angular velocity related parameters of the second folded portion;
[0010] The included angle between the first fold and the second fold is determined based on the estimated angle, the confidence level, the first angular velocity related parameter, and the second angular velocity related parameter.
[0011] In an exemplary embodiment of this disclosure, the first acceleration-related parameter includes the first acceleration of the first folded portion along three axes in a three-dimensional coordinate system; the second acceleration-related parameter includes the second acceleration of the second folded portion along three axes in a three-dimensional coordinate system.
[0012] Determining the estimated angle between the first fold and the second fold based on the first acceleration-related parameter and the second acceleration-related parameter includes:
[0013] The estimated angle between the first fold and the second fold is determined based on the first acceleration of the first fold in at least two axes in the three-dimensional coordinate system and the second acceleration of the second fold in at least two axes in the three-dimensional coordinate system.
[0014] In an exemplary embodiment of this disclosure, determining the estimated angle between the first folded portion and the second folded portion based on the first acceleration of the first folded portion along at least two axes in a three-dimensional coordinate system and the second acceleration of the second folded portion along at least two axes in a three-dimensional coordinate system includes:
[0015] The first acceleration along the X-axis and the first acceleration along the Z-axis of the first folding part are determined, and the first acceleration along the X-axis and the first acceleration along the Z-axis of the second folding part are determined; wherein, the Y-axis is the direction along the rotation axis in the plane of the folding screen, the X-axis is the direction perpendicular to the Y-axis in the plane of the folding screen, and the Z-axis is the direction perpendicular to the plane of the folding screen;
[0016] The estimated angle between the first fold and the second fold is determined using the following formula:
[0017] cos(a)×A X1 -sin(a)×A z1 =A X2
[0018] sin(a)×A X1 +cos(a)×A Z1 =A Z2
[0019] Among them, A X1 A is the first acceleration along the X-axis of the first folded portion; Z1 A is the first acceleration along the Z-axis of the first folded portion; X2 A is the first acceleration along the X-axis of the second fold; Z2 α is the first acceleration along the Z-axis of the second fold; α is the estimated angle between the first fold and the second fold.
[0020] In an exemplary embodiment of this disclosure, determining the confidence level of the estimated angle includes:
[0021] The first resultant acceleration is determined based on the first acceleration of the first folded part in the three-dimensional coordinate system along the three axes, and the second resultant acceleration is determined based on the second acceleration of the second folded part in the three-dimensional coordinate system along the three axes.
[0022] Based on the first resultant acceleration and the second resultant acceleration, a first confidence reference value is determined;
[0023] A second confidence reference value is determined based on the first acceleration of the first folded portion in the Y-axis, the second acceleration of the second folded portion in the Y-axis, the first resultant acceleration, and the second resultant acceleration.
[0024] The confidence level of the estimated angle is determined based on the first confidence reference value and the second confidence reference value.
[0025] In an exemplary embodiment of this disclosure, determining the confidence level of the estimated angle based on the first confidence reference value and the second confidence reference value includes:
[0026] When the second confidence reference value is greater than the first preset threshold, the confidence value of the estimated angle is determined to be 0.
[0027] When the first confidence reference value is greater than the second preset threshold and less than or equal to the first preset threshold, the confidence value of the estimated angle is determined to be the first preset value;
[0028] When the first confidence reference value is less than or equal to the second preset threshold, the confidence value of the estimated angle is determined to be (1 - the first confidence value) / * the first preset value.
[0029] In an exemplary embodiment of this disclosure, determining a first confidence reference value based on the first resultant acceleration and the second resultant acceleration includes:
[0030] Obtain S first resultant accelerations and S second resultant accelerations within a first preset time period, where S is a positive integer greater than or equal to 1;
[0031] Determine the sum of the S first resultant accelerations and the sum of the squares of the S first resultant accelerations; determine the sum of the S second resultant accelerations and the sum of the squares of the S second resultant accelerations.
[0032] A first reference value is determined based on the sum of S first resultant accelerations and the sum of the squares of S first resultant accelerations; a second reference value is determined based on the sum of S second resultant accelerations and the sum of the squares of S second resultant accelerations.
[0033] The first confidence level reference value is determined based on the first reference value and the second reference value.
[0034] In an exemplary embodiment of this disclosure, determining a first resultant acceleration based on the first acceleration of the first folded portion along three axes in a three-dimensional coordinate system, and determining a second resultant acceleration based on the second acceleration of the second folded portion along three axes in a three-dimensional coordinate system, includes:
[0035] The first resultant acceleration is determined according to the following formula:
[0036]
[0037] The second resultant acceleration is determined according to the following formula:
[0038]
[0039] In an exemplary embodiment of this disclosure, determining a second confidence reference value using the first acceleration of the first folded portion in the Y-axis, the second acceleration of the second folded portion in the Y-axis, the first resultant acceleration, and the second resultant acceleration includes:
[0040] A third reference value is determined based on the ratio of the first acceleration of the first folded portion in the Y-axis to the first resultant acceleration.
[0041] A fourth reference value is determined based on the ratio of the second acceleration of the second folded portion in the Y-axis to the second resultant acceleration;
[0042] The second confidence level reference value is determined based on the third reference value and the fourth reference value.
[0043] In an exemplary embodiment of this disclosure, the first angular velocity related parameter includes the first angular velocity of the first folded portion along the Y-axis in a three-dimensional coordinate system; the second angular velocity related parameter includes the second angular velocity of the second folded portion along the Y-axis in a three-dimensional coordinate system, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen;
[0044] Determining the included angle between the first fold and the second fold based on the estimated angle, the confidence level, the first angular velocity related parameter, and the second angular velocity related parameter includes:
[0045] The included angle between the first fold and the second fold is determined according to the following formula:
[0046] β=K×a+(1-K)×G Y1 ×dt-(1-K)×G Y2 ×dt
[0047] Where β is the angle between the first fold and the second fold; a is the estimated angle; K is the confidence level of the estimated angle; dt is the integration time of the first angular velocity and the second angular velocity; G Y1 G is the first angular velocity; Y2 This is the second angular velocity.
[0048] According to a second aspect of the present disclosure, a device for determining the folding angle of a foldable screen is provided, characterized in that the foldable screen includes at least a first folding portion and a second folding portion, and the determining device includes:
[0049] The first acquisition module is configured to acquire the first acceleration-related parameters of the first folded portion and the second acceleration-related parameters of the second folded portion;
[0050] The first determining module is configured to determine the estimated angle between the first fold and the second fold based on the first acceleration-related parameter and the second acceleration-related parameter;
[0051] The second determining module is configured to determine the confidence level of the estimated angle;
[0052] The second acquisition module is configured to acquire the first angular velocity related parameters of the first folded portion and the second angular velocity related parameters of the second folded portion;
[0053] The third determining module is configured to determine the included angle between the first fold and the second fold based on the estimated angle, the confidence level, the first angular velocity related parameter, and the second angular velocity related parameter.
[0054] In an exemplary embodiment of this disclosure, the first acceleration-related parameter includes the first acceleration of the first folded portion along three axes in a three-dimensional coordinate system; the second acceleration-related parameter includes the second acceleration of the second folded portion along three axes in a three-dimensional coordinate system.
[0055] The first determining module is configured as follows:
[0056] The estimated angle between the first fold and the second fold is determined based on the first acceleration of the first fold in at least two axes in the three-dimensional coordinate system and the second acceleration of the second fold in at least two axes in the three-dimensional coordinate system.
[0057] In an exemplary embodiment of this disclosure, the first determining module is configured to:
[0058] The first acceleration along the X-axis and the first acceleration along the Z-axis of the first folding part are determined, and the first acceleration along the X-axis and the first acceleration along the Z-axis of the second folding part are determined; wherein, the Y-axis is the direction along the rotation axis in the plane of the folding screen, the X-axis is the direction perpendicular to the Y-axis in the plane of the folding screen, and the Z-axis is the direction perpendicular to the plane of the folding screen;
[0059] The estimated angle between the first fold and the second fold is determined according to the following formula:
[0060] cos(a)×A X1 -sin(a)×A z1 =A X2
[0061] sin(a)×A X1 +cos(a)×A Z1 =A Z2
[0062] Among them, A X1 A is the first acceleration along the X-axis of the first folded portion; Z1 A is the first acceleration along the Z-axis of the first folded portion; X2 A is the first acceleration along the X-axis of the second fold; Z2 α is the first acceleration along the Z-axis of the second fold; α is the estimated angle between the first fold and the second fold.
[0063] In an exemplary embodiment of this disclosure, the second determining module is configured to:
[0064] The first resultant acceleration is determined based on the first acceleration of the first folded part in the three-dimensional coordinate system along the three axes, and the second resultant acceleration is determined based on the second acceleration of the second folded part in the three-dimensional coordinate system along the three axes.
[0065] A first confidence reference value is determined based on the first resultant acceleration and the second resultant acceleration;
[0066] A second confidence reference value is determined based on the first acceleration of the first folded part in the Y-axis, the second acceleration of the second folded part in the Y-axis, the first resultant acceleration, and the second resultant acceleration, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen;
[0067] The confidence level of the estimated angle is determined based on the first confidence reference value and the second confidence reference value.
[0068] In an exemplary embodiment of this disclosure, the second determining module is configured to:
[0069] When the second confidence reference value is greater than the first preset threshold, the confidence value of the estimated angle is determined to be 0.
[0070] When the first confidence reference value is greater than the second preset threshold and less than or equal to the first preset threshold, the confidence value of the estimated angle is determined to be the first preset value;
[0071] When the first confidence reference value is less than or equal to the second preset threshold, the confidence value of the estimated angle is determined to be (1 - the first confidence value) / * the first preset value.
[0072] In an exemplary embodiment of this disclosure, the second determining module is configured to:
[0073] Obtain S first resultant accelerations and S second resultant accelerations within a first preset time period, where S is a positive integer greater than or equal to 1;
[0074] Determine the sum of the S first resultant accelerations and the sum of the squares of the S first resultant accelerations; determine the sum of the S second resultant accelerations and the sum of the squares of the S second resultant accelerations.
[0075] A first reference value is determined based on the sum of S first resultant accelerations and the sum of the squares of S first resultant accelerations; a second reference value is determined based on the sum of S second resultant accelerations and the sum of the squares of S second resultant accelerations.
[0076] The first confidence level reference value is determined based on the first reference value and the second reference value.
[0077] In an exemplary embodiment of this disclosure, the second determining module is configured to:
[0078] The first resultant acceleration is determined according to the following formula:
[0079]
[0080] The second resultant acceleration is determined according to the following formula:
[0081]
[0082] In an exemplary embodiment of this disclosure, the second determining module is configured to:
[0083] A third reference value is determined based on the ratio of the first acceleration of the first folded portion in the Y-axis to the first resultant acceleration.
[0084] A fourth reference value is determined based on the ratio of the second acceleration of the second folded portion in the Y-axis to the second resultant acceleration;
[0085] The second confidence level reference value is determined based on the third reference value and the fourth reference value.
[0086] In an exemplary embodiment of this disclosure, the first angular velocity related parameter includes the first angular velocity of the first folded portion along the Y-axis in a three-dimensional coordinate system; the second angular velocity related parameter includes the second angular velocity of the second folded portion along the Y-axis in a three-dimensional coordinate system, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen;
[0087] The third determining module is configured as follows:
[0088] The included angle between the first fold and the second fold is determined according to the following formula:
[0089] β=K×a+(1-K)×GY1 ×dt-(1-K)×G Y2 ×dt
[0090] Where β is the angle between the first fold and the second fold; a is the estimated angle; K is the confidence level of the estimated angle; dt is the integration time of the first angular velocity and the second angular velocity; G Y1 G is the first angular velocity; Y2 This is the second angular velocity.
[0091] According to a third aspect of the present disclosure, a device for determining the folding angle of a foldable screen is provided, comprising:
[0092] processor;
[0093] Memory used to store processor-executable instructions;
[0094] The processor is configured to execute the method for determining the folding angle of a foldable screen as described in an exemplary embodiment of this disclosure.
[0095] 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 mobile terminal, the mobile terminal is enabled to perform a method for determining the folding angle of a foldable screen as described in an exemplary embodiment of the present disclosure.
[0096] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: by using the first acceleration-related parameters of the first folding portion and the second acceleration-related parameters of the second folding portion, the estimated angle of the first folding portion and the second folding portion of the folding screen is determined; and the estimated angle is corrected based on the angular velocity-related parameters of the first folding screen, the angular velocity-related parameters of the second folding screen, and the confidence level of the estimated angle, so as to accurately determine the included angle between the first folding portion and the second folding portion.
[0097] 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
[0098] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0099] Figure 1 This is a flowchart illustrating a method for determining the folding angle of a foldable screen according to an exemplary embodiment;
[0100] Figure 2 This is a schematic diagram of a first fold and a second fold of a folding screen of an electronic device according to an exemplary embodiment;
[0101] Figure 3 An exemplary flowchart of the method for determining the confidence level of the estimated angle in step S13 is shown;
[0102] Figure 4 An exemplary flowchart is shown of the method for determining the first confidence reference value based on the first resultant acceleration and the second resultant acceleration in step S132;
[0103] Figure 5 An exemplary flowchart is shown of the method for determining the second confidence reference value in step S133 based on the first acceleration of the first fold in the Y-axis, the second acceleration of the second fold in the Y-axis, the first resultant acceleration, and the second resultant acceleration.
[0104] Figure 6 This is a block diagram of a device for determining the folding angle of a foldable screen according to an exemplary embodiment;
[0105] Figure 7 This is a block diagram (general structure of an electronic device) illustrating a determining device for determining the folding angle of a foldable screen according to an exemplary embodiment. Detailed Implementation
[0106] 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 the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0107] In an exemplary embodiment of this disclosure, a method for determining the folding angle of a foldable screen is provided. The foldable screen includes a first fold and a second fold arranged adjacent to each other. An estimated angle between the first and second folds is determined using a first acceleration-related parameter of the first fold and a second acceleration-related parameter of the second fold. A confidence level of the estimated angle is then determined. Based on the estimated angle, the confidence level of the estimated angle, a first angular velocity-related parameter of the first fold and a second angular velocity-related parameter of the second fold, the included angle between the first and second folds is determined. In this exemplary embodiment, the estimated angle between the first and second folds of the foldable screen is determined using the first acceleration-related parameter of the first fold and the second acceleration-related parameter of the second fold. The estimated angle is then corrected based on the angular velocity-related parameters of the first and second folds, and the confidence level of the estimated angle, to accurately determine the included angle between the first and second folds.
[0108] In an exemplary embodiment of this disclosure, a method for determining the folding angle of a foldable screen is provided, such as... Figure 1 As shown, Figure 1 This is a flowchart illustrating a method for determining the folding angle of a foldable screen according to an exemplary embodiment:
[0109] In step S11, the first acceleration-related parameters of the first fold and the second acceleration-related parameters of the second fold are obtained.
[0110] In step S12, the estimated angle between the first fold and the second fold is determined based on the first acceleration-related parameter and the second acceleration-related parameter.
[0111] In step S13, the confidence level of the estimated angle is determined;
[0112] In step S14, the first angular velocity related parameters of the first fold and the second angular velocity related parameters of the second fold are obtained;
[0113] In step S15, the included angle between the first fold and the second fold is determined based on the estimated angle, confidence level, first angular velocity related parameters, and second angular velocity related parameters.
[0114] In exemplary embodiments of this disclosure, the foldable screen can be a foldable screen of an electronic device. The electronic device can be any device including a foldable screen, such as a mobile terminal. The foldable screen can include at least two folds, such as a first fold and a second fold. The first fold and the second fold can be two separate parts or an integral structure. If the first fold and the second fold are two separate parts, they are connected by a connecting part and can rotate along the connecting part. If the first fold and the second fold are an integral structure, they are located on both sides of the folding area and can rotate along the folding area. Figure 2 As shown, Figure 2 This is a schematic diagram of a first fold and a second fold of a folding screen of an electronic device according to an exemplary embodiment. The folding screen 100 includes a first fold 101 and a second fold 102. A connecting portion or connecting area forms a rotation axis 103, and the first fold 101 and the second fold 102 rotate along the rotation axis 103, forming an included angle β during the rotation.
[0115] During the folding process of the foldable screen, the angle between the first and second folded screens changes. First acceleration parameters of the first folded portion and second acceleration parameters of the second folded portion are obtained to estimate the estimated angle between the first and second folded portions. The confidence level of the estimated angle is determined, and first angular velocity parameters of the first folded portion and second angular velocity parameters of the second folded portion are obtained. Based on the estimated angle, the confidence level of the estimated angle, the first angular velocity parameters, and the second angular velocity parameters, the actual angle between the first and second folded portions is determined.
[0116] In an exemplary embodiment of this disclosure, an estimated angle between the first folding portion and the second folding portion is determined using acceleration-related parameters of the folding portion. Considering the potential motion state that may occur when the electronic device folds the screen during use, the estimated angle is corrected based on the confidence level of the estimated angle, as well as the angular velocity-related parameters of the first and second folding portions. This allows for accurate determination of the actual angle between the first and second folding portions, and the display effect is adjusted according to this actual angle to achieve accurate response to user actions.
[0117] In step S11, the first acceleration-related parameters of the first fold and the second acceleration-related parameters of the second fold are obtained.
[0118] When the foldable screen is opened and closed, or when the foldable screen moves, the motion acceleration in various directions can be obtained by an accelerometer built into the foldable screen. In this disclosure, the foldable screen includes a first folding section and a second folding section, and accelerometers are respectively provided in the first folding section and the second folding section.
[0119] In this disclosure, a coordinate system for the first folded portion and a coordinate system for the second folded portion are defined. Figure 2 The diagram exemplarily illustrates the coordinate systems of the first and second folds of a foldable screen in an electronic device. Taking the coordinate system of the first fold as an example, this coordinate system includes an X1 axis, a Y1 axis, and a Z1 axis. The Y1 axis is located in the plane of the first fold's display screen, along the same direction as the rotation axis; the X1 axis is located in the plane of the first fold's display screen, perpendicular to the Y1 axis; and the Z1 axis is perpendicular to the display screen of the first fold. After determining the three-dimensional coordinate system, the acceleration along the three axes can be obtained using the accelerometer built into the foldable screen. The coordinate system of the second fold can be set similarly, i.e., the Y2 axis is located in the plane of the second fold's display screen, along the same direction as the folding area or connecting part; the X2 axis is located in the plane of the second fold's display screen, perpendicular to the Y2 axis; and the Z2 axis is perpendicular to the display screen of the second fold. The Y1 and Y2 axes are in the same direction, along the same direction as the rotation axis.
[0120] The first acceleration-related parameter is obtained by the accelerometer of the first fold section. The first acceleration-related parameter can be identified as A. X1 A Y1 A Z1 A X1 A is the first acceleration along the X-axis of the first fold; Y1 A is the first acceleration along the Y-axis of the first fold; Z1 Let A be the first acceleration along the Z-axis of the first fold. Similarly, the relevant parameters of the second acceleration can be obtained through the accelerometer of the second fold, and these parameters can be denoted as A. X2 A Y2 A Z2 A X2 A is the second acceleration along the X-axis of the second fold; Y2 A is the second acceleration along the Y-axis of the second fold; Z2 This is the second acceleration along the Z-axis of the second fold.
[0121] In step S12, the estimated angle between the first fold and the second fold is determined based on the first acceleration-related parameter and the second acceleration-related parameter.
[0122] During the opening and closing of the folding screen, or during the movement of the electronic device, the estimated angle between the first fold and the second fold can be determined based on the first acceleration-related parameters and the second acceleration-related parameters.
[0123] In an exemplary embodiment, the first acceleration-related parameter includes the first acceleration of the first folding portion along three axes in a three-dimensional coordinate system; the second acceleration-related parameter includes the second acceleration of the second folding portion along three axes in a three-dimensional coordinate system; the folding screen can estimate the estimated angle between the first folding portion and the second folding portion of the electronic device based on the relationship between the first acceleration-related parameter and the second acceleration-related parameter at different angles and in different directions of motion.
[0124] Based on the first acceleration-related parameters and the second acceleration-related parameters, the estimated angle between the first fold and the second fold is determined, including:
[0125] The estimated angle between the first fold and the second fold is determined based on the first acceleration of the first fold in at least two axes in the three-dimensional coordinate system and the second acceleration of the second fold in at least two axes in the three-dimensional coordinate system.
[0126] During the use of electronic devices, when the folding screen is opened and closed, the two folding sections rotate along the rotation axis. Therefore, the first and second folding sections will generate acceleration along at least two other axes besides the rotation axis. That is, the Y-axis where the first and second folding sections are located is in the same direction as the rotation axis, and during the folding process, the first and second folding sections will generate acceleration along at least the Z-axis and X-axis. For example, as... Figure 2 As shown, Figure 2 The first fold 101 and the second fold 102 shown are foldable screens that open and close from left to right. The Y1 axis of the first fold and the Y2 axis of the second fold are in the same direction as the rotation axis. During the opening and closing process, the first fold 101 will generate acceleration along at least two axes, Z1 and X1, and the second fold 102 will generate acceleration along at least two axes, Z2 and X2. When the electronic device performs the opening and closing operation during movement, it will generate acceleration along three axes simultaneously. Therefore, based on the first acceleration of the first fold in at least two axes in the three-dimensional coordinate system and the second acceleration of the second fold in at least two axes in the three-dimensional coordinate system, the estimated angle between the first fold and the second fold can be estimated.
[0127] In one exemplary embodiment, determining the estimated angle between the first folded portion and the second folded portion based on the first acceleration of the first folded portion along two axes in a three-dimensional coordinate system and the second acceleration of the second folded portion along two axes in a three-dimensional coordinate system includes:
[0128] The first acceleration along the X-axis and the first acceleration along the Z-axis of the first folding part are determined, and the second acceleration along the X-axis and the second acceleration along the Z-axis of the second folding part are determined; wherein, the Y-axis is the direction along the rotation axis in the plane of the folding screen, the X-axis is the direction perpendicular to the Y-axis in the plane of the folding screen, and the Z-axis is the direction perpendicular to the plane of the folding screen;
[0129] The first acceleration along the X-axis and the first acceleration along the Z-axis of the first folded portion, and the second acceleration along the X-axis and the second acceleration along the Z-axis of the second folded portion are correlated. The estimated angle between the first folded portion and the second folded portion can be determined according to the following formula:
[0130] cos(a)×A X1 -sin(a)×A z1 =A X2
[0131] sin(a)×A X1 +cos(a)×A Z1 =A Z2
[0132] Among them, A X1A is the first acceleration along the X-axis of the first fold; Z1 A is the first acceleration along the Z-axis of the first fold; X2 A is the second acceleration along the X-axis of the second fold; Z2 α is the second acceleration along the Z-axis of the second fold; α is the estimated angle between the first and second folds.
[0133] There will be an error between the estimated angle and the actual angle, and this error will increase as the degree of motion intensifies. Therefore, when the electronic device moves, the estimated angle cannot be used as the actual angle. It is also necessary to filter the data corresponding to the first acceleration of the first folding part in the two axes in the three-dimensional coordinate system and the second acceleration of the second folding part in the two axes in the three-dimensional coordinate system to filter out the noise of the accelerometer and the jitter caused by instantaneous motion, thereby improving the accuracy of the relevant data.
[0134] In step S13, the confidence level of the estimated angle is determined.
[0135] Since the above calculation of the angle between the first fold and the second fold does not take into account the acceleration along the Y-axis, it is an estimated angle. Moreover, if the device is opened and closed while in motion, the first or second acceleration along the X-axis or Z-axis will inevitably be affected by the motion, resulting in inaccurate estimated angle between the first fold and the second fold.
[0136] Therefore, it is necessary to determine the confidence level of the estimated angle. If the confidence level reaches a threshold, the estimated angle can be considered reliable and can be determined as the angle between the first fold and the second fold. If the confidence level does not reach the threshold, the estimated angle cannot be determined as the angle between the first fold and the second fold.
[0137] In one exemplary embodiment, such as Figure 3 As shown, Figure 3 An exemplary flowchart illustrates the method for determining the confidence level of the estimated angle in step S13:
[0138] In step S131, the first resultant acceleration is determined based on the first acceleration of the first folded part in the three axes in the three-dimensional coordinate system, and the second resultant acceleration is determined based on the second acceleration of the second folded part in the three axes in the three-dimensional coordinate system.
[0139] In step S132, a first confidence reference value is determined based on the first resultant acceleration and the second resultant acceleration;
[0140] In step S133, a second confidence reference value is determined based on the first acceleration of the first fold in the Y-axis, the second acceleration of the second fold in the Y-axis, the first resultant acceleration, and the second resultant acceleration.
[0141] In step S134, the confidence level of the estimated angle is determined based on the first confidence reference value and the second confidence reference value.
[0142] In an exemplary embodiment of this disclosure, a first resultant acceleration is determined based on the first acceleration of the first folded portion along three axes in a three-dimensional coordinate system, and a second resultant acceleration is determined based on the second acceleration of the second folded portion along three axes in a three-dimensional coordinate system, to determine a first confidence reference value. The first confidence reference value characterizes whether the motion state of the electronic device is violent when the foldable screen is folded. The higher the first confidence value, the more violent the motion is when the foldable screen is folded.
[0143] A second confidence reference value is determined based on the first acceleration of the first folded portion in the Y-axis, the second acceleration of the second folded portion in the Y-axis, the first resultant acceleration, and the second resultant acceleration. The second confidence reference value characterizes the angle between the electronic device and the horizontal plane when the foldable screen is folded; a higher second confidence value indicates that the angle between the electronic device and the horizontal plane is closer to perpendicular.
[0144] Based on the first and second confidence reference values, the confidence level of the estimated angle between the first and second folds of the foldable screen can be determined. By determining the confidence level of the estimated angle, the accuracy of the estimated angle can be accurately assessed.
[0145] In step S131, the first resultant acceleration is determined based on the first acceleration of the first folded part in the three axes of the three-dimensional coordinate system, and the second resultant acceleration is determined based on the second acceleration of the second folded part in the three axes of the three-dimensional coordinate system.
[0146] The first acceleration of the first fold in the three-dimensional coordinate system along the three axes are respectively A X1 A Y1 A Z1 Among them, A X1 A is the first acceleration along the X-axis of the first fold; Y1 A is the first acceleration along the Y-axis of the first fold; Z1 Let Z be the first acceleration along the Z-axis of the first fold. The first resultant acceleration can be obtained according to the following formula:
[0147]
[0148] Among them, A 合1 This is the first resultant acceleration.
[0149] The second acceleration of the second fold in the three-dimensional coordinate system along the three axes are respectively A X2 A Y2 A Z2 AX2 A is the second acceleration along the X-axis of the second fold; Y2 A is the second acceleration along the Y-axis of the second fold; Z2 Let be the second acceleration along the Z-axis of the second fold. The second acceleration can be obtained using the following formula:
[0150]
[0151] Among them, A 合2 This is the second resultant acceleration.
[0152] In step S132, a first confidence reference value can be determined based on the first resultant acceleration and the second resultant acceleration. The first confidence reference value, determined by either the first or second resultant acceleration, can be used to determine whether the electronic device's motion is drastic when the foldable screen is folded. If the electronic device is in drastic motion, the first confidence reference value is relatively large.
[0153] In exemplary embodiments of this disclosure, such as Figure 4 As shown, Figure 4 An exemplary flowchart illustrates the method for determining the first confidence reference value based on the first resultant acceleration and the second resultant acceleration in step S132:
[0154] In step S1321, S first resultant accelerations and S second resultant accelerations are obtained within a first preset time period, where S is a positive integer greater than or equal to 1;
[0155] In step S1322, the sum of S first resultant accelerations and the sum of the squares of S first resultant accelerations are determined; the sum of S second resultant accelerations and the sum of the squares of S second resultant accelerations are determined.
[0156] In step S1323, a first reference value is determined based on the sum of S first resultant accelerations and the sum of the squares of S first resultant accelerations; a second reference value is determined based on the sum of S second resultant accelerations and the sum of the squares of S second resultant accelerations.
[0157] In step S1324, a first confidence level reference value is determined based on the first reference value and the second reference value.
[0158] In exemplary embodiments of this disclosure, to accurately determine the first confidence reference value, multiple first and second combined accelerations can be obtained. For example, S first combined accelerations and S second combined accelerations can be obtained within a first preset time period. The first preset time period can be a preset time period counted backward from the current time when the foldable screen is folded. Within the first preset time period, S first combined accelerations and S second combined accelerations are determined. Wherein, S is a positive integer greater than or equal to 1, and the value of S can be set as needed.
[0159] Calculate the sum of the S first resultant accelerations, SUM1, and the sum of the squares of the S first resultant accelerations, SUM2, and determine the first reference value according to the following formula:
[0160]
[0161] Where C1 is the first reference value, SUM1 is the sum of the S first resultant accelerations, and SUM2 is the sum of the squares of the S first resultant accelerations.
[0162] Calculate the sum of the S second resultant accelerations, SUM3, and the sum of the squares of the S second resultant accelerations, SUM4, and determine the first reference value according to the following formula:
[0163]
[0164] Where C2 is the first reference value, SUM3 is the sum of the S first resultant accelerations, and SUM4 is the sum of the squares of the S first resultant accelerations.
[0165] A first confidence level reference value is determined based on the first reference value and the second reference value. For example, the larger of the first and second reference values can be selected as the first confidence level reference value.
[0166] A first reference value is determined by a first resultant acceleration to determine the degree of motion of the first folding portion during folding. A second reference value is determined by a second resultant acceleration to determine the degree of motion of the second folding portion during folding. The maximum value between the first and second reference values is taken as the first confidence reference value, which represents the state of maximum motion of the folding screen during folding. This ensures that the motion state of the folding screen during folding is fully considered, and the angle between the first and second folding portions is accurately determined.
[0167] When acquiring S first and S second resultant accelerations within a first preset time period, these accelerations can be arranged in queues. As time progresses, when new first and / or second resultant accelerations are obtained, the oldest data can be removed from the queue, and the new data can be added to the tail of the queue. This allows for consideration of the real-time motion state of the electronic device, improves the accuracy of determining the angle between the first and second folds, and significantly reduces the computational load while increasing computational speed.
[0168] In step S133, a second confidence level reference value is determined based on the first acceleration of the first folded portion in the Y-axis, the second acceleration of the second folded portion in the Y-axis, the first resultant acceleration, and the second resultant acceleration. This allows determination of the angle between the electronic device and the horizontal plane when the folded screen is folded, thus determining the angle between the electronic device and the horizontal plane. A higher second confidence level indicates that the angle between the electronic device and the horizontal plane is closer to perpendicular.
[0169] In exemplary embodiments of this disclosure, such as Figure 5 As shown, Figure 5 An exemplary flowchart illustrates the method for determining the second confidence reference value in step S133 based on the first acceleration of the first fold in the Y-axis, the second acceleration of the second fold in the Y-axis, the first resultant acceleration, and the second resultant acceleration:
[0170] In step S1331, a third reference value is determined based on the ratio of the first acceleration of the first folded portion in the Y-axis to the first resultant acceleration.
[0171] In step S1332, a fourth reference value is determined based on the ratio of the second acceleration of the second folded portion in the Y-axis to the second resultant acceleration.
[0172] In step S1333, a second confidence level reference value is determined based on the third reference value and the fourth reference value.
[0173] In an exemplary embodiment of this disclosure, the folding portion includes a first folding portion and a second folding portion. The first folding portion rotates along a rotation axis, and during rotation, an angle is formed between the first folding portion and the second folding portion. The Y-axis of the first folding portion and the second folding portion is in the same direction as the rotation axis. During the folding process, the first folding portion and the second folding portion rotate along the Y-axis.
[0174] Since the Y-axis is in the same direction as the rotation axis, when the folding screen of an electronic device is perpendicular to the horizontal plane, the Y-axis is nearly perpendicular to the horizontal plane. At this point, the acceleration of the folding screen, such as gravitational acceleration, is all along the Y-axis, while the accelerations along the X and Z axes, such as gravitational acceleration, are close to zero. Calculating the ratio of the acceleration of the corresponding folded portion of the folding screen along the Y-axis to the corresponding resultant acceleration can describe the angular state of the folding screen relative to the horizontal plane. That is, the larger the ratio, the closer the electronic device is to being perpendicular to the horizontal plane.
[0175] A third reference value is determined based on the ratio of the first acceleration to the first resultant acceleration of the first folded portion along the Y-axis. The third reference value characterizes the angular state of the first folded portion relative to the horizontal plane; the larger the third reference value, the closer the first folded portion is to being perpendicular to the horizontal plane.
[0176] A fourth reference value is determined based on the ratio of the second acceleration to the second resultant acceleration of the second fold in the Y-axis direction. The fourth reference value characterizes the angular state of the second fold relative to the horizontal plane; the larger the fourth reference value, the closer the second fold is to being perpendicular to the horizontal plane.
[0177] Based on the third and fourth reference values, a second confidence reference value is determined. For example, the largest value among the third and fourth reference values can be selected as the second confidence reference value. The value representing the state where the angle between the folded screen and the horizontal plane is the largest can be used as the second confidence reference value to fully consider the state between the folded screen and the horizontal plane and accurately determine the angle between the first fold and the second fold.
[0178] After determining the first confidence level reference value and the second confidence level reference value, the confidence level of the estimated angle can be determined based on the first confidence level reference value and the second confidence level reference value. When the second confidence level reference value is greater than the first preset threshold, the confidence level of the estimated angle is determined to be 0.
[0179] When the first confidence reference value is greater than the second preset threshold and less than or equal to the first preset threshold, the confidence value of the estimated angle is determined to be the first preset value.
[0180] When the first confidence reference value is less than or equal to the second preset threshold, the confidence value of the estimated angle is determined to be (1 - the first confidence value) / * the first preset value.
[0181] The higher the second confidence level, the closer the folding screen of the electronic device is to being perpendicular to the horizontal plane. For example, when the second confidence level reference value is greater than the first preset threshold, it can be determined that the folding screen of the electronic device is perpendicular to the horizontal plane, and the confidence level of the estimated angle can be determined to be 0. The first preset threshold can be set according to the actual situation, for example, it can be set to 0.92 to 0.98.
[0182] When the folding screen of an electronic device is not perpendicular to the horizontal plane, the intensity of the device's motion can be considered, i.e., the state of the first confidence reference value. For example, if the first confidence reference value is greater than the second preset threshold but less than or equal to the first preset threshold, the motion of the electronic device can be considered relatively intense, and the confidence value of the estimated angle can be determined as the first preset value. The second preset threshold can be set according to the actual situation, for example, it can be set to 0.48 to 0.53. The first preset value can be determined based on the actual state of the folding screen structure of the electronic device, i.e., the degree of influence on the angle of the folding screen under intense motion. For example, the first preset value can be set to 0.01 to 0.03, meaning the confidence value of the estimated angle can be 0.01 to 0.03. When the first confidence reference value is less than or equal to the second preset threshold, the motion of the electronic device can be considered relatively gentle, and the confidence value of the estimated angle can be determined as (1 - the first confidence value) / * the first preset value.
[0183] Based on the angle between the electronic device and the horizontal plane and the motion state of the electronic device, the confidence level of the estimated angle determined by the acceleration-related parameters of the folding screen is determined. This fully considers the influence of the angle between the electronic device and the horizontal plane and the motion state of the electronic device on the angle between the folding screens of the electronic device in actual application, thus improving the accuracy of determining the angle between the folding screens of the electronic device.
[0184] In the exemplary embodiments of this disclosure, after determining the estimated angle and confidence level of the first fold and the second fold of the folding screen, the influence of the angular velocity related parameters of the folding screen on the included angle between the first fold and the second fold of the folding screen can also be considered. The estimated angle between the first fold and the second fold of the folding screen can be corrected by the angular velocity related parameters of the folding screen to accurately determine the included angle between the first fold and the second fold of the folding screen.
[0185] The first angular velocity related parameters may include the first angular velocity of the first folded part along the Y-axis in the three-dimensional coordinate system; the second angular velocity related parameters may include the second angular velocity of the second folded part along the Y-axis in the three-dimensional coordinate system, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen.
[0186] Based on the estimated angle, confidence level, first angular velocity related parameters, and second angular velocity related parameters, the included angle between the first fold and the second fold is determined, including:
[0187] The included angle between the first fold and the second fold is determined using the following formula:
[0188] β=K*a+(1-K)*G Y1*dt-(1-K)*G Y2 *dt
[0189] Where β is the angle between the first fold and the second fold; a is the estimated angle; K is the confidence level of the estimated angle; G Y1 G represents the first angular velocity of the first folded part along the Y-axis in the three-dimensional coordinate system. Y2 dt is the second angular velocity of the second folded part along the Y-axis in the three-dimensional coordinate system; dt is the integral time of the first and second angular velocities.
[0190] In the exemplary embodiments of this disclosure, considering the influence of the angular velocity-related parameters of the folding screen on the angle between the first fold and the second fold of the folding screen, the estimated angle between the first fold and the second fold of the folding screen is corrected by using the angular velocity-related parameters of the folding screen and the confidence level of the estimated angle, so that the angle between the first fold and the second fold of the folding screen can be determined more accurately.
[0191] Figure 6 This is a block diagram illustrating a device for determining the folding angle of a foldable screen according to an exemplary embodiment. (Refer to...) Figure 6 The device includes a first acquisition module 601, a first determination module 602, a second determination module 603, a second acquisition module 604, and a third determination module 605.
[0192] The first acquisition module 601 is configured to acquire the first acceleration-related parameters of the first folded portion and the second acceleration-related parameters of the second folded portion;
[0193] The first determining module 602 is configured to determine the estimated angle between the first fold and the second fold based on the first acceleration-related parameter and the second acceleration-related parameter;
[0194] The second determining module 603 is configured to determine the confidence level of the estimated angle;
[0195] The second acquisition module 604 is configured to acquire the first angular velocity related parameters of the first folded portion and the second angular velocity related parameters of the second folded portion;
[0196] The third determining module 605 is configured to determine the included angle between the first fold and the second fold based on the estimated angle, the confidence level, the first angular velocity related parameter, and the second angular velocity related parameter.
[0197] In an exemplary embodiment of this disclosure, the first acceleration-related parameter includes the first acceleration of the first folded portion along three axes in a three-dimensional coordinate system; the second acceleration-related parameter includes the second acceleration of the second folded portion along three axes in a three-dimensional coordinate system.
[0198] The first determining module 602 is configured as follows:
[0199] The estimated angle between the first fold and the second fold is determined based on the first acceleration of the first fold in at least two axes in the three-dimensional coordinate system and the second acceleration of the second fold in at least two axes in the three-dimensional coordinate system.
[0200] In an exemplary embodiment of this disclosure, the first determining module 602 is configured to:
[0201] The first acceleration along the X-axis and the first acceleration along the Z-axis of the first folding part are determined, and the first acceleration along the X-axis and the first acceleration along the Z-axis of the second folding part are determined; wherein, the Y-axis is the direction along the rotation axis in the plane of the folding screen, the X-axis is the direction perpendicular to the Y-axis in the plane of the folding screen, and the Z-axis is the direction perpendicular to the plane of the folding screen;
[0202] The estimated angle between the first fold and the second fold is determined according to the following formula:
[0203] cos(a)×A X1 -sin(a)×A z1 =A X2
[0204] sin(a)×A X1 +cos(a)×A Z1 =A Z2
[0205] Among them, A X1 A is the first acceleration along the X-axis of the first folded portion; Z1 A is the first acceleration along the Z-axis of the first folded portion; X2 A is the first acceleration along the X-axis of the second fold; Z2 α is the first acceleration along the Z-axis of the second fold; α is the estimated angle between the first fold and the second fold.
[0206] In an exemplary embodiment of this disclosure, the second determining module 603 is configured to:
[0207] The first resultant acceleration is determined based on the first acceleration of the first folded part in the three-dimensional coordinate system along the three axes, and the second resultant acceleration is determined based on the second acceleration of the second folded part in the three-dimensional coordinate system along the three axes.
[0208] A first confidence reference value is determined based on the first resultant acceleration and the second resultant acceleration;
[0209] A second confidence reference value is determined based on the first acceleration of the first folded part in the Y-axis, the second acceleration of the second folded part in the Y-axis, the first resultant acceleration, and the second resultant acceleration, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen;
[0210] The confidence level of the estimated angle is determined based on the first confidence reference value and the second confidence reference value.
[0211] In an exemplary embodiment of this disclosure, the second determining module 603 is configured to:
[0212] When the second confidence reference value is greater than the first preset threshold, the confidence value of the estimated angle is determined to be 0.
[0213] When the first confidence reference value is greater than the second preset threshold and less than or equal to the first preset threshold, the confidence value of the estimated angle is determined to be the first preset value;
[0214] When the first confidence reference value is less than or equal to the second preset threshold, the confidence value of the estimated angle is determined to be (1 - the first confidence value) / * the first preset value.
[0215] In an exemplary embodiment of this disclosure, the second determining module 603 is configured to:
[0216] Obtain S first resultant accelerations and S second resultant accelerations within a first preset time period, where S is a positive integer greater than or equal to 1;
[0217] Determine the sum of the S first resultant accelerations and the sum of the squares of the S first resultant accelerations; determine the sum of the S second resultant accelerations and the sum of the squares of the S second resultant accelerations.
[0218] A first reference value is determined based on the sum of S first resultant accelerations and the sum of the squares of S first resultant accelerations; a second reference value is determined based on the sum of S second resultant accelerations and the sum of the squares of S second resultant accelerations.
[0219] The first confidence level reference value is determined based on the first reference value and the second reference value.
[0220] In an exemplary embodiment of this disclosure, the second determining module 603 is configured to:
[0221] The first resultant acceleration is determined according to the following formula:
[0222]
[0223] The second resultant acceleration is determined according to the following formula:
[0224]
[0225] In an exemplary embodiment of this disclosure, the second determining module 603 is configured to:
[0226] A third reference value is determined based on the ratio of the first acceleration of the first folded portion in the Y-axis to the first resultant acceleration.
[0227] A fourth reference value is determined based on the ratio of the second acceleration of the second folded portion in the Y-axis to the second resultant acceleration;
[0228] The second confidence level reference value is determined based on the third reference value and the fourth reference value.
[0229] In an exemplary embodiment of this disclosure, the first angular velocity related parameter includes the first angular velocity of the first folded portion along the Y-axis in a three-dimensional coordinate system; the second angular velocity related parameter includes the second angular velocity of the second folded portion along the Y-axis in a three-dimensional coordinate system, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen;
[0230] The third determining module 605 is configured as follows:
[0231] The included angle between the first fold and the second fold is determined according to the following formula:
[0232] β=K×a+(1-K)×G Y1 ×dt-(1-K)×G Y2 ×dt
[0233] Where β is the angle between the first fold and the second fold; a is the estimated angle; K is the confidence level of the estimated angle; dt is the integration time of the first angular velocity and the second angular velocity; G Y1 G is the first angular velocity; Y2 This is the second angular velocity.
[0234] 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.
[0235] Figure 7 This is a block diagram illustrating a determining device 800 for determining the folding angle of a foldable screen according to an exemplary embodiment. For example, device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0236] Reference Figure 7, device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input / output (I / O) interface 812, sensor component 814, and communication component 816.
[0237] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0238] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0239] The power component 806 provides power to various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0240] The multimedia component 808 includes a screen that provides an output interface between the device 800 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 touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0241] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0242] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0243] The sensor component 814 includes one or more sensors for providing an assessment of the state of the device 800 in various aspects. For example, the sensor component 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0244] The communication component 816 is configured to facilitate communication between the device 800 and other devices in a wired or wireless manner. The device 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0245] In an exemplary embodiment, the apparatus 800 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 for performing the above method.
[0246] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the apparatus 800 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0247] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a method for determining the folding angle of a folding screen provided in an exemplary embodiment of the present disclosure.
[0248] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and embodiments are only to be considered as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0249] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A method for determining the folding angle of a foldable screen, characterized in that, The foldable screen includes at least a first fold portion and a second fold portion, and the method for determining the fold portion includes: Obtain the first acceleration-related parameters of the first folded portion and the second acceleration-related parameters of the second folded portion; Based on the first acceleration-related parameter and the second acceleration-related parameter, the estimated angle between the first fold and the second fold is determined; Determine the confidence level of the estimated angle; Obtain the first angular velocity related parameters of the first folded portion and the second angular velocity related parameters of the second folded portion; Based on the estimated angle, the confidence level, the first angular velocity related parameter, and the second angular velocity related parameter, the included angle between the first fold and the second fold is determined. The first angular velocity related parameter includes the first angular velocity of the first folded part along the Y-axis in the three-dimensional coordinate system; the second angular velocity related parameter includes the second angular velocity of the second folded part along the Y-axis in the three-dimensional coordinate system, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen; Determining the included angle between the first fold and the second fold based on the estimated angle, the confidence level, the first angular velocity related parameter, and the second angular velocity related parameter includes: The included angle between the first fold and the second fold is determined according to the following formula: in, β denoted as the angle between the first fold and the second fold; α is the estimated angle; K is the confidence level of the estimated angle; dt is the integration time of the first angular velocity and the second angular velocity. G Y1 This is the first angular velocity; G Y2 This is the second angular velocity.
2. The method for determining the folding angle of a foldable screen according to claim 1, characterized in that: The first acceleration-related parameter includes the first acceleration of the first folded part along three axes in a three-dimensional coordinate system; the second acceleration-related parameter includes the second acceleration of the second folded part along three axes in a three-dimensional coordinate system. Determining the estimated angle between the first fold and the second fold based on the first acceleration-related parameter and the second acceleration-related parameter includes: The estimated angle between the first fold and the second fold is determined based on the first acceleration of the first fold in at least two axes in the three-dimensional coordinate system and the second acceleration of the second fold in at least two axes in the three-dimensional coordinate system.
3. The method for determining the folding angle of a foldable screen according to claim 2, characterized in that: Determining the estimated angle between the first folded portion and the second folded portion based on the first acceleration of the first folded portion along at least two axes in the three-dimensional coordinate system and the second acceleration of the second folded portion along at least two axes in the three-dimensional coordinate system includes: The first acceleration along the X-axis and the first acceleration along the Z-axis of the first folding part are determined, and the first acceleration along the X-axis and the first acceleration along the Z-axis of the second folding part are determined; wherein, the Y-axis is the direction along the rotation axis in the plane of the folding screen, the X-axis is the direction perpendicular to the Y-axis in the plane of the folding screen, and the Z-axis is the direction perpendicular to the plane of the folding screen; The estimated angle between the first fold and the second fold is determined according to the following formula: Among them, A X1 A is the first acceleration along the X-axis of the first folded portion; Z1 A is the first acceleration along the Z-axis of the first folded portion; X2 A is the first acceleration along the X-axis of the second fold; Z2 α is the first acceleration along the Z-axis of the second fold; α is the estimated angle between the first fold and the second fold.
4. The method for determining the folding angle of a foldable screen according to claim 2, characterized in that, Determining the confidence level of the estimated angle includes: The first resultant acceleration is determined based on the first acceleration of the first folded part in the three-dimensional coordinate system along the three axes, and the second resultant acceleration is determined based on the second acceleration of the second folded part in the three-dimensional coordinate system along the three axes. A first confidence reference value is determined based on the first resultant acceleration and the second resultant acceleration; A second confidence reference value is determined based on the first acceleration of the first folded part in the Y-axis, the second acceleration of the second folded part in the Y-axis, the first resultant acceleration, and the second resultant acceleration, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen; The confidence level of the estimated angle is determined based on the first confidence reference value and the second confidence reference value.
5. The method for determining the folding angle of a foldable screen according to claim 4, characterized in that, Determining the confidence level of the estimated angle based on the first confidence reference value and the second confidence reference value includes: When the second confidence reference value is greater than the first preset threshold, the confidence value of the estimated angle is determined to be 0. When the first confidence reference value is greater than the second preset threshold and less than or equal to the first preset threshold, the confidence value of the estimated angle is determined to be the first preset value; When the first confidence reference value is less than or equal to the second preset threshold, the confidence value of the estimated angle is determined to be (1 - the value of the first confidence) / First preset value.
6. The method for determining the folding angle of a foldable screen according to claim 4, characterized in that, Based on the first resultant acceleration and the second resultant acceleration, a first confidence reference value is determined, including: Obtain S first resultant accelerations and S second resultant accelerations within a first preset time period, where S is a positive integer greater than or equal to 1; Determine the sum of the S first resultant accelerations and the sum of the squares of the S first resultant accelerations; determine the sum of the S second resultant accelerations and the sum of the squares of the S second resultant accelerations. A first reference value is determined based on the sum of S first resultant accelerations and the sum of the squares of S first resultant accelerations; a second reference value is determined based on the sum of S second resultant accelerations and the sum of the squares of S second resultant accelerations. The first confidence level reference value is determined based on the first reference value and the second reference value.
7. The method for determining the folding angle of a foldable screen according to claim 6, characterized in that, Determining a first resultant acceleration based on the first acceleration of the first folded portion along three axes in a three-dimensional coordinate system, and determining a second resultant acceleration based on the second acceleration of the second folded portion along three axes in a three-dimensional coordinate system, includes: The first resultant acceleration is determined according to the following formula: The second resultant acceleration is determined according to the following formula: 。 8. The method for determining the folding angle of a foldable screen according to claim 4, characterized in that, The step of determining the second confidence reference value based on the first acceleration of the first folded portion in the Y-axis, the second acceleration of the second folded portion in the Y-axis, the first resultant acceleration, and the second resultant acceleration includes: A third reference value is determined based on the ratio of the first acceleration of the first folded portion in the Y-axis to the first resultant acceleration. A fourth reference value is determined based on the ratio of the second acceleration of the second folded portion in the Y-axis to the second resultant acceleration; The second confidence level reference value is determined based on the third reference value and the fourth reference value.
9. A device for determining the folding angle of a foldable screen, characterized in that, The folding screen includes at least a first folding portion and a second folding portion, and the determining device includes: The first acquisition module is configured to acquire the first acceleration-related parameters of the first folded portion and the second acceleration-related parameters of the second folded portion; The first determining module is configured to determine the estimated angle between the first fold and the second fold based on the first acceleration-related parameter and the second acceleration-related parameter; The second determining module is configured to determine the confidence level of the estimated angle; The second acquisition module is configured to acquire the first angular velocity related parameters of the first folded portion and the second angular velocity related parameters of the second folded portion; The third determining module is configured to determine the included angle between the first fold and the second fold based on the estimated angle, the confidence level, the first angular velocity related parameter, and the second angular velocity related parameter; The first angular velocity related parameter includes the first angular velocity of the first folded part along the Y-axis in the three-dimensional coordinate system; the second angular velocity related parameter includes the second angular velocity of the second folded part along the Y-axis in the three-dimensional coordinate system, wherein the Y-axis is the direction along the rotation axis in the plane of the folded screen; Determining the included angle between the first fold and the second fold based on the estimated angle, the confidence level, the first angular velocity related parameter, and the second angular velocity related parameter includes: The included angle between the first fold and the second fold is determined according to the following formula: in, β denoted as the angle between the first fold and the second fold; α is the estimated angle; K is the confidence level of the estimated angle; dt is the integration time of the first angular velocity and the second angular velocity. G Y1 This is the first angular velocity; G Y2 This is the second angular velocity.
10. A device for determining the folding angle of a foldable screen, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the method for determining the folding angle of the foldable screen according to any one of claims 1-8.
11. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method for determining the folding angle of a foldable screen as described in any one of claims 1-8.