Distance determination method and device, eye protection distance detection system

By responding to the user's eye protection request in an electronic device, determining the height of the user's sitting posture and adjusting the relative position relationship, and dynamically determining the eye protection distance and height, the problem of eye protection distance cannot be adapted to different users in the prior art, and a better eye protection effect is achieved.

CN115469741BActive Publication Date: 2025-05-20IFLYTEK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211012535.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2025-05-20
Estimated Expiration
2042-08-23

AI Technical Summary

Technical Problem

When determining the eye protection distance, existing electronic devices cannot adapt to the height and sitting height of different users, resulting in the inability to effectively protect the user's eyes.

Method used

By responding to the user's eye protection request, the user's sitting posture height is determined, and the relative position relationship between the user and the electronic device is adjusted based on the sitting posture height, and the eye protection distance and height are dynamically determined.

Benefits of technology

It realizes dynamic adjustment of eye protection distance and height according to the user and his sitting posture height, thereby better protecting the user's eyes and is suitable for the needs of different users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115469741B_ABST
    Figure CN115469741B_ABST
Patent Text Reader

Abstract

The present application provides a distance determination method and device, and an eye protection distance detection system, which relate to the field of communication technology. The distance determination method includes: determining the user's sitting height in response to an eye protection request from a user of an electronic device; based on the sitting height, determining a first eye protection distance between the user and the electronic device, and a first eye protection height of the electronic device relative to the user, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height. Through the distance determination method in the present application, the purpose of providing customized eye protection distances and eye protection heights for users of electronic devices according to different sitting heights of users is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a distance determination method and apparatus, and an eye protection distance detection system. Background Art

[0002] When an electronic device leaves the factory, a fixed distance range is usually set inside as the eye protection distance for the user. If the actual distance between the user and the electronic device is not within this eye protection distance range, the user will be reminded in a timely manner.

[0003] However, usually, the users of electronic devices are not unique, and the heights of different users are likely to be different, and the sitting postures of different users are also likely to be different. Therefore, the eye protection distances of users obtained based on the eye protection distance calculation method of the National Eye Center are also different. If only the users are prompted based on a preset and fixed distance range, it is not applicable to all users. Summary of the Invention

[0004] To solve the above technical problems, this application is proposed. Embodiments of this application provide a distance determination method and apparatus, and an eye protection distance detection system.

[0005] In a first aspect, an embodiment of this application provides a distance determination method, which includes: in response to an eye protection request of a user of an electronic device, determining the sitting posture height of the user; based on the sitting posture height, determining a first eye protection distance between the user and the electronic device, and a first eye protection height of the electronic device relative to the user, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

[0006] In combination with the first aspect, in some implementation manners of the first aspect, after determining the first eye protection distance between the user and the electronic device and the eye protection height of the electronic device relative to the user based on the sitting posture height, it further includes: determining the current usage mode of the electronic device; based on the current usage mode, determining a second eye protection distance between the user and the electronic device, so as to adjust the relative position relationship between the user and the electronic device based on the second eye protection distance in the current usage mode.

[0007] In combination with the first aspect, in some implementation manners of the first aspect, determining the second eye protection distance between the user and the electronic device based on the current usage mode includes: in the case where the current usage mode is a viewing mode, determining the eye position information of the user; based on the eye position information and the maximum display width information of the electronic device, determining the second eye protection distance between the user and the electronic device.

[0008] In combination with the first aspect, in some implementations of the first aspect, determining a second eye protection distance between the user and the electronic device based on the current usage mode includes: when the current usage mode is the writing mode, determining the user's arm length information, writing posture information, and writing pen size information; and determining the second eye protection distance between the user and the electronic device based on the arm length information, writing posture information, and writing pen size information.

[0009] In combination with the first aspect, in some implementations of the first aspect, determining the sitting height of the user includes: using the three-dimensional time-of-flight sensor of the electronic device to detect the sitting height of the user; after determining the first eye protection distance between the user and the electronic device and the first eye protection height of the electronic device relative to the user based on the sitting height, further including: turning off the three-dimensional time-of-flight sensor of the electronic device; using the one-dimensional time-of-flight sensor of the electronic device to detect the actual distance between the user and the electronic device, so as to remind the user to adjust the relative position relationship with the electronic device based on the actual distance.

[0010] In combination with the first aspect, in some implementations of the first aspect, before determining the sitting height of the user in response to the eye protection request of the user of the electronic device, further including: when the electronic device is started for the first time, presenting a height input window to the user; in response to the input operation of the user in the height input window, obtaining the height information of the user; and determining the third eye protection distance between the user and the electronic device and the second eye protection height of the electronic device relative to the user based on the height information, so as to adjust the relative position relationship between the user and the electronic device based on the third eye protection distance and the second eye protection height when the user does not issue an eye protection request.

[0011] In combination with the first aspect, in some implementations of the first aspect, after determining the first eye protection distance between the user and the electronic device and the first eye protection height of the electronic device relative to the user based on the sitting height, further including: collecting the posture data of the user; if the posture data meets the posture anomaly prompt condition, sending a prompt message to the user, and / or adjusting the relative position relationship between the electronic device and the user.

[0012] In a second aspect, an embodiment of the present application provides a distance determination device, which includes: a first determination module, configured to determine the sitting height of the user in response to the eye protection request of the user of the electronic device; and a second determination module, configured to determine the first eye protection distance between the user and the electronic device and the first eye protection height of the electronic device relative to the user based on the sitting height, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

[0013] In a third aspect, an embodiment of the present application provides an eye protection distance detection system, which includes: a display screen; a one-dimensional time-of-flight sensor; a three-dimensional time-of-flight sensor, configured to determine the sitting height of the user of the electronic device in response to an eye protection request of the user; a main controller, communicatively connected to the display screen, the one-dimensional time-of-flight sensor, and the three-dimensional time-of-flight sensor, and configured to determine a first eye protection distance between the user and the electronic device and a first eye protection height of the electronic device relative to the user based on the sitting height, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for executing the distance determination method described in the first aspect.

[0015] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes: a processor; a memory for storing processor-executable instructions; the processor is configured to execute the distance determination method described in the first aspect.

[0016] The distance determination method provided by the embodiments of the present application determines the sitting height of the user when the user of the electronic device has an eye protection request, and then determines a first eye protection distance and a first eye protection height between the user and the electronic device based on the sitting height of the user, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height. Different from the solution of setting a fixed eye protection distance and eye protection height when the electronic device leaves the factory, the embodiments of the present application provide a suitable eye protection distance and eye protection height for each user of the electronic device. That is, different users of the electronic device have different corresponding eye protection heights and eye protection distances. In addition, for the same user of the electronic device, if the sitting height of the user is different at different times, the corresponding eye protection distance and eye protection height of the user are also different. That is to say, the eye protection height and eye protection distance provided by the embodiments of the present application change dynamically according to the user and the sitting height of the user, so as to better protect the eyes of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other objects, features, and advantages of the present application will become more obvious. The accompanying drawings are used to provide a further understanding of the embodiments of the present application, and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation to the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0018] Figure 1 Shown is a schematic diagram of a scenario applicable to the embodiments of the present application.

[0019] Figure 2 The following is a schematic flowchart of a distance determination method provided by an exemplary embodiment of the present application.

[0020] Figure 3 The following is a schematic flowchart of a distance determination method provided by another exemplary embodiment of the present application.

[0021] Figure 4 The following is a schematic flowchart of a process for determining a second eye protection distance between a user and an electronic device provided by an exemplary embodiment of the present application.

[0022] Figure 5 The following is a schematic diagram of a process for determining a second eye protection distance between a user and an electronic device provided by an exemplary embodiment of the present application.

[0023] Figure 6 The following is a schematic flowchart of a process for determining a second eye protection distance between a user and an electronic device provided by another exemplary embodiment of the present application.

[0024] Figure 7 The following is a schematic flowchart of a process for determining the sitting height of a user provided by an exemplary embodiment of the present application.

[0025] Figure 8 The following is a schematic flowchart of a distance determination method provided by yet another exemplary embodiment of the present application.

[0026] Figure 9 The following is a schematic flowchart of a distance determination method provided by still another exemplary embodiment of the present application.

[0027] Figure 10 The following is a schematic structural diagram of a distance determination device provided by an exemplary embodiment of the present application.

[0028] Figure 11 The following is a schematic structural diagram of an eye protection distance detection system provided by an exemplary embodiment of the present application.

[0029] Figure 12 The following is a schematic structural diagram of an eye protection distance detection system provided by another exemplary embodiment of the present application.

[0030] Figure 13 The following is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0031] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0032] Exemplary Application Scenarios

[0033] Figure 1 Shown is a schematic diagram of a scenario applicable to the present application. This scenario is an application scenario of the learning machine 10. The learning machine 10 includes a main controller 11, a distance detection device 12, and a display screen 13, and there is a communication connection relationship among the main controller 11, the distance detection device 12, and the display screen 13.

[0034] Specifically, the distance detection device 12 is used to determine the sitting height of the user in the case where the user has an eye protection request for the electronic device. The distance detection device 12 may be a distance detection sensor. Specifically, it may be a one-dimensional time-of-flight sensor (One-dimensional Time of Flight, 1D-TOF), or a three-dimensional time-of-flight sensor (Three-dimensional Time of Flight, 3D-TOF). The embodiments of the present application do not make specific limitations on the structure of the distance detection device 12.

[0035] The main controller 11 is used to determine the first eye protection distance between the user and the electronic device and the first eye protection height between the electronic device and the user according to the sitting height of the user determined by the distance detection device 12, and display the first eye protection distance and the first eye protection height to the user through the display screen 13, so that the user can adjust the relative position relationship with the electronic device based on the first eye protection height and the first eye protection distance. Further, the main controller 13 may be a central processing unit (Central Processing Unit, CPU).

[0036] In addition, in another embodiment, while the main controller displays the first eye protection distance and the first eye protection height to the user through the display screen 13, it can also actively control the up and down movement and / or the front and back movement of the electronic device through a control unit (not shown in the figure) built in the electronic device to adjust the relative position relationship between the user and the electronic device.

[0037] Exemplary Method

[0038] Figure 2 Shown is a schematic flowchart of a distance determination method provided by an exemplary embodiment of the present application. As Figure 2As shown in the figure, the distance determination method provided by the embodiments of the present application includes the following steps.

[0039] Step S210: In response to the eye protection request of the user of the electronic device, determine the sitting height of the user.

[0040] Exemplarily, the eye protection request of the user may be that the user turns on the eye protection assistant on the electronic device. Further, after the user turns on the eye protection assistant on the electronic device, the distance detection device may further determine the sitting height of the user.

[0041] Step S220: Based on the sitting height, determine the first eye protection distance between the user and the electronic device, and the first eye protection height of the electronic device relative to the user, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

[0042] Exemplarily, the first eye protection distance and the first eye protection height between the user and the electronic device may be determined by the eye protection distance formula and the eye protection height formula.

[0043] Exemplarily, the eye protection distance formula is The eye protection height formula is Where d represents the eye protection distance, h represents the eye protection height, and H represents the sitting height of the user.

[0044] Exemplarily, the first eye protection distance and the first eye protection height between the user and the electronic device may also be determined by using the eye protection distance and eye protection height detection model. For example, a large number of training sample sets are collected, and each training sample set includes the sitting height sample data of the user, as well as the eye protection distance sample data and eye protection height sample data suitable for the user. Using the training sample set and the pre-set target loss function, the network model to be trained is trained to obtain the eye protection distance and eye protection height detection model. Further, the eye protection distance and eye protection height detection model is deployed in the electronic device. When the electronic device collects the sitting height of the user, the corresponding first eye protection distance and first eye protection height of the user can be automatically obtained by using this model.

[0045] It should be noted that the determination methods of the first eye protection distance and the first eye protection height provided by the embodiments of the present application are only examples, and are not specific limitations thereto. Those skilled in the art may select specific methods to determine the eye protection distance and eye protection height of the user according to the actual situation.

[0046] The distance determination method provided by the embodiments of the present application determines the sitting height of the user when there is an eye protection request from the user of the electronic device, and then determines the first eye protection distance and the first eye protection height between the user and the electronic device based on the sitting height of the user, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height. Different from the solution of setting a fixed eye protection distance and eye protection height when the electronic device leaves the factory, the embodiments of the present application provide a suitable eye protection distance and eye protection height for each user of the electronic device. That is, for different users of the electronic device, the corresponding eye protection height and eye protection distance are also different. In addition, for the same user of the electronic device, if the sitting height of the user is different at different times, the corresponding eye protection distance and eye protection height of the user are also different. That is to say, the eye protection height and eye protection distance provided by the embodiments of the present application change dynamically according to the user and the sitting height of the user, so as to better protect the eyes of the user.

[0047] Figure 3 The following is a schematic flowchart of the distance determination method provided by another exemplary embodiment of the present application. On the basis of Figure 2 the embodiment shown, Figure 3 the embodiment shown is extended. The following focuses on Figure 3 the differences between the embodiment shown and Figure 2 the embodiment shown, and the same parts will not be described again.

[0048] As Figure 3 shown, in the embodiments of the present application, after determining the first eye protection distance between the user and the electronic device and the eye protection height of the electronic device relative to the user, the following steps are further included.

[0049] Step S310, determine the current usage mode of the electronic device.

[0050] Step S320, based on the current usage mode, determine the second eye protection distance between the user and the electronic device.

[0051] Exemplarily, the usage mode may include a viewing mode, a writing mode, and so on. The second eye protection distance determined in the embodiments of the present application is calculated according to the current usage mode of the electronic device under the condition that the first eye protection height remains unchanged. Further, due to different current usage modes of the electronic device, the eye protection distance between the user and the electronic device is also different.

[0052] After determining the second eye protection distance between the user and the electronic device, the user can actively adjust the relative position relationship with the electronic device according to the second eye protection distance, or the electronic device can actively adjust the relative position relationship with the electronic device according to the second eye protection distance.

[0053] Through the distance determination method provided by the embodiments of the present application, the purpose of determining the second eye protection distance corresponding to the current usage mode according to different current usage modes of the electronic device is achieved, so as to adjust the relative position relationship between the user and the electronic device according to the second eye protection distance. That is, the embodiments of the present application provide a feasible implementation solution for the determination method of the eye protection distance between the user and the electronic device in a specific usage scenario.

[0054] Figure 4 The following is a schematic flowchart of determining the second eye protection distance between the user and the electronic device provided by an exemplary embodiment of the present application. Figure 3 Based on the embodiment shown above, Figure 4 the embodiment shown below is extended. Figure 4 The differences between the embodiment shown in Figure 3 and the embodiment shown above will be mainly described below, and the same parts will not be repeated.

[0055] As Figure 4 shown, in the embodiments of the present application, based on the current usage mode, determining the second eye protection distance between the user and the electronic device includes the following steps.

[0056] Step S410, when the current usage mode is the viewing mode, determine the eye position information of the user.

[0057] Exemplarily, the eye position information of the user refers to the central position coordinates of the two eyes of the user in the reference coordinate system, where the reference coordinate system includes the coordinate system of the distance detection device.

[0058] Step S420, based on the eye position information and the maximum display width information of the electronic device, determine the second eye protection distance between the user and the electronic device.

[0059] The following Figure 5 takes an example to illustrate how to determine the second eye protection distance between the user and the electronic device according to the eye position information and the maximum display width information of the electronic device.

[0060] Specifically, determine the midpoint position information of the interpupillary distance according to the eye position information; determine the comfortable angular range of the human eye when the user views the electronic device, and the comfortable angular range of the human eye refers to the angular range between the midpoint of the interpupillary distance and the two ends of the wide side of the display screen of the electronic device in the comfortable state when the user views the electronic device. Further, according to the midpoint position information of the interpupillary distance, the maximum display width information of the electronic device, and the comfortable angular range of the human eye, use trigonometric functions to determine the second eye protection distance between the user and the electronic device.

[0061] Under normal circumstances, the comfortable viewing angle range of a user's eyes when sitting still and watching an electronic device is from 30° to 60°. When it is less than 30°, the user is relatively close to the electronic device, which is not friendly to the eyes. When it is greater than 60°, the user will frequently turn their head and eyes, which places a heavy burden on the eyes and is likely to cause discomfort symptoms such as visual fatigue and dizziness. Figure 5 The following shows a schematic diagram for determining the second eye protection distance between a user and an electronic device provided by an exemplary embodiment of the present application. As Figure 5 shown, a1 is equal to 60°, a2 is equal to 30°, and A represents the maximum display width of the electronic device. It is generally considered that the midpoint of the eye distance is located at the center of the display screen. At this time, the lines connecting the midpoint of the eye distance to both ends of the wide side of the display screen form an isosceles triangle. Starting from the midpoint of the eye distance, a perpendicular line is drawn to the wide side of the display screen, and the length of the perpendicular line is the second eye protection distance between the user and the electronic device to be solved. As Figure 5 shown, d 1 is the second eye protection distance when the comfortable viewing angle of the human eye is 60° to be solved, and d 2 is the second eye protection distance when the comfortable viewing angle of the human eye is 30° to be solved. According to the calculation method of the tangent function of a right triangle in trigonometric functions, It can be seen that the second eye protection distance is greater than or equal to d 1 and less than or equal to d 2 .

[0062] In the embodiment of the present application, the eye protection distance range at which the human eye is relatively comfortable when watching an electronic device can be accurately calculated. Through the solution in the embodiment of the present application, a reference eye protection distance range is provided for the user in the viewing mode, so as to adjust the relative position relationship between the electronic device and the user based on this eye protection distance range.

[0063] Exemplarily, according to the calculated eye protection distance range, the user can actively adjust the distance d between themselves and the electronic device, as long as it is ensured that the distance d is within the second eye protection distance range. In addition, if the electronic device is built-in with a control unit for controlling the up and down movement and / or left and right movement of the electronic device, the electronic device can also actively adjust the distance d between itself and the user based on the second eye protection distance. Similarly, as long as it is ensured that the distance d is within the eye protection distance range.

[0064] Figure 6 The following shows a schematic flowchart for determining the second eye protection distance between a user and an electronic device provided by another exemplary embodiment of the present application. On the basis of the embodiment shown in Figure 3 an embodiment is extended as shown in Figure 6 and the following focuses on describing the embodiment shown in Figure 6 and the embodiment shown in Figure 3The differences of the illustrated embodiments will not be elaborated as the same parts will not be repeated.

[0065] As Figure 6 shown, based on the current usage mode, determining a second eye protection distance between the user and the electronic device includes the following steps.

[0066] Step S610, when the current usage mode is the writing mode, determining the user's arm length information, writing posture information, and writing pen size information.

[0067] Specifically, the arm length information includes the length of the user's arm, the writing posture information includes the distance between the user's body and the electronic device and the degree of body inclination in the writing mode, and the writing pen size information includes the length of the writing pen.

[0068] Step S620, based on the arm length information, writing posture information, and writing pen size information, determining the second eye protection distance between the user and the electronic device.

[0069] Specifically, the writing posture information includes the position information of the user's hand holding the writing pen. Based on the distance detection device to detect the user's arm length, and according to the writing pen size information, the position information of the hand holding the writing pen, and the user's arm length, determining the second eye protection distance between the user and the electronic device.

[0070] For example, the size information of the writing pen is 15 cm, the user holds the writing pen at the 1 / 3 position, that is, the user's hand is 5 cm away from the writing end of the writing pen, and the user's arm length is 65 cm, then the second eye protection distance between the user and the electronic device is (65 + 5) cm, that is, the second eye protection distance is 70 cm.

[0071] In addition, if the user writes directly with the hand, the second eye protection distance between the user and the electronic device can also be determined based on the preset suitable distance range from the palm to the display screen and the user's arm length information.

[0072] For example, the preset suitable distance range from the palm to the display screen is 2 - 10 cm, and the user's arm length is 65 cm, then the second eye protection distance between the user and the electronic device is 67 - 75 cm.

[0073] As Figure 5 described in the illustrated embodiment, according to the calculated second eye protection distance, the user can actively adjust the distance d from the electronic device, or use the control unit built in the electronic device to control the up and down movement and / or left and right movement of the electronic device to adjust the relative position relationship between the user and the electronic device. Similarly, no matter how the adjustment method is, as long as the distance d satisfies the second eye protection distance.

[0074] Through the solution in the embodiments of the present application, the purpose of determining the second eye protection distance between the user and the electronic device according to the user's arm length, writing posture, and writing pen size is achieved. While enriching the scenarios for determining the eye protection distance, a suitable eye protection distance for the user in this scenario is provided, facilitating the adjustment of the relative position relationship between the user and the electronic device based on this eye protection distance.

[0075] Figure 7 The following is a schematic flowchart of the process for determining the sitting height of the user provided by an exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 7 the embodiment shown is extended, Figure 7 and the differences between the embodiment shown Figure 2 and the embodiment shown are emphasized below. The same parts will not be elaborated again.

[0076] As Figure 7 shown, in the embodiments of the present application, determining the sitting height of the user includes the following steps.

[0077] Step S710, use the three-dimensional time-of-flight sensor of the electronic device to detect the sitting height of the user.

[0078] After determining the first eye protection distance between the user and the electronic device based on the sitting height, and the first eye protection height of the electronic device relative to the user (step S220), the following steps are included.

[0079] Step S720, turn off the three-dimensional time-of-flight sensor of the electronic device.

[0080] Step S730, use the one-dimensional time-of-flight sensor of the electronic device to detect the actual distance between the user and the electronic device, so as to remind the user to adjust the relative position relationship with the electronic device based on the actual distance.

[0081] Exemplarily, if the actual distance between the user and the electronic device is less than the first eye protection distance, the relative position relationship between the user and the electronic device is adjusted according to the first eye protection distance, so that the actual distance between the user and the electronic device meets the first eye protection distance. Among them, the first eye protection distance can be a determined value or a value range.

[0082] In an embodiment of the present application, after detecting the sitting height of a user using a three-dimensional time-of-flight sensor, the eye protection height and eye protection distance of the user can be calculated. During the subsequent use of the electronic device, the three-dimensional time-of-flight sensor is turned off, and the one-dimensional time-of-flight sensor is turned on to detect the sitting posture and usage mode of the user, so as to provide the appropriate eye protection distance for the user according to the current state of the user. Since the one-dimensional time-of-flight sensor has lower power consumption than the three-dimensional time-of-flight sensor, the solution of the embodiment of the present application can not only calculate the appropriate eye protection distance for the user, but also save power consumption.

[0083] Figure 8 The following is a schematic flowchart of a distance determination method provided by another exemplary embodiment of the present application. On the basis of Figure 2 the embodiment shown, the embodiment shown Figure 8 is extended. The following focuses on Figure 8 the differences between the embodiment shown and Figure 2 the embodiment shown, and the same parts will not be elaborated.

[0084] As Figure 8 shown, in an embodiment of the present application, before determining the sitting height of the user in response to the eye protection request of the user of the electronic device, the following steps are further included.

[0085] Step S810: When the electronic device is started for the first time, present a height input window to the user.

[0086] Step S820: In response to the input operation of the user in the height input window, obtain the height information of the user.

[0087] Step S830: Based on the height information, determine the third eye protection distance between the user and the electronic device, and the second eye protection height of the electronic device relative to the user.

[0088] Specifically, after obtaining the height information of the user, the third eye protection distance and the second eye protection height between the user and the electronic device can be calculated through the Figure 2 eye protection distance calculation formula and eye protection height calculation formula described in, where H represents the height data of the user.

[0089] Through the solution of the embodiment of the present application, the basis for determining the eye protection distance and eye protection height is further enriched, and the relative position relationship between the user and the electronic device is adjusted according to the third eye protection distance and the second eye protection height when the user does not issue an eye protection request. That is, even if the user does not issue an eye protection request, the electronic device can provide the user with an initial eye protection distance (the third eye protection distance) and an initial eye protection height (the second eye protection height) for the user to refer to.

[0090] Figure 9 The following is a schematic flow chart of the distance determination method provided by another exemplary embodiment of the present application. Based on Figure 2 the embodiment shown, Figure 9 an extended embodiment is derived. Below, the differences between the Figure 9 embodiment shown and the Figure 2 embodiment shown will be mainly described, and the same parts will not be elaborated.

[0091] As Figure 9 shown, after determining the first eye protection distance between the user and the electronic device and the first eye protection height of the electronic device relative to the user based on the sitting height, the following steps are further included.

[0092] Step S910, collect the posture data of the user.

[0093] Specifically, the posture data includes the head posture deflection angle and the body tilt angle.

[0094] Step S920, determine whether the posture data meets the abnormal display condition.

[0095] The abnormal display condition is a defined range of data for the head posture deflection angle and the body tilt angle. Exemplarily, when the head posture deflection angle is less than or equal to 30°, it is normal; when it is greater than 30°, it meets the posture abnormal display condition. When the body tilt angle is less than or equal to 45°, it is normal; when the body tilt angle is greater than 45°, it meets the posture abnormal display condition.

[0096] Exemplarily, if the judgment result of step S920 is yes, that is, the posture data meets the abnormal display condition, then step S930 is executed; if the judgment result of step S920 is no, that is, the posture data does not meet the abnormal display condition, then step S940 is executed.

[0097] Step S930, send a prompt message to the user, and / or adjust the relative position relationship between the electronic device and the user.

[0098] In the embodiment of the present application, at least two ways are provided to adjust the relative position relationship between the user and the electronic device. First, according to the prompt message, the user actively adjusts his own posture data until it does not meet the abnormal display condition. Second, according to the prompt message, the electronic device actively adjusts its own height and distance relative to the user until the posture data of the user relative to the electronic device does not meet the abnormal display condition.

[0099] Step S940, end.

[0100] Embodiments of the present application provide prompts for some abnormal postures of a user during the use of an electronic device, so that the user can make timely posture adjustments based on the prompts, or the electronic device actively adjusts the height and distance relative to the user, so that the posture data of the user relative to the electronic device does not meet the posture abnormality display conditions. That is, the solution of the embodiments of the present application can determine the eye protection distance and eye protection height dynamically for the user to protect the user's eyes.

[0101] Exemplary Device and System

[0102] As described above in conjunction with Figures 1 to 9 , embodiments of the distance determination method of the present application have been described in detail. Below, in conjunction with Figures 10 to 12 , embodiments of the distance determination device and the eye protection distance detection system of the present application will be described in detail. It should be understood that the description of the embodiments of the distance determination method corresponds to the description of the embodiments of the distance determination device and the eye protection distance detection system. Therefore, for parts not described in detail, reference can be made to the previous method embodiments.

[0103] Figure 10 The following shows a schematic structural diagram of a distance determination device provided by an exemplary embodiment of the present application. As Figure 10 shown, the distance determination device 100 provided by the embodiments of the present application includes:

[0104] A first determination module 1010, configured to determine the sitting height of the user in response to an eye protection request of the user of the electronic device;

[0105] A second determination module 1020, configured to determine a first eye protection distance between the user and the electronic device and a first eye protection height of the electronic device relative to the user based on the sitting height, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

[0106] In an embodiment of the present application, the second determination module 1020 is further configured to determine the current usage mode of the electronic device; and determine a second eye protection distance between the user and the electronic device based on the current usage mode, so as to adjust the relative position relationship between the user and the electronic device based on the second eye protection distance in the current usage mode.

[0107] In an embodiment of the present application, the second determination module 1020 is further configured to determine the eye position information of the user when the current usage mode is the viewing mode; and determine a second eye protection distance between the user and the electronic device based on the eye position information and the maximum display width information of the electronic device.

[0108] In an embodiment of the present application, the second determination module 1020 is further configured to determine the arm length information, writing posture information, and writing pen size information of the user when the current usage mode is the writing mode; and determine a second eye protection distance between the user and the electronic device based on the arm length information, writing posture information, and writing pen size information.

[0109] In an embodiment of the present application, the first determination module 1010 is further configured to detect the sitting height of the user by using the three-dimensional time-of-flight sensor of the electronic device; after determining the first eye protection distance between the user and the electronic device and the first eye protection height of the electronic device relative to the user based on the sitting height, it further includes: turning off the three-dimensional time-of-flight sensor of the electronic device; detecting the actual distance between the user and the electronic device by using the one-dimensional time-of-flight sensor of the electronic device, so as to remind the user to adjust the relative position relationship with the electronic device based on the actual distance.

[0110] In an embodiment of the present application, the first determination module 1010 is further configured to present a height input window to the user when the electronic device is started for the first time; in response to the input operation of the user in the height input window, obtain the height information of the user; and determine the third eye protection distance between the user and the electronic device and the second eye protection height of the electronic device relative to the user based on the height information, so as to adjust the relative position relationship between the user and the electronic device based on the third eye protection distance and the second eye protection height when the user does not issue an eye protection request.

[0111] In an embodiment of the present application, the second determination module 1020 is further configured to collect the posture data of the user; if the posture data meets the posture anomaly prompt condition, send a prompt message to the user, and / or adjust the relative position relationship between the electronic device and the user.

[0112] Figure 11 The following shows a schematic structural diagram of an eye protection distance detection system provided by an exemplary embodiment of the present application. As Figure 11 shown, the eye protection distance detection system 110 provided by the embodiment of the present application includes:

[0113] A display screen 1110;

[0114] A one-dimensional time-of-flight sensor 1120;

[0115] A three-dimensional time-of-flight sensor 1130, configured to determine the sitting height of the user in response to an eye protection request of the user of the electronic device;

[0116] The main controller 1140 is communicatively connected to the display screen 1110, the one-dimensional time-of-flight sensor 1120, and the three-dimensional time-of-flight sensor 1130, and is configured to determine a first eye protection distance between the user and the electronic device and a first eye protection height of the electronic device relative to the user based on the sitting height, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

[0117] Figure 12 The following is a schematic structural diagram of an eye protection distance detection system 110 provided by another exemplary embodiment of the present application. As Figure 12 shown, the eye protection distance detection system of the embodiment of the present application further includes a microphone 1150, and there is a communication connection between the microphone 1150 and the main controller 1140. Specifically, after the three-dimensional time-of-flight sensor 1130 determines the sitting height of the user, and based on the sitting height of the user, the main controller 1140 determines the first eye protection height and the first eye protection distance between the user and the electronic device, the three-dimensional time-of-flight sensor 1130 is turned off, and the one-dimensional time-of-flight sensor 1120 is turned on for subsequent determination of the eye protection distance between the user and the electronic device. The main controller 1140 determines the eye protection distance between the user and the electronic device according to the usage data or posture data of the user collected by the one-dimensional time-of-flight sensor 1140, gives a prompt to the user through the microphone, and at the same time displays the eye protection distance data on the display screen.

[0118] Exemplarily, the one-dimensional time-of-flight sensor 1120 and the main controller 1140 communicate through an Inter-Integrated Circuit (I2C) interface, the microphone 1150 and the main controller 1140 communicate through an Integrated Interchip Sound (I2S) interface, and both the display screen 1110 and the three-dimensional time-of-flight sensor 1130 communicate with the main controller 1140 through a Mobile Industry Processor Interface (MIPI) interface.

[0119] Next, refer to Figure 13 to describe the electronic device according to the embodiment of the present application. Figure 13 The following is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application.

[0120] As Figure 13 shown, the electronic device 130 includes one or more processors 1301 and a memory 1302.

[0121] The processor 1301 can be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and can control other components in the electronic device 130 to perform desired functions.

[0122] The memory 1302 can include one or more computer program products, and the computer program products can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory can include, for example, random access memory (RAM) and / or cache memory, etc. The non-volatile memory can include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions can be stored on the computer-readable storage media, and the processor 1301 can run the program instructions to implement the distance determination methods of various embodiments of the present application described above and / or other desired functions. Various contents such as the user's sitting height, the first eye protection distance, and the first eye protection height can also be stored in the computer-readable storage media.

[0123] In one example, the electronic device 130 can further include: an input device 1303 and an output device 1304, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).

[0124] The input device 1303 can include, for example, a keyboard, a mouse, etc.

[0125] The output device 1304 can output various information to the outside, including the user's sitting height, the first eye protection distance, the first eye protection height, etc. The output device 1304 can include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.

[0126] Of course, for simplicity, Figure 13 only some of the components related to the present application in the electronic device 130 are shown, and components such as buses, input / output interfaces, etc. are omitted. In addition, according to specific application scenarios, the electronic device 130 can further include any other appropriate components.

[0127] In addition to the above methods and devices, the embodiments of the present application can also be computer program products, which include computer program instructions that, when run by a processor, cause the processor to execute the steps in the distance determination methods according to various embodiments of the present application described above in this specification.

[0128] The computer program product may be written in any combination of one or more programming languages for programming code to perform the operations of the embodiments of the present application. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages. The programming code may be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0129] In addition, an embodiment of the present application may also be a computer-readable storage medium storing computer program instructions, which, when run by a processor, cause the processor to execute the steps in the distance determination method according to various embodiments of the present application described above in this specification.

[0130] The computer-readable storage medium may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0131] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, benefits, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, benefits, effects, etc. are essential for each embodiment of the present application. In addition, the above-disclosed specific details are only for illustrative purposes and for ease of understanding, and are not limitations. The above details do not limit the present application to necessarily implement using the above specific details.

[0132] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "comprising," "including," "having," etc. are open-ended terms that mean "including but not limited to" and can be used interchangeably with each other. The word "or" and "and" used herein refer to the phrase "and / or" and can be used interchangeably with it, unless the context clearly indicates otherwise. The phrase "such as" used herein refers to the phrase "such as but not limited to" and can be used interchangeably with it.

[0133] It should also be noted that in the apparatuses, equipment, and methods of this application, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of this application.

[0134] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.

[0135] The above description has been given for purposes of illustration and description. In addition, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions, and sub-combinations thereof.

Claims

1. A distance determination method, characterized in that: include: In response to an eye protection request from a user of the electronic device, determining a sitting height of the user; Based on the sitting height, a first eye protection distance between the user and the electronic device and a first eye protection height of the electronic device relative to the user are determined, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

2. The distance determination method according to claim 1, characterized in that: After determining the first eye protection distance between the user and the electronic device and the eye protection height of the electronic device relative to the user based on the sitting height, the method further includes: determining a current usage mode of the electronic device; Based on the current usage mode, a second eye protection distance between the user and the electronic device is determined, so that in the current usage mode, the relative position relationship between the user and the electronic device is adjusted based on the second eye protection distance.

3. The distance determination method according to claim 2, characterized in that: The determining, based on the current usage mode, a second eye protection distance between the user and the electronic device comprises: When the current usage mode is a viewing mode, determining eye position information of the user; Based on the eye position information and the maximum display width information of the electronic device, a second eye protection distance between the user and the electronic device is determined.

4. The distance determination method according to claim 2, characterized in that: The determining, based on the current usage mode, a second eye protection distance between the user and the electronic device comprises: In the case where the current use mode is the writing mode, determining the user's arm length information, writing posture information, and writing pen size information; Based on the arm length information, the writing posture information and the writing pen size information, a second eye protection distance between the user and the electronic device is determined.

5. The distance determination method according to any one of claims 1 to 4, characterized in that: Determining the sitting height of the user comprises: Detecting the sitting height of the user using a three-dimensional time-of-flight sensor of the electronic device; After determining the first eye protection distance between the user and the electronic device and the first eye protection height of the electronic device relative to the user based on the sitting height, the method further includes: Turning off a three-dimensional time-of-flight sensor of the electronic device; The one-dimensional time-of-flight sensor of the electronic device is used to detect the actual distance between the user and the electronic device, so as to remind the user to adjust the relative position relationship between the user and the electronic device based on the actual distance.

6. The distance determination method according to any one of claims 1 to 4, characterized in that: Before determining the sitting height of the user in response to the eye protection request of the user of the electronic device, the method further includes: When the electronic device is started for the first time, presenting a height input window to the user; In response to the user's input operation in the height input window, acquiring the user's height information; Based on the height information, a third eye protection distance between the user and the electronic device and a second eye protection height of the electronic device relative to the user are determined, so that when the user does not issue the eye protection request, the relative position relationship between the user and the electronic device is adjusted based on the third eye protection distance and the second eye protection height.

7. The distance determination method according to any one of claims 1 to 4, characterized in that: After determining the first eye protection distance between the user and the electronic device and the first eye protection height of the electronic device relative to the user based on the sitting height, the method further includes: collecting posture data of the user; If the posture data meets the posture abnormality prompt condition, a prompt message is sent to the user, and / or the relative position relationship between the electronic device and the user is adjusted.

8. A distance determination device, characterized in that: include: A first determination module, configured to determine a sitting height of a user of the electronic device in response to an eye protection request of the user; The second determination module is used to determine a first eye protection distance between the user and the electronic device, and a first eye protection height of the electronic device relative to the user based on the sitting height, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

9. An eye protection distance detection system, characterized in that: include: Display screen; 1D time-of-flight sensor; a three-dimensional time-of-flight sensor for determining a sitting height of a user of the electronic device in response to an eye protection request of the user; A main controller is communicatively connected to the display screen, the one-dimensional time-of-flight sensor, and the three-dimensional time-of-flight sensor, and is used to determine a first eye protection distance between the user and the electronic device, and a first eye protection height of the electronic device relative to the user based on the sitting height, so as to adjust the relative position relationship between the user and the electronic device based on the first eye protection distance and the first eye protection height.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the distance determination method according to any one of claims 1 to 7 above.

11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the distance determination method described in any one of claims 1 to 7 above.

Citation Information

Patent Citations

  • A method and device for protecting eyesight

    CN109582148A

  • Notebook computer with eye protection function

    CN214174970U