Posture reminding method, device and equipment and readable storage medium
By detecting the angle of the screen plane movement of the user when facing the screen of the electronic device, the problem of inconvenience in wearing headsets in the prior art is solved, and cervical vertebra posture detection and real-time prompts are realized without additional equipment, improving user experience and cervical vertebra health.
Patent Information
- Application Number
- CN202411843167.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-04-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art analyzes the cervical vertebrae bending by detecting head posture by head-mounted devices, but it requires long-term wear, resulting in head discomfort and limited movement, affecting the user experience.
By detecting that the user is facing the screen of the electronic device, the moving angle of the screen plane relative to the gravity direction is obtained and used as the cervical vertebra bend angle, and the prompt information is output when the angle exceeds the threshold.
It realizes that when users use electronic devices normally, they naturally detect the cervical vertebra posture, obtain angle data in real time and prompt prompts, avoiding the damage to the cervical vertebra when maintaining bad posture for a long time, and no additional equipment or operations are required.
Smart Images

Figure CN119863907A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a posture reminder method, device, equipment and readable storage medium. Background Art
[0002] With the popularization of electronic devices, users are likely to ignore the posture of their head when using electronic devices. From time to time, they will have bad postures such as lowering their heads or tilting their heads, which will cause certain pressure on the cervical spine and affect the health of the cervical spine.
[0003] In the related art, the head posture is usually detected by a head-mounted device to obtain the user's cervical curvature, so as to remind the user to adjust the posture. However, when qualitatively analyzing the impact on the cervical spine by wearing a head-mounted device to detect the head posture, it is necessary to wear it on the head for a long time to continuously monitor the cervical curvature. These devices usually exert a certain amount of pressure on the head, which will make the user feel uncomfortable. In addition, wearing a head-mounted device will also restrict the user's head movement to a certain extent, which will cause the user to be unable to make large head movements, affecting the user's experience. Summary of the invention
[0004] The embodiments of the present invention provide a posture reminder method, device, electronic device and readable storage medium, which can naturally perform detection during the normal use of the electronic device by the user, without the need for additional complex operations, equipment or going to a specific place for detection, and can monitor the cervical spine posture anytime and anywhere.
[0005] In order to solve the above problems, in a first aspect, an embodiment of the present invention discloses a gesture reminder method, the method comprising:
[0006] When it is detected that the user is facing the screen of the electronic device, obtaining the activity angle of the plane where the screen is located relative to the gravity direction;
[0007] When it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located, the activity angle is used as the cervical vertebra bending angle of the user;
[0008] When the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, a prompt message is output, wherein the prompt message is used to prompt the user that there is an abnormality in the cervical vertebra posture.
[0009] Optionally, obtaining an activity angle of a plane where the screen is located relative to a gravity direction includes:
[0010] Acquire a first activity angle of the plane where the screen is located relative to the gravity direction;
[0011] After a preset detection time period, obtaining a second activity angle of the plane where the screen is located relative to the gravity direction;
[0012] The difference between the second activity angle and the first activity angle is used as the activity angle of the plane where the screen is located relative to the gravity direction.
[0013] Optionally, obtaining the activity angle of the plane where the screen is located relative to the gravity direction includes:
[0014] Acquire multiple acceleration components of the electronic device in a preset coordinate system, and acquire the gravity component of the gravity direction in the preset coordinate system through an acceleration sensor provided in the electronic device; wherein the preset coordinate system has the long axis direction of the screen as a first coordinate axis, the short axis direction of the screen as a second coordinate axis, and a direction perpendicular to the plane where the screen is located as a third coordinate axis, and the gravity direction is the negative direction of the third coordinate axis;
[0015] Determining a target component corresponding to the plane where the screen is located from the multiple acceleration components;
[0016] Calculating the angle between the plane where the screen is located and the gravity component according to the target component and the gravity component;
[0017] The included angle is taken as the active angle.
[0018] Optionally, the method further comprises:
[0019] Acquiring multiple rotation components of the electronic device in a preset coordinate system through a gyroscope provided in the electronic device;
[0020] For each coordinate axis in the preset coordinate system, the acceleration component corresponding to the coordinate axis is corrected according to the rotation component corresponding to the coordinate axis to obtain a corrected acceleration component.
[0021] Optionally, the multiple acceleration components include a first component corresponding to the first coordinate axis, a second component corresponding to the second coordinate axis, and a third component corresponding to a third coordinate axis;
[0022] Determining, from the multiple acceleration components, a target component corresponding to the plane where the screen is located comprises:
[0023] When the plane where the screen is located rotates around a target coordinate axis, the candidate component and the third component are used as the target component corresponding to the plane where the screen is located; the target coordinate axis is the first coordinate axis or the second coordinate axis, and the candidate component is a component corresponding to a coordinate axis other than the target coordinate axis among the first coordinate axis and the second coordinate axis;
[0024] Calculating the angle between the plane where the screen is located and the gravity component according to the target component and the gravity component includes:
[0025] The angle between the plane where the screen is located and the gravity component is calculated according to the candidate component, the third component, and the gravity component.
[0026] Optionally, the multiple rotation components include a first rotation component corresponding to the first coordinate axis, a second rotation component corresponding to the second coordinate axis, and a third rotation component corresponding to the third coordinate axis;
[0027] The step of correcting the acceleration component corresponding to the coordinate axis according to the rotation component corresponding to the coordinate axis to obtain the corrected acceleration component comprises:
[0028] Correcting the first component according to the first rotation component to obtain a corrected first component;
[0029] Correcting the second component according to the second rotation component to obtain a corrected second component;
[0030] Correcting the third component according to the three rotation components to obtain a corrected third component;
[0031] The corrected first component, the corrected second component, and the corrected third component are used as corrected acceleration components.
[0032] Optionally, when the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, outputting prompt information includes:
[0033] When the obtained cervical vertebra bending angle is greater than or equal to a preset bending angle threshold and lasts for a preset time, the prompt information is output on the screen.
[0034] Optionally, the method further comprises:
[0035] When it is detected that a user is facing the screen of the electronic device, acquiring image information of the user;
[0036] When the image information is identified and the user is determined to be a target user, the screen of the electronic device is controlled to be locked.
[0037] In a second aspect, an embodiment of the present invention provides a posture reminder device, the device comprising:
[0038] An acquisition module, configured to acquire an activity angle of a plane where the screen is located relative to a gravity direction when it is detected that a user is facing a screen of an electronic device;
[0039] a determination module, configured to use the activity angle as the cervical vertebra bending angle of the user when it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located;
[0040] The output module is used to output a prompt message when the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, wherein the prompt message is used to prompt the user that there is an abnormality in the cervical vertebra posture.
[0041] An embodiment of the present invention further discloses an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor; when the processor executes the program, the aforementioned method is implemented.
[0042] The embodiment of the present invention further discloses a readable storage medium. When instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device can execute the aforementioned method.
[0043] The embodiments of the present invention include the following advantages:
[0044] The posture reminder method provided by the embodiment of the present invention, when it is detected that the user is facing the screen of the electronic device, obtains the activity angle of the plane where the screen is located relative to the direction of gravity; when it is determined that the direction of the user's line of sight viewing the screen is perpendicular to the plane where the screen is located, the activity angle is used as the user's cervical vertebra bending angle; when the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, a prompt message is output, and the prompt message is used to remind the user that there is an abnormality in the cervical vertebra posture. In this way, detection can be carried out naturally during the user's normal use of the electronic device, and relevant angle data can be obtained in real time and judgments can be made in time. Once the cervical vertebra bending angle reaches the abnormal threshold, a prompt message is immediately output, so that the user can know at the first time that there is a problem with his current cervical vertebra posture, so as to make timely adjustments to avoid further damage to the cervical spine caused by maintaining a bad posture for a long time. There is no need for additional complicated operations, equipment or going to a specific place for detection, and the cervical vertebra posture can be monitored anytime and anywhere. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a flow chart of a posture reminder method provided by an embodiment of the present application;
[0046] Figure 2 is a schematic diagram of a preset coordinate system provided by an embodiment of the present invention;
[0047] Figure 3is a schematic diagram of screen rotation in a vertical screen scenario provided by an embodiment of the present invention;
[0048] Figure 4 is a schematic diagram of screen rotation in a horizontal screen scenario provided by an embodiment of the present invention;
[0049] Figure 5 is a schematic diagram of a cervical vertebra bending degree and a screen rotation degree provided by an embodiment of the present invention;
[0050] Figure 6 is a flow chart of another posture reminder method provided by an embodiment of the present application;
[0051] Figure 7 is a block diagram of a posture reminder device provided in an embodiment of the present application;
[0052] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0054] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0055] Before introducing the posture reminder method, device, electronic device and readable storage medium provided by the present disclosure, the application scenarios involved in each embodiment of the present disclosure are first introduced. The present disclosure can be applied to the scenario of posture detection reminder, and the posture reminder method provided by the embodiment of the present disclosure can be applied to a device with an angle acquisition function. Among them, the electronic device may include a mobile phone, a camera, a tablet computer, etc., and these electronic devices may be provided with corresponding angle acquisition units, such as an acceleration sensor, a gyroscope, etc., and the corresponding angle acquisition operation can be performed through the angle acquisition unit.
[0056] At present, with the popularization of electronic devices, users are likely to ignore the posture of their head when using electronic devices. From time to time, they will have bad postures such as lowering their heads or tilting their heads, which will cause certain pressure on the cervical spine and affect the health of the cervical spine.
[0057] In the related art, the user's cervical curvature is usually further obtained by detecting the head posture through a head-mounted device, so as to remind the user to adjust the posture. However, in order to qualitatively analyze the impact on the cervical spine by wearing a head-mounted device to detect the head posture, it is necessary to wear it on the head for a long time to continuously monitor the cervical curvature. However, these devices usually exert a certain amount of pressure on the head, which will make the user feel uncomfortable. In addition, wearing a head-mounted device will also restrict the user's head movement to a certain extent, which will cause the user to be unable to make large head movements, affecting the user's experience.
[0058] In order to solve the above problems, the present disclosure provides a posture reminder method, device, electronic device and readable storage medium, which can naturally perform detection during the normal use of electronic devices by users, can obtain relevant angle data in real time and make timely judgments. Once the cervical spine bending angle reaches the abnormal threshold, a prompt message is immediately output, so that users can know at the first time that there is a problem with their current cervical spine posture, so as to make timely adjustments and avoid further damage to the cervical spine caused by maintaining a bad posture for a long time. There is no need for additional complex operations, equipment or special visits to specific places for detection, and the cervical spine posture can be monitored anytime and anywhere.
[0059] Method Embodiment
[0060] The following is a detailed description of the posture reminder method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0061] Figure 1 is a flow chart of a posture reminder method provided by an embodiment of the present application, such as Figure 1 As shown, the method is applied to electronic devices, which may include mobile phones, cameras, tablet computers, etc. These electronic devices may be provided with corresponding angle acquisition units, such as acceleration sensors, gyroscopes, etc., and corresponding angle acquisition operations may be performed through the angle acquisition units.
[0062] The method may include the following steps.
[0063] In step S101, when it is detected that the user is facing the screen of the electronic device, the activity angle of the plane where the screen is located relative to the gravity direction is obtained.
[0064] The gravity direction refers to the direction in which an object is acted upon by the gravity of the earth near the surface of the earth. Usually, the gravity direction is vertically downward, and “vertically downward” is usually relative to the surface of the earth.
[0065] The plane where the screen is located can be a virtual plane that includes the screen display area. Taking a tablet computer as an example, the screen glass and the display layer underneath it constitute the physical part of the screen, and the plane where these parts are located is the plane where the screen is located, which not only includes the visible display content area, but also includes the plane where the border part around the screen is located.
[0066] In this step, it is firstly detected whether the user is currently facing the screen of the electronic device.
[0067] Optionally, firstly, it can be detected whether the electronic device is in the powered-on state. When the electronic device is in the powered-on state, it can be determined by a facial recognition algorithm whether the user's face is facing the screen.
[0068] For example, the electronic device includes a corresponding system mechanism to identify its operating status. For example, at the hardware level, the power management module of the electronic device monitors the power supply and the power-on and initialization status of each key component (such as processor, memory, etc.). When the power button is pressed, the power supply starts to supply power to each component, and the processor reads instructions from the preset startup program position and performs initialization operations, completes a series of self-test and system loading steps, and finally enters a state where the operating system and various applications can be run normally. For example, the operating system of the electronic device itself will also maintain an identification bit or state variable indicating the operating status, and the identification can be queried to determine whether the electronic device is turned on and running. For example, in a common mobile phone operating system, the operating status will be recorded in the relevant data structure of the system kernel after the system is started, and in the Android system, the Android framework layer also has a similar mechanism to reflect that the device is currently in a state of being turned on and running normally.
[0069] Furthermore, when the electronic device is determined to be in the power-on state by the above method, after the front camera of the electronic device acquires the facial image of the user, the facial recognition algorithm will extract the coordinates of the key feature points of the face. Specifically, the coordinate positions of the eyes, nose, mouth and other parts can be extracted, and then the relative position relationship of these feature points relative to the coordinate system of the screen can be calculated.
[0070] For example, the horizontal coordinate difference between the center points of the two eyes can be calculated. If the difference is within the preset permitted range (indicating that the two eyes are basically at the same horizontal position and near the horizontal center of the screen), and the vertical coordinate position of the nose and the center coordinate position in the vertical direction of the screen are also within the preset permitted range, it can be determined that the user's face is facing the screen. In addition, the overall angle of the face can also be considered. For example, the geometric relationship between the feature points and the existing angle calculation method can be used to determine whether the face is obviously tilted left or right or up and down. Only when all features meet the standard of facing the screen, can the user's face be finally determined to be facing the screen.
[0071] Then, the active angle of the plane where the screen is located relative to the gravity direction can be obtained.
[0072] In order to dynamically monitor the changes in the angle of the plane where the screen is located, in some embodiments, the first activity angle of the plane where the screen is located relative to the direction of gravity can be first obtained; after a preset detection time period, the second activity angle of the plane where the screen is located relative to the direction of gravity can be obtained; and the difference between the second activity angle and the first activity angle is used as the activity angle of the plane where the screen is located relative to the direction of gravity.
[0073] The preset detection time period is a time period used to dynamically monitor changes in the angle of the plane where the screen is located.
[0074] In some embodiments, an acceleration sensor provided in the electronic device can be used to obtain multiple acceleration components of the electronic device in a preset coordinate system, and to obtain a gravity component of the gravity direction in the preset coordinate system.
[0075] Among them, the preset coordinate system can use the long axis direction of the screen as the first coordinate axis, the short axis direction of the screen as the second coordinate axis, and the direction perpendicular to the plane of the screen as the third coordinate axis, and the gravity direction is the negative direction of the third coordinate axis.
[0076] And the acceleration sensor is a device capable of measuring the acceleration of an object, usually based on micro-electromechanical system (MEMS) technology, and may include a movable mass block and a sensitive element for detecting its displacement. When the electronic device is in the process of moving, the mass block will produce relative displacement due to inertia, and the displacement can be detected by a sensitive element (such as a capacitive, piezoresistive or piezoelectric sensor) and converted into an electrical signal. The acceleration magnitude of the electronic device in each direction can be obtained by processing and calibrating the electrical signal. Specifically, in an electronic device, the acceleration sensor can sense the acceleration change of the electronic device in three-dimensional space. For the preset coordinate system, the acceleration components of the device in the direction of the long axis of the screen (the first coordinate axis), the direction of the short axis of the screen (the second coordinate axis) and the direction perpendicular to the plane where the screen is located (the third coordinate axis) can be measured respectively.
[0077] In this embodiment, if Figure 2 As shown, first, a preset coordinate system can be established. When establishing the preset coordinate system, in a scenario where the screen is perpendicular to the direction of gravity and the screen is facing the opposite direction of the ground, the long axis direction of the screen can be used as the first coordinate axis (Y axis), the short axis direction of the screen can be used as the second coordinate axis (X axis), and the direction perpendicular to the plane where the screen is located can be used as the third coordinate axis (Z axis).
[0078] Then, when the electronic device is in motion or in motion, the acceleration sensor can detect changes in acceleration in the three coordinate axes. For example, when the user shakes the phone left and right, the acceleration sensor will detect changes in acceleration in the short axis direction of the screen (the second coordinate axis); when the user moves the phone up and down, the acceleration will be detected in the long axis direction of the screen (the first coordinate axis). The magnitude and direction of these acceleration components will change with the motion state of the device. Through the signal output by the acceleration sensor and the corresponding signal processing algorithm, these acceleration components of the device in the preset coordinate system can be obtained.
[0079] Furthermore, when the electronic device is stationary, the magnitude of the acceleration detected by the acceleration sensor in the direction of the third coordinate axis is the gravitational acceleration, and the direction is the negative direction, that is, the gravitational component.
[0080] Then, a target component corresponding to the plane where the screen is located can be determined from the multiple acceleration components, and the angle between the plane where the screen is located and the gravity component can be calculated based on the target component and the gravity component.
[0081] For example, when the plane of the screen is rotated around a target coordinate axis, the candidate component and the third component can be used as the target components corresponding to the plane of the screen, and the angle between the plane of the screen and the gravity component can be calculated based on the candidate component, the third component, and the gravity component.
[0082] The target coordinate axis is the first coordinate axis or the second coordinate axis, and the candidate component is a component corresponding to a coordinate axis other than the target coordinate axis between the first coordinate axis and the second coordinate axis.
[0083] In a possible implementation, when a user is in a standing position and uses the electronic device in portrait mode, the screen of the electronic device is usually Figure 3 As shown in scene 1 in FIG. 1 , at this time, the plane where the screen is located is perpendicular to the direction of gravity, and the screen faces the positive direction of the third coordinate axis (Z axis). When the user adjusts the viewing angle of the electronic device screen for the user, it is equivalent to the plane where the screen is located rotating around the X axis, as shown in FIG. Figure 3 In another possible implementation, when the user is standing and using the electronic device in landscape mode, the screen of the electronic device is usually as shown in Scenario 2. Figure 4 As shown in scene 1 in FIG, at this time, the plane where the screen is located is perpendicular to the direction of gravity, and the screen faces the positive direction of the third coordinate axis (Z axis). When the user adjusts the viewing angle of the electronic device screen for the user, it is equivalent to the plane where the screen is located rotating around the Y axis, as shown in FIG. Figure 4 As shown in Scene 2.
[0084] When the plane where the screen is located rotates around the first coordinate axis or the second coordinate axis, the angle of the screen plane relative to the direction of gravity will change. For example, taking the mobile phone screen as an example, if the screen rotates around the long axis (first coordinate axis), it is like tilting the vertical screen mobile phone to one side; or rotating around the short axis (second coordinate axis), such as flipping the mobile phone upside down. In this rotation case, the target coordinate axis is the axis that is rotating, and the candidate component is the component corresponding to the coordinate axis other than the target coordinate axis in the first and second coordinate axes. For example, if the screen plane rotates around the first coordinate axis, then the component corresponding to the second coordinate axis is the candidate component; conversely, if it rotates around the second coordinate axis, the component corresponding to the first coordinate axis is the candidate component. The third component is the component corresponding to the direction perpendicular to the plane where the screen is located (the third coordinate axis).
[0085] Then, the angle between the plane where the screen is located and the gravity component can be calculated by a preset calculation method, wherein the preset calculation method can adopt an existing calculation method, and the specific calculation process will not be repeated here.
[0086] It should be noted that when the user is lying flat, it can be regarded as the user holding the electronic screen above the head when standing, so the calculation process is consistent with the above steps and will not be repeated here. However, what needs to be calculated is no longer the angle between the plane where the screen is located and the gravity component, but the active angle between the plane where the screen is located and the horizontal plane.
[0087] However, considering that there are still scenarios where users use electronic devices while lying on their side, in this case, in some embodiments, a gyroscope provided in the electronic device can be used to obtain multiple rotation components of the electronic device in a preset coordinate system; then, for each coordinate axis in the preset coordinate system, the acceleration component corresponding to the coordinate axis is corrected according to the rotation component corresponding to the coordinate axis to obtain a corrected acceleration component.
[0088] The multiple rotation components include a first rotation component corresponding to the first coordinate axis, a second rotation component corresponding to the second coordinate axis, and a third rotation component corresponding to the third coordinate axis.
[0089] Optionally, the first component can be corrected according to the first rotation component to obtain a corrected first component; the second component can be corrected according to the second rotation component to obtain a corrected second component; and the third component can be corrected according to the three rotation components to obtain a corrected third component; then the corrected first component, the corrected second component, and the corrected third component can be used as corrected acceleration components.
[0090] Then, the angle between the plane where the screen is located and the gravity component is calculated using the corrected first component, the corrected second component, the corrected third component, and the gravity component.
[0091] In step S102, when it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located, the activity angle is used as the cervical vertebra bending angle of the user.
[0092] In this step, it can first be determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located.
[0093] Optionally, the relevant feature information of the user's eyes can be obtained first, for example, the user's eye image can be captured by the front camera on the electronic device. Through the eye feature extraction algorithm in computer vision technology, the key parts of the eye, such as the center of the pupil, the corner of the eye, etc., can be identified. Then, after the key feature points of the eye are obtained, the line of sight direction can be constructed based on the preset geometric model and algorithm. For example, it can be assumed that the eye is an approximate sphere, with the center of the pupil as the starting point. According to the physiological structure of the eyeball and the principle of visual imaging of the human eye, the direction of the line of sight is calculated by calculating the geometric relationship related to the surface of the eyeball, the lens, etc. Then the vector coordinates of the line of sight direction can be converted to the same coordinate system as the plane where the screen is located, and mathematical methods can be used to determine whether the two are perpendicular.
[0094] Considering that in normal posture, the human body's cervical spine posture and the angle of the screen plane relative to the direction of gravity are closely related. For example, when people maintain a good sitting posture and look at the computer screen, the computer screen is perpendicular to the desktop (with a specific angle relationship to the direction of gravity). At this time, the cervical spine is in a normal physiological curvature, and the line of sight is just vertically looking at the screen. Once the angle of the screen plane changes due to reasons such as the placement of the device, it often means that the cervical spine has adjusted its curvature accordingly in order to adapt to this new viewing angle. Figure 5 As shown, the active angle of the plane where the screen is located relative to the direction of gravity can largely reflect the change in the cervical vertebrae bending angle. And in the daily use of electronic devices, people usually unconsciously adjust the cervical spine posture to ensure that the line of sight is perpendicular to the screen, thereby obtaining a clear visual effect. For example, when the phone is held higher, lowered, or the screen is tilted, the cervical spine will stretch, bend, or bend sideways synchronously, so the dynamic change of the screen plane angle and the actual bending angle of the cervical spine are basically synchronous. Using this active angle to represent the cervical spine bending angle is in line with the actual human body movement law.
[0095] Therefore, when it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located, the activity angle can be used as the cervical vertebra bending angle of the user.
[0096] In step S103, when the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, a prompt message is output.
[0097] Among them, the prompt information is used to remind the user that there is an abnormality in the cervical spine posture.
[0098] In some embodiments, the prompt information can be output on the screen when the obtained cervical vertebra bending angle is greater than or equal to a preset bending angle threshold and lasts for a preset time.
[0099] In other embodiments, when it is detected that the user is facing the screen of the electronic device, the image information of the user can be obtained; when the image information is identified and the user is determined to be the target user, the screen of the electronic device can be locked.
[0100] For example, when the image information of the user is obtained, the image feature vector may be extracted first, and after the image feature vector is extracted, it may be compared with the feature vector of the target user that is pre-stored.
[0101] The pre-stored target user feature vector includes the one collected during the initial device setting or user registration phase and saved after being processed.
[0102] During the comparison process, a distance measurement method (such as Euclidean distance, cosine similarity, etc.) can be used to measure the similarity between two feature vectors. If the calculated similarity exceeds the set threshold (for example, cosine similarity is greater than 0.8, etc.), it can be determined that the user in the current image is the target user; otherwise, it is determined that it is not the target user.
[0103] When the current user is determined to be the target user, the operating system or related application of the electronic device will perform a screen locking operation.
[0104] Specifically, the specific implementation methods of screen locking are different in different electronic devices (such as smart phones, tablets, laptops, etc.), but may include calling the relevant display management module, stopping the normal display content update of the screen, and switching to the lock interface, which can be used to display time, prompt unlocking methods (such as entering a password, fingerprint recognition, face unlocking, etc.), and other information.
[0105] By adopting the above technical solution, when it is detected that the user is facing the screen of the electronic device, the activity angle of the plane where the screen is located relative to the gravity direction is obtained; when it is determined that the direction of the user's line of sight viewing the screen is perpendicular to the plane where the screen is located, the activity angle is used as the user's cervical vertebra bending angle; when the cervical vertebra bending angle is greater than or equal to the preset bending angle threshold, a prompt message is output, and the prompt message is used to prompt the user that there is an abnormality in the cervical spine posture. In this way, the detection can be carried out naturally during the user's normal use of the electronic device, and the relevant angle data can be obtained in real time and a judgment can be made in time. Once the cervical spine bending angle reaches the abnormal threshold, a prompt message is immediately output, so that the user can know at the first time that there is a problem with his current cervical spine posture, so that he can make timely adjustments to avoid further damage to the cervical spine caused by maintaining a bad posture for a long time. There is no need for additional complex operations, equipment or going to a specific place for detection, and the cervical spine posture can be monitored anytime and anywhere.
[0106] Figure 6 is a flow chart of another posture reminder method provided by an embodiment of the present application. Figure 6 As shown, the method includes the following steps.
[0107] In step S201, when it is detected that the user is facing the screen of the electronic device, multiple acceleration components of the electronic device in a preset coordinate system and the gravity component of the gravity direction in the preset coordinate system are obtained through an acceleration sensor provided in the electronic device.
[0108] Among them, the preset coordinate system uses the long axis direction of the screen as the first coordinate axis, the short axis direction of the screen as the second coordinate axis, and the direction perpendicular to the plane where the screen is located as the third coordinate axis, and the gravity direction is the negative direction of the third coordinate axis.
[0109] In this step, it is firstly detected whether the user is currently facing the screen of the electronic device.
[0110] Optionally, firstly, it can be detected whether the electronic device is in the powered-on state. When the electronic device is in the powered-on state, it can be determined by a facial recognition algorithm whether the user's face is facing the screen.
[0111] Then, when the electronic device is in motion or in motion, the acceleration sensor can detect changes in acceleration in the three coordinate axes. For example, when the user shakes the phone left and right, the acceleration sensor will detect changes in acceleration in the short axis direction of the screen (the second coordinate axis); when the user moves the phone up and down, the acceleration will be detected in the long axis direction of the screen (the first coordinate axis). The magnitude and direction of these acceleration components will change with the motion state of the device. Through the signal output by the acceleration sensor and the corresponding signal processing algorithm, these acceleration components of the device in the preset coordinate system can be obtained.
[0112] Furthermore, when the electronic device is stationary, the magnitude of the acceleration detected by the acceleration sensor in the direction of the third coordinate axis is the gravitational acceleration, and the direction is the negative direction, that is, the gravitational component.
[0113] In step S202, a target component corresponding to the plane where the screen is located is determined from the multiple acceleration components.
[0114] In this step, when the plane of the screen is rotated around a target coordinate axis, the candidate component and the third component can be used as the target components corresponding to the plane of the screen, and the angle between the plane of the screen and the gravity component can be calculated based on the candidate component, the third component, and the gravity component.
[0115] The target coordinate axis is the first coordinate axis or the second coordinate axis, and the candidate component is a component corresponding to a coordinate axis other than the target coordinate axis between the first coordinate axis and the second coordinate axis.
[0116] When the plane where the screen is located rotates around the first coordinate axis or the second coordinate axis, the angle of the screen plane relative to the direction of gravity will change. For example, taking the mobile phone screen as an example, if the screen rotates around the long axis (first coordinate axis), it is like tilting the vertical screen mobile phone to one side; or rotating around the short axis (second coordinate axis), such as flipping the mobile phone upside down. In this rotation case, the target coordinate axis is the axis that is rotating, and the candidate component is the component corresponding to the coordinate axis other than the target coordinate axis in the first and second coordinate axes. For example, if the screen plane rotates around the first coordinate axis, then the component corresponding to the second coordinate axis is the candidate component; conversely, if it rotates around the second coordinate axis, the component corresponding to the first coordinate axis is the candidate component. The third component is the component corresponding to the direction perpendicular to the plane where the screen is located (the third coordinate axis).
[0117] When a user is standing and using the electronic device in portrait mode, the screen of the electronic device is usually Figure 3 As shown in scene 1 in FIG. 1 , at this time, the plane where the screen is located is perpendicular to the direction of gravity, and the screen faces the positive direction of the third coordinate axis (Z axis). When the user adjusts the viewing angle of the electronic device screen for the user, it is equivalent to the plane where the screen is located rotating around the X axis, as shown in FIG. Figure 3 In another possible implementation, when the user is standing and using the electronic device in landscape mode, the screen of the electronic device is usually as shown in Scenario 2. Figure 4 As shown in scene 1 in FIG, at this time, the plane where the screen is located is perpendicular to the direction of gravity, and the screen faces the positive direction of the third coordinate axis (Z axis). When the user adjusts the viewing angle of the electronic device screen for the user, it is equivalent to the plane where the screen is located rotating around the Y axis, as shown in FIG. Figure 4 As shown in Scene 2.
[0118] It should be noted that when the user is lying flat, it can be regarded as the user holding the electronic screen above the head when standing, so the calculation process is consistent with the above steps and will not be repeated here. However, what needs to be calculated is no longer the angle between the plane where the screen is located and the gravity component, but the active angle between the plane where the screen is located and the horizontal plane.
[0119] In step S203, the angle between the plane where the screen is located and the gravity component is calculated according to the target component and the gravity component, and the angle is used as the activity angle.
[0120] In step S204, it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located.
[0121] In this step, the relevant feature information of the user's eyes can be obtained first, for example, the user's eye image can be captured by the front camera on the electronic device. Through the eye feature extraction algorithm in computer vision technology, the key parts of the eye, such as the center of the pupil, the corner of the eye and other positions, can be identified. Then, after obtaining the key feature points of the eye, the line of sight direction can be constructed based on the preset geometric model and algorithm. For example, it can be assumed that the eye is an approximate sphere, with the center of the pupil as the starting point, and according to the physiological structure of the eyeball and the principle of visual imaging of the human eye, the direction of the line of sight is calculated by calculating the geometric relationship related to the surface of the eyeball, the lens, etc. Then the vector coordinates of the line of sight direction can be converted to the same coordinate system as the plane where the screen is located, and mathematical methods can be used to determine whether the two are perpendicular.
[0122] In step S205, the active angle is used as the cervical vertebra bending angle of the user.
[0123] Considering that in normal posture, the human body's cervical spine posture and the angle of the screen plane relative to the direction of gravity are closely related. For example, when people maintain a good sitting posture and look at the computer screen, the computer screen is perpendicular to the desktop (with a specific angle relationship to the direction of gravity). At this time, the cervical spine is in a normal physiological curvature, and the line of sight is just vertically looking at the screen. Once the angle of the screen plane changes due to reasons such as the placement of the device, it often means that the cervical spine has adjusted its curvature accordingly in order to adapt to this new viewing angle. Figure 5 As shown, the active angle of the plane where the screen is located relative to the direction of gravity can largely reflect the change in the cervical vertebrae bending angle. And in the daily use of electronic devices, people usually unconsciously adjust the cervical spine posture to ensure that the line of sight is perpendicular to the screen, thereby obtaining a clear visual effect. For example, when the phone is held higher, lowered, or the screen is tilted, the cervical spine will stretch, bend, or bend sideways synchronously, so the dynamic change of the screen plane angle and the actual bending angle of the cervical spine are basically synchronous. Using this active angle to represent the cervical spine bending angle is in line with the actual human body movement law.
[0124] Therefore, when it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located, the activity angle can be used as the cervical vertebra bending angle of the user.
[0125] In step S206, when the obtained cervical vertebra bending angle is greater than or equal to a preset bending angle threshold and lasts for a preset time, the prompt information is output on the screen.
[0126] Among them, the prompt information is used to remind the user that there is an abnormality in the cervical spine posture.
[0127] Alternatively, in step S207, the image information of the user is obtained.
[0128] In step S208, the image information is identified and the user is determined to be a target user.
[0129] For example, when the image information of the user is obtained, the image feature vector may be extracted first, and after the image feature vector is extracted, it may be compared with the feature vector of the target user that is pre-stored.
[0130] The pre-stored target user feature vector includes the one collected during the initial device setting or user registration phase and saved after being processed.
[0131] During the comparison process, a distance measurement method (such as Euclidean distance, cosine similarity, etc.) can be used to measure the similarity between two feature vectors. If the calculated similarity exceeds the set threshold (for example, cosine similarity is greater than 0.8, etc.), it can be determined that the user in the current image is the target user; otherwise, it is determined that it is not the target user.
[0132] In step S209, when the obtained cervical vertebra bending angle is greater than or equal to a preset bending angle threshold and lasts for a preset time period, the screen of the electronic device is controlled to be locked.
[0133] When the current user is determined to be the target user, the operating system or related application of the electronic device will perform a screen locking operation.
[0134] Specifically, the specific implementation methods of screen locking are different in different electronic devices (such as smart phones, tablets, laptops, etc.), but may include calling the relevant display management module, stopping the normal display content update of the screen, and switching to the lock interface, which can be used to display time, prompt unlocking methods (such as entering a password, fingerprint recognition, face unlocking, etc.), and other information.
[0135] By adopting the above technical solution, detection can be carried out naturally during the normal use of electronic devices by users, and relevant angle data can be obtained in real time and judgments can be made in a timely manner. Once the cervical spine bending angle reaches the abnormal threshold, a prompt message will be output immediately, so that users can know at the first time that there is a problem with their current cervical spine posture, so that they can make timely adjustments to avoid further damage to the cervical spine caused by maintaining a bad posture for a long time. There is no need for additional complex operations, equipment or special visits to specific places for testing, and the cervical spine posture can be monitored anytime and anywhere.
[0136] Device Embodiment
[0137] Figure 7 is a block diagram of a posture reminder device provided in an embodiment of the present application, such as Figure 7 As shown, the device 300 may include:
[0138] The acquisition module 301 is used to acquire the activity angle of the plane where the screen is located relative to the gravity direction when it is detected that the user is facing the screen of the electronic device;
[0139] A determination module 302 is used to use the activity angle as the user's cervical vertebra bending angle when it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located;
[0140] The output module 303 is used to output a prompt message when the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, and the prompt message is used to prompt the user that there is an abnormality in the cervical vertebra posture.
[0141] Optionally, the acquisition module 301 includes:
[0142] A first acquisition submodule, used to acquire a first activity angle of the plane where the screen is located relative to the gravity direction;
[0143] A second acquisition submodule, used to acquire a second activity angle of the plane where the screen is located relative to the gravity direction after a preset detection time period;
[0144] The first determining submodule is used to use the difference between the second activity angle and the first activity angle as the activity angle of the plane where the screen is located relative to the gravity direction.
[0145] Optionally, the acquisition module 301 includes:
[0146] A third acquisition submodule is used to acquire multiple acceleration components of the electronic device in a preset coordinate system and acquire the gravity component of the gravity direction in the preset coordinate system through an acceleration sensor provided in the electronic device; wherein the preset coordinate system uses the long axis direction of the screen as the first coordinate axis, the short axis direction of the screen as the second coordinate axis, and the direction perpendicular to the plane where the screen is located as the third coordinate axis, and the gravity direction is the negative direction of the third coordinate axis;
[0147] A second determination submodule is used to determine a target component corresponding to the plane where the screen is located from the multiple acceleration components;
[0148] The calculation submodule is used to calculate the angle between the plane where the screen is located and the gravity component according to the target component and the gravity component; and use the angle as the activity angle.
[0149] Optionally, the acquisition module 301 further includes:
[0150] A fourth acquisition submodule, configured to acquire a plurality of rotation components of the electronic device in a preset coordinate system through a gyroscope provided in the electronic device;
[0151] The third determination submodule is used to correct the acceleration component corresponding to each coordinate axis in the preset coordinate system according to the rotation component corresponding to the coordinate axis to obtain a corrected acceleration component.
[0152] Optionally, the multiple acceleration components include a first component corresponding to the first coordinate axis, a second component corresponding to the second coordinate axis, and a third component corresponding to the third coordinate axis; the second determination submodule is used to use the candidate component and the third component as the target component corresponding to the plane where the screen is located when the plane where the screen is located rotates around a target coordinate axis; the target coordinate axis is the first coordinate axis or the second coordinate axis, and the candidate component is the component corresponding to the coordinate axis other than the target coordinate axis among the first coordinate axis and the second coordinate axis; calculating the angle between the plane where the screen is located and the gravity component based on the target component and the gravity component includes: calculating the angle between the plane where the screen is located and the gravity component based on the candidate component, the third component, and the gravity component.
[0153] Optionally, the multiple rotation components include a first rotation component corresponding to the first coordinate axis, a second rotation component corresponding to the second coordinate axis, and a third rotation component corresponding to the third coordinate axis; the third determination submodule is used to correct the first component according to the first rotation component to obtain a corrected first component; correct the second component according to the second rotation component to obtain a corrected second component; correct the third component according to the three rotation components to obtain a corrected third component; and use the corrected first component, the corrected second component, and the corrected third component as corrected acceleration components.
[0154] Optionally, the output module 303 is used to output the prompt information on the screen when the obtained cervical vertebra bending angle is greater than or equal to a preset bending angle threshold and lasts for a preset time.
[0155] Optionally, the output module 303 is further configured to obtain image information of the user when it is detected that the user is facing the screen of the electronic device;
[0156] When the image information is identified and the user is determined to be the target user, the screen of the electronic device is controlled to be locked.
[0157] In summary, an embodiment of the present invention provides a posture reminder device, which is used to, when it is detected that a user is facing the screen of an electronic device, obtain the activity angle of the plane where the screen is located relative to the direction of gravity; when it is determined that the direction of the user's line of sight viewing the screen is perpendicular to the plane where the screen is located, use the activity angle as the user's cervical vertebra bending angle; when the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, output a prompt message, and the prompt message is used to remind the user that there is an abnormality in the cervical vertebra posture. In this way, detection can be carried out naturally during the user's normal use of the electronic device, and relevant angle data can be obtained in real time and judgments can be made in time. Once the cervical vertebra bending angle reaches the abnormal threshold, a prompt message is immediately output, so that the user can know at the first time that there is a problem with his current cervical vertebra posture, so as to make timely adjustments to avoid further damage to the cervical spine caused by maintaining a bad posture for a long time. There is no need for additional complicated operations, equipment or going to a specific place for detection, and the cervical vertebra posture can be monitored anytime and anywhere.
[0158] The posture reminder device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a GPU BOX, a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0159] The posture reminder device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0160] Alternatively, if Figure 8As shown, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the various steps of the above-mentioned posture reminder method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0161] In an embodiment of the present application, the memory may be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0162] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.
[0163] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned posture reminder method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0164] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0165] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned gesture reminder method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0166] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0167] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0168] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A gesture reminder method, characterized in that: Applied to electronic equipment, the method comprises: When it is detected that the user is facing the screen of the electronic device, obtaining the activity angle of the plane where the screen is located relative to the gravity direction; When it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located, the activity angle is used as the cervical vertebra bending angle of the user; When the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, a prompt message is output, wherein the prompt message is used to prompt the user that there is an abnormality in the cervical vertebra posture.
2. The method according to claim 1, characterized in that: The obtaining of the activity angle of the plane where the screen is located relative to the gravity direction comprises: Acquire a first active angle of the plane where the screen is located relative to the gravity direction; After a preset detection time period, obtaining a second activity angle of the plane where the screen is located relative to the gravity direction; The difference between the second activity angle and the first activity angle is used as the activity angle of the plane where the screen is located relative to the gravity direction.
3. The method according to claim 1, characterized in that: The obtaining of the activity angle of the plane where the screen is located relative to the gravity direction comprises: Acquire multiple acceleration components of the electronic device in a preset coordinate system, and acquire the gravity component of the gravity direction in the preset coordinate system through an acceleration sensor provided in the electronic device; wherein the preset coordinate system has the long axis direction of the screen as a first coordinate axis, the short axis direction of the screen as a second coordinate axis, and a direction perpendicular to the plane where the screen is located as a third coordinate axis, and the gravity direction is the negative direction of the third coordinate axis; Determining a target component corresponding to the plane where the screen is located from the multiple acceleration components; Calculating the angle between the plane where the screen is located and the gravity component according to the target component and the gravity component; The included angle is taken as the active angle.
4. The method according to claim 3, characterized in that The method further comprises: Acquiring multiple rotation components of the electronic device in a preset coordinate system through a gyroscope provided in the electronic device; For each coordinate axis in the preset coordinate system, the acceleration component corresponding to the coordinate axis is corrected according to the rotation component corresponding to the coordinate axis to obtain a corrected acceleration component.
5. The method according to claim 3, characterized in that: The multiple acceleration components include a first component corresponding to the first coordinate axis, a second component corresponding to the second coordinate axis, and a third component corresponding to the third coordinate axis; Determining, from the multiple acceleration components, a target component corresponding to the plane where the screen is located comprises: When the plane where the screen is located rotates around a target coordinate axis, the candidate component and the third component are used as the target component corresponding to the plane where the screen is located; the target coordinate axis is the first coordinate axis or the second coordinate axis, and the candidate component is a component corresponding to a coordinate axis other than the target coordinate axis among the first coordinate axis and the second coordinate axis; Calculating the angle between the plane where the screen is located and the gravity component according to the target component and the gravity component includes: The angle between the plane where the screen is located and the gravity component is calculated according to the candidate component, the third component, and the gravity component.
6. The method according to claim 4, characterized in that The multiple rotation components include a first rotation component corresponding to the first coordinate axis, a second rotation component corresponding to the second coordinate axis, and a third rotation component corresponding to the third coordinate axis; The step of correcting the acceleration component corresponding to the coordinate axis according to the rotation component corresponding to the coordinate axis to obtain the corrected acceleration component comprises: Correcting the first component according to the first rotation component to obtain a corrected first component; Correcting the second component according to the second rotation component to obtain a corrected second component; Correcting the third component according to the three rotation components to obtain a corrected third component; The corrected first component, the corrected second component, and the corrected third component are used as corrected acceleration components.
7. The method according to any one of claims 1 to 6, characterized in that When the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, outputting prompt information includes: When the obtained cervical vertebra bending angle is greater than or equal to a preset bending angle threshold and lasts for a preset time, the prompt information is output on the screen.
8. The method according to claim 7, characterized in that The method further comprises: When it is detected that a user is facing the screen of the electronic device, acquiring image information of the user; When the image information is identified and the user is determined to be a target user, the screen of the electronic device is controlled to be locked.
9. A posture reminder device, characterized in that: include: An acquisition module, configured to acquire an activity angle of a plane where the screen is located relative to a gravity direction when it is detected that a user is facing a screen of an electronic device; a determination module, configured to use the activity angle as the cervical vertebra bending angle of the user when it is determined that the sight line direction of the user viewing the screen is perpendicular to the plane where the screen is located; The output module is used to output a prompt message when the cervical vertebra bending angle is greater than or equal to a preset bending angle threshold, wherein the prompt message is used to prompt the user that there is an abnormality in the cervical vertebra posture.
10. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the detection method as claimed in any one of claims 1 to 8 when executing the program.
11. A readable storage medium, characterized in that: When the instructions or transactions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The method comprises instructions or transactions, which, when executed by a processor in an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Apparatus and method for assisting user to maintain correct posture
CN103021140A
User posture detecting method achieved through terminal device
CN103927250A
Control method for realizing film interaction through head-worn displayer
CN105044915A
Neck posture monitoring method based on sensor and image processing fusion
CN107273823A
Terminal use gesture-based warning method, terminal and computer storage medium
CN107426423A