Display control method and electronic device

CN122902847APending Publication Date: 2026-10-13LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610968272.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-30
Publication Date
2026-10-13

AI Technical Summary

Benefits of technology

[0006]应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本申请的技术方案。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122902847A_ABST
    Figure CN122902847A_ABST
Patent Text Reader

Abstract

The application discloses a display control method and an electronic device, wherein the display control method comprises: obtaining, in a first time period, a plurality of first detection values of a first detection component in a first direction in the electronic device and a plurality of first distances between the electronic device and a target object detected by a second detection component; the first direction represents a direction perpendicular to a plane on which a display screen of the electronic device is located; determining motion state information of the target object according to the plurality of first detection values and the plurality of first distances; and determining a display state of the display screen of the electronic device according to the motion state information of the target object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to, but is not limited to, the field of computer technology, and in particular to a display control method and an electronic device. Background Technology

[0002] Currently, to improve the convenience of using electronic devices, sensors are often used to detect the presence of a user, thereby automatically controlling the on / off state of the electronic device's display screen. For example, when a nearby target is detected, it is determined that a user is approaching, and the display screen is turned on; otherwise, the display screen is turned off. Therefore, accurately determining whether a user is approaching is a crucial prerequisite for determining when to turn the display screen on and off. Summary of the Invention

[0003] In view of this, this application provides at least one display control method and electronic device.

[0004] The technical solution of this application is implemented as follows: On the one hand, this application provides a display control method, including: During a first time period, multiple first detection values ​​of the first detection component in the electronic device in a first direction are acquired, and multiple first distances between the electronic device and the target object are detected by the second detection component; the first direction represents the direction perpendicular to the plane where the display screen of the electronic device is located. Based on multiple first detection values ​​and multiple first distances, the motion state information of the target object is determined; Based on the motion state information of the target object, determine the display state of the electronic device's screen.

[0005] On the other hand, this application provides an electronic device, including: a first detection component, a second detection component, a display screen, and a processor; wherein, A first detection component is configured to detect multiple first detection values ​​in a first direction within a first time period; the first direction represents a direction perpendicular to the plane where the display screen of the electronic device is located. The second detection component is used to detect multiple first distances between the electronic device and the target object within a first time period; The processor is used to determine the motion state information of the target object based on multiple first detection values ​​and multiple first distances; and to determine the display state of the display screen based on the motion state information of the target object.

[0006] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of this application. Attached Figure Description

[0007] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.

[0008] Figure 1 A schematic diagram illustrating the implementation process of a display control method provided in this application; Figure 2 A schematic diagram illustrating the use of a first detection component and a second detection component to perform detection in one embodiment provided in this application; Figure 3 A schematic diagram illustrating the use of a first detection component and a second detection component to perform detection in one embodiment provided in this application; Figure 4 A schematic diagram of the second and third directions in one embodiment provided in this application; Figure 5 A schematic diagram illustrating the implementation process of one embodiment provided in this application; Figure 6 A schematic diagram of an electronic device in one embodiment provided in this application; Figure 7 A schematic diagram of an electronic device in one embodiment provided in this application; Figure 8 A schematic diagram of an electronic device in one embodiment provided in this application; Figure 9 This is a schematic diagram of the hardware entity of an electronic device provided in this application. Detailed Implementation

[0009] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application are further described in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0010] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0011] The terms “first / second / third” are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that “first / second / third” may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0012] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used herein is for descriptive purposes only and is not intended to be limiting of this application.

[0013] In related technologies, time-of-flight (TOF) sensors are often used to detect the distance between the device and the user in order to determine whether a user is approaching the electronic device. When a nearby target is detected, it is determined that a user is approaching and the display screen is turned on; otherwise, the display screen is turned off.

[0014] The solution performs well in static scenarios. However, in scenarios where the user is holding and moving the electronic device (e.g., picking it up from a table and looking at it while walking, or adjusting the viewing angle or moving the device), the distance data collected by the TOF sensor fluctuates drastically due to the device's own movement. This makes it difficult for the device to distinguish whether such fluctuations are caused by the device's own movement or by the user's appearance or departure, leading to misjudgments and frequent false triggering of the screen. This not only increases power consumption but also causes screen flicker, severely impacting the user's interactive experience.

[0015] Therefore, how to accurately distinguish between the movement of the device itself and the movement of external objects, and avoid accidental screen activation caused by hand movement, is a technical problem that urgently needs to be solved in this field.

[0016] Based on this, this application provides a display control method: First, within a first time period, multiple first detection values ​​from a first detection component in an electronic device in a first direction, and multiple first distances between the electronic device and a target object detected by a second detection component are acquired, wherein the first direction represents a direction perpendicular to the plane where the display screen of the electronic device is located; then, based on the multiple first detection values ​​and multiple first distances, the motion state information of the target object is determined; finally, based on the motion state information of the target object, the display state of the electronic device's display screen is determined. In this way, multiple first detection values ​​collected simultaneously within a time period are used to compensate for multiple first distances to obtain the motion state information of the target object, thereby accurately distinguishing between "device self-motion" and "target object motion," thus avoiding frequent false triggering of screen lighting or causing screen flicker, improving the stability and response accuracy of the display screen, significantly enhancing the user's visual interaction experience, and improving the energy efficiency of the electronic device.

[0017] The technical solutions in this application will now be clearly and completely described in conjunction with the accompanying drawings.

[0018] Figure 1 This application provides a schematic diagram of the implementation process of a display control method, as shown below. Figure 1As shown, the method includes the following steps S11 to S13: Step S11: During a first time period, acquire multiple first detection values ​​of the first detection component in the electronic device in a first direction, and multiple first distances between the electronic device and the target object detected by the second detection component; the first direction represents the direction perpendicular to the plane where the display screen of the electronic device is located.

[0019] Here, electronic device can be any type of mobile device. For example, electronic device can be a laptop, tablet, mobile device (e.g., mobile phone, portable music player, personal digital assistant, dedicated messaging device, portable gaming device), and other types of terminals.

[0020] The first time period can be a preset time window (e.g., 5 seconds or 10 seconds). Within this first time period, the detection values ​​of the detection components in the electronic device are continuously acquired.

[0021] The first detection component refers to a component in an electronic device used to detect motion information of the electronic device in a first direction. In some embodiments, the first detection component may be an inertial measurement unit (IMU), such as a three-axis accelerometer, a six-axis IMU, or a nine-axis IMU.

[0022] The first direction refers to the direction perpendicular to the plane where the electronic device's display screen is located; that is, the depth direction corresponding to the electronic device's display screen. For example... Figure 2 As shown, the Z-axis direction represented by the dashed line 210 is the first direction, which is perpendicular to the plane where the display screen of the electronic device 220 is located.

[0023] In this way, within the first time period, multiple first detection values ​​are continuously collected by the first detection component, and motion state analysis is performed based on these multiple first detection values.

[0024] In some implementations, the first detection value is a detection value related to the motion state of the electronic device itself. In some implementations, the first detection value may refer to the distance the electronic device moves in a first direction, a first velocity, a first acceleration, etc.

[0025] The second detection component refers to a detection component in an electronic device used to detect the distance between the electronic device and a target object. In some embodiments, the second detection component may be a TOF sensor, an infrared sensor, or an image sensor, etc.

[0026] Here, the target object can be any type of object. For example, the target object can be a human object (i.e., a user) or a non-human object (e.g., a wall, a table, a floor, etc.).

[0027] In this way, within the first time period, multiple first distances between the electronic device and the target object are continuously acquired by the second detection component, and the motion state of the target object is analyzed based on these multiple first distances. Figure 2 As shown, a TOF sensor (not shown) mounted on an electronic device 220 emits a laser (e.g., invisible infrared light) toward a target object 230 and receives the reflected light, thereby calculating a first distance between the electronic device 220 and the target object 230 based on the emitted laser and the reflected light.

[0028] In some implementations, based on a timed task or interrupt triggering mechanism, multiple first detection values ​​collected by the first detection component and multiple first distances collected by the second detection component can be periodically read within a first time period to form two data sequences. For example, if data is collected every 10 milliseconds, for a total of 500 points, then 500 first detection values ​​and 500 first distances will be obtained.

[0029] Step S12: Determine the motion state information of the target object based on the plurality of first detection values ​​and the plurality of first distances.

[0030] Here, motion state information can be any type of motion information. In some implementations, motion state information may include whether motion is occurring, motion speed, motion distance, or motion direction, etc.

[0031] Since the multiple first detection values ​​are detection values ​​related to the motion state of the electronic device in the first direction, and the multiple first distances are the distances between the electronic device and the target object, the multiple first detection values ​​can be used to compensate for the multiple first distances in order to determine the motion state information of the target object in the first time period.

[0032] For example, if the first detection value represents the movement distance of the electronic device in the first direction, the components of the multiple first distances in the first direction can be compensated based on the multiple first detection values, thereby determining the movement distance of the target object in the first direction.

[0033] For example, if the first detection value represents the speed of movement of the electronic device in the first direction, and the speed of movement of the target object relative to the electronic device in the first direction can be determined based on multiple first detection values, the speed of movement of the target object relative to the electronic device in the first direction can be compensated based on multiple first detection values ​​to determine the speed of movement of the target object in the first direction.

[0034] Step S13: Determine the display state of the electronic device's screen based on the motion state information of the target object.

[0035] Here, after determining the motion state information of the target object, the display state of the screen can be dynamically determined based on the motion state of the target object.

[0036] In some implementations, the display screen can be any display screen in the electronic device. In some implementations, the electronic device is a single-screen device with only one display screen. In some implementations, when the electronic device is a multi-screen device including multiple display screens (e.g., a foldable screen device, a dual-screen device, a rollable screen device, etc.), the display screen can be any one or more display screens in the electronic device.

[0037] In some implementations, the display state of the screen can be any type of display state. In some implementations, the display state of the screen can refer to whether the screen is on or off, different brightness levels of the screen, the type of content displayed on the screen, or the size of the content displayed on the screen, etc.

[0038] For example, when the target object is in motion, the display screen is determined to be on; when the target object is stationary, the display screen is determined to be off. Another example is that when the target object is in motion, the display screen prioritizes displaying image content; when the target object is stationary, the display screen prioritizes displaying text content. Yet another example is that as the target object moves away from the electronic device, the display screen brightness is gradually increased, or the displayed content is gradually enlarged; as the target object moves closer to the electronic device, the display screen brightness is gradually decreased, or the displayed content is gradually reduced.

[0039] The display control method provided in this application firstly acquires multiple first detection values ​​in a first direction from a first detection component in an electronic device, and multiple first distances between the electronic device and the target object detected by a second detection component, within a first time period. The first direction represents a direction perpendicular to the plane where the display screen of the electronic device is located. Then, based on the multiple first detection values ​​and multiple first distances, the motion state information of the target object is determined. Finally, based on the motion state information of the target object, the display state of the electronic device's screen is determined. In this way, by using multiple first detection values ​​collected simultaneously to compensate for multiple first distances, the motion state information of the target object can be obtained. This allows for accurate differentiation between "device self-motion" and "target object motion," thereby avoiding frequent false triggering of screen illumination or causing screen flicker, improving the stability and responsiveness of the display screen, significantly enhancing the user's visual interaction experience, and improving the energy efficiency of the electronic device.

[0040] In some implementations, determining the motion state information of the target object based on the plurality of first detection values ​​and the plurality of first distances, i.e., step S12 above, can be implemented as steps S121 to S124: Step S121: Determine the first moving distance of the electronic device within the first time period based on the plurality of first detection values.

[0041] Here, when multiple first detection values ​​characterize the motion state information of the electronic device itself, the first moving distance of the electronic device in the first time period and in the first direction can be determined based on the multiple first detection values.

[0042] In some implementations, when the first detection value is the distance the electronic device moves in the first direction, the sum of multiple first detection values ​​can be used as the first moving distance.

[0043] In some implementations, when the first detected value is the speed of the electronic device in a first direction, the first moving distance can be determined based on multiple first detected values ​​and corresponding time information. For example, the multiple first detected values ​​can be integrated over time to determine the first moving distance.

[0044] In some implementations, when the first detected value is the first acceleration of the electronic device in the first direction, the first acceleration can be integrated twice, and the integration result can be used as the first moving distance. For example, the first moving distance can be calculated using the following formula (1). D (First): (First) = ∫(∫ ( )· )· (1); Where a(t) represents the first detected value, i.e., the first acceleration; t represents the time information corresponding to the first acceleration.

[0045] Thus, through the above calculations, the first distance traveled by the electronic device within the first time period can be obtained.

[0046] Step S122: Based on the plurality of first distances, determine the second moving distance of the target object relative to the electronic device within the first time period.

[0047] Here, since the multiple first distances are the distance data sequences from the target object to the electronic device continuously collected by the second detection component within the first time period, reflecting the positional changes of the target object perceived by the second detection component, the second moving distance represents the relative displacement of the target object in the coordinate system of the second detection component, that is, the moving distance of the target object relative to the electronic device.

[0048] In some implementations, the difference between multiple first distances can be used as the second movement distance of the target object relative to the electronic device within a first time period. For example, the second movement distance can be determined using the following formula (2). D (Second): (Second) = ( 0) ( 1) (2); Where D(t0) represents the last first distance collected in the first time period; D(t-1) represents the first distance collected in the first time period; t represents the duration of the first time period.

[0049] For example, if the second detection component is a TOF sensor, and the distance measured by the TOF at time t-1 is 50cm and the distance measured at time t0 is 47cm, then the second movement distance of the target object relative to the electronic device is -3cm, which means that the target object has moved 3cm to the right from the TOF perspective; where the leftward movement is defined as the forward movement.

[0050] Step S123: Determine the third movement distance of the target object within the first time period based on the first movement distance and the second movement distance.

[0051] Here, after determining the first moving distance (i.e., the moving distance of the electronic device itself) and the second moving distance (i.e., the moving distance of the target object relative to the electronic device), the first moving distance can be used to compensate for the second moving distance, and the influence of the first moving distance can be removed from the second moving distance, thereby determining the physical moving distance of the target object in the first time period (or the moving distance of the target object determined with the Earth as a reference), that is, the third moving distance.

[0052] In some implementations, the third movement distance of the target object within the first time period can be determined using the following formula (3). D (Third): (Third) = (First)+ (Second) (3).

[0053] Step S124: Determine the motion state information of the target object based on the third moving distance.

[0054] Here, after determining the third movement distance of the target object in the first time period, the motion state information of the target object can be determined.

[0055] For example, if leftward movement is defined as positive movement, a negative third distance indicates that the target object is in motion and has moved a distance to the right; a zero third distance indicates that the target object is stationary; and a positive third distance indicates that the target object is in motion and has moved a distance to the left.

[0056] The following is combined Figure 3 The document describes multiple motion scenarios of electronic devices and target objects; the first detection component is an IMU, the first direction is the Z-axis direction of the IMU coordinate system (i.e., the direction perpendicular to the display screen of the electronic device), and the second detection component is a TOF sensor; leftward motion is defined as positive motion.

[0057] Scenario 1 (Electronic device 310 is in motion, target object 320 is stationary): First, according to the above formula (1), the first acceleration in the Z-axis direction collected by the IMU is integrated twice, and ΔD(first) is obtained as 3cm. It can be seen that the electronic device 310 moved 3cm to the left during the time period t; Then, the TOF sensor detected that the distance D(t-1) of the target object 320 at time t-1 was 50cm, and the distance D(t0) at time t0 was 47cm; according to the above formula (2), ΔD(second) is -3cm. It can be seen that in the coordinate system of the TOF sensor, the target object 320 moved 3cm to the right during the time period t; Then, according to the above formula (3), it can be determined that the moving distance ΔD(third) of the target object 320 within the time period t is 0; Finally, based on the calculation results of ΔD (third), it can be seen that the target object 320 is stationary during the time period t.

[0058] Scenario 2 (Electronic device 310 is stationary, target object 320 is moving): First, according to the above formula (1), the first acceleration in the Z-axis direction collected by the IMU is integrated twice, and ΔD(first) is found to be 0. It can be seen that the electronic device 310 is stationary during the time period t; Then, the TOF sensor detected that the distance D(t-1) of the target object 320 at time t-1 was 50cm, and the distance D(t0) at time t0 was 47cm; according to the above formula (2), ΔD(second) is -3cm. It can be seen that in the coordinate system of the TOF sensor, the target object 320 moved 3cm to the right during the time period t; Then, according to the above formula (3), the moving distance ΔD(third) of the target object 320 within the time period t can be determined to be -3cm; Finally, based on the calculation results of ΔD (third), it can be seen that the target object 320 is in motion during the time period t, and moves 3cm to the right.

[0059] Scenario 3 (Electronic device 310 moves, target object 320 moves): First, according to the above formula (1), the first acceleration in the Z-axis direction collected by the IMU is integrated twice, and ΔD(first) is obtained as 3cm. It can be seen that the electronic device 310 moved 3cm to the left during the time period t; Then, the TOF sensor detected that the distance D(t-1) of the target object 320 at time t-1 was 50cm, and the distance D(t0) at time t0 was 40cm; according to the above formula (2), ΔD(second) is -10cm. It can be seen that in the coordinate system of the TOF sensor, the target object 320 moved 10cm to the right; Then, according to the above formula (3), the moving distance ΔD(third) of the target object 320 within the time period t can be determined to be -7cm; Finally, based on the calculation results of ΔD (third), it can be seen that the target object 320 is in motion during the time period t, and moves 7cm to the right.

[0060] As can be seen from the above, in the embodiments provided by this application, the motion information of the electronic device itself (e.g., the first acceleration of the electronic device in the Z-axis direction collected by the IMU) is used to compensate for the detection results of the second detection component (e.g., the TOF sensor). This can accurately distinguish the motion of the electronic device from the motion of the target object, thereby avoiding misjudging static non-human objects (e.g., walls, ground, etc.) as human objects when the electronic device is moving. This can achieve a more stable and reliable display state control effect, significantly improve the user's visual experience, and improve the performance of the electronic device.

[0061] In some implementations, the first time period includes multiple second time periods; each second time period has a corresponding multiple first detection values ​​and multiple first distances.

[0062] Here, the first time period is divided into multiple smaller time windows, i.e. multiple second time periods; and within each second time period, multiple first detection values ​​are collected using the first detection component, and multiple first distances are collected using the second detection component.

[0063] Thus, determining the third movement distance of the target object within the first time period based on the first movement distance and the second movement distance, i.e., the above step S123, can be implemented as the following step S1231: Step S1231: For each second time period, determine the third movement distance of the target object within each second time period based on the plurality of first detection values ​​and the plurality of first distances.

[0064] Here, the specific implementation method for determining the third moving distance of the target object in each second time period based on multiple first detection values ​​and multiple first distances is the same as the specific implementation method for determining the third moving distance of the target object in the first time period described in steps S121 to S123 above, and will not be repeated here.

[0065] The step of determining the motion state information of the target object based on the third moving distance, i.e., the above step S124, can be implemented as the following step S1241: Step S1241: Determine the motion state information of the target object based on the standard deviation of the third movement distance corresponding to the plurality of second time periods.

[0066] Standard deviation is a metric used to measure the dispersion of a set of data. Here, calculating the standard deviation of the third movement distance across multiple second time periods can measure the stability of the target object's movement over these multiple second time periods.

[0067] For example, if the third movement distances corresponding to the 10 second time periods are [0, 0.1, -0.2, 0.3, -0.1, 0.2, 0.0, -0.3, 0.1, 0.0] cm, then the standard deviation is approximately 0.17 cm.

[0068] In some implementations, after determining the standard deviation, if the standard deviation is greater than a specified standard deviation threshold (e.g., 0.1 cm), the target object is determined to be in motion; if the standard deviation is less than the specified standard deviation threshold, the target object is determined to be in a stationary state.

[0069] When the target object is a human being, and the target object is currently sitting or standing, the distance moved by the human being in the first time period may be 0. However, due to the slight movements of the human body (e.g., breathing, slight swaying), the third movement distance will fluctuate in multiple second time periods, and the greater the fluctuation, the greater the change in the human being's movement distance. Therefore, in the above embodiments provided in this application, by analyzing the standard deviation of the third movement distance corresponding to multiple second time periods, the motion stability of the target object in multiple second time periods can be analyzed. This can more accurately determine the motion state of the target object, avoid misjudging a sitting or standing human being as a stationary object, thereby improving the accuracy of the determined motion state of the target object, and thus improving the precise control of the display state.

[0070] In some implementations, determining the display state of the electronic device's screen based on the motion state information of the target object, i.e., step S13 above, can be implemented as steps S131 to S132: Step S131: When the motion state information indicates that the target object is in motion, the display state of the display screen is determined to be on.

[0071] Here, when the motion state information indicates that the target object is in motion, it indicates that the target object may be a human object (e.g., a user). Therefore, the display state of the screen is determined to be on so that the user can read the content on the screen.

[0072] Step S132: When the motion state information indicates that the target object is in a stationary state, the display state of the display screen is determined to be a dark screen state.

[0073] Here, if the motion state information indicates that the target object is in a stationary state, it means that the target object may be a non-human object (e.g., a wall, ground, desktop, etc.). Therefore, the display state of the screen is determined to be a dark screen state to reduce the power consumption of electronic devices and improve battery life.

[0074] In the embodiments provided in this application, the display screen of the electronic device is turned on based on whether the target object is in motion, thereby realizing an intelligent control mechanism based on dynamic perception, which enables the display screen status to be highly synchronized with the behavior of human objects.

[0075] In some embodiments, acquiring multiple first detection values ​​in a first direction by a first detection component in the electronic device, and multiple first distances between the electronic device and the target object detected by a second detection component, i.e., step S11 above, can be implemented as steps S111 to S113: Step S111: Obtain the second detection value of the first detection component in the second direction and the third detection value in the third direction; the second direction and the third direction represent two mutually perpendicular directions on the plane where the display screen is located.

[0076] Here, the second direction and the third direction represent two mutually perpendicular directions on the plane where the display screen is located. For example, the second direction is the direction to the right along the width direction of the display screen, and the third direction is the direction downwards along the height direction of the display screen, and so on. Figure 4 As shown, the second direction 420 is the rightward direction along the width of the display screen 410, and the third direction 430 is the downward direction along the height of the display screen 410.

[0077] In some implementations, when the first detection component is an IMU, the second direction can be the X-axis direction in the IMU coordinate system, and the third direction can be the Y-axis direction in the IMU coordinate system.

[0078] The second detection value of the first detection component in the second direction can be the distance, speed, and / or acceleration of the electronic device moving in the second direction, as detected by the first detection component. For example, if the first detection component is an IMU, the second detection value can be the acceleration in the X-axis direction detected by the IMU.

[0079] The third detection value in the third direction, detected by the first detection component, can be the distance, speed, and / or acceleration of the electronic device moving in the third direction, as detected by the first detection component. For example, if the first detection component is an IMU, the third detection value can be the acceleration in the Y-axis direction detected by the IMU.

[0080] Step S112: If at least one of the second detection value and the third detection value is greater than the detection threshold, the display screen is controlled to be in a dark state.

[0081] Since the second and third directions are two mutually perpendicular directions within the plane of the display screen, when the electronic device moves significantly in the second and / or third direction, it exhibits significant lateral and / or vertical movement, making it impossible for the user to properly read the display content. For example, when a user waves the electronic device, it exhibits significant lateral movement, making it unsuitable for reading the display content.

[0082] Here, the second and third detection values ​​are used to characterize the movement amplitude of the electronic device in the second and third directions, respectively. When at least one of the second and third detection values ​​is greater than the detection threshold, the electronic device is considered to be in a state where the user cannot read normally, and therefore the display screen is controlled to be in a dark state.

[0083] The detection threshold refers to a pre-set threshold used to determine whether an electronic device has undergone significant lateral and / or vertical movement. In some implementations, the detection threshold can be determined based on expert experience or testing.

[0084] Step S113: If both the second detection value and the third detection value are not greater than the detection threshold, obtain the plurality of first detection values ​​and the plurality of first distances.

[0085] When both the second and third thresholds are not greater than the detection threshold, it indicates that the electronic device has not undergone significant lateral or vertical movement and is in a state where it can be read normally by the user. Therefore, multiple first detection values ​​(i.e., motion information of the electronic device in the depth direction) and multiple first distances can be acquired to determine the motion state information of the target object, and the display state of the screen can be determined based on the motion state information.

[0086] In the embodiments provided in this application, a first detection component acquires second and third detection values ​​in the second and third directions, and controls the display screen to be in a dark state when the second and / or third detection values ​​exceed a detection threshold. This allows the display screen to be kept dark when the electronic device is in a state where the user cannot read normally (i.e., significant horizontal and / or vertical movement occurs), thereby avoiding accidental screen activation or screen flickering and improving the user's visual experience.

[0087] In some embodiments, the method further includes steps S14 to S15: Step S14: Obtain angular change information of the electronic device in at least one of the first direction, the second direction, and the third direction, as detected by the third detection component.

[0088] The third detection component refers to the sensor installed in the electronic device to detect changes in angle.

[0089] Angular change information can refer to a set of data on the degree of rotation of an electronic device in three-dimensional space. In some implementations, angular change information may include angular velocity values, rotation direction, and magnitude of change in each axis. Therefore, angular change information can be used to assess the current motion stability of the electronic device.

[0090] In this way, the third detection component is used to detect the angle change information in at least one of the first direction, the second direction, and the third direction. That is, the third detection component is used to detect the angle change information in at least one of two mutually perpendicular directions (e.g., the direction to the right along the width direction of the display screen and the direction downward along the height direction of the display screen) in the direction perpendicular to the plane of the display screen (i.e., the depth direction of the electronic device).

[0091] In some implementations, the third detection component may be a gyroscope for real-time measurement of the electronic device's angular velocity changes in three-dimensional space. For example, in the case of a laptop computer, when a user flips the laptop to adjust the viewing angle, the gyroscope captures data on the angular velocity changes of the display screen around the X-axis (e.g., a coordinate axis to the right along the width direction of the display screen). As another example, in the case of a smartphone, when a user rotates the smartphone, the gyroscope captures data on the changes in the smartphone's display screen's rotational angular velocity around the X-axis and Y-axis (e.g., a coordinate axis upwards along the height direction of the display screen).

[0092] Step S15: If the angle change information exceeds the angle change threshold, control the display screen to be in a dark state.

[0093] Here, the angle change threshold can be a pre-set critical value for angular velocity or angle change, used to distinguish between normal and abnormal use of electronic devices.

[0094] In some implementations, the angle change threshold can be configured based on the type of electronic device, usage scenario, and / or user habits.

[0095] For example, when the electronic device is a laptop, the angular velocity change threshold can be set to ±10° / s. This means that when the angular velocity of the electronic device rotating in the positive or negative direction is greater than 10° / s, the current motion state of the laptop is considered unsuitable for normal viewing by the user (i.e., the user is currently performing a non-viewing operation). As another example, when the electronic device is a smartphone, since the smartphone's screen is smaller than that of a laptop, the angular velocity change threshold set for the smartphone is smaller than that set for the laptop. For instance, the angular velocity change threshold for a smartphone can be set to ±5° / s.

[0096] For example, when users are accustomed to reading the content on the screen while in motion, a larger threshold for angular velocity change can be set for them; while when users are accustomed to reading the content on the screen while sitting or standing, a smaller threshold for angular velocity change can be set for them.

[0097] Thus, when the angular change information of the electronic device in any of the first, second, and third directions exceeds the angular change threshold, the electronic device is considered to be in an unstable state. The user's gaze cannot focus on the content displayed on the screen, and turning on the screen is meaningless. Instead, it will cause unnecessary power consumption and visual interference. Therefore, the screen is controlled to be in a dark state.

[0098] In some implementations, if the angle change information of the electronic device in any of the first, second, and third directions exceeds the angle change threshold, the display screen is controlled to be in a dark state even if the target object is determined to be in motion based on multiple first detection values ​​and multiple first distances.

[0099] In the embodiments provided in this application, when the angular change information of the electronic device in any of the first, second, and third directions exceeds the angular change threshold, the display screen is controlled to be in a dark state. This allows for accurate identification of the electronic device's rotational movement, preventing the display screen from being turned on when the user cannot effectively read the content, thereby reducing unnecessary power consumption and visual interference, and ultimately improving the overall user experience and energy efficiency of the electronic device.

[0100] In some implementations, the electronic device is a single-screen device with only one display screen, such as a smartphone, tablet, or laptop. For example, when the electronic device is a smartphone placed on a table, whether the screen is facing up or down, if the user picks up the phone from the table, the second detection component may detect a moving object (e.g., a ceiling or floor whose distance has changed). In this case, after compensating for the movement of the electronic device itself, the motion state information of the target object is represented as a stationary state, i.e., a stationary ceiling or floor, thus keeping the display screen in a dark state. When the user picks up the electronic device or brings it close to a person, the distance information detected by the second detection component changes, and after compensating for the movement of the electronic device itself, the motion state information of the target object is represented as a moving state (e.g., there is slight movement of the person), at which point the display screen is kept on. As another example, when the electronic device is a laptop and is flipped over via a hinge structure for use on the back, the display screen may face a wall or other environmental object. At this time, if the electronic device is in the process of flipping or moving, and the first detection component detects significant lateral movement or angle change, or the second detection component detects and compensates for the movement of the electronic device itself, and determines that the target object is a stationary object, then the display screen is controlled to be in a dark state to avoid accidentally triggering the screen to light up.

[0101] In some embodiments, the display screen includes a first display screen and a second display screen; the first display screen and the second display screen are disposed on two opposite sides of the electronic device body, or the electronic device forms a first display screen and a second display screen facing opposite each other in a folded state.

[0102] Here, the electronic device includes a first display screen and a second display screen, which are two independent display areas in the electronic device.

[0103] The first display screen and the second display screen can be disposed on two opposite sides of the electronic device body. For example, in the case of an electronic device such as a smartphone, tablet, or gaming device, the first display screen and the second display screen can be two displays screens disposed on the opposite sides of the smartphone, tablet, or gaming device body.

[0104] When the electronic device is a foldable device, the first display screen and the second display screen can be two opposite displays screens formed when the electronic device is in a folded state. It is understood that when the electronic device is in an unfolded state, the first display screen and the second display screen can be the same continuous display screen.

[0105] When the electronic device is a foldable device, the first display screen and the second display screen can be displays screens located on opposite sides of the electronic device body. For example, the first display screen is the inner screen of the electronic device, and the second display screen is the outer screen of the electronic device; in the unfolded state, the first display screen is the main interactive screen; in the folded state, the second display screen is the main interactive screen.

[0106] In some embodiments, the first display screen and the second display screen each have a corresponding second detection component. For example, when the second detection component is a Time-of-Flight (TOF) sensor, the first display screen and the second display screen each have a corresponding TOF sensor to detect the distance of the target object relative to the first display screen and the second display screen, respectively. In some embodiments, the second detection components corresponding to the first display screen and the second display screen can be the same second detection component or different second detection components.

[0107] Thus, determining the display state of the electronic device's screen, i.e., step S13 above, can be implemented as the following step S131: Step S131: Determine the display state of the first display screen and / or determine the display state of the second display screen.

[0108] Here, when determining the display state of the first display screen, firstly, within a first time period, multiple first detection values ​​in the first direction of the first detection component in the electronic device and multiple first distances detected by the second detection component corresponding to the first display screen are acquired; then, based on the multiple first detection values ​​and multiple first distances, the motion state information of the target object is determined; finally, based on the motion state information of the target object, the display state of the first display screen is determined.

[0109] When determining the display state of the second display screen, firstly, multiple first detection values ​​in the first direction of the first detection component in the electronic device and multiple first distances detected by the second detection component corresponding to the second display screen are acquired within a first time period; then, the motion state information of the target object is determined based on the multiple first detection values ​​and the multiple first distances; finally, the display state of the second display screen is determined based on the motion state information of the target object.

[0110] In the embodiments provided in this application, by controlling the display states of the first display screen and / or the second display screen in the electronic device, the control precision of the electronic device can be further improved, thereby improving the energy efficiency of the electronic device. For example, when the electronic device is a smartphone, and the first display screen and the second display screen are respectively disposed on opposite sides of the smartphone body, during the process of the user picking up the smartphone from the table, multiple first detection values ​​can be collected using the first detection component in the smartphone, multiple upper first distances can be collected using the second detection component corresponding to the first display screen (e.g., the display screen disposed on the body surface facing the wall), and multiple lower first distances can be collected using the second detection component corresponding to the second display screen (e.g., the display screen disposed on the body surface facing the table). Then, the display state of the first display screen and the display state of the second display screen can be determined based on the multiple first detection values ​​and the multiple upper first distances.

[0111] In some embodiments, the electronic device includes a first body and a second body, with the display screen disposed on the first body.

[0112] Here, the electronic device consists of a first body and a second body, and there is a physical connection structure between the first body and the second body so that the first body can be unfolded relative to the second body.

[0113] The first one has a display screen for showing the operating interface of the electronic device.

[0114] In some embodiments, the first body and the second body are connected by a pivot, allowing the first body to unfold relative to the second body around the pivot. In some embodiments, the first body unfolds from 0° to 360° relative to the second body.

[0115] In some implementations, the electronic device may be implemented as a laptop computer, wherein a first body having a display screen in the laptop computer can be unfolded from 0° to 360° relative to a second body.

[0116] Thus, during the first time period, acquiring multiple first detection values ​​in the first direction from the first detection component in the electronic device, and multiple first distances between the electronic device and the target object detected by the second detection component, i.e., the above step S11, can be implemented as the following step S114: Step S114: In response to the first body unfolding relative to the second body and the display screen facing away from the second body, during the first time period, acquire multiple first detection values ​​of the first detection component in the electronic device in the first direction, and multiple first distances between the electronic device and the target object detected by the second detection component.

[0117] Here, "the display screen facing away from the second body" means that when the angle of the first body relative to the second body is greater than 180°, the display screen is located on the side of the first body facing away from the second body.

[0118] When the first body is unfolded relative to the second body and the display screen faces away from the second body, the electronic device is in tent mode or standing mode. The user interacts by touching the display screen and reading the displayed content. Whether the screen is on can be determined based on whether the user is in an interactive state to save power. Therefore, when it is detected that the first body is unfolded relative to the second body and the display screen faces away from the second body, within a first time period, multiple first detection values ​​in a first direction are acquired by the first detection component in the electronic device, and multiple first distances between the electronic device and the target object are detected by the second detection component. Then, the motion state of the target object is determined based on the multiple first detection values ​​and the multiple first distances, and the display state of the display screen is determined based on the motion state of the target object.

[0119] In the embodiments provided in this application, when the electronic device is detected to be in tent mode or standing mode, the motion state of the target object is detected and the display state of the display screen is controlled according to the motion state, so as to realize that the display screen is controlled to be on only when the target object is a human object, thereby reducing the power consumption of the electronic device and extending the battery life.

[0120] Below, in conjunction with Figure 5 This application will now describe one embodiment of the present invention. In this embodiment, the electronic device is implemented as a foldable electronic device, such as... Figure 6As shown, the electronic device 600 includes a first display screen (not shown) and a second display screen 610; wherein, the first display screen is the inner screen of the electronic device 600, and the second display screen 610 is the outer screen of the electronic device. When the electronic device 600 is in an unfolded state, the first display screen serves as the main interactive screen; when the electronic device 600 is in a folded state, the second display screen 610 serves as the main interactive screen; the objective of this embodiment is to control the display state of the second display screen 610. Simultaneously, the first detection component is implemented as an IMU, the second detection component is implemented as a TOF sensor, and the third detection component is implemented as a gyroscope. Figure 5 As shown, this embodiment includes the following steps S51 to S511: Step S51: Determine whether the electronic device is in a folded state; if yes, proceed to step S52; if no, proceed to step S511. Here, the folded state of the electronic device can be determined based on sensor data collected by the Hall sensor installed inside the device. In the unfolded state, as... Figure 7 As shown, the first display screen is the main interactive screen, while the second display screen 610 is always in a dark state.

[0121] Step S52: Obtain the acceleration in the X, Y, and Z axes acquired by the IMU; then, execute step S53. Here, the X-axis direction corresponds to the second direction mentioned above, the Y-axis direction corresponds to the third direction mentioned above, and the Z-axis direction corresponds to the first direction mentioned above.

[0122] The accelerations along the X, Y, and Z axes are all acceleration values ​​after removing gravitational acceleration.

[0123] Step S53: Determine whether the acceleration in the X-axis and Y-axis directions is less than the acceleration threshold; if yes, proceed to step S54; if no, proceed to step S511. Here, if the acceleration in either the X-axis or Y-axis direction is not less than the acceleration threshold, it indicates that the electronic device is in a state of obvious lateral or vertical motion, which is not a state in which the user can normally read the content on the display screen. Therefore, the second display screen is controlled to be in a dark state. If the acceleration in both the X-axis and Y-axis directions is less than the acceleration threshold, it indicates that the electronic device does not have obvious lateral and / or vertical motion. It is necessary to combine the detection results of the TOF sensor and gyroscope to further determine the display state of the display screen.

[0124] Step S54: Obtain the angular velocities in the X, Y, and Z axes collected by the gyroscope; then, proceed to step S55. Step S55: Determine whether the angular velocities in the X-axis, Y-axis, and Z-axis directions are all less than the angular velocity threshold; if yes, proceed to step S56; if no, proceed to step S511. If the angular velocity in any of the X, Y, and Z axes is not less than the angular velocity threshold, the user cannot read the content on the display screen normally, so the display screen is controlled to be in a dark state; if the angular velocity in all three axes is less than the angular velocity threshold, the display status needs to be determined by combining the detection results of the TOF sensor.

[0125] Step S56: Obtain the second distance acquired by the TOF sensor; then, proceed to step S57. Here, the second distance is the distance between the target object acquired by the TOF sensor and the electronic device.

[0126] Step S57: Determine whether the second distance is within the effective reading distance range; if yes, proceed to step S58; if no, proceed to step S511. Here, effective reading distance refers to the distance at which a user can normally read the content on the display screen. For example, in the case of a smartphone, this effective reading distance can be between 20cm and 70cm.

[0127] Step S58: During the third time period, acquire multiple second accelerations in the Y-axis direction collected by the IMU and multiple second distances collected by the TOF sensor; then, execute step S59. Step S59: Determine whether the target object is a human object based on multiple second accelerations and multiple second distances; if yes, proceed to step S510; if no, proceed to step S511. Here, firstly, the motion state information of the target object is determined based on multiple second accelerations and multiple second distances; then, when the motion state information indicates that the target object is in motion, the target object is determined to be a human object; when the motion state information indicates that the target object is in a stationary state, the target object is determined to be a non-human object.

[0128] Step S510: Control the second display screen to be in the on state; Step S511: Control the second display screen to be in a dark state.

[0129] In some implementations, the orientation information of the second display screen 610 can also be obtained. If the orientation information of the second display screen 610 indicates that the orientation of the second display screen 610 is outside the user's normal usage orientation range, the second display screen 610 is controlled to be in a dark screen state. For example... Figure 8As shown, when the top of the second display screen 610 is facing down and the bottom is facing up, the content displayed on the second display screen 610 is upside down, and the user cannot read it normally. Therefore, the second display screen 610 is controlled to be in a dark screen state.

[0130] As can be seen from the above, the display control method provided in this application has the following aspects: First, when the electronic device is determined to be in a horizontal and / or vertical motion state based on the detection data of the IMU, the second display screen is controlled to be in a dark state to avoid accidental screen lighting when not in a viewing state; Second, the acceleration data in the Z-axis direction detected by the IMU is used to compensate the distance data detected by the TOF sensor to determine whether the target object is a moving object, eliminating the influence of the electronic device itself approaching or moving away from the target object on the distance data detected by the TOF sensor, so that the presence of human objects can still be accurately determined when the electronic device is in motion; Third, since human breathing and slight shaking are different from stationary objects, multiple second accelerations are collected synchronously to compensate multiple second distances collected by the TOF sensor, and the standard deviation of the compensated multiple distance data is calculated, which can accurately distinguish between human objects and non-human objects, avoiding misjudging books, clothing, etc. as human objects; Fourth, the gyroscope is used to detect angular velocity fluctuations, and the screen is kept dark when the fluctuation exceeds the angular velocity threshold to avoid misjudgment caused by changes in the field of view during the turning of the electronic device. In this way, the second display screen no longer flickers frequently when the user moves the electronic device, and the screen only lights up when the user is actually looking at the second display screen; the second display screen is kept on when the electronic device or the user moves in the depth direction (i.e., the Z-axis direction), which conforms to the user's habit of adjusting the viewing distance; the screen automatically dims when the electronic device rotates, avoiding invalid screen lighting; the stability and response accuracy of the second display screen are improved, and the user's experience of using the electronic device is greatly enhanced.

[0131] Based on the foregoing embodiments, this application provides an electronic device. For example... Figure 9 As shown, the electronic device 900 includes: a first detection component 910, a second detection component 920, a display screen 930, and a processor 940; wherein, The first detection component 910 is used to detect a plurality of first detection values ​​in a first direction within a first time period; the first direction represents a direction perpendicular to the plane where the display screen 930 of the electronic device is located; The second detection component 920 is used to detect multiple first distances between the electronic device and the target object during the first time period; The processor 940 is configured to determine the motion state information of the target object based on the plurality of first detection values ​​and the plurality of first distances; and to determine the display state of the display screen 930 based on the motion state information of the target object.

[0132] In some embodiments, the processor 940 is configured to: Based on the plurality of first detection values, a first moving distance of the electronic device within the first time period is determined; Based on the plurality of first distances, determine the second movement distance of the target object relative to the electronic device within the first time period; Based on the first movement distance and the second movement distance, determine the third movement distance of the target object within the first time period; Based on the third movement distance, the motion state information of the target object is determined.

[0133] In some implementations, the first time period includes multiple second time periods; each second time period has a corresponding multiple first detection values ​​and multiple first distances; Thus, the processor 940 is used for: For each second time period, a third movement distance of the target object within each second time period is determined based on the plurality of first detection values ​​and the plurality of first distances; The motion state information of the target object is determined based on the standard deviation of the third movement distance corresponding to the multiple second time periods.

[0134] In some implementations, the first detected value represents a first acceleration in a first direction.

[0135] In some embodiments, the processor 940 is configured to: When the motion state information indicates that the target object is in motion, the display state of the display screen 930 is determined to be a lit state. When the motion state information indicates that the target object is in a stationary state, the display state of the display screen 930 is determined to be a dark screen state.

[0136] In some embodiments, the processor 940 is configured to: The first detection component 910 acquires a second detection value in a second direction and a third detection value in a third direction; the second direction and the third direction represent two mutually perpendicular directions on the plane where the display screen 930 is located; If at least one of the second and third detection values ​​is greater than the detection threshold, the display screen 930 is controlled to be in a dark screen state. If neither the second detection value nor the third detection value is greater than the detection threshold, the plurality of first detection values ​​and the plurality of first distances are obtained.

[0137] In some embodiments, the processor 940 is further configured to: The third detection component detects angular change information of the electronic device in at least one of the first direction, the second direction, and the third direction. If the angle change information exceeds the angle change threshold, the display screen 930 is controlled to be in a dark screen state.

[0138] In some embodiments, the display screen 930 includes a first display screen and a second display screen, wherein the first display screen and the second display screen are disposed on two opposite sides of the electronic device body, or the electronic device forms opposite first display screen and second display screen in a folded state; The processor 940 is used to determine the display state of the first display screen and / or determine the display state of the second display screen.

[0139] In some embodiments, the electronic device includes a first body and a second body, with the display screen 930 disposed on the first body; The processor 940 is configured to, in response to the first body unfolding relative to the second body and the display screen 930 facing away from the second body, acquire, within the first time period, a plurality of first detection values ​​in a first direction by the first detection component 910 in the electronic device, and a plurality of first distances between the electronic device and the target object detected by the second detection component 920.

[0140] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. In some embodiments, the functions or modules included in the device provided in this application can be used to perform the methods described in the above method embodiments. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0141] It should be noted that, in the embodiments of this application, if the above-described display control method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware, software, or firmware, or any combination of hardware, software, and firmware.

[0142] The description of the various embodiments above tends to emphasize the differences between the various embodiments, while the similarities or similarities can be referred to each other.

[0143] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A display control method, comprising: Within a first time period, multiple first detection values ​​of the first detection component in the electronic device in a first direction are acquired, and multiple first distances between the electronic device and the target object are detected by the second detection component; the first direction represents a direction perpendicular to the plane where the display screen of the electronic device is located. Based on the plurality of first detection values ​​and the plurality of first distances, the motion state information of the target object is determined; Based on the motion state information of the target object, the display state of the electronic device's screen is determined.

2. The method according to claim 1, wherein determining the motion state information of the target object based on the plurality of first detection values ​​and the plurality of first distances includes: Based on the plurality of first detection values, a first moving distance of the electronic device within the first time period is determined; Based on the plurality of first distances, determine the second movement distance of the target object relative to the electronic device within the first time period; Based on the first movement distance and the second movement distance, determine the third movement distance of the target object within the first time period; Based on the third movement distance, the motion state information of the target object is determined.

3. The method according to claim 2, wherein the first time period includes a plurality of second time periods; each second time period has a corresponding plurality of first detection values ​​and a plurality of first distances; Determining the third movement distance of the target object within the first time period based on the first movement distance and the second movement distance includes: for each second time period, determining the third movement distance of the target object within each second time period based on the plurality of first detection values ​​and the plurality of first distances; Determining the motion state information of the target object based on the third moving distance includes: determining the motion state information of the target object based on the standard deviation of the third moving distance corresponding to the plurality of second time periods.

4. The method according to claim 2 or 3, wherein the first detected value characterizes a first acceleration in a first direction.

5. The method according to claim 1, wherein determining the display state of the electronic device's screen based on the motion state information of the target object includes: When the motion state information indicates that the target object is in motion, the display state of the display screen is determined to be on. When the motion state information indicates that the target object is in a stationary state, the display state of the display screen is determined to be a dark screen state.

6. The method according to claim 1, wherein acquiring a plurality of first detection values ​​of the first detection component in the electronic device in a first direction, and a plurality of first distances between the electronic device and the target object detected by the second detection component, comprises: Obtain the second detection value of the first detection component in the second direction and the third detection value in the third direction; The second direction and the third direction represent two mutually perpendicular directions on the plane where the display screen is located; If at least one of the second and third detection values ​​is greater than the detection threshold, the display screen is controlled to be in a dark state. If neither the second detection value nor the third detection value is greater than the detection threshold, the plurality of first detection values ​​and the plurality of first distances are obtained.

7. The method according to claim 6, further comprising: The third detection component detects angular change information of the electronic device in at least one of the first direction, the second direction, and the third direction. If the angle change information exceeds the angle change threshold, the display screen is controlled to be in a dark state.

8. The method according to claim 1, wherein the display screen includes a first display screen and a second display screen, the first display screen and the second display screen are disposed on two opposite sides of the electronic device body, or the electronic device forms a first display screen and a second display screen facing opposite each other in a folded state; Determining the display state of the electronic device's screen includes: Determine the display state of the first display screen and / or determine the display state of the second display screen.

9. The method according to claim 1, wherein the electronic device comprises a first body and a second body, and the display screen is disposed on the first body; The step of acquiring multiple first detection values ​​in a first direction by a first detection component in an electronic device and multiple first distances between the electronic device and the target object detected by a second detection component during a first time period includes: In response to the first body unfolding relative to the second body and the display screen facing away from the second body, during the first time period, a plurality of first detection values ​​of the first detection component in the electronic device in a first direction and a plurality of first distances between the electronic device and the target object detected by the second detection component are acquired.

10. An electronic device, comprising: The system comprises a first detection component, a second detection component, a display screen, and a processor; wherein, The first detection component is used to detect multiple first detection values ​​in a first direction within a first time period; the first direction represents a direction perpendicular to the plane where the display screen of the electronic device is located. The second detection component is used to detect multiple first distances between the electronic device and the target object during the first time period; The processor is configured to determine the motion state information of the target object based on the plurality of first detection values ​​and the plurality of first distances; and to determine the display state of the display screen based on the motion state information of the target object.