Movement control method of movable display screen and related device
By setting sensors on the target end of the movable display screen, determining the stroke difference and adjusting the operating parameters of the moving structure, the problem of out-of-synchronization of the movements on both sides of the display screen in the prior art is solved, and the synchronization and stability of movement are achieved.
Patent Information
- Application Number
- CN202411746979.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-28
AI Technical Summary
In the existing movement control method of movable display screen, the operation of the two motors may cause the movement of both sides of the display screen to be out of synchronization, causing the problem of jamming.
By setting at least one sensor on the target end of the display screen, obtaining its detection information, determining the stroke difference of movement on both sides of the target end, and adjusting the operating parameters of the target movement structure based on this stroke difference to ensure that the movements on both sides are consistent.
It effectively solves the problem of out-of-synchronization of both sides of the display screen, ensuring synchronization between both sides during the movement of the display screen, and avoiding jamming.
Smart Images

Figure CN119536575A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control, and in particular to a mobile control method and related devices for a movable display screen. Background Art
[0002] A movable screen is a rollable and movable display screen made using a flexible display screen. It can be rolled up and unfolded like a scroll to adjust the screen size.
[0003] The existing movable display screen is moved by two motors provided on the display screen to provide power. However, the operation of the two motors may cause the two sides of the display screen to move out of sync, resulting in a stuck problem.
[0004] Therefore, a method is needed to control the movement process of the display screen to ensure that the two sides of the display screen move synchronously. Summary of the invention
[0005] The first aspect of the present application provides a method for controlling movement of a movable display screen, comprising:
[0006] Based on the movement of the display screen, at least first detection information of a first sensor is obtained, where the first sensor is disposed at a target end of the first body where the display screen is located;
[0007] Determine the travel difference of the two sides of the target end at least based on the first detection information;
[0008] Based on the stroke difference, the target moving structure is controlled to adjust the operating parameters to control the movement of both sides of the target end to be consistent. The target moving structure is at least one of the at least two moving structures used to drive the target end to move.
[0009] In a possible implementation, determining the travel difference between two sides of the target end at least based on the first detection information includes:
[0010] Determine axial information of the position of the first sensor according to first detection information, wherein the first detection information includes each axial information of the first sensor in a three-dimensional space;
[0011] Based on the fact that the axial information of the position of the first sensor and the reference axial information of the first sensor do not meet the preset condition, the travel difference of the movement of the two sides of the target end is determined.
[0012] In a possible implementation, before obtaining at least first detection information of a first sensor based on movement of the target end in the display screen, the method further includes:
[0013] In response to a trigger instruction for display screen movement, axial information corresponding to the first sensor is determined, and the axial information is used as reference axial information of the first sensor.
[0014] In a possible implementation, determining the travel difference between two sides of the target end at least based on the first detection information includes:
[0015] Determine the target axis according to second detection information obtained by a second sensor, the second sensor is disposed on a second body of the electronic device, the first body and the second body rotate relative to each other along a rotation axis, and the second detection information includes information of each axis of the second sensor in a three-dimensional space;
[0016] If the axial information of the position of the first sensor and the target axial information of the second sensor do not meet the preset conditions, the travel difference of the movement of the two sides of the target end is determined.
[0017] In a possible implementation, determining the travel difference between two sides of the target end at least based on the first detection information includes:
[0018] determining the motion state of the electronic device;
[0019] Based on the fact that the motion state is a stationary state, the travel difference of the movement of two sides of the target end is determined at least according to the first detection information of the first sensor.
[0020] In a possible implementation, the method further includes:
[0021] Based on the fact that the motion state is a non-stationary state, the travel difference of the movement on both sides of the target end is determined according to the first detection information of the first sensor and the second detection information of the second sensor. The electronic device includes a first body and a second body. The first body and the second body rotate relative to each other along a rotation axis. The second sensor is arranged on the second body of the electronic device.
[0022] In a possible implementation, determining the travel difference between two sides of the target end at least based on the first detection information includes:
[0023] Determine the difference in axial information between first detection information and third detection information, wherein the first detection information includes axial information of the first sensor in a three-dimensional space, and the third detection information includes axial information of the third sensor in a three-dimensional space, and the third sensor and the first sensor are arranged along a first direction at the target end, and the first direction is a direction perpendicular to a moving direction of the target end;
[0024] Based on the difference in axial information, the travel difference of the two sides of the target end is determined.
[0025] In a possible implementation, based on the running state being a stationary state, determining the travel difference between two sides of the target end at least according to the first detection information includes:
[0026] Based on the current image information and initial image information acquired by the first sensor, analyzing and acquiring the deflection angle of the acquired object image in the image information, wherein the initial image information is an image acquired at a moment before the display screen moves;
[0027] If the deflection angle is greater than a preset angle threshold, the travel difference of the two sides of the target end is determined according to the deflection angle.
[0028] In a possible implementation, controlling the target moving structure to adjust operating parameters based on the stroke difference to control the movement of both sides of the target end to be consistent includes:
[0029] Obtaining operating parameters of at least two mobile structures corresponding to the target end;
[0030] generating a control instruction according to the operating parameters of the at least two moving structures and the stroke difference;
[0031] The control instruction is sent to the target mobile structure, and the control instruction is used to control at least one of the at least two mobile structures to adjust the operating parameters so as to control the movement of both sides of the target end to be consistent.
[0032] A second aspect of the present application provides an electronic device, including:
[0033] A movable display screen is located on the first body of the electronic device;
[0034] A first sensor, the sensor is arranged on a first body of the display screen, and the first sensor has first detection information;
[0035] A controller, which determines a travel difference between two sides of the target according to first detection information of the first sensor, and determines an adjustment operation parameter of the target moving structure based on the travel difference;
[0036] The mobile structure controls the movement of both sides of the target in unison according to the adjustment operation parameters of the target mobile structure, and the target mobile structure is at least one of the at least two mobile structures used to drive the target end to move.
[0037] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the method for controlling the movement of a movable display screen according to the first aspect or any implementation of the first aspect.
[0038] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0039] The memory is used to store computer programs;
[0040] The processor is used to execute the computer program so that the electronic device can implement the method for controlling movement of a movable display screen according to the first aspect or any implementation manner of the first aspect.
[0041] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the method for controlling the movement of a movable display screen according to the first aspect or any implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0043] Figure 1 It is a flow chart of a method for controlling movement of a movable display screen provided in an embodiment of the present application;
[0044] Figure 2 This is a schematic diagram of the structure of a first body where a display screen is provided in an embodiment of the present application;
[0045] Figure 3 is a flow chart of determining the travel difference between two sides of the target end according to at least the first detection information provided by an embodiment of the present application;
[0046] Figure 4 It is a schematic diagram of determining the travel difference caused by the movement of the display screen provided in an embodiment of the present application;
[0047] Figure 5 is a comparison diagram of the axial information of the location of the first sensor provided in the embodiment of the present application and the reference axial information;
[0048] Figure 6 is a flow chart of determining the travel difference between two sides of the target end according to at least the first detection information provided by an embodiment of the present application;
[0049] Figure 7 is another schematic diagram of determining the travel difference caused by the movement of the display screen provided in an embodiment of the present application;
[0050] Figure 8is a comparison diagram of the axial information of the first sensor at the location provided by the embodiment of the present application and the axial information of the second sensor;
[0051] Fig. 9 is a flow chart of determining the travel difference between two sides of the target end according to at least the first detection information provided by an embodiment of the present application;
[0052] Fig.10 is a flow chart of determining the travel difference between two sides of the target end according to at least the first detection information provided by an embodiment of the present application;
[0053] Fig.11 It is another schematic diagram of determining the travel difference caused by the movement of the display screen provided in an embodiment of the present application;
[0054] Fig.12 is a comparison diagram of the axial information of the first sensor location and the axial information of the third sensor location provided in the embodiment of the present application;
[0055] Fig.13 It is a flow chart of determining the travel difference between the two sides of the target end based on the fact that the running state is a stationary state, at least according to the first detection information, provided by an embodiment of the present application;
[0056] Fig.14 is another schematic diagram of determining the travel difference caused by the movement of the display screen provided in an embodiment of the present application;
[0057] Fig.15 It is a flow chart of adjusting the operating parameters of the target moving structure based on the stroke difference to control the movement of both sides of the target end to be consistent, provided by an embodiment of the present application;
[0058] Fig.16 is a structural schematic diagram of an electronic device provided by an embodiment of the present application;
[0059] Fig.17 This is another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0061] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0062] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0063] Figure 1 It is a flow chart of a method for controlling movement of a movable display screen provided in an embodiment of the present application, which may include steps 101 to 103, and these steps are described in detail below.
[0064] 101. Based on the movement of the display screen, at least first detection information of a first sensor is obtained, where the first sensor is disposed at a target end of the first body where the display screen is located;
[0065] The movement of the display screen may be achieved by moving the target end, specifically, moving one end of the display screen to change the size of the display screen.
[0066] Among them, the mobile end of the display screen can be set to any end of the upper, lower, left or right of the first body according to actual conditions.
[0067] The movement of the display screen is realized based on at least two moving structures. However, when the moving structures are unbalanced, the two sides of the target end of the display screen will be unbalanced during movement, thus causing the problem of movement jamming.
[0068] In a possible implementation, the mobile structure may adopt a structure such as a drive motor, and the present application does not limit the specific form of the mobile structure.
[0069] The target end of the first body where the display screen is located is also provided with a first sensor, and the first sensor moves along with the target end of the display screen, and the first detection information detected by the first sensor can represent the movement of the target end.
[0070] Among them, the mobile structure can be set at the end of the first body where the display screen is located that is opposite to the target end, or it can be set in another body connected to the first body where the display screen is located. This application does not limit the setting position of the mobile structure.
[0071] Figure 21 is a schematic diagram of the structure of a first body provided by an embodiment of the present application where a display screen is located. The body includes a display screen 201 and a first sensor 202, wherein (a) is the display screen before movement, and (b) is the display screen after movement, and the size of the display screen after movement is larger than that of the display screen before movement. The first sensor 202 is arranged at the target end of the first body, and when the target end of the first body moves together with the display screen, the first sensor moves together with the display screen.
[0072] In a possible implementation, during the movement of the display screen, the detection period of the first sensor is obtained, which can be obtained in real time according to a set period. The period can be set according to actual conditions, and the duration of the period is not limited in this application.
[0073] 102. Determine a travel difference between two sides of the target end at least based on the first detection information;
[0074] Among them, the two sides of the target end of the display screen are driven by different moving structures. When the movement of the moving structure is not synchronized, it will cause a travel difference between the two sides. In this step, the travel difference between the two sides of the target end is determined to correct the travel difference.
[0075] In a specific implementation, in order to improve the accuracy of detection, the target end is moved to a non-middle position of the body.
[0076] Wherein, the first sensor moves together with the target end of the display screen, and the first detection information can represent the movement of the target end.
[0077] Wherein, the travel difference of the two sides of the target end where the first sensor is set is determined at least based on the first detection information.
[0078] In a possible implementation, based on the first detection information including the axial information of the first sensor in the three-dimensional space, and then based on the axial information and the reference axial information not meeting the preset conditions, the travel difference of the two sides of the target end is determined, and then Figure 3 The process of determining the travel difference between the two sides of the target end is described in detail.
[0079] In a possible implementation, the second detection information of the second sensor disposed in the second body can be combined with the first detection information to determine the travel difference between the two sides of the target end. Figure 6 The process of determining the travel difference between the two sides of the target end is described in detail.
[0080] In a possible implementation, a third sensor at a different position from the first sensor is further provided in the first body, and the travel difference between the two sides of the target end is determined by using the detection information of the third sensor and the first sensor. Fig.10 The process of determining the travel difference between the two sides of the target end is described in detail.
[0081] In a possible implementation, the first sensor is an image acquisition device, and the image acquired by the first sensor is used to determine the travel difference between the two sides of the target end. Fig.13 The process of determining the travel difference between the two sides of the target end is described in detail.
[0082] 103. Based on the stroke difference, the target moving structure is controlled to adjust operating parameters to control the movement of both sides of the target end to be consistent. The target moving structure is at least one of the at least two moving structures used to drive the target end to move.
[0083] After the travel difference between the two sides of the target end is determined, the target moving structure in the moving structure is controlled to adjust the operating parameters based on the travel difference.
[0084] Among them, by adjusting the operating parameters of the target moving structure, the movement of the two is made synchronous, the movement of the two sides of the target end is made consistent, and the stroke difference is eliminated.
[0085] In a possible implementation, a control instruction can be generated according to the operating parameters of each mobile structure and the travel difference, and the operating parameters of the target mobile structure adjuster can be controlled by the control instruction. Fig.15 The process of adjusting the operating parameters is explained in detail.
[0086] In this embodiment, based on the movement of the display screen, at least first detection information of a first sensor is obtained, and the first sensor is arranged at the target end of the first body where the display screen is located; based on at least the first detection information, the stroke difference of movement on both sides of the target end is determined; based on the stroke difference, the target moving structure is controlled to adjust the operating parameters to control the movement of both sides of the target end to be consistent, and the target moving structure is at least one of the at least two moving structures used to drive the movement of the target end, so that during the movement of the display screen, the stroke difference on both sides of the target end of the first body where the display screen is located is detected, and the target moving structure is controlled to adjust the operating parameters according to the stroke difference to eliminate the stroke difference, thereby ensuring the synchronization of movement of both sides of the display screen.
[0087] Figure 3 The present application provides a flowchart of determining the travel difference between the two sides of the target end at least based on the first detection information, which may include steps 301 to 302. These steps are described in detail below.
[0088] 301. Determine axial information of a position of the first sensor according to first detection information, wherein the first detection information includes axial information of the first sensor in a three-dimensional space;
[0089] Among them, since the three-dimensional spatial axial information is stable, in this application, the three-dimensional spatial axial information of the sensor is used to determine the travel difference of the movement of the two sides of the target end.
[0090] The first detection information includes the axial information of the first sensor on the XYZ axes in the three-dimensional space.
[0091] The determined axial information of the position occupied by the first sensor may be a specific axial direction, such as an X-axis or a Y-axis.
[0092] The specific axial direction used to determine the axial information of the position of the first sensor is determined based on an algorithm for calculating the stroke difference, and this embodiment is described by taking the X axis as an example.
[0093] 302. Determine a travel difference between two sides of the target end based on the fact that the axial information of the position of the first sensor and the reference axial information of the first sensor do not meet a preset condition.
[0094] The preset condition may be that the gap between the axial information is smaller than a set value.
[0095] In one possible implementation, since the two sides of the target end move asynchronously, the first sensor placed in the target end tilts as the two sides of the target end tilt, and its axial information in the three-dimensional space also deflects, forming an angle between its axial information and the reference axial information.
[0096] As an example, the preset condition may be that the angle between the axial information at the location of the first sensor and its reference axial information is very small, and an angle threshold may be used for quantification. If the angle is less than the angle threshold, it may be determined that the preset condition is met; otherwise, it may be determined that the preset condition is not met.
[0097] Among them, when the two sides of the target end move synchronously, the axial information of the first sensor on the XYZ axis in the three-dimensional space will not change, and it meets the preset conditions with the reference axial information. However, when the two sides of the target end move asynchronously, the axial information of the first sensor on the X axis and Y axis in the three-dimensional space will change.
[0098] The reference axial information of the first sensor may be preset, specifically, the axial information of the first sensor in the three-dimensional space obtained in advance under a standard use state when the display screen is in an unmoved state.
[0099] The reference axial information may be determined based on relevant axial information of the first sensor, or based on axial information of other sensors.
[0100] The reference axial information may be detected during the use of the display screen, specifically after receiving a trigger instruction for triggering the movement of the display screen. The process of determining the reference axial information will be described in detail in subsequent embodiments.
[0101] Among them, since the display screen moves in one direction, the size corresponding to the direction changes, and the corresponding size in the direction perpendicular to the moving direction is fixed. Therefore, in the actual process of determining the stroke difference, the size of the first body where the display screen is located can be used for calculation.
[0102] In a possible implementation, based on the difference between the axial information of the first sensor and the reference axial information, combined with the setting position of the first sensor on the first body and the size of the first body, the travel difference of the two sides of the target end is calculated.
[0103] Figure 4 This is a schematic diagram of determining the travel difference caused by the movement of the display screen provided by an embodiment of the present application, wherein a display screen and a first sensor 401 are provided on the first body, and the first sensor 401 is represented by a black dot in the figure. When the target interrupt 402 moves from the starting position to the ending position, the first sensor 401 also moves accordingly. In this schematic diagram, since the display screen moves in the up and down directions, there will be up and down deviations on both sides of the target end from the starting position to the ending position. In this schematic diagram, the left side of the target end 402 of the first body is lower than the right side. In this figure, the reference axial information of the first sensor is represented by a thin line, and the axial information of the position where the first sensor is located is represented by a thick line. When the display screen is at the starting position, the axial information of the position where the first sensor is located is used as the reference axial information.
[0104] Figure 5 is a comparison diagram of the axial information of the first sensor position provided in the embodiment of the present application and the reference axial information, based on the Figure 4 The axial information of the first sensor position is generated with the reference axial information, the thick line represents the axial information (XYZ axis) of the first sensor position, and the thin line represents the reference axial information (XYZ axis). The Z-axis directions of the two are consistent, and the X-axis and Y-axis have an angle respectively.
[0105] by Figure 4 The process of determining the travel difference is explained by taking the display screen movement scenario in FIG.
[0106] The angle is determined according to the axial information of the first sensor position and the reference axial information; based on the distance between the first sensor position and the middle position of the target end, the trigonometric function formula is used to calculate the stroke difference between the first sensor position and the middle position of the target end.
[0107] Since the stroke difference is determined by a trigonometric formula in this embodiment, the X-axis angle can be determined, and the stroke difference can be obtained through simple calculation in combination with the distance between the position of the first sensor and the middle position of the target end.
[0108] The distance between the position of the first sensor and the middle position of the target end is d, and the angle between the reference X-axis of the first sensor and the X-axis of the position of the first sensor is α. The stroke difference h can be determined by the following formula (1):
[0109] (1)
[0110] For example, the distance d between the position of the first sensor and the middle position of the target end is 15 cm, and the angle α is 5°, then the calculated stroke difference is 15*sin5°≈1.3 cm.
[0111] In this embodiment, the first detection information includes each axial information of the first sensor in the three-dimensional space. The axial information of the position of the first sensor is determined based on the first detection information; based on the fact that the axial information of the position of the first sensor and the reference axial information do not meet the preset conditions, the stroke difference of the movement of the two sides of the target end is determined; based on the inconsistency between the axial information of the position of the first sensor and the reference axial information, it can be determined that the movement of the two sides of the target end is inconsistent during the movement process; the axial information of the position of the first sensor and the reference axial information are used for calculation, so as to accurately determine the stroke difference of the movement of the two sides of the target end, thereby providing a basis for subsequent adjustment of the operating parameters.
[0112] In a possible implementation, before obtaining at least the first detection information of the first sensor based on the movement of the target end in the display screen, it also includes: responding to a trigger instruction of the movement of the display screen, determining the axial information corresponding to the first sensor, and using the axial information as reference axial information of the first sensor.
[0113] The reference axial information may be initial axial information of the first sensor before the display screen moves.
[0114] Among them, the trigger instruction can be generated based on a specific trigger gesture or trigger button, and this application does not limit the generation method of the trigger instruction.
[0115] After receiving a trigger instruction for display screen movement, axial information corresponding to the first sensor is obtained, and the axial information is used as reference axial information of the first sensor.
[0116] In one possible implementation, the display screen has only two states, stretched and non-stretched, and the trigger instruction is to trigger the display screen from the non-stretched state to the stretched state / from the stretched state to the non-stretched state. Then, upon receiving the trigger instruction, the axial information of the first sensor of the display screen in the non-stretched state is used as reference axial information.
[0117] In one possible implementation, the display screen has multiple stretching gears, and different stretching gears of the display screen correspond to different sizes. The trigger instruction triggers the display screen to move from one stretching gear to the next stretching gear. Because each stretching gear reaches the end position, it is necessary to ensure that the two sides of the target end are synchronized, ensuring that there is no travel difference on both sides of the target end each time the stretching is restarted to the next stretching gear. Therefore, the end position of the previous stretching gear (the starting position of the current stretching gear) corresponding to the axial information of the first sensor can be used as the reference axial information.
[0118] In one possible implementation, the display screen has multiple stretching gears, and different stretching gears of the display screen correspond to different sizes. Only when the display screen is in the initial position (when the size of the display screen is the smallest), the axial information corresponding to the first sensor is used as the reference axial information of the first sensor. When a trigger instruction is received, the axial information corresponding to the first sensor when the display screen is in the initial position is obtained as the reference axial information.
[0119] In one possible implementation, the display screen is controlled by an EC (Embedded Controller). Accordingly, after the reference axial information of the first sensor is determined, the reference axial information is stored in the storage space of the EC. Another possible implementation is that the display screen is controlled by a display control unit TCON, or other units of the electronic device may be used to control the display screen.
[0120] Accordingly, when the electronic device on which the display screen is set is turned off, even if the display screen has not moved to the position corresponding to the gear position / the position of the stretched state, the display screen is restored to the initial position based on the shutdown instruction to achieve the minimum size of the display screen, the EC is powered off, and the relevant information of the current display screen movement stored thereon is erased. When the electronic device is started, it receives a trigger instruction to trigger the display screen movement, and executes the process of determining the reference axial information of the first sensor again, and stores the reference axial information in the storage space of the EC.
[0121] Accordingly, when the electronic device is restarted, if the display screen has not moved to the position corresponding to the gear position / the position of the stretched state, the display screen maintains the current position. After the electronic device is restarted, since the EC is not powered off during the restart process, the target moving position and reference axial information and other movement-related information recorded in the storage space of the EC are not erased. Therefore, the display screen continues to move based on the target moving position and the reference axial information recorded in the EC storage space until the target moving position is reached.
[0122] In this embodiment, after receiving a trigger instruction for moving the display screen, the axial information corresponding to the first sensor is determined in response to the trigger instruction, and the axial information is used as the reference axial information of the first sensor, thereby realizing the process of determining the reference axial information during the movement of the display screen and ensuring the accuracy of determining the stroke difference.
[0123] Figure 6 The present application provides a flowchart of determining the travel difference between the two sides of the target end at least based on the first detection information, which may include steps 601 to 602. These steps are described in detail below.
[0124] 601. Determine a target axis according to second detection information obtained by a second sensor, the second sensor being disposed in a second body of the electronic device, the first body and the second body relatively rotating along a rotation axis, the second detection information comprising information of each axis of the second sensor in a three-dimensional space;
[0125] The electronic device including the display screen also has a second body, the first body provided with the first sensor and the second body are connected via a rotation axis, and the first body and the second body rotate relatively along the rotation axis.
[0126] Wherein, the target axis is parallel to the rotation axis.
[0127] As an example, the electronic device is a notebook computer, the first body is the AB surface provided with a display screen, and the second body is the CD surface.
[0128] Among them, the target end on the first body can move in the direction perpendicular to the rotation axis to change the size of the display screen. When the target end moves away from the rotation axis, the size of the display screen increases, and when the target end moves toward the rotation axis, the size of the display screen decreases.
[0129] In a possible implementation, a second sensor is disposed on the second body, and second detection information detected by the second sensor includes axial information of the second sensor on the XYZ axes in the three-dimensional space.
[0130] Among them, since the second sensor is arranged in the second body, the relative position relationship between the first body and the second body does not change during the movement of the display screen, so the second sensor does not move relative to the first body. The axial information of the second sensor in the three-dimensional space contained in the second detection information can be used as a reference, combined with the axial information of the position of the first sensor, to determine whether the movement of the two sides of the target end is synchronized.
[0131] Wherein, the target axial information of the second sensor is used as a reference to determine whether the axial information of the location of the first sensor meets the preset conditions with the target axial information, and to determine whether the movement of both sides of the target end is synchronized.
[0132] In a possible implementation, the preset condition may be that the gap between the axial information is smaller than a set value.
[0133] Among them, when the two sides of the target end move synchronously, the axial information of the XYZ axis of the first sensor in the three-dimensional space will not change. When the two sides of the target end move asynchronously, the axial information of the X axis and Y axis of the first sensor in the three-dimensional space will change. Correspondingly, in this embodiment, the target axial information can select the X axis of the second sensor in the three-dimensional space. In this embodiment, the target axial information selects the X axis of the second sensor in the three-dimensional space as an example for explanation.
[0134] 602. If the axial information of the location of the first sensor and the target axial information of the second sensor do not meet a preset condition, determine a travel difference of two sides of the target end.
[0135] In one possible implementation, since the two sides of the target end move asynchronously, the first sensor placed in the target end tilts as the two sides of the target end tilt, and its axial information in the three-dimensional space also deflects, forming an angle between its axial information and the target axial information.
[0136] As an example, the preset condition may be that the angle between the axial information at the location of the first sensor and the target axial information is very small, and an angle threshold may be used for quantification. If the angle is less than the angle threshold, it may be determined that the preset condition is met; otherwise, it may be determined that the preset condition is not met.
[0137] Among them, since the display screen moves in one direction, the size corresponding to the direction changes, and the corresponding size in the direction perpendicular to the moving direction is fixed. Therefore, in the actual process of determining the stroke difference, the size of the first body where the display screen is located can be used for calculation.
[0138] In a possible implementation, based on the difference between the axial information of the first sensor and the target axial information, combined with the setting position of the first sensor on the first body and the size of the first body, the travel difference of the two sides of the target end is calculated.
[0139] Figure 7 It is another schematic diagram of determining the stroke difference caused by the movement of the display screen provided by an embodiment of the present application. In the schematic diagram, the electronic device includes a first body 701 and a second body 702. The first body 701 is provided with a display screen and a first sensor 7011, and the second body is provided with a second sensor 7021. In the figure, black dots are used to represent the first sensor 7011 and the second sensor 7021. When the display screen moves from the starting position to the end position, the first sensor 7011 also moves accordingly. In the schematic diagram, since the display screen moves in the up-down direction, there will be up-down deviations on both sides of the target end. In the schematic diagram, the left side of the target end 7012 of the first body is lower than the right side. In the figure, the axial information of the position of the first sensor is represented by a thick line, and the axial information of the second sensor is represented by a thin line. The X-axial information of the position of the second sensor is used as a reference to determine whether the movement of the two sides of the target end is synchronized and the stroke difference.
[0140] Figure 8 is a comparison diagram of the axial information of the first sensor at the location provided by the embodiment of the present application and the axial information of the second sensor, Figure 7 The axial information of the first sensor at the location is compared with the axial information of the second sensor. The thick line represents the axial information (XYZ axis) of the first sensor, and the thin line represents the axial information (XYZ axis) of the second sensor in the three-dimensional space. The X-axis directions of the two correspond, and the Y-axis and Z-axis correspond to each other's Z-axis and Y-axis respectively.
[0141] by Figure 7 The process of determining the travel difference is explained by taking the display screen movement scenario in FIG.
[0142] The angle is determined based on the axial information of the first sensor position and the target axial direction; based on the distance between the first sensor position and the middle position of the target end, the trigonometric function formula is used to calculate the stroke difference between the first sensor position and the middle position of the target end.
[0143] Since the stroke difference is determined by a trigonometric formula in this embodiment, the X-axis angle can be determined, and the stroke difference can be obtained through simple calculation in combination with the distance between the position of the first sensor and the middle position of the target end.
[0144] The distance between the first sensor and the middle of the target end is d, and the angle between the target axis (X axis) and the X axis of the first sensor is α. The stroke difference h can also be determined using the above formula (1).
[0145] In this embodiment, the electronic device is provided with a first body and a second body that rotate relative to each other along a rotation axis, the first body is provided with a display screen and a first sensor, the second body is provided with a second sensor, and the target axis is determined based on second detection information obtained by the second sensor, the target axis is parallel to the rotation axis, and the second detection information includes each axial information of the second sensor in the three-dimensional space; if the axial information at the position of the first sensor and the target axial information of the second sensor do not meet the preset conditions, the stroke difference of the movement of the two sides of the target end is determined, based on the inconsistency between the axial information at the position of the first sensor and the target axial information of the second sensor, it can be determined that the movement of the two sides of the target end is inconsistent during the movement process, and the axial information at the position of the first sensor and the target axial information are used for calculation, so as to accurately determine the stroke difference of the movement of the two sides of the target end, thereby providing a basis for subsequent adjustment of the operating parameters.
[0146] Fig. 9 The present application provides a flowchart of determining the travel difference between the two sides of the target end at least based on the first detection information, which may include steps 901 to 902. These steps are described in detail below.
[0147] 901. Determine the motion state of the electronic device;
[0148] Among them, a structure for detecting the operating status of the electronic device may be pre-set in the electronic device.
[0149] In a possible implementation, a gravity sensor is provided in the second body of the electronic device, and the gravity sensor, as a second sensor, can detect the movement of the second body of the electronic device. Since the second body of the electronic device is used to support the first body during operation, the second body is generally placed on a supporting surface. If the position of the supporting surface is fixed and the second body does not move, the gravity sensor can be used to determine that the electronic device is in a stationary state. If the position of the supporting surface is not fixed, for example, when the user holds the electronic device and moves the position, the second body moves, and the gravity sensor can be used to determine that the electronic device is in a non-stationary state.
[0150] In a possible implementation, a gyroscope is disposed on the first body or the second body of the electronic device, and data of the gyroscope is obtained to determine whether the electronic device is in a stationary state or a non-stationary state according to the data of the gyroscope.
[0151] 902. Based on the fact that the motion state is a stationary state, determine a travel difference of two sides of the target end at least according to first detection information of the first sensor.
[0152] Among them, if it is determined that the motion state of the electronic device is a stationary state, when determining the stroke difference of the movement on both sides of the target end, the stroke difference of the movement on both sides of the target end can be determined only based on the first detection information of the first sensor, or the stroke difference of the movement on both sides of the target end can be determined based on the first detection information of the first sensor and other information.
[0153] The process of determining the travel difference between the two sides of the target end based only on the first detection information of the first sensor can refer to the aforementioned Figure 3 Explanation in Examples.
[0154] The second body in the electronic device may be provided with a second sensor, and the process of determining the travel difference between the two sides of the target end according to the first detection information of the first sensor and other information may refer to the aforementioned Figure 6 Explanation in Examples.
[0155] In a possible implementation, the method further includes:
[0156] Based on the fact that the motion state is a non-stationary state, the travel difference of the movement on both sides of the target end is determined according to the first detection information of the first sensor and the second detection information of the second sensor. The electronic device includes a first body and a second body. The first body and the second body rotate relative to each other along a rotation axis. The second sensor is arranged on the second body of the electronic device.
[0157] The structure of the electronic device is shown in the above Figure 7 The structure in .
[0158] If the motion state of the electronic device is a non-stationary state, the stroke difference on both sides of the target end can be determined by combining the second detection information of the second sensor provided on the second body and the first detection information.
[0159] Among them, since the second sensor is arranged in the second body, the relative position relationship between the first body and the second body does not change during the movement of the display screen, so the second sensor does not move relative to the first body. The axial information of the second sensor in the three-dimensional space contained in the second detection information can be used as a reference, combined with the axial information of the position of the first sensor, to determine whether the movement of the two sides of the target end is synchronized.
[0160] Wherein, the target axial information of the second sensor is used as a reference to determine whether the axial information of the location of the first sensor meets the preset conditions with the target axial information, and to determine whether the movement of both sides of the target end is synchronized.
[0161] The process of determining the travel difference between the two sides of the target end according to the first detection information of the first sensor and the second detection information of the second sensor can refer to the aforementioned Figure 6 Explanation in Examples.
[0162] In this embodiment, the motion state of the electronic device is determined; if the motion state is a stationary state, the travel difference of the movement of the two sides of the target end is determined based on at least the first detection information of the first sensor, thereby achieving that the travel difference of the movement of the two sides of the target end can be determined based on different motion states of the electronic device, and different methods can be used to determine the travel difference of the movement of the two sides of the target end for the stationary state, thereby achieving accurate determination of the travel difference of the movement of the two sides of the target end, providing a basis for subsequent adjustment of operating parameters.
[0163] Fig.10 It is a flowchart diagram of determining the travel difference of the two sides of the target end based on at least the first detection information provided by an embodiment of the present application, which may include steps 1001 to 1002, and these steps are described in detail below.
[0164] 1001. Determine an axial information gap between first detection information and third detection information, wherein the first detection information includes axial information of the first sensor in a three-dimensional space, and the third detection information includes axial information of the third sensor in a three-dimensional space, and the third sensor and the first sensor are arranged along a first direction at the target end, and the first direction is a direction perpendicular to a moving direction of the target end;
[0165] The first sensor and the third sensor are respectively arranged in the first body, and the first sensor and the third sensor are arranged along a first direction at the target end.
[0166] The first direction is a direction perpendicular to the moving direction of the target end, and a plane formed by the first direction and the moving direction of the target end is parallel to the plane where the display screen is located.
[0167] Among them, after the first sensor and the third sensor are arranged in the first body as hardware, the relative position relationship between the two is fixed, so the first sensor and the third sensor can form a level structure.
[0168] Among them, when the two sides of the target end move synchronously, the relationship between the first detection information of the first sensor and the third detection information of the third sensor does not change; when the two sides of the target end move asynchronously, the relationship between the first detection information of the first sensor and the third detection information of the third sensor changes.
[0169] Among them, the first sensor and the third sensor are used as a level structure to determine the travel difference between the two sides of the target end, and the state of the level structure during the movement process is determined. The state is specifically reflected by the first coordinate difference between the first sensor and the third sensor in the moving direction of the target end.
[0170] Fig.11 This is another schematic diagram of determining the travel difference caused by the movement of the display screen provided by an embodiment of the present application. In this schematic diagram, the first body is provided with a first sensor 1101 and a third sensor 1102. The first sensor 1101 and the third sensor 1102 are arranged along the target end 1103 of the first body, and the two form a level. Fig.11 It is shown in the figure that during the movement of the target end, if both sides move, the XYZ axis angles of the first sensor and the third sensor are consistent, and if both sides move asynchronously, the XYZ axis angles of the first sensor and the third sensor are inconsistent. In this diagram, the target end moves in the up and down direction.
[0171] Fig.12 is a comparison diagram of the axial information of the first sensor location and the axial information of the third sensor location provided in the embodiment of the present application, which is based on Fig.11 The axial information of the first sensor at the location is compared with the axial information of the third sensor at the location. When the two sides of the target end move asynchronously, the axial information of the first sensor 1201 and the third sensor 1202 are different. The thin solid line represents the coordinate axis of the first sensor in the three-dimensional space, and the thick solid line represents the coordinate axis of the third sensor in the three-dimensional space. The angle between the two X axes is used as the axial information gap between the first sensor and the third sensor.
[0172] If the axial information gap is 0 or less than a small threshold, it can be determined that the two sides of the target end move synchronously, otherwise, the two sides of the target end move asynchronously.
[0173] 1002. Based on the axial information gap, determine the travel difference of the movement of two sides of the target end.
[0174] If the first coordinate difference is consistent with the initial coordinate difference or the difference is smaller than a small threshold, it can be determined that the two sides of the target end move synchronously; otherwise, the two sides of the target end move asynchronously.
[0175] Among them, based on the asynchronous movement of the two sides of the target end, the axial direction difference corresponding to the asynchronous movement can be used, combined with the setting positions of the first sensor and the third sensor, and a trigonometric function formula can be used to determine the travel difference of the two sides of the target end.
[0176] For example, it is determined that the axial direction corresponding to the asynchronism is the X-axis direction, and the angle in the X-axis direction is determined. In combination with the distance between the first sensor and the third sensor, the stroke difference can be obtained through simple calculation.
[0177] The distance between the first sensor and the third sensor is s, the angle between the X-axis of the first sensor and the X-axis of the third sensor is β, and the stroke difference h can be determined by the following formula (2):
[0178] (2)
[0179] In this embodiment, a third sensor is further provided in the first body, and the third sensor and the first sensor are arranged along the first direction at the target end, and the first direction is a direction perpendicular to the moving direction of the target end; the axial information difference between the first detection information and the third detection information is determined, the first detection information includes each axial information of the first sensor in the three-dimensional space, and the third detection information includes each axial information of the third sensor in the three-dimensional space, and based on the axial information difference, the travel difference of the movement of the two sides of the target end is determined. By providing two sensors on the first body, the two sensors can form a level, and the travel difference of the movement of the two sides of the target end can be accurately determined through the difference in the axial direction of the two sensors in the moving direction of the target, providing a basis for subsequent adjustment of the operating parameters.
[0180] Fig.13 The embodiment of the present application provides a flow chart of determining the travel difference of the moving two sides of the target end based on the fact that the running state is a stationary state, at least according to the first detection information, and may include steps 1301 to 1302. These steps are described in detail below.
[0181] 1301. Based on the fact that the running state is a stationary state, based on the current image information and the initial image information acquired by the first sensor, a deflection angle of the acquired object image in the image information is obtained by analysis, wherein the initial image information is an image acquired before the display screen moves;
[0182] The first sensor is an image acquisition device, which can acquire images by acquiring objects within an image acquisition range.
[0183] In a specific implementation, the first sensor is disposed at a position close to one side of the target end of the first body, and is not disposed at a central position of the target end, so as to accurately sense the asynchrony occurring during the movement of both sides of the target end.
[0184] The fixed reference object of the acquisition object has a fixed position and is used as a reference object to determine whether there is a problem of asynchronous movement of the two sides of the target end.
[0185] Wherein, the two sides of the target end move synchronously, and the first sensor moves only in the direction of the target end when following the movement of the target end. Accordingly, the image information acquired by the first sensor only changes in size or position. If the two sides of the target end move asynchronously, the first sensor moves not only in the direction of the target end when following the movement of the target end, but also deflects. Accordingly, the image information acquired by the first sensor not only changes in size or position, but also changes in size or position.
[0186] Among them, the image information collected by the first sensor is analyzed to determine the deflection angle of the image of the collected object. The method of determining the deflection angle can be to control the initial image information collected by the first sensor before the target end moves, and compare the image of the collected object in the initial image information with the image of the collected object in the currently collected image to determine the deflection angle of the collected object in the two.
[0187] Among them, if the image deflection angle of the captured object is very small, it can be ignored, and it is determined that the two sides of the target end move synchronously. If the deflection angle is large and cannot be ignored, it is determined that the two sides of the target end move asynchronously.
[0188] 1302. If the deflection angle is greater than a preset angle threshold, determine the travel difference of the two sides of the target end according to the deflection angle.
[0189] Among them, the preset angle threshold is used to determine whether the two ends of the target end are out of sync during movement. If the deflection angle is greater than the preset angle, the two ends of the target end are out of sync during movement, and a travel difference is required for the two sides of the target end to move.
[0190] Fig.14 This is another schematic diagram for determining the travel difference caused by the movement of the display screen provided by an embodiment of the present application. In this scenario, a display screen and a first sensor 1401 are provided on the first body. The first sensor is provided at the left side of the target end of the first body. When the display screen moves from the starting position to the ending position, the first sensor 1401 also moves accordingly. In this schematic diagram, since the display screen moves in the up-down direction, there will be up-down deviations on both sides of the target end. In this schematic diagram, the left side of the target end 1402 of the first body is higher than the right side, and the image of the target object in the image captured by the first sensor is also deflected. The deflection angle of the target object image in the image is consistent with the deflection angle of the first sensor. The dotted line in the figure indicates the image acquisition direction of the first sensor when the two sides of the target end are synchronized, and the dashed line indicates the image acquisition direction of the first sensor when the two sides of the target end are not synchronized.
[0191] Among them, the deflection angle of the captured object image in the image is consistent with the deflection angle of the first sensor. The deflection angle and the distance between the setting position of the first sensor on the first body and the middle position of the first body are used to calculate the travel difference of the two sides of the target end using trigonometric functions.
[0192] Wherein, the distance between the position of the first sensor and the middle position of the first body is d, the deflection angle of the first sensor is γ, and the stroke difference h can be determined by the following formula (3):
[0193] (3)
[0194] In this embodiment, based on the current image information and initial image information acquired by the first sensor, the deflection angle of the image of the acquired object in the image information is analyzed and acquired, and the initial image information is an image acquired just before the display screen moves; if the deflection angle is greater than a preset angle threshold, the travel difference of the movement of the two sides of the target end is determined according to the deflection angle, and by comparing the current image information acquired by the first sensor during the movement of the display screen and the initial image information acquired when the display screen is not moving, it is determined that the image of the acquired object in the image information is deflected; if the deflection angle is greater than the preset angle threshold, it can be determined that an asynchronism problem occurs during the movement of the two sides of the target end, and the travel difference of the movement of the two sides of the target end is determined, and by analyzing the acquired image information, the travel difference of the movement of the two sides of the target end can be accurately determined, providing a basis for subsequent adjustment of the operating parameters.
[0195] Fig.15 It is a flow chart of adjusting the operating parameters of the target moving structure based on the stroke difference to control the consistent movement of both sides of the target end provided by an embodiment of the present application, which may include steps 1501 to 1503, and these steps are described in detail below.
[0196] 1501. Obtain operating parameters of at least two mobile structures corresponding to the target end;
[0197] The target end is driven to move by at least two moving structures, and the operating parameters of each moving structure are obtained respectively.
[0198] The operating parameters may include the moving step length and frequency of the moving structure.
[0199] 1502. Generate a control instruction according to the operating parameters of the at least two moving structures and the stroke difference;
[0200] If the stroke difference of the moving structure is known, the stroke difference is distributed to the multiple moving structures so that the multiple moving structures can eliminate the stroke difference in subsequent movements.
[0201] According to the operating parameters of each moving structure and the stroke difference, the partial stroke difference that needs to be eliminated by each moving structure is determined, and a control instruction corresponding to the partial stroke difference is generated.
[0202] The movement parameters of each moving structure during the adjustment process can be determined in combination with the position of the moving structure, the operating parameters and the stroke difference, and then corresponding control instructions can be generated based on the movement parameters of each moving structure during the adjustment process.
[0203] As an example, the target end corresponds to two mobile structures, and the two mobile structures are symmetrically arranged, and one of the two mobile structures can be controlled to stop running and the other to continue running. Accordingly, in the generated control instructions, a stop instruction is generated for the mobile structure that needs to stop running, and a control instruction for continuing running is generated for the mobile structure that continues to run. When the stroke difference is eliminated, a running control instruction is sent to the stopped mobile structure to control the two mobile structures to run simultaneously.
[0204] As an example, the target end corresponds to two mobile structures, and the two mobile structures are symmetrically arranged. The two mobile structures can also be controlled to run at different speeds. The control instructions generated for the mobile unit that needs to move at a faster speed instruct the mobile unit to run at a faster speed; the control instructions generated for the mobile unit that needs to move at a slower speed instruct the mobile unit to run at a slower speed. The control instructions may carry information related to the control running speed. After eliminating the travel difference, a control instruction is generated, and the control instructions respectively control the two mobile structures to run at the same speed.
[0205] As an example, the target end corresponds to three moving structures, and the three moving structures are symmetrically arranged. One of the moving structures at both ends can be controlled to stop running, and the other can continue to run at a faster speed, and the middle moving structure can run at a slower speed. After the stroke difference is eliminated, they can run at the same speed at the same time.
[0206] 1503. Send the control instruction to the target mobile structure, where the control instruction is used to control at least one of the at least two mobile structures to adjust operating parameters, so as to control the movement of both sides of the target end to be consistent.
[0207] The generated control instructions are sent to the corresponding target mobile structures respectively, so that the target mobile structures adjust their operating parameters based on the control instructions.
[0208] In a possible implementation, based on the control instruction, the mobile structure adjusts its moving step size / frequency, etc., and the present application does not limit the specific content of the adjusted operating parameters.
[0209] The target mobile structure is part or all of the at least two mobile structures.
[0210] In this embodiment, the operating parameters of at least two mobile structures corresponding to the target end are obtained; a control instruction is generated based on the operating parameters and the stroke difference of the at least two mobile structures; the control instruction is sent to the target mobile structure, and the control instruction is used to control at least one of the at least two mobile structures to adjust the operating parameters to control the movement of both sides of the target end to be consistent. In combination with the operating parameters of the mobile structure and the stroke difference of the movement of both sides of the target end, the operating parameters of the target mobile structure to be adjusted are determined, and the corresponding control instruction is generated to control the target mobile structure to adjust its operating parameters. By adjusting the movement of the target mobile structure, the purpose of eliminating the stroke difference is achieved.
[0211] A method for controlling movement of a movable display screen provided in an embodiment of the present application is introduced above. An electronic device for executing the method for controlling movement of a movable display screen will be introduced below.
[0212] Fig.16 Schematic diagram of a structure of an electronic device provided by an embodiment of the present application. Fig.16 As shown, the electronic device includes:
[0213] A movable display screen 1601 is located on a first body 1602 of the electronic device;
[0214] A first sensor 1603, a sensor is disposed on a first body of the display screen, and the first sensor has first detection information;
[0215] The controller 1604 determines a travel difference between two sides of the target according to the first detection information of the first sensor, and determines an adjustment operation parameter of the target moving structure based on the travel difference;
[0216] The mobile structure 1605 controls the movement of both sides of the target to be consistent according to the adjustment operation parameters of the target mobile structure, and the target mobile structure is at least one of the at least two mobile structures used to drive the target end to move.
[0217] The sensor may be, but is not limited to, any one of a TOF (Time-of-Flight) sensor, a G-Sensor (gravity sensor), a Hall sensor, a gyroscope, a direction sensor, an image acquisition sensor, an infrared sensor, a laser or a radar.
[0218] Among them, the controller can be any control unit of an electronic device, such as a CPU (central processing unit), an AI (Artificial Intelligence) dedicated chip aichip, an EC (Embedded Controller), etc. The specific form of the controller is not limited in this application.
[0219] In a possible implementation, the controller includes a stroke difference determination module and a parameter determination module;
[0220] The travel difference determination module is used to determine the travel difference of the movement of two sides of the target according to the first detection information of the first sensor;
[0221] The parameter determination module is used to determine the adjustment operation parameters of the target moving structure based on the stroke difference.
[0222] In a possible implementation, the travel difference determination module includes:
[0223] A first determining unit, configured to determine axial information of a location of the first sensor according to first detection information, wherein the first detection information includes axial information of the first sensor in a three-dimensional space;
[0224] The first stroke difference unit is used to determine the stroke difference of movement of two sides of the target end based on the fact that the axial information of the position where the first sensor is located and the reference axial information of the first sensor do not meet the preset conditions.
[0225] In a possible implementation, the travel difference determination module further includes:
[0226] The second determining unit is used to determine the axial information corresponding to the first sensor in response to the trigger instruction of the display screen movement, and use the axial information as the reference axial information of the first sensor.
[0227] In a possible implementation, the travel difference determination module includes:
[0228] a third determining unit, configured to determine a target axis according to second detection information obtained by a second sensor, the second sensor being disposed on a second body of the electronic device, the first body and the second body relatively rotating along a rotation axis, the target axis being parallel to the rotation axis, and the second detection information comprising information of each axis of the second sensor in a three-dimensional space;
[0229] The second stroke difference unit is used to determine the stroke difference of movement of two sides of the target end if the axial information of the position of the first sensor and the target axial information of the second sensor do not meet the preset conditions.
[0230] In a possible implementation, the travel difference determination module includes:
[0231] a fourth determining unit, configured to determine a motion state of the electronic device;
[0232] The third stroke difference unit is used to determine the stroke difference of movement of two sides of the target end based on the fact that the motion state is a static state and at least according to the first detection information of the first sensor.
[0233] In a possible implementation, the method further includes:
[0234] The fourth stroke difference unit is used to determine the stroke difference of movement on both sides of the target end based on the fact that the motion state is a non-stationary state and according to the first detection information of the first sensor and the second detection information of the second sensor. The electronic device includes a first body and a second body, and the first body and the second body rotate relative to each other along a rotation axis. The second sensor is arranged on the second body of the electronic device.
[0235] In a possible implementation, the travel difference determination module includes:
[0236] a fifth determining unit, which determines the difference in axial information between first detection information and third detection information, wherein the first detection information includes each axial information of the first sensor in the three-dimensional space, and the third detection information includes each axial information of the third sensor in the three-dimensional space, and the third sensor and the first sensor are arranged along a first direction at the target end, and the first direction is a direction perpendicular to the moving direction of the target end;
[0237] The fifth stroke difference unit determines the stroke difference of movement of two sides of the target end based on the axial information difference.
[0238] In a possible implementation, based on the fact that the running state is a stationary state, the travel difference determination module includes:
[0239] an analyzing unit, which analyzes and obtains a deflection angle of an image of a captured object in the image information based on current image information and initial image information captured by the first sensor, wherein the initial image information is an image captured before the display screen moves;
[0240] The sixth stroke difference unit determines the stroke difference of movement of two sides of the target end according to the deflection angle if the deflection angle is greater than a preset angle threshold.
[0241] In a possible implementation, the parameter determination module includes:
[0242] An obtaining unit, used for obtaining operating parameters of at least two mobile structures corresponding to the target end;
[0243] A generating unit, configured to generate a control instruction according to the operating parameters of the at least two moving structures and the stroke difference;
[0244] The sending unit is used to send the control instruction to the target mobile structure, and the control instruction is used to control at least one of the at least two mobile structures to adjust the operating parameters to control the movement of both sides of the target end to be consistent.
[0245] It should be noted that for the functional explanation of each structure in a mobile control device with a movable display screen provided in an embodiment of the present application, please refer to the explanation in the aforementioned method embodiment, and it will not be repeated in this embodiment.
[0246] In this embodiment, based on the movement of the display screen, at least first detection information of a first sensor is obtained, and the first sensor is arranged at the target end of the first body where the display screen is located; based on at least the first detection information, the stroke difference of movement on both sides of the target end is determined; based on the stroke difference, the target moving structure is controlled to adjust the operating parameters to control the movement of both sides of the target end to be consistent, and the target moving structure is at least one of the at least two moving structures used to drive the movement of the target end, so that during the movement of the display screen, the stroke difference on both sides of the target end of the first body where the display screen is located is detected, and the target moving structure is controlled to adjust the operating parameters according to the stroke difference to eliminate the stroke difference, thereby ensuring the synchronization of movement of both sides of the display screen.
[0247] The present application also provides an electronic device in an embodiment. Fig.17 As shown, it shows another structural schematic diagram of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig.17 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0248] like Fig.17 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0249] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a memory card, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig.17 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0250] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any method for controlling the movement of a movable display screen provided in the embodiment of the present application.
[0251] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any method for controlling the movement of a movable display screen provided in an embodiment of the present application.
[0252] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0253] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0254] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0255] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A method for controlling movement of a movable display screen, comprising: Based on the movement of the display screen, at least first detection information of a first sensor is obtained, where the first sensor is disposed at a target end of the first body where the display screen is located; Determine the travel difference of the two sides of the target end at least based on the first detection information; Based on the stroke difference, the target moving structure is controlled to adjust the operating parameters to control the movement of both sides of the target end to be consistent. The target moving structure is at least one of the at least two moving structures used to drive the target end to move.
2. The method for controlling the movement of a movable display screen according to claim 1, wherein the step of determining the travel difference between the two sides of the target end at least based on the first detection information comprises: Determine axial information of the position of the first sensor according to first detection information, wherein the first detection information includes each axial information of the first sensor in a three-dimensional space; Based on the fact that the axial information of the position of the first sensor and the reference axial information of the first sensor do not meet the preset condition, the travel difference of the movement of the two sides of the target end is determined.
3. The method for controlling movement of a movable display screen according to claim 2, wherein before obtaining the first detection information of the first sensor based on the movement of the target end in the display screen, the method further comprises: In response to a trigger instruction for display screen movement, axial information corresponding to the first sensor is determined, and the axial information is used as reference axial information of the first sensor.
4. The method for controlling the movement of a movable display screen according to claim 1, wherein the step of determining the travel difference between the two sides of the target end at least based on the first detection information comprises: Determine the target axis according to second detection information obtained by a second sensor, the second sensor is disposed on a second body of the electronic device, the first body and the second body rotate relative to each other along the rotation axis, and the second detection information includes information of each axis of the second sensor in a three-dimensional space; If the axial information of the position of the first sensor and the target axial information of the second sensor do not meet the preset conditions, the travel difference of the movement of the two sides of the target end is determined.
5. The method for controlling the movement of a movable display screen according to claim 1, determining the travel difference of the movement of two sides of the target end at least based on the first detection information, comprising: determining the motion state of the electronic device; Based on the fact that the motion state is a stationary state, the travel difference of the movement of two sides of the target end is determined at least according to the first detection information of the first sensor.
6. The method for controlling movement of a movable display screen according to claim 5, further comprising: Based on the fact that the motion state is a non-stationary state, the travel difference of the movement on both sides of the target end is determined according to the first detection information of the first sensor and the second detection information of the second sensor. The electronic device includes a first body and a second body. The first body and the second body rotate relative to each other along a rotation axis. The second sensor is arranged on the second body of the electronic device.
7. The method for controlling the movement of a movable display screen according to claim 1, wherein the step of determining the travel difference between two sides of the target end at least based on the first detection information comprises: Determine the difference in axial information between first detection information and third detection information, wherein the first detection information includes axial information of the first sensor in a three-dimensional space, and the third detection information includes axial information of the third sensor in a three-dimensional space, and the third sensor and the first sensor are arranged along a first direction at the target end, and the first direction is a direction perpendicular to a moving direction of the target end; Based on the difference in axial information, the travel difference of the two sides of the target end is determined.
8. The method for controlling movement of a movable display screen according to claim 1, wherein based on the fact that the running state is a stationary state, determining the travel difference between the two sides of the target end at least according to the first detection information comprises: Based on the current image information and initial image information acquired by the first sensor, analyzing and acquiring the deflection angle of the acquired object image in the image information, wherein the initial image information is an image acquired at a moment before the display screen moves; If the deflection angle is greater than a preset angle threshold, the travel difference of the two sides of the target end is determined according to the deflection angle.
9. The method for controlling the movement of a movable display screen according to claim 1, wherein the step of controlling the target moving structure to adjust the operating parameters based on the travel difference to control the movement of both sides of the target end to be consistent comprises: Obtaining operating parameters of at least two mobile structures corresponding to the target end; generating a control instruction according to the operating parameters of the at least two moving structures and the stroke difference; The control instruction is sent to the target mobile structure, and the control instruction is used to control at least one of the at least two mobile structures to adjust the operating parameters so as to control the movement of both sides of the target end to be consistent.
10. An electronic device, comprising: A movable display screen is located on the first body of the electronic device; A first sensor, the sensor is arranged on a first body of the display screen, and the first sensor has first detection information; A controller, which determines a travel difference between two sides of the target according to first detection information of the first sensor, and determines an adjustment operation parameter of the target moving structure based on the travel difference; The mobile structure controls the movement of both sides of the target in unison according to the adjustment operation parameters of the target mobile structure, and the target mobile structure is at least one of the at least two mobile structures used to drive the target end to move.