WO2014169658A1 - Alarm method and device - Google Patents

Alarm method and device Download PDF

Info

Publication number
WO2014169658A1
WO2014169658A1 PCT/CN2013/087822 CN2013087822W WO2014169658A1 WO 2014169658 A1 WO2014169658 A1 WO 2014169658A1 CN 2013087822 W CN2013087822 W CN 2013087822W WO 2014169658 A1 WO2014169658 A1 WO 2014169658A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
alarm
module
location information
user
Prior art date
Application number
PCT/CN2013/087822
Other languages
French (fr)
Chinese (zh)
Inventor
李焕
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014169658A1 publication Critical patent/WO2014169658A1/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1116Determining posture transitions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Definitions

  • the present invention relates to the field of mobile terminals, and in particular, to an alarm method and apparatus.
  • mobile terminals represented by smart phones and tablets have become indispensable tools and entertainment products for people's daily work and life.
  • users use mobile phones for longer and longer, and more and more scenes are used, especially when many users use incorrect postures and eyes are too close to the mobile phone, which may lead to the body. , vision, etc. cause certain damage.
  • the user's bad posture is not reminded, the user will save the bad posture for a long time, which will affect the user's health. For example, if you look down on the mobile phone for a long time, it is easy to get a neck push.
  • the embodiment of the invention provides an alarm method and device, which can perform an alarm when the user uses the mobile terminal in a bad posture.
  • the location information includes: a screen orientation of the mobile terminal and an inclination of the mobile terminal, where the tilt angle is an angle between the mobile terminal and a horizontal plane.
  • the step of determining whether the current location information of the mobile terminal matches the first location information comprises:
  • the step of detecting the motion parameter of the mobile terminal includes:
  • the step of acquiring the current location information of the mobile terminal according to the motion parameter comprises: calculating an inclination of the mobile terminal according to an acceleration in a direction of the X axis.
  • the method further includes:
  • the distance between the user's eyes and the screen of the mobile terminal is detected, and it is determined whether the distance is less than the distance threshold, and if so, the second alarm is performed.
  • the step of detecting a distance between a user's eyes and a screen of the mobile terminal comprises:
  • the image of the user is collected by the camera, and the distance between the user's eyes and the screen of the mobile terminal is detected by the image processing method.
  • the method before determining whether the current location information of the mobile terminal matches the set location information, the method further includes: a timing process; the step of performing the first alarm and the second alarm includes: determining that the time is Whether the time value is greater than the preset time threshold, if it is greater than, the alarm is generated.
  • the timing process comprises:
  • the timer is cleared and the timing is started; the sensor detects whether the posture of the user currently using the mobile terminal changes;
  • the present invention also provides an alarm device, including: a setting module, a first detecting module, a first determining module, and a first alarm module;
  • the setting module is configured to: set first location information that indicates that the user uses the mobile terminal in a bad posture;
  • the first detecting module is configured to: when the mobile terminal is used, detecting a motion parameter of the mobile terminal, acquiring current location information of the mobile terminal according to the motion parameter;
  • the method is: determining whether the current location information of the mobile terminal matches the first location information, and if yes, determining that the user uses the mobile terminal in a bad posture, and notifying the first alarm module to perform the first alarm.
  • the location information includes: a screen orientation of the mobile terminal and an inclination of the mobile terminal, where the tilt angle is an angle between the mobile terminal and a horizontal plane.
  • the first determining module is configured to: determine whether the current screen orientation of the mobile terminal is upward, if not, determine that the current location information of the mobile terminal matches the set location information, if And determining whether the tilt angle of the current mobile terminal is within the set tilt angle range, and if yes, determining that the current location information of the mobile terminal matches the set location information.
  • the first detecting module comprises a three-axis acceleration sensor and a computing module;
  • the three-axis acceleration sensor is configured to: acquire accelerations of the mobile terminal in three directions of X, ⁇ , and ⁇ axes;
  • the calculation module is configured to: obtain an orientation of the screen of the mobile terminal according to an acceleration in a direction of a x-axis, and calculate an inclination of the mobile terminal according to an acceleration in a direction of a ⁇ , a ⁇ axis.
  • the alarm device further includes: a second detection module, a second determination module, and a second alarm module;
  • the second detecting module is configured to: detect a distance between a user's eyes and a screen of the mobile terminal during use by the mobile terminal;
  • the second determining module is configured to: determine whether the distance detected by the second detecting module is less than a distance threshold;
  • the second alarm module is configured to: perform a second alarm if the second determining module determines to be YES.
  • the second detecting module comprises a camera and an image processing module
  • the camera is configured to: collect images of the user;
  • the image processing module is configured to: process the image of the user of the collection to obtain a user's eyes The distance from the screen of the mobile terminal.
  • the alarm device further includes a timing module
  • the timing module is configured to: start timing after determining whether the current location information of the mobile terminal matches the set location information;
  • the first alarm module is configured to: if the first determining module determines that the value is YES, determine whether the time value of the timing module is greater than a preset time threshold, and if yes, the alarm;
  • the second alarm module is configured to: if the second determination module determines that the value is YES, determine whether the time value of the timekeeping module is greater than a preset time threshold, and if the alarm is greater than, the alarm is generated.
  • the timing module comprises: a timer, a sensor and a timing control module; the timer is set to: clear, start timing;
  • the timing control module is configured to: detect, by the sensor, whether the posture of the user currently using the mobile terminal changes, and if so, notify the timer to clear the restart timing, and if not, notify the timer to continue counting.
  • the alarm method of the embodiment of the present invention acquires the position information of the mobile terminal indirectly by acquiring the current location information of the mobile terminal, and then determines whether the current location information of the mobile terminal and the set user use the mobile terminal in a bad posture.
  • the position information of the terminal is matched to indirectly determine whether the current usage posture of the user is a set bad posture, and if so, an alarm; for example, when the location information includes the screen orientation of the mobile terminal, setting the alarm method of the embodiment of the present invention can detect the movement
  • the current acceleration of the terminal is used to determine the orientation of the current mobile terminal by acceleration. If the orientation is set downward, when the location information indicating that the user uses the mobile terminal in the bad posture is the screen of the mobile terminal facing downward, the user is considered to be in a bad posture.
  • the mobile terminal is used, and the user is likely to be in a lying position to use the mobile terminal. Therefore, when the user is deemed to be using the mobile terminal in a bad posture, the mobile terminal will alert the user that the user is currently in a bad posture;
  • the method of Example alarm out of the mobile terminal user can enhance health.
  • FIG. 1 is a schematic flowchart diagram of an alarm method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of another alarm method according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic flowchart of another alarm method according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic flowchart diagram of an alarm method according to Embodiment 2 of the present invention
  • FIG. 5 is a schematic flowchart of another alarm method according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic flowchart of a timing process according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic structural diagram of an alarm device according to Embodiment 3 of the present invention.
  • FIG. 8 is a schematic structural diagram of another alarm device according to Embodiment 3 of the present invention.
  • FIG. 9 is a schematic structural diagram of a first type of alarm device according to Embodiment 4 of the present invention.
  • FIG. 10 is a schematic structural diagram of a second type of alarm device according to Embodiment 4 of the present invention.
  • FIG. 11 is a schematic structural diagram of a third type of alarm device according to Embodiment 4 of the present invention.
  • FIG. 12 is a schematic structural diagram of a timing module according to Embodiment 4 of the present invention. Preferred embodiment of the invention
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • this embodiment provides an alarm method, including the following steps:
  • Step 101 Set location information indicating that the user uses the mobile terminal in a bad posture
  • Step 102 In the process of using the mobile terminal, detecting a motion parameter of the mobile terminal, and acquiring, according to the motion parameter, the current current of the mobile terminal Location information;
  • Step 103 Determine whether the current location information of the mobile terminal matches the set location information, and if yes, go to step 104, if no, go to step 105;
  • Step 104 The user is considered to use the mobile terminal in a bad posture, and performs a first alarm.
  • Step 105 The user is considered to use the mobile terminal in a normal posture without performing an alarm.
  • the alarm method of the embodiment obtains the current location information of the mobile terminal by using the motion parameter of the mobile terminal, and then determines whether the current location information of the mobile terminal is bad with the set representation of the user. In the posture, the location information of the mobile terminal is matched to determine whether the user is in the bad posture to use the mobile terminal, and if so, the alarm is generated; for example, when the location information includes the screen orientation of the mobile terminal, setting the alarm method of the embodiment may detect the mobile terminal.
  • the current acceleration is used to determine the orientation of the current mobile terminal by acceleration.
  • the mobile terminal alerts the user that the user is currently in a bad posture;
  • the alarm method of the example can improve the health of the mobile terminal user.
  • the alarm method of the embodiment indirectly acquires the posture of the user currently using the mobile terminal by detecting the location information of the mobile terminal, and indirectly determines whether the posture of the current user using the mobile terminal is indirectly determined by determining whether the current location information matches the set location information. In the bad posture, the alarm method of this embodiment can quickly determine whether the user is in a posture and promptly alarms.
  • the location information indicating that the user uses the mobile terminal in a bad posture in the embodiment may be: location information of the mobile terminal when the user uses the mobile terminal in a bad posture.
  • the bad posture of the present embodiment is such that several types of bad postures which are more harmful to the body are compared. For example, it is possible to use a mobile terminal for lying down, a mobile terminal for standing upright, or a bad posture such as using a mobile terminal with the head up.
  • the location information is corresponding to the user's bad posture; therefore, the location information indicating that the user uses the mobile terminal in the bad posture may be the location information of the mobile terminal when the user uses the mobile terminal in an upright position, and the location information may include : a screen orientation of the mobile terminal and an inclination of the mobile terminal, the inclination angle is an angle between the mobile terminal and a horizontal plane, and the user uses the mobile terminal in an upright position with the screen facing upward and the inclination angle being within a certain range.
  • the user can set the user's bad posture according to the habit of using the mobile terminal.
  • the location information is not limited to the orientation and the tilt angle, and may include other location information indicating the gesture, such as the moving speed of the mobile terminal. The position information corresponding to different bad postures in this embodiment is different.
  • the motion parameters of this embodiment may include: acceleration, velocity, angular velocity, line displacement, angular acceleration, or other parameters related to object motion.
  • the following describes a process for determining whether the current location information of the mobile terminal matches the set location information:
  • the alarm method of the present embodiment mainly determines whether the user is in a bad posture by determining the screen orientation and the tilt angle of the mobile terminal, for example, when the screen of the mobile terminal is facing down (the user uses the mobile terminal in a lying posture), At this time, it is determined that the user is in a preset bad posture, and an alarm is issued to alert the user, for example, when the screen of the mobile terminal is facing upward, but the tilt angle is less than a given threshold (such as 45 degrees), indicating that the user uses the mobile phone in the upper body posture. (In this position, the user may cause damage to the neck of the user for a long time), then the user's current posture is judged to be a preset bad posture, and then an alarm is issued to remind the user. Therefore, the process of determining whether the current location information of the mobile terminal matches the set location information in the step 103 of the alarm method in this embodiment includes:
  • Determining whether the current screen orientation of the mobile terminal is upward if not, determining that the current location information of the mobile terminal matches the set location information, and if yes, determining whether the current tilt of the mobile terminal is set. Within the range of the tilt angle, if yes, it is determined that the current location information of the mobile terminal matches the set location information.
  • the alarm method of this embodiment does not only determine the user's bad posture by utilizing the orientation and the tilt angle, but also can determine the user's bad posture by using other characteristics of the mobile terminal.
  • the alarm method in this embodiment is specifically described below, including:
  • Step 201 setting location information indicating that the user uses the mobile terminal in a bad posture; the location information set at this time includes: a tilt range and a screen orientation of the mobile terminal when the user uses the mobile terminal in a bad posture.
  • Step 202 In the process of using the mobile terminal, detecting a motion parameter of the mobile terminal, and acquiring a screen orientation and a tilt angle of the current mobile terminal according to the motion parameter;
  • Step 203 Determine whether the screen of the mobile terminal is facing upward, and if yes, perform step 204, if no, Then performing step 205;
  • Step 204 Determine whether the tilt angle of the mobile terminal is within a preset range, and if yes, execute step 205, if no, perform step 206;
  • Step 205 It is considered that the current location information of the mobile terminal matches the set location information, and the user uses the mobile terminal in a bad posture, and the mobile terminal performs an alarm;
  • Step 206 It is considered that the current location information of the mobile terminal does not match the set location information, and the user uses the mobile terminal in the normal posture, and the mobile terminal does not perform an alarm.
  • the bad postures in the alarm method described in Fig. 2 include: Upright head using the mobile terminal (the screen is facing up and the tilt angle is within a certain range) and lying down using the mobile terminal (screen facing down).
  • the alarm method of this embodiment can issue an alarm when the user operates the mobile terminal in these two postures, reminding the user that the posture is incorrect and cannot be maintained for a long time, thereby improving the health of the user.
  • detecting the motion parameter of the mobile terminal may detect the parameter of the mobile terminal by using a sensor.
  • the acceleration of the mobile terminal in three directions of X, ⁇ , and ⁇ axes may be acquired by using a three-axis acceleration sensor; The orientation can be obtained directly by obtaining the positive and negative accelerations of the three-axis acceleration sensor.
  • the acceleration of the ⁇ axis is positive, the screen is facing upwards.
  • the ⁇ axis acceleration is negative, the screen is facing downward; the inclination can be adjusted by x and y axes.
  • the value is calculated by calculating the corresponding inverse tan trigonometric function value.
  • the alarm method in this embodiment may include the following:
  • Step 301 After the mobile phone is woken up, the monitoring is started in the background;
  • Step 302 During the use of the mobile phone, the three-axis acceleration sensor acquires the mobile phone in X, Y,
  • Step 303 determining whether the acceleration in the direction of the x-axis is greater than zero, and if so, executing step 304; if not, executing step 307;
  • Step 304 determining that the mobile phone screen is facing up, and thinking that the user is in an upright posture at this time;
  • Step 305 Calculate the tilt angle of the mobile phone according to the acceleration in the X-axis direction, determine whether the tilt angle is greater than the preset threshold a, and if yes, execute step 306, if no, perform step 302;
  • Step 306 Determine the user At this time, I am looking down at the posture of the mobile phone and performing an alarm; Step 307: It is determined that the user is in a posture of lying down using the mobile phone at this time, and an alarm is issued.
  • the alarm mode of this embodiment includes multiple types of alarms, such as sound, display, and vibration, to alert the user.
  • the mobile terminal of this embodiment may be a smart phone, a tablet computer, or the like.
  • the sensor in this embodiment may be a sensor originally provided by the mobile terminal, or may be a sensor specially added to the mobile terminal.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • this embodiment provides an alarm method.
  • the basis of the foregoing Embodiment 1 further includes:
  • Step 401 During the use of the mobile terminal, detecting a distance between a user's eyes and a screen of the mobile terminal,
  • Step 402 Determine whether the detected distance is within a preset range, if yes, proceed to step 403, and if not, execute step 404;
  • Step 403 Perform a second alarm.
  • Step 404 Keep the mobile terminal working state without performing an alarm.
  • the alarm method of this embodiment determines whether the user is too close when using the mobile terminal by detecting whether the distance between the user's eyes and the screen of the mobile terminal is within a preset range. If the detected distance is within a preset range, It is considered that the user's eyes are too close to the screen of the mobile terminal, which is likely to cause the user to be near-sighted, so an alarm is issued.
  • steps 401-404 of the present embodiment is not limited, and may be performed before the motion parameters are detected, or after the motion parameters are detected, or may be performed simultaneously with steps 102-103.
  • steps 401-404 of the present embodiment can be performed before, after or simultaneously with any of the steps in the first embodiment.
  • the detecting the distance between the user's eyes and the screen of the mobile terminal may include: collecting the image of the user by the camera, and detecting the distance between the user's eyes and the screen of the mobile terminal by using an image processing method. For example, the distance between the eyes of the user is extracted, and the corresponding distance is converted according to physical parameters such as the focal length of the camera.
  • the alarm method of this embodiment is Before determining whether the current location information of the mobile terminal matches the set location information, the method further includes: a timing process;
  • the step of performing the first alarm and the performing the second alarm in the embodiment includes: determining whether the time value of the timeout is greater than a preset time threshold, and if yes, performing an alarm.
  • the alarm method of this embodiment can also immediately alert when the mobile terminal is used when determining that the user is in a bad posture.
  • Step 501 After the mobile phone is woken up, the monitoring is started in the background;
  • Step 502 Calculate the distance between the eye and the screen by the method of image processing.
  • the distance between the eyes of the user is extracted, and the corresponding distance is converted according to physical parameters such as the focal length of the camera.
  • Step 503 The calculated current distance is compared with the given threshold L. If it is less than L, the process proceeds to step 504. If it is greater than L, the process returns to step 502 to continue monitoring.
  • Step 504 Determine whether the duration of the distance is greater than the corresponding threshold time T_E. If it is greater, the user is reminded that the distance is too close to the loss of vision. If not, the process returns to step 502 to continue monitoring.
  • the duration is the time value between the start of the timing and the determination of the current distance being less than the threshold L.
  • Step 505 Calculate the orientation, inclination, and the like of the screen of the mobile phone by reading the value of the acceleration sensor.
  • the orientation can directly obtain the positive and negative z-acceleration of the triaxial acceleration sensor; the dip angle can be obtained by calculating the corresponding inverse tan trigonometric function value using the x and y values.
  • step 505 is performed before step 502, step 505 is performed after step 502, or step 505 is performed simultaneously with step 502.
  • Step 506 It is determined that if the user is facing upward, the user is considered to be in an upright posture, and the angle determination process is entered; if the user is down, the user is considered to be lying down, and the mobile phone is used to enter the corresponding time. Compare Step34.
  • Step 507 Determine whether the tilt angle of the mobile phone calculated by step 505 is less than the threshold value ⁇ . If it is less than, the user is considered to be in a posture of looking down at the mobile phone, and enters the corresponding time comparison; otherwise, the monitoring returns to step 505.
  • Step 508 Compare whether the duration reaches the reminder time for reading the book ⁇ - ⁇ , if yes, go to step 509, if not, continue to monitor and return to step 505.
  • the duration is the time value between the start of the timing and the time when the inclination is judged to be less than the threshold ⁇ .
  • Step 509 reminds the user to pay attention to the activity protection neck push.
  • Step 510 (Previously, the mobile phone is determined to face downward) to determine whether the duration reaches the T-L time. If yes, proceed to step 511. If not, continue monitoring to return to step 505.
  • Step 511 Remind the user to use the mobile phone for a long time to damage the vision.
  • the process of timing in this embodiment includes (taking a mobile phone as an example):
  • Step 601 detecting that the mobile phone wakes up, that is, when the user starts using the mobile phone, the time starts to enter; step 602, the timer is cleared, and the timing starts;
  • Step 603 Acquire an absolute speed value of the mobile phone by using a motion sensor.
  • Step 604 determining whether the absolute speed is greater than the threshold SpeedO; if greater than, it is considered that the user is changing the posture of using the mobile terminal, after changing the posture, returning to step 602, the clearing timer restarts timing; if not greater, the user is considered not to have Changing the gesture using the mobile terminal proceeds to step 605 to continue timing.
  • the default location information of the user using the mobile terminal in a bad posture is: the screen of the mobile phone is facing up and the tilt angle is less than the threshold value, and the screen of the mobile phone is facing down.
  • the sensor can detect the acceleration change amount on the X, ⁇ , and ⁇ axes of the mobile terminal, and then calculate the absolute speed value according to the acceleration changes on the X, ⁇ , and ⁇ axes.
  • the first alarm and the second alarm in this embodiment may be the same process.
  • the alarm method of this embodiment can also issue an alarm when the user's eyes are too close to the screen, and can protect the user's vision.
  • Embodiment 3 is a diagrammatic representation of the user's eyes are too close to the screen, and can protect the user's vision.
  • the embodiment provides an alarm device, including: a setting module, a first detecting module, a first determining module, and a first alarm module;
  • the setting module is configured to: set location information indicating that the user uses the mobile terminal in a bad posture;
  • the first detecting module is configured to: when the mobile terminal is used, detecting a motion parameter of the mobile terminal, acquiring current location information of the mobile terminal according to the motion parameter; The method is: determining whether the current location information of the mobile terminal matches the set location information, and if yes, determining that the user uses the mobile terminal in a bad posture, and notifying the first alarm module to perform the first alarm.
  • the location information in this embodiment includes: a screen orientation of the mobile terminal and an inclination of the mobile terminal, where the tilt angle is an angle between the mobile terminal and a horizontal plane.
  • the first determining module is configured to: determine whether the current screen orientation of the mobile terminal is upward, and if not, determine that the current location information of the mobile terminal matches the set location information, if And determining whether the tilt angle of the current mobile terminal is within the set tilt angle range, and if yes, determining that the current location information of the mobile terminal matches the set location information.
  • the first detection module in this embodiment includes a three-axis acceleration sensor and a calculation module
  • the three-axis acceleration sensor is configured to: acquire accelerations of the mobile terminal in three directions of X, ⁇ , and ⁇ axes;
  • the calculation module is configured to: obtain an orientation of the screen of the mobile terminal according to an acceleration in a direction of a x-axis, and calculate an inclination of the mobile terminal according to an acceleration in a direction of a ⁇ , a ⁇ axis.
  • the alarm device of the present embodiment can issue an alarm when the user is in a bad posture using the mobile terminal, reminding the user to use the correct posture, and improving the health of the user.
  • the alarm device of this embodiment For the working process of the alarm device of this embodiment, reference may be made to the description of each step of the pair of alarm methods in the embodiment.
  • Embodiment 4 As shown in FIG. 9, on the basis of the third embodiment, the present disclosure provides that the alarm device further includes: a second detection module, a second determination module, and a second alarm module;
  • the second detecting module is configured to: detect a distance between a user's eyes and a screen of the mobile terminal during use by the mobile terminal;
  • the second determining module is configured to: determine whether the distance detected by the second detecting module is within a preset range
  • the second alarm module is configured to: perform a second alarm if the second determining module determines to be YES.
  • the second detecting module in this embodiment includes a camera and an image processing module
  • the camera is configured to: collect an image of a user
  • the image processing module is configured to: process the image of the user of the collection to derive a distance between the user's eyes and the screen of the mobile terminal.
  • the alarm device of this embodiment further includes: a timing module
  • the timing module is configured to: start timing after determining whether the current location information of the mobile terminal matches the set location information;
  • the first alarm module is configured to: if the first determining module determines that the value is YES, determine whether the time value of the timed module is greater than a preset time threshold, and if yes, the alarm;
  • the second alarm module is configured to: if the second determination module determines that the value is YES, determine whether the time value of the timekeeping module is greater than a preset time threshold, and if the alarm is greater than, the alarm is generated.
  • the timing module preferentially includes: a timer, a sensor, and a timing control module;
  • the timer is set to: clear, start timing
  • the timing control module is configured to: detect, by the sensor, whether the posture of the user currently using the mobile terminal changes, and if so, notify the timer to clear the restart timing, and if not, notify the timer to continue counting.
  • the alarm device of this embodiment can issue an alarm when the user posture is a bad posture and when the user's eyes are too close to the screen, which can also protect the user's vision.
  • the embodiment of the invention can perform an alarm when the user uses the mobile terminal in a bad posture, thereby improving the health of the user.

Abstract

An alarm method and device. The alarm method comprises: setting location information characterizing that a user uses a mobile terminal in a poor posture (101); in the process of using the mobile terminal, detecting a motion parameter of the mobile terminal, and according to the motion parameter, acquiring current location information about the mobile terminal (102); judging whether the current location information about the mobile terminal matches with the set location information or not (103); and if so, considering that the user uses the mobile terminal in the poor posture, and conducting a first alarm (104).

Description

一种告警方法及装置 技术领域  Alarm method and device
本发明涉及移动终端领域, 尤其涉及一种告警方法及装置。  The present invention relates to the field of mobile terminals, and in particular, to an alarm method and apparatus.
背景技术 Background technique
目前, 以智能手机、 平板为代表的移动终端已成为人们日常工作、 生活 不可或缺的工具和娱乐产品。 随着手机功能、 应用类型的丰富, 用户使用手 机的时间越来越长, 且使用的场景越来越多, 尤其是很多用户使用姿势不正 确、 眼睛距离手机过近等, 都可能导致对身体、 视力等造成一定损伤。 若不 对用户的不良姿势进行提醒的话, 用户就会长时间地保存不良姿势, 这样会 影响用户的健康, 例如长时间低头看手机的话, 容易得颈推病。  At present, mobile terminals represented by smart phones and tablets have become indispensable tools and entertainment products for people's daily work and life. With the rich functions of mobile phones and applications, users use mobile phones for longer and longer, and more and more scenes are used, especially when many users use incorrect postures and eyes are too close to the mobile phone, which may lead to the body. , vision, etc. cause certain damage. If the user's bad posture is not reminded, the user will save the bad posture for a long time, which will affect the user's health. For example, if you look down on the mobile phone for a long time, it is easy to get a neck push.
发明内容 Summary of the invention
本发明实施例提供一种告警方法及装置, 能够当用户在不良姿势下使用 移动终端时进行告警。  The embodiment of the invention provides an alarm method and device, which can perform an alarm when the user uses the mobile terminal in a bad posture.
本发明实施例提供的一种告警方法, 包括:  An alarm method provided by an embodiment of the present invention includes:
设置表征用户在不良姿势下使用移动终端的第一位置信息;  Setting first location information that characterizes the user's use of the mobile terminal in a bad posture;
在所述移动终端使用的过程中, 检测所述移动终端的运动参数, 根据所 述运动参数获取所述移动终端当前的位置信息;  In the process of using the mobile terminal, detecting a motion parameter of the mobile terminal, and acquiring current location information of the mobile terminal according to the motion parameter;
判断所述移动终端当前的位置信息是否与第一位置信息相匹配, 若是, 则认为用户在不良姿势下使用移动终端, 并进行第一告警。  Determining whether the current location information of the mobile terminal matches the first location information, and if yes, determining that the user uses the mobile terminal in a bad posture and performing the first alarm.
较佳地, 所述位置信息包括: 移动终端的屏幕朝向和所述移动终端的倾 角, 所述倾角为所述移动终端与水平面的夹角。  Preferably, the location information includes: a screen orientation of the mobile terminal and an inclination of the mobile terminal, where the tilt angle is an angle between the mobile terminal and a horizontal plane.
较佳地, 所述判断所述移动终端当前的位置信息是否与第一位置信息相 匹配的步骤包括:  Preferably, the step of determining whether the current location information of the mobile terminal matches the first location information comprises:
判断当前所述移动终端的屏幕朝向是否为朝上, 若否, 则判定所述移动 终端当前的位置信息与第一位置信息相匹配, 若是, 则判断当前所述移动终 端的倾角是否在设置的倾角范围内, 若是, 则判定所述移动终端当前的位置 信息与第一位置信息相匹配。 Determining whether the current screen orientation of the mobile terminal is upward, if not, determining that the current location information of the mobile terminal matches the first location information, and if yes, determining the current mobile terminal Whether the inclination of the end is within the set inclination angle, and if so, determining that the current position information of the mobile terminal matches the first position information.
较佳地, 所述检测所述移动终端的运动参数的步骤包括:  Preferably, the step of detecting the motion parameter of the mobile terminal includes:
通过三轴加速传感器获取所述移动终端在 X、 Υ、 Ζ轴三个方向上的加速 度;  Obtaining acceleration of the mobile terminal in three directions of X, Υ, and Ζ axes by a three-axis acceleration sensor;
根据 Ζ轴方向上的加速度获取所述移动终端屏幕的朝向;  Obtaining an orientation of the screen of the mobile terminal according to an acceleration in a direction of a x-axis;
所述根据所述运动参数获取所述移动终端当前的位置信息的步骤包括: 根据 X、 Υ轴方向上的加速度计算出所述移动终端的倾角。  The step of acquiring the current location information of the mobile terminal according to the motion parameter comprises: calculating an inclination of the mobile terminal according to an acceleration in a direction of the X axis.
较佳地, 所述方法还包括:  Preferably, the method further includes:
在移动终端使用的过程中, 检测用户眼睛与所述移动终端的屏幕之间的 距离, 判断该距离是否小于距离阔值, 若是, 则进行第二告警。  During the use of the mobile terminal, the distance between the user's eyes and the screen of the mobile terminal is detected, and it is determined whether the distance is less than the distance threshold, and if so, the second alarm is performed.
较佳地, 所述检测用户眼睛与所述移动终端的屏幕之间的距离的步骤包 括:  Preferably, the step of detecting a distance between a user's eyes and a screen of the mobile terminal comprises:
通过摄像头釆集用户的图像, 利用图像处理的方法检测用户眼睛与所述 移动终端的屏幕之间的距离。  The image of the user is collected by the camera, and the distance between the user's eyes and the screen of the mobile terminal is detected by the image processing method.
较佳地, 在判断所述移动终端当前的位置信息是否与设置的位置信息相 匹配之前还包括: 计时过程; 所述进行第一告警和所述第二告警的步骤包括: 判断此时计时的时间值 是否大于预设时间阔值, 若大于, 则进行告警。  Preferably, before determining whether the current location information of the mobile terminal matches the set location information, the method further includes: a timing process; the step of performing the first alarm and the second alarm includes: determining that the time is Whether the time value is greater than the preset time threshold, if it is greater than, the alarm is generated.
较佳地, 所述计时过程包括:  Preferably, the timing process comprises:
计时器清零、 开始计时; 通过传感器检测用户当前使用移动终端的姿势是否发生变化;  The timer is cleared and the timing is started; the sensor detects whether the posture of the user currently using the mobile terminal changes;
若是, 则清零计时器重新开始计时, 若否, 则继续计时。  If yes, the clear timer restarts counting, and if not, the timer continues.
同样为了解决上述的技术问题, 本发明还提供了一种告警装置, 包括: 设置模块、 第一检测模块、 第一判断模块和第一告警模块;  The present invention also provides an alarm device, including: a setting module, a first detecting module, a first determining module, and a first alarm module;
所述设置模块设置为: 设置表征用户在不良姿势下使用移动终端的第一 位置信息; 所述第一检测模块设置为: 在所述移动终端使用的过程中, 检测所述移 动终端的运动参数, 根据所述运动参数获取所述移动终端当前的位置信息; 所述第一判断模块设置为: 判断所述移动终端当前的位置信息是否与第 一位置信息相匹配, 若是, 则认为用户在不良姿势下使用移动终端, 并通知 所述第一告警模块进行第一告警。 The setting module is configured to: set first location information that indicates that the user uses the mobile terminal in a bad posture; The first detecting module is configured to: when the mobile terminal is used, detecting a motion parameter of the mobile terminal, acquiring current location information of the mobile terminal according to the motion parameter; The method is: determining whether the current location information of the mobile terminal matches the first location information, and if yes, determining that the user uses the mobile terminal in a bad posture, and notifying the first alarm module to perform the first alarm.
较佳地, 所述位置信息包括: 移动终端的屏幕朝向和所述移动终端的倾 角, 所述倾角为所述移动终端与水平面的夹角。  Preferably, the location information includes: a screen orientation of the mobile terminal and an inclination of the mobile terminal, where the tilt angle is an angle between the mobile terminal and a horizontal plane.
较佳地, 所述第一判断模块是设置为: 判断当前所述移动终端的屏幕朝 向是否为朝上, 若否, 则判定所述移动终端当前的位置信息与设置的位置信 息相匹配, 若是, 则判断当前所述移动终端的倾角是否在设置的倾角范围内, 若是, 则判定所述移动终端当前的位置信息与设置的位置信息相匹配。  Preferably, the first determining module is configured to: determine whether the current screen orientation of the mobile terminal is upward, if not, determine that the current location information of the mobile terminal matches the set location information, if And determining whether the tilt angle of the current mobile terminal is within the set tilt angle range, and if yes, determining that the current location information of the mobile terminal matches the set location information.
较佳地, 所述第一检测模块包括三轴加速传感器和计算模块;  Preferably, the first detecting module comprises a three-axis acceleration sensor and a computing module;
所述三轴加速传感器设置为: 获取所述移动终端在 X、 Υ、 Ζ轴三个方向 上的加速度;  The three-axis acceleration sensor is configured to: acquire accelerations of the mobile terminal in three directions of X, Υ, and Ζ axes;
所述计算模块设置为: 根据 Ζ轴方向上的加速度获取所述移动终端屏幕 的朝向, 以及根据 χ、 Υ轴方向上的加速度计算出所述移动终端的倾角。  The calculation module is configured to: obtain an orientation of the screen of the mobile terminal according to an acceleration in a direction of a x-axis, and calculate an inclination of the mobile terminal according to an acceleration in a direction of a χ, a Υ axis.
较佳地, 所述告警装置还包括: 第二检测模块、 第二判断模块和第二告 警模块;  Preferably, the alarm device further includes: a second detection module, a second determination module, and a second alarm module;
所述第二检测模块设置为: 在移动终端使用的过程中, 检测用户眼睛与 所述移动终端的屏幕之间的距离;  The second detecting module is configured to: detect a distance between a user's eyes and a screen of the mobile terminal during use by the mobile terminal;
所述第二判断模块设置为: 判断所述第二检测模块检测的距离是否小于 距离阔值;  The second determining module is configured to: determine whether the distance detected by the second detecting module is less than a distance threshold;
所述第二告警模块设置为: 在所述第二判断模块判断为是的情况下进行 第二告警。  The second alarm module is configured to: perform a second alarm if the second determining module determines to be YES.
较佳地, 所述第二检测模块包括摄像头和图像处理模块;  Preferably, the second detecting module comprises a camera and an image processing module;
所述摄像头设置为: 于釆集用户的图像;  The camera is configured to: collect images of the user;
所述图像处理模块设置为: 对釆集的用户的图像进行处理得出用户眼睛 与所述移动终端的屏幕之间的距离。 The image processing module is configured to: process the image of the user of the collection to obtain a user's eyes The distance from the screen of the mobile terminal.
较佳地, 所述告警装置还包括计时模块;  Preferably, the alarm device further includes a timing module;
所述计时模块设置为: 在判断所述移动终端当前的位置信息是否与设置 的位置信息相匹配之前开始计时;  The timing module is configured to: start timing after determining whether the current location information of the mobile terminal matches the set location information;
所述第一告警模块是设置为: 在所述第一判断模块判断为是的情况下, 判断所述计时模块此时的时间值是否大于预设时间阔值, 若大于, 则告警; 所述第二告警模块是设置为: 在所述第二判断模块判断为是的情况下, 判断所述计时模块此时的时间值是否大于预设时间阔值, 若大于, 则告警。  The first alarm module is configured to: if the first determining module determines that the value is YES, determine whether the time value of the timing module is greater than a preset time threshold, and if yes, the alarm; The second alarm module is configured to: if the second determination module determines that the value is YES, determine whether the time value of the timekeeping module is greater than a preset time threshold, and if the alarm is greater than, the alarm is generated.
较佳地, 所述计时模块包括: 计时器、 传感器和计时控制模块; 所述计时器设置为: 清零、 开始计时;  Preferably, the timing module comprises: a timer, a sensor and a timing control module; the timer is set to: clear, start timing;
所述计时控制模块设置为: 通过传感器检测用户当前使用移动终端的姿 势是否发生变化, 若是, 通知所述计时器清零重新开始计时, 若否, 则通知 所述计时器继续计时。 本发明实施例的告警方法通过移动终端的运动参数获取移动终端当前的 位置信息间接地获取用户使用移动终端姿势, 然后通过判断移动终端当前的 位置信息是否与设置的表征用户在不良姿势下使用移动终端的位置信息相匹 配来间接地判断用户当前的使用姿势是否为设置的不良姿势, 若是, 则告警; 例如当位置信息包括移动终端的屏幕朝向时, 设置本发明实施例的告警方法 可以检测移动终端当前的加速度, 通过加速度来判断当前移动终端的朝向, 若朝下, 当设置表征用户在不良姿势下使用所述移动终端的位置信息为移动 终端的屏幕朝下时, 则认为用户在不良姿势下使用移动终端, 此时用户很大 可能上是处于躺倒的姿势来使用移动终端, 所以当认为用户在不良姿势下使 用所述移动终端, 移动终端就会告警提醒用户当前处于不良姿势; 本发明实 施例的告警方法能够提升移动终端用户的健康。  The timing control module is configured to: detect, by the sensor, whether the posture of the user currently using the mobile terminal changes, and if so, notify the timer to clear the restart timing, and if not, notify the timer to continue counting. The alarm method of the embodiment of the present invention acquires the position information of the mobile terminal indirectly by acquiring the current location information of the mobile terminal, and then determines whether the current location information of the mobile terminal and the set user use the mobile terminal in a bad posture. The position information of the terminal is matched to indirectly determine whether the current usage posture of the user is a set bad posture, and if so, an alarm; for example, when the location information includes the screen orientation of the mobile terminal, setting the alarm method of the embodiment of the present invention can detect the movement The current acceleration of the terminal is used to determine the orientation of the current mobile terminal by acceleration. If the orientation is set downward, when the location information indicating that the user uses the mobile terminal in the bad posture is the screen of the mobile terminal facing downward, the user is considered to be in a bad posture. The mobile terminal is used, and the user is likely to be in a lying position to use the mobile terminal. Therefore, when the user is deemed to be using the mobile terminal in a bad posture, the mobile terminal will alert the user that the user is currently in a bad posture; The method of Example alarm out of the mobile terminal user can enhance health.
附图概述 BRIEF abstract
图 1为本发明实施例一提供的一种告警方法的流程示意图;  FIG. 1 is a schematic flowchart diagram of an alarm method according to Embodiment 1 of the present invention;
图 2为本发明实施例一提供的另一种告警方法的流程示意图; 图 3为本发明实施例一提供的另一种告警方法的流程示意图; 图 4为本发明实施例二提供的一种告警方法的流程示意图; 2 is a schematic flowchart of another alarm method according to Embodiment 1 of the present invention; FIG. 3 is a schematic flowchart of another alarm method according to Embodiment 1 of the present invention; FIG. 4 is a schematic flowchart diagram of an alarm method according to Embodiment 2 of the present invention;
图 5为本发明实施例二提供的另一种告警方法的流程示意图;  FIG. 5 is a schematic flowchart of another alarm method according to Embodiment 2 of the present invention;
图 6为本发明实施例二提供的一种计时过程的流程示意图;  6 is a schematic flowchart of a timing process according to Embodiment 2 of the present invention;
图 7为本发明实施例三提供的一种告警装置的结构示意图;  FIG. 7 is a schematic structural diagram of an alarm device according to Embodiment 3 of the present invention;
图 8为本发明实施例三提供的另一种告警装置的结构示意图;  8 is a schematic structural diagram of another alarm device according to Embodiment 3 of the present invention;
图 9为本发明实施例四提供的第一种告警装置的结构示意图;  9 is a schematic structural diagram of a first type of alarm device according to Embodiment 4 of the present invention;
图 10为本发明实施例四提供的第二种告警装置的结构示意图;  10 is a schematic structural diagram of a second type of alarm device according to Embodiment 4 of the present invention;
图 11为本发明实施例四提供的第三种告警装置的结构示意图;  11 is a schematic structural diagram of a third type of alarm device according to Embodiment 4 of the present invention;
图 12为本发明实施例四提供的计时模块的结构示意图。 本发明的较佳实施方式  FIG. 12 is a schematic structural diagram of a timing module according to Embodiment 4 of the present invention. Preferred embodiment of the invention
下面结合附图对本发明的具体实施方式作详细说明,在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。  The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings, and the features in the embodiments and the embodiments in the present application can be arbitrarily combined with each other without conflict.
实施例一: Embodiment 1:
如图 1所示, 本实施例提供了一种告警方法, 包括以下步骤:  As shown in FIG. 1 , this embodiment provides an alarm method, including the following steps:
步骤 101 : 设置表征用户在不良姿势下使用移动终端的位置信息; 步骤 102: 在所述移动终端使用的过程中, 检测所述移动终端的运动参 数, 根据所述运动参数获取所述移动终端当前的位置信息;  Step 101: Set location information indicating that the user uses the mobile terminal in a bad posture; Step 102: In the process of using the mobile terminal, detecting a motion parameter of the mobile terminal, and acquiring, according to the motion parameter, the current current of the mobile terminal Location information;
步骤 103 : 判断所述移动终端当前的位置信息是否与设置的位置信息相 匹配, 若是, 则执行步骤 104, 若否, 则执行步骤 105;  Step 103: Determine whether the current location information of the mobile terminal matches the set location information, and if yes, go to step 104, if no, go to step 105;
步骤 104: 认为用户在不良姿势下使用所述移动终端, 并进行第一告警; 步骤 105: 认为用户在正常姿势下使用所述移动终端, 不进行告警。 本实施例的告警方法通过移动终端的运动参数获取移动终端当前的位置 信息, 然后通过判断移动终端当前的位置信息是否与设置的表征用户在不良 姿势下使用移动终端的位置信息相匹配来判断用户是否处于不良姿势下使用 移动终端, 若是, 则告警; 例如当位置信息包括移动终端的屏幕朝向时, 设 置本实施例的告警方法可以检测移动终端当前的加速度, 通过加速度来判断 当前移动终端的朝向, 若朝下, 当设置表征用户在不良姿势下使用所述移动 终端的位置信息为移动终端的屏幕朝下时, 则认为用户在不良姿势下使用移 动终端, 此时用户很大可能上是处于躺倒的姿势来使用移动终端, 所以当认 为用户在不良姿势下使用所述移动终端, 移动终端就会告警提醒用户当前处 于不良姿势; 本实施例的告警方法能够提升移动终端用户的健康。 本实施例 的告警方法通过检测移动终端的位置信息间接地获取用户当前使用移动终端 的姿势, 并且通过判断当前位置信息与设置的位置信息是否匹配来间接地判 断当前用户使用移动终端的姿势是否为不良姿势, 利用本实施例的告警方法 能够快速的确定用户是否处于不姿势并及时告警。 Step 104: The user is considered to use the mobile terminal in a bad posture, and performs a first alarm. Step 105: The user is considered to use the mobile terminal in a normal posture without performing an alarm. The alarm method of the embodiment obtains the current location information of the mobile terminal by using the motion parameter of the mobile terminal, and then determines whether the current location information of the mobile terminal is bad with the set representation of the user. In the posture, the location information of the mobile terminal is matched to determine whether the user is in the bad posture to use the mobile terminal, and if so, the alarm is generated; for example, when the location information includes the screen orientation of the mobile terminal, setting the alarm method of the embodiment may detect the mobile terminal. The current acceleration is used to determine the orientation of the current mobile terminal by acceleration. If the orientation is downward, when the location information indicating that the user uses the mobile terminal in a bad posture is the screen of the mobile terminal facing down, the user is considered to be in a bad posture. When the mobile terminal is used, the user is likely to be in a lying position to use the mobile terminal, so when the user is deemed to be using the mobile terminal in a bad posture, the mobile terminal alerts the user that the user is currently in a bad posture; The alarm method of the example can improve the health of the mobile terminal user. The alarm method of the embodiment indirectly acquires the posture of the user currently using the mobile terminal by detecting the location information of the mobile terminal, and indirectly determines whether the posture of the current user using the mobile terminal is indirectly determined by determining whether the current location information matches the set location information. In the bad posture, the alarm method of this embodiment can quickly determine whether the user is in a posture and promptly alarms.
本实施例中设置表征用户在不良姿势下使用移动终端的位置信息可以 为: 用户在不良姿势下使用移动终端时移动终端所处的位置信息。 本实施例 的不良姿势以是将几种比较对身体危害较大的不良姿势, 例如可以将躺倒使 用移动终端、 直立低头使用移动终端、 或者仰着头使用移动终端等不良姿势。 本实施例中位置信息是与用户不良姿势对应的; 所以表征用户在不良姿势下 使用移动终端的位置信息的可以为表征用户在直立低头使用移动终端时移动 终端的位置信息, 该位置信息可以包括: 移动终端的屏幕朝向和所述移动终 端的倾角, 所述倾角为所述移动终端与水平面的夹角, 用户在直立低头使用 移动终端是屏幕朝上、 倾角在某个范围内。 本实施例中用户可以根据自身使 用移动终端习惯来进行设置自身的不良姿势, 并且本实施例中位置信息不仅 限于朝向和倾角, 还可以包括其他表征姿势的位置信息, 例如移动终端的移 动速度。 本实施例中不同不良姿势对应的位置信息是不一样的。  The location information indicating that the user uses the mobile terminal in a bad posture in the embodiment may be: location information of the mobile terminal when the user uses the mobile terminal in a bad posture. The bad posture of the present embodiment is such that several types of bad postures which are more harmful to the body are compared. For example, it is possible to use a mobile terminal for lying down, a mobile terminal for standing upright, or a bad posture such as using a mobile terminal with the head up. In this embodiment, the location information is corresponding to the user's bad posture; therefore, the location information indicating that the user uses the mobile terminal in the bad posture may be the location information of the mobile terminal when the user uses the mobile terminal in an upright position, and the location information may include : a screen orientation of the mobile terminal and an inclination of the mobile terminal, the inclination angle is an angle between the mobile terminal and a horizontal plane, and the user uses the mobile terminal in an upright position with the screen facing upward and the inclination angle being within a certain range. In this embodiment, the user can set the user's bad posture according to the habit of using the mobile terminal. In this embodiment, the location information is not limited to the orientation and the tilt angle, and may include other location information indicating the gesture, such as the moving speed of the mobile terminal. The position information corresponding to different bad postures in this embodiment is different.
本实施例的运动参数可以包括: 加速度、 速度、 角速度、 线位移、 角加 速度、 或者其他与物体运动相关的参数。  The motion parameters of this embodiment may include: acceleration, velocity, angular velocity, line displacement, angular acceleration, or other parameters related to object motion.
下面介绍一种判断所述移动终端当前的位置信息是否与设置的位置信息 相匹配的过程:  The following describes a process for determining whether the current location information of the mobile terminal matches the set location information:
设置表征用户在不良姿势下使用移动终端的屏幕朝向和倾角; 根据所述运动参数获取所述移动终端的当前屏幕朝向和所述移动终端的 当前倾角, 所述倾角为所述移动终端与水平面的夹角; Setting a screen orientation and tilt that characterizes the user's use of the mobile terminal in a bad posture; Obtaining, according to the motion parameter, a current screen orientation of the mobile terminal and a current tilt angle of the mobile terminal, where the tilt angle is an angle between the mobile terminal and a horizontal plane;
判断移动终端当前的屏幕朝向和倾角是否与设置的屏幕朝向和倾角相匹 配, 若匹配, 则认为用户在不良姿势下使用所述移动终端, 并进行第一告警。  It is judged whether the current screen orientation and inclination of the mobile terminal match the set screen orientation and inclination. If they match, the user is considered to use the mobile terminal in a bad posture and perform the first alarm.
在此情况, 本实施例的告警方法主要通过判断移动终端屏幕朝向和倾角 来判断用户是否处于不良姿势, 例如当移动终端的屏幕朝下时 (用户是以躺倒 的姿势来使用移动终端), 此时判定用户处于预设的不良姿势, 则发出告警提 醒用户,又例如当移动终端的屏幕朝上,但是倾角小于给定阔值(比如 45度 ), 说明用户在以上身直立的姿势使用手机(这种姿势下长时间可能对用户颈推 产生损伤) , 此时就会判断用户当前的姿势是预设的不良姿势, 然后发出告 警, 提醒用户。 因此, 本实施例告警方法步骤 103中所述判断所述移动终端 当前的位置信息是否与设置的位置信息相匹配的过程包括:  In this case, the alarm method of the present embodiment mainly determines whether the user is in a bad posture by determining the screen orientation and the tilt angle of the mobile terminal, for example, when the screen of the mobile terminal is facing down (the user uses the mobile terminal in a lying posture), At this time, it is determined that the user is in a preset bad posture, and an alarm is issued to alert the user, for example, when the screen of the mobile terminal is facing upward, but the tilt angle is less than a given threshold (such as 45 degrees), indicating that the user uses the mobile phone in the upper body posture. (In this position, the user may cause damage to the neck of the user for a long time), then the user's current posture is judged to be a preset bad posture, and then an alarm is issued to remind the user. Therefore, the process of determining whether the current location information of the mobile terminal matches the set location information in the step 103 of the alarm method in this embodiment includes:
判断当前所述移动终端的屏幕朝向是否为朝上, 若否, 则判定所述移动 终端当前的位置信息与设置的位置信息相匹配, 若是, 则判断当前所述移动 终端的倾角是否在设置的倾角范围内, 若是, 则判定所述移动终端当前的位 置信息与设置的位置信息相匹配。  Determining whether the current screen orientation of the mobile terminal is upward, if not, determining that the current location information of the mobile terminal matches the set location information, and if yes, determining whether the current tilt of the mobile terminal is set. Within the range of the tilt angle, if yes, it is determined that the current location information of the mobile terminal matches the set location information.
也就是说, 当所述移动终端的屏幕朝上并且所述移动终端的倾角在预设 范围内, 认为用户当前使用所述移动终端的姿势为不良姿势; 当所述移动终 端的屏幕朝下时, 判定用户当前使用所述移动终端的姿势为不良姿势。  That is, when the screen of the mobile terminal is facing up and the tilt angle of the mobile terminal is within a preset range, it is considered that the posture of the user currently using the mobile terminal is a bad posture; when the screen of the mobile terminal is facing down And determining that the user's current posture of using the mobile terminal is a bad posture.
当然本实施例的告警方法不仅限与利用朝向和倾角来判断用户的不良姿 势, 还可以利用移动终端的其他特性来判断用户的不良姿势。  Of course, the alarm method of this embodiment does not only determine the user's bad posture by utilizing the orientation and the tilt angle, but also can determine the user's bad posture by using other characteristics of the mobile terminal.
如图 2所示, 下面具体介绍本实施例的告警方法, 包括:  As shown in FIG. 2, the alarm method in this embodiment is specifically described below, including:
步骤 201 : 设置表征用户在不良姿势下使用移动终端的位置信息; 此时设置的位置信息包括: 用户在不良姿势下使用移动终端时, 移动终 端的倾角范围和屏幕朝向。  Step 201: setting location information indicating that the user uses the mobile terminal in a bad posture; the location information set at this time includes: a tilt range and a screen orientation of the mobile terminal when the user uses the mobile terminal in a bad posture.
步骤 202: 在移动终端使用的过程中, 检测所述移动终端的运动参数, 根据所述运动参数获取当前移动终端的屏幕朝向和倾角;  Step 202: In the process of using the mobile terminal, detecting a motion parameter of the mobile terminal, and acquiring a screen orientation and a tilt angle of the current mobile terminal according to the motion parameter;
步骤 203: 判断移动终端的屏幕是否朝上,若是, 则执行步骤 204, 若否, 则执行步骤 205; Step 203: Determine whether the screen of the mobile terminal is facing upward, and if yes, perform step 204, if no, Then performing step 205;
步骤 204: 判断所述移动终端的倾角是否在预设范围内, 若是, 则执行 步骤 205 , 若否, 则执行步骤 206;  Step 204: Determine whether the tilt angle of the mobile terminal is within a preset range, and if yes, execute step 205, if no, perform step 206;
步骤 205: 认为移动终端当前位置信息与设置的位置信息相匹配, 此时 用户在不良姿势下使用移动终端, 移动终端进行告警;  Step 205: It is considered that the current location information of the mobile terminal matches the set location information, and the user uses the mobile terminal in a bad posture, and the mobile terminal performs an alarm;
步骤 206: 认为移动终端当前位置信息与设置的位置信息不相匹配, 此 时用户在正常姿势下使用移动终端, 移动终端不进行告警。  Step 206: It is considered that the current location information of the mobile terminal does not match the set location information, and the user uses the mobile terminal in the normal posture, and the mobile terminal does not perform an alarm.
图 2所述的告警方法中不良姿势包括: 直立低头使用移动终端 (屏幕朝 上以及倾角在某个范围内)和躺倒使用移动终端 (屏幕朝下) 。 本实施例的 告警方法能够在用户釆用这两种姿势操作移动终端时发出告警, 提醒用户的 姿势不正确, 不能长时间保持, 从而提升了用户的健康。  The bad postures in the alarm method described in Fig. 2 include: Upright head using the mobile terminal (the screen is facing up and the tilt angle is within a certain range) and lying down using the mobile terminal (screen facing down). The alarm method of this embodiment can issue an alarm when the user operates the mobile terminal in these two postures, reminding the user that the posture is incorrect and cannot be maintained for a long time, thereby improving the health of the user.
本实施例中检测移动终端的运动参数可以通过传感器来检测移动终端的 参数, 例如可以通过三轴加速传感器获取所述移动终端在 X、 Υ、 Ζ轴三个方 向上的加速度; 移动终端屏幕的朝向可以直接获取三轴加速度传感器的 ζ加 速度的正负得到, 当 Ζ轴加速度为正时, 则屏幕朝上, 当 Ζ轴加速度为负时, 则屏幕朝下; 倾角可以用 x、 y轴加速度值计算出相应的反 tan三角函数值得 到。  In this embodiment, detecting the motion parameter of the mobile terminal may detect the parameter of the mobile terminal by using a sensor. For example, the acceleration of the mobile terminal in three directions of X, Υ, and Ζ axes may be acquired by using a three-axis acceleration sensor; The orientation can be obtained directly by obtaining the positive and negative accelerations of the three-axis acceleration sensor. When the acceleration of the Ζ axis is positive, the screen is facing upwards. When the 加速度 axis acceleration is negative, the screen is facing downward; the inclination can be adjusted by x and y axes. The value is calculated by calculating the corresponding inverse tan trigonometric function value.
如图 3所示, 本实施例的告警方法可以包括如下:  As shown in FIG. 3, the alarm method in this embodiment may include the following:
步骤 301 : 手机被唤醒后即后台开启监控;  Step 301: After the mobile phone is woken up, the monitoring is started in the background;
步骤 302: 手机在使用的过程中, 过三轴加速传感器获取手机在 X、 Y、 Step 302: During the use of the mobile phone, the three-axis acceleration sensor acquires the mobile phone in X, Y,
Ζ轴三个方向上的加速度; Acceleration in three directions of the x-axis;
步骤 303:判断 Ζ轴方向上的加速度是否大于零,若是,则执行步骤 304; 若否, 则执行步骤 307;  Step 303: determining whether the acceleration in the direction of the x-axis is greater than zero, and if so, executing step 304; if not, executing step 307;
步骤 304: 判定手机屏幕朝上, 认为用户此时是户直立姿势;  Step 304: determining that the mobile phone screen is facing up, and thinking that the user is in an upright posture at this time;
步骤 305: 根据 X、 Υ轴方向上的加速度计算出手机的倾角, 判断所述倾 角是否大于预设阔值 a, 若是, 则执行步骤 306, 若否, 则执行步骤 302; 步骤 306: 判定用户此时处于低头看手机的姿势, 进行告警; 步骤 307: 判定用户此时是处于躺倒使用手机的姿势, 进行告警。 Step 305: Calculate the tilt angle of the mobile phone according to the acceleration in the X-axis direction, determine whether the tilt angle is greater than the preset threshold a, and if yes, execute step 306, if no, perform step 302; Step 306: Determine the user At this time, I am looking down at the posture of the mobile phone and performing an alarm; Step 307: It is determined that the user is in a posture of lying down using the mobile phone at this time, and an alarm is issued.
本实施例的告警方式包括艮多种, 例如可以包括声音、 显示、 震动等各 种形式进行告警, 以便提醒用户。  The alarm mode of this embodiment includes multiple types of alarms, such as sound, display, and vibration, to alert the user.
本实施例的移动终端可以为智能手机、 平板电脑等, 本实施例的传感器 可以为移动终端原先自带的传感器,也可以为专门在移动终端增加的传感器。  The mobile terminal of this embodiment may be a smart phone, a tablet computer, or the like. The sensor in this embodiment may be a sensor originally provided by the mobile terminal, or may be a sensor specially added to the mobile terminal.
实施例二: Embodiment 2:
如图 4所示, 本实施例提供了一种告警方法, 在上述实施例一的基础, 还包括:  As shown in FIG. 4, this embodiment provides an alarm method. The basis of the foregoing Embodiment 1 further includes:
步骤 401 : 在移动终端使用的过程中, 检测用户眼睛与所述移动终端的 屏幕之间的距离,  Step 401: During the use of the mobile terminal, detecting a distance between a user's eyes and a screen of the mobile terminal,
步骤 402: 判断检测的距离是否在预设范围内, 若是, 则执行步骤 403 , 若否, 则执行步骤 404;  Step 402: Determine whether the detected distance is within a preset range, if yes, proceed to step 403, and if not, execute step 404;
步骤 403: 进行第二告警;  Step 403: Perform a second alarm.
步骤 404: 保持移动终端工作状态, 不进行告警。  Step 404: Keep the mobile terminal working state without performing an alarm.
本实施例的告警方法通过检测用户眼睛与所述移动终端的屏幕之间的距 离是否在预设范围内来判断用户是否使用移动终端时离的过近, 若检测的距 离在预设范围内, 则认为用户的眼睛离移动终端屏幕过近, 容易导致用户近 视, 所以发出告警。  The alarm method of this embodiment determines whether the user is too close when using the mobile terminal by detecting whether the distance between the user's eyes and the screen of the mobile terminal is within a preset range. If the detected distance is within a preset range, It is considered that the user's eyes are too close to the screen of the mobile terminal, which is likely to cause the user to be near-sighted, so an alarm is issued.
本实施例的步骤 401-404 的过程的时序不做限制, 其可以在检测运动参 数之前, 也可检测运动参数之后, 也可以与步骤 102-103 同时进行。 总之本 实施例的步骤 401-404可以在实施例一中任一步骤之前、 之后或者同时执行。  The timing of the processes of steps 401-404 of the present embodiment is not limited, and may be performed before the motion parameters are detected, or after the motion parameters are detected, or may be performed simultaneously with steps 102-103. In summary, steps 401-404 of the present embodiment can be performed before, after or simultaneously with any of the steps in the first embodiment.
本实施例检测用户眼睛与所述移动终端的屏幕之间的距离可以包括: 通过摄像头釆集用户的图像, 利用图像处理的方法检测用户眼睛与所述 移动终端的屏幕之间的距离。 例如提取用户眼睛之间的距离, 根据摄像头焦 距等物理参数换算出相应的距离。  The detecting the distance between the user's eyes and the screen of the mobile terminal may include: collecting the image of the user by the camera, and detecting the distance between the user's eyes and the screen of the mobile terminal by using an image processing method. For example, the distance between the eyes of the user is extracted, and the corresponding distance is converted according to physical parameters such as the focal length of the camera.
为了能够提醒用户长时间保持某一个不良姿势, 本实施例的告警方法在 判断所述移动终端当前的位置信息是否与设置的位置信息相匹配之前还包 括: 计时过程; In order to be able to remind the user to maintain a certain bad posture for a long time, the alarm method of this embodiment is Before determining whether the current location information of the mobile terminal matches the set location information, the method further includes: a timing process;
本实施例中进行第一告警和进行第二告警的步骤包括: 判断此时计时的 时间值是否大于预设时间阔值, 若大于, 则进行告警。 本实施例的告警方法 还可以在判断用户处于不良姿势下使用移动终端时立刻告警。  The step of performing the first alarm and the performing the second alarm in the embodiment includes: determining whether the time value of the timeout is greater than a preset time threshold, and if yes, performing an alarm. The alarm method of this embodiment can also immediately alert when the mobile terminal is used when determining that the user is in a bad posture.
下面详细介绍本实施例的告警方法, 如图 5所示, 包括下面步骤: 步骤 501 : 手机被唤醒后即后台开启监控;  The following describes the alarm method in this embodiment in detail. As shown in FIG. 5, the method includes the following steps: Step 501: After the mobile phone is woken up, the monitoring is started in the background;
步骤 502: 通过图像处理的方法计算眼睛和屏幕之间的距离。  Step 502: Calculate the distance between the eye and the screen by the method of image processing.
例如提取用户眼睛之间的距离, 根据摄像头焦距等物理参数换算出相应 的距离。  For example, the distance between the eyes of the user is extracted, and the corresponding distance is converted according to physical parameters such as the focal length of the camera.
步骤 503: 计算出的当前距离和给定阔值 L作比较, 如果小于 L则进入 步骤 504的时间判定流程; 如果大于 L, 则返回步骤 502继续监控。  Step 503: The calculated current distance is compared with the given threshold L. If it is less than L, the process proceeds to step 504. If it is greater than L, the process returns to step 502 to continue monitoring.
步骤 504: 判定距离过近的持续时间是否大于相应的阔值时间 T— E, 如 果大于, 则提醒用户距离过近有损视力, 如果不大于, 则返回步骤 502继续 监控。  Step 504: Determine whether the duration of the distance is greater than the corresponding threshold time T_E. If it is greater, the user is reminded that the distance is too close to the loss of vision. If not, the process returns to step 502 to continue monitoring.
该持续时间为开始计时时刻到判断当前距离小于阔值 L时刻之间的时间 值。 The duration is the time value between the start of the timing and the determination of the current distance being less than the threshold L.
步骤 505: 通过读取到的加速度传感器的值计算出手机屏幕的朝向、 倾 角等。  Step 505: Calculate the orientation, inclination, and the like of the screen of the mobile phone by reading the value of the acceleration sensor.
例如, 朝向可以直接获取三轴加速度传感器的 z加速度的正负; 倾角可 以用 x、 y值计算出相应的反 tan三角函数值得到。  For example, the orientation can directly obtain the positive and negative z-acceleration of the triaxial acceleration sensor; the dip angle can be obtained by calculating the corresponding inverse tan trigonometric function value using the x and y values.
本实施了中步骤 505与步骤 502的时序关系不限制,可以包括: 步骤 505 在步骤 502前执行,步骤 505在步骤 502之后执行,或者步骤 505与步骤 502 同时执行。  The timing relationship between step 505 and step 502 in this embodiment is not limited, and may include: Step 505 is performed before step 502, step 505 is performed after step 502, or step 505 is performed simultaneously with step 502.
步骤 506: 判定如果朝向向上则认为用户此时是户直立姿势, 进入角度 判定流程; 如果向下则认为用户此时是躺倒的姿势使用手机, 进入相应时间 比较 Step34。 Step 506: It is determined that if the user is facing upward, the user is considered to be in an upright posture, and the angle determination process is entered; if the user is down, the user is considered to be lying down, and the mobile phone is used to enter the corresponding time. Compare Step34.
步骤 507: 判断步骤 505计算出的手机倾角是否小于阔值 α , 如果小于 则认为用户处于低头看手机的姿势, 进入相应时间比较; 否则就继续监控返 回步骤 505。  Step 507: Determine whether the tilt angle of the mobile phone calculated by step 505 is less than the threshold value α. If it is less than, the user is considered to be in a posture of looking down at the mobile phone, and enters the corresponding time comparison; otherwise, the monitoring returns to step 505.
步骤 508: 比较持续时间是否到达低头看书的提醒时间 Τ—Ν, 如果到了 则进入步骤 509 , 若没有到, 则继续监控返回步骤 505。  Step 508: Compare whether the duration reaches the reminder time for reading the book Τ-Ν, if yes, go to step 509, if not, continue to monitor and return to step 505.
该持续时间为开始计时时刻到判断倾角小于阔值 α时刻之间的时间值。 步骤 509提醒用户注意活动保护颈推。  The duration is the time value between the start of the timing and the time when the inclination is judged to be less than the threshold α. Step 509 reminds the user to pay attention to the activity protection neck push.
步骤 510: (之前已经判定手机朝向向下)判断持续时间是否到达 T— L 时间, 如果到达即进入步骤 511 , 如果没有到达, 继续监控返回步骤 505。  Step 510: (Previously, the mobile phone is determined to face downward) to determine whether the duration reaches the T-L time. If yes, proceed to step 511. If not, continue monitoring to return to step 505.
该持续时间为开始计时时刻到判断手机屏幕朝下时刻之间的时间值。 步骤 511 : 提醒用户长时间躺着使用手机有损视力。  The duration is the time value between the start of the timing and the time when the mobile phone screen is judged to face downward. Step 511: Remind the user to use the mobile phone for a long time to damage the vision.
如图 6所示, 本实施例中计时的过程包括(以手机为例) :  As shown in FIG. 6, the process of timing in this embodiment includes (taking a mobile phone as an example):
步骤 601 , 检测到手机唤醒, 即用户开始使用手机, 就进入计时开始; 步骤 602 , 计时器清零, 计时开始;  Step 601, detecting that the mobile phone wakes up, that is, when the user starts using the mobile phone, the time starts to enter; step 602, the timer is cleared, and the timing starts;
步骤 603 , 通过运动传感器获取手机的绝对速度值;  Step 603: Acquire an absolute speed value of the mobile phone by using a motion sensor.
步骤 604 , 判断绝对速度是否大于阔值 SpeedO; 如果大于, 则认为用户 正在改换使用移动终端的姿势, 改换姿势后, 回到步骤 602清零计时器重新 开始计时; 如果不大于, 则认为用户没有改变使用移动终端的姿势执行步骤 605继续计时即可。 图 5所示的告警方法中默认表征用户在不良姿势下使用 移动终端的位置信息为: 手机屏幕朝上和倾角小于阔值"、 手机屏幕朝下。  Step 604, determining whether the absolute speed is greater than the threshold SpeedO; if greater than, it is considered that the user is changing the posture of using the mobile terminal, after changing the posture, returning to step 602, the clearing timer restarts timing; if not greater, the user is considered not to have Changing the gesture using the mobile terminal proceeds to step 605 to continue timing. In the alarm method shown in FIG. 5, the default location information of the user using the mobile terminal in a bad posture is: the screen of the mobile phone is facing up and the tilt angle is less than the threshold value, and the screen of the mobile phone is facing down.
本实施例告警方法中可以传感器检测出移动终端的 X、 Υ、 Ζ三轴上的加 速度变化量, 然后根据 X、 Υ、 Ζ三轴上的加速度变化量计算出绝对速度值。  In the alarm method of this embodiment, the sensor can detect the acceleration change amount on the X, Υ, and Ζ axes of the mobile terminal, and then calculate the absolute speed value according to the acceleration changes on the X, Υ, and Ζ axes.
本实施例的第一告警和第二告警可以为相同的过程。  The first alarm and the second alarm in this embodiment may be the same process.
本实施例的告警方法还可以在用户的眼睛距离屏幕太近时发出告警, 可 以保护用户的视力。 实施例三: The alarm method of this embodiment can also issue an alarm when the user's eyes are too close to the screen, and can protect the user's vision. Embodiment 3:
如图 7所示, 本实施例提供了一种告警装置, 包括: 设置模块、 第一检 测模块、 第一判断模块和第一告警模块;  As shown in FIG. 7, the embodiment provides an alarm device, including: a setting module, a first detecting module, a first determining module, and a first alarm module;
所述设置模块设置为: 设置表征用户在不良姿势下使用移动终端的位置 信息;  The setting module is configured to: set location information indicating that the user uses the mobile terminal in a bad posture;
所述第一检测模块设置为: 在所述移动终端使用的过程中, 检测所述移 动终端的运动参数, 根据所述运动参数获取所述移动终端当前的位置信息; 所述第一判断模块设置为: 判断所述移动终端当前的位置信息是否与设 置的位置信息相匹配, 若是, 则认为用户在不良姿势下使用移动终端, 并通 知所述第一告警模块进行第一告警。  The first detecting module is configured to: when the mobile terminal is used, detecting a motion parameter of the mobile terminal, acquiring current location information of the mobile terminal according to the motion parameter; The method is: determining whether the current location information of the mobile terminal matches the set location information, and if yes, determining that the user uses the mobile terminal in a bad posture, and notifying the first alarm module to perform the first alarm.
优先地, 本实施例中所述位置信息包括: 移动终端的屏幕朝向和所述移 动终端的倾角, 所述倾角为所述移动终端与水平面的夹角。  Preferably, the location information in this embodiment includes: a screen orientation of the mobile terminal and an inclination of the mobile terminal, where the tilt angle is an angle between the mobile terminal and a horizontal plane.
具体地, 本实施例中第一判断模块设置为: 判断当前所述移动终端的屏 幕朝向是否为朝上, 若否, 则判定所述移动终端当前的位置信息与设置的位 置信息相匹配, 若是, 则判断当前所述移动终端的倾角是否在设置的倾角范 围内, 若是, 则判定所述移动终端当前的位置信息与设置的位置信息相匹配。  Specifically, in the embodiment, the first determining module is configured to: determine whether the current screen orientation of the mobile terminal is upward, and if not, determine that the current location information of the mobile terminal matches the set location information, if And determining whether the tilt angle of the current mobile terminal is within the set tilt angle range, and if yes, determining that the current location information of the mobile terminal matches the set location information.
如图 8所示, 本实施例中所述第一检测模块包括三轴加速传感器和计算 模块;  As shown in FIG. 8, the first detection module in this embodiment includes a three-axis acceleration sensor and a calculation module;
所述三轴加速传感器设置为: 获取所述移动终端在 X、 Υ、 Ζ轴三个方向 上的加速度;  The three-axis acceleration sensor is configured to: acquire accelerations of the mobile terminal in three directions of X, Υ, and Ζ axes;
所述计算模块设置为: 根据 Ζ轴方向上的加速度获取所述移动终端屏幕 的朝向, 以及根据 χ、 Υ轴方向上的加速度计算出所述移动终端的倾角。  The calculation module is configured to: obtain an orientation of the screen of the mobile terminal according to an acceleration in a direction of a x-axis, and calculate an inclination of the mobile terminal according to an acceleration in a direction of a χ, a Υ axis.
本实施的告警装置可以在用户处于不良姿势使用移动终端时发出告警, 提醒用户使用正确的姿势, 提升了用户的健康。 本实施例告警装置的工作过 程可以参考实施例一对告警方法各步骤的描述。  The alarm device of the present embodiment can issue an alarm when the user is in a bad posture using the mobile terminal, reminding the user to use the correct posture, and improving the health of the user. For the working process of the alarm device of this embodiment, reference may be made to the description of each step of the pair of alarm methods in the embodiment.
实施例四: 如图 9所示, 在实施例三的基础上, 本实施例提供了一种告警装置还包 括: 第二检测模块、 第二判断模块和第二告警模块; Embodiment 4: As shown in FIG. 9, on the basis of the third embodiment, the present disclosure provides that the alarm device further includes: a second detection module, a second determination module, and a second alarm module;
所述第二检测模块设置为: 在移动终端使用的过程中, 检测用户眼睛与 所述移动终端的屏幕之间的距离;  The second detecting module is configured to: detect a distance between a user's eyes and a screen of the mobile terminal during use by the mobile terminal;
所述第二判断模块设置为: 判断所述第二检测模块检测的距离是否在预 设范围内;  The second determining module is configured to: determine whether the distance detected by the second detecting module is within a preset range;
所述第二告警模块设置为: 在所述第二判断模块判断为是的情况下进行 第二告警。  The second alarm module is configured to: perform a second alarm if the second determining module determines to be YES.
如图 10 所示, 本实施例中所述第二检测模块包括摄像头和图像处理模 块;  As shown in FIG. 10, the second detecting module in this embodiment includes a camera and an image processing module;
所述摄像头设置为: 釆集用户的图像;  The camera is configured to: collect an image of a user;
所述图像处理模块设置为: 对釆集的用户的图像进行处理得出用户眼睛 与所述移动终端的屏幕之间的距离。  The image processing module is configured to: process the image of the user of the collection to derive a distance between the user's eyes and the screen of the mobile terminal.
如图 11所示, 本实施例的告警装置还包括: 计时模块;  As shown in FIG. 11, the alarm device of this embodiment further includes: a timing module;
所述计时模块设置为: 在判断所述移动终端当前的位置信息是否与设置 的位置信息相匹配之前开始计时;  The timing module is configured to: start timing after determining whether the current location information of the mobile terminal matches the set location information;
所述第一告警模块设置为: 在所述第一判断模块判断为是的情况下, 判 断所述计时模块此时的时间值是否大于预设时间阔值, 若大于, 则告警; 所述第二告警模块设置为: 在所述第二判断模块判断为是的情况下, 判 断所述计时模块此时的时间值是否大于预设时间阔值, 若大于, 则告警。  The first alarm module is configured to: if the first determining module determines that the value is YES, determine whether the time value of the timed module is greater than a preset time threshold, and if yes, the alarm; The second alarm module is configured to: if the second determination module determines that the value is YES, determine whether the time value of the timekeeping module is greater than a preset time threshold, and if the alarm is greater than, the alarm is generated.
如图 12所示, 优先地所述计时模块包括: 计时器、 传感器和计时控制模 块;  As shown in FIG. 12, the timing module preferentially includes: a timer, a sensor, and a timing control module;
所述计时器设置为: 清零、 开始计时;  The timer is set to: clear, start timing;
所述计时控制模块设置为: 通过传感器检测用户当前使用移动终端的姿 势是否发生变化, 若是, 通知所述计时器清零重新开始计时, 若否, 则通知 所述计时器继续计时。  The timing control module is configured to: detect, by the sensor, whether the posture of the user currently using the mobile terminal changes, and if so, notify the timer to clear the restart timing, and if not, notify the timer to continue counting.
本实施例的告警装置具体的工作过程, 可以参考实施例二中对告警方法 描述。 For the specific working process of the alarm device in this embodiment, reference may be made to the alarm method in the second embodiment. Description.
本实施例的告警装置可以当用户姿势为不良姿势以及当用户的眼睛距离 屏幕太近时都会发出告警, 这样还可以保护用户的视力。  The alarm device of this embodiment can issue an alarm when the user posture is a bad posture and when the user's eyes are too close to the screen, which can also protect the user's vision.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明, 不能 认定本发明的具体实施只局限于这些说明。 对于本发明所属技术领域的普通 技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若干简单推演或 替换, 都应当视为属于本发明的保护范围。  The above is a further detailed description of the present invention in connection with the specific embodiments, and it is not intended that the specific embodiments of the invention are limited to the description. It will be apparent to those skilled in the art that the present invention may be practiced without departing from the spirit and scope of the invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。  One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
工业实用性 Industrial applicability
本发明实施例能够当用户在不良姿势下使用移动终端时进行告警, 提升 用户的健康。  The embodiment of the invention can perform an alarm when the user uses the mobile terminal in a bad posture, thereby improving the health of the user.

Claims

权 利 要 求 书 Claim
1、 一种告警方法, 包括. 设置表征用户在不良姿势下使用移动终端的第一位置信息;  An alarm method, comprising: setting a first location information indicating that a user uses a mobile terminal in a bad posture;
在所述移动终端使用的过程中, 检测所述移动终端的运动参数, 根据所 述运动参数获取所述移动终端当前的位置信息;  In the process of using the mobile terminal, detecting a motion parameter of the mobile terminal, and acquiring current location information of the mobile terminal according to the motion parameter;
判断所述移动终端当前的位置信息是否与所述第一位置信息相匹配, 若 是, 则认为用户在不良姿势下使用移动终端, 并进行第一告警。  Determining whether the current location information of the mobile terminal matches the first location information, and if so, determining that the user uses the mobile terminal in a bad posture and performing the first alarm.
2、 如权利要求 1所述的告警方法, 其中,  2. The alarm method according to claim 1, wherein
所述位置信息包括: 移动终端的屏幕朝向和所述移动终端的倾角, 所述 倾角为所述移动终端与水平面的夹角。  The location information includes: a screen orientation of the mobile terminal and an inclination of the mobile terminal, and the tilt angle is an angle between the mobile terminal and a horizontal plane.
3、 如权利要求 2所述的告警方法, 其中, 所述判断所述移动终端当前的 位置信息是否与所述第一位置信息相匹配的步骤包括:  The method of claim 2, wherein the step of determining whether the current location information of the mobile terminal matches the first location information comprises:
判断当前所述移动终端的屏幕朝向是否为朝上, 若否, 则判定所述 移动终端当前的位置信息与所述第一位置信息相匹配, 若是, 则判断当前所 述移动终端的倾角是否在设置的倾角范围内, 若是, 则判定所述移动终端当 前的位置信息与所述第一位置信息相匹配。  Determining whether the current screen orientation of the mobile terminal is upward, if not, determining that the current location information of the mobile terminal matches the first location information, and if yes, determining whether the current mobile terminal's tilt angle is Within the set tilt angle range, if yes, it is determined that the current location information of the mobile terminal matches the first location information.
4、 如权利要求 3所述的告警方法, 其中, 所述检测所述移动终端的运动 参数的步骤包括:  The alarm method of claim 3, wherein the detecting the motion parameter of the mobile terminal comprises:
通过三轴加速传感器获取所述移动终端在 X、 Υ、 Ζ轴三个方向上的加速 度;  Obtaining acceleration of the mobile terminal in three directions of X, Υ, and Ζ axes by a three-axis acceleration sensor;
所述根据所述运动参数获取所述移动终端当前的位置信息的步骤包括: 根据 Ζ轴方向上的加速度获取所述移动终端屏幕的朝向;  The obtaining the current location information of the mobile terminal according to the motion parameter comprises: acquiring an orientation of the screen of the mobile terminal according to an acceleration in a direction of a x-axis;
根据 X、 Υ轴方向上的加速度计算出所述移动终端的倾角。  The tilt angle of the mobile terminal is calculated based on the acceleration in the X, x-axis direction.
5、 如权利要求 1-4任一项所述的告警方法, 所述方法还包括:  The alarm method according to any one of claims 1 to 4, further comprising:
在移动终端使用的过程中, 检测用户眼睛与所述移动终端的屏幕之 间的距离, 判断该距离是小于距离阔值, 若是, 则进行第二告警。  During the use of the mobile terminal, the distance between the user's eyes and the screen of the mobile terminal is detected, and the distance is determined to be less than the distance threshold, and if so, the second alarm is performed.
6、 如权利要求 5所述的告警方法, 其中, 所述检测用户眼睛与所述移动 终端的屏幕之间的距离的步骤包括: 6. The alarm method according to claim 5, wherein said detecting a user's eyes and said moving The steps of the distance between the screens of the terminal include:
通过摄像头釆集用户的图像,利用图像处理的方法检测用户眼睛与所述 移动终端的屏幕之间的距离。  The image of the user is collected by the camera, and the distance between the user's eyes and the screen of the mobile terminal is detected by the image processing method.
7、 如权利要求 5所述的告警方法, 其中, 在判断所述移动终端当前的位 置信息是否与设置的位置信息相匹配之前还包括: 计时过程;  The alarm method according to claim 5, further comprising: a timing process before determining whether the current location information of the mobile terminal matches the set location information;
所述进行第一告警和所述第二告警的步骤包括: 判断此时计时的时间值 是否大于预设时间阔值, 若大于, 则进行告警。  The step of performing the first alarm and the second alarm includes: determining whether the time value of the timeout is greater than a preset time threshold, and if yes, performing an alarm.
8、 如权利要求 7所述的告警方法, 其中, 所述计时过程包括:  8. The alarm method according to claim 7, wherein the timing process comprises:
计时器清零、 开始计时; 通过传感器检测用户当前使用移动终端的姿势是否发生变化;  The timer is cleared and the timing is started; the sensor detects whether the posture of the user currently using the mobile terminal changes;
若是, 则清零计时器重新开始计时, 若否, 则继续计时。  If yes, the clear timer restarts counting, and if not, the timer continues.
9、 一种告警装置, 包括: 设置模块、 第一检测模块、 第一判断模块和第 一告警模块;  9. An alarm device, comprising: a setting module, a first detecting module, a first determining module, and a first alerting module;
所述设置模块设置为: 设置表征用户在不良姿势下使用移动终端的第一 位置信息;  The setting module is configured to: set a first location information that indicates that the user uses the mobile terminal in a bad posture;
所述第一检测模块设置为: 在所述移动终端使用的过程中, 检测所述移 动终端的运动参数, 根据所述运动参数获取所述移动终端当前的位置信息; 所述第一判断模块设置为: 判断所述移动终端当前的位置信息是否与所 述第一位置信息相匹配, 若是, 则认为用户在不良姿势下使用移动终端, 并 通知所述第一告警模块进行第一告警。  The first detecting module is configured to: when the mobile terminal is used, detecting a motion parameter of the mobile terminal, acquiring current location information of the mobile terminal according to the motion parameter; The method is: determining whether the current location information of the mobile terminal matches the first location information, and if yes, determining that the user uses the mobile terminal in a bad posture, and notifying the first alarm module to perform the first alarm.
10、 如权利要求 9所述的告警装置, 其中, 所述位置信息包括: 移动终 端的屏幕朝向和所述移动终端的倾角, 所述倾角为所述移动终端与水平面的 夹角。  The alarm device according to claim 9, wherein the location information comprises: a screen orientation of the mobile terminal and an inclination of the mobile terminal, and the tilt angle is an angle between the mobile terminal and a horizontal plane.
11、如权利要求 10所述的告警装置,其中,所述第一判断模块是设置为: 判断当前所述移动终端的屏幕朝向是否为朝上, 若否, 则判定所述移动终端 当前的位置信息与所述第一位置信息相匹配, 若是, 则判断当前所述移动终 端的倾角是否在设置的倾角范围内, 若是, 则判定所述移动终端当前的位置 信息与所述第一位置信息相匹配。 The alarm device of claim 10, wherein the first determining module is configured to: determine whether the current screen orientation of the mobile terminal is upward, and if not, determine the current location of the mobile terminal The information is matched with the first location information, and if yes, determining whether the tilt angle of the current mobile terminal is within a set tilt angle, and if yes, determining the current location of the mobile terminal The information matches the first location information.
12、 如权利要求 11所述的告警装置, 其中, 所述第一检测模块包括三轴 加速传感器和计算模块;  12. The alarm device of claim 11, wherein the first detection module comprises a three-axis acceleration sensor and a calculation module;
所述三轴加速传感器设置为: 获取所述移动终端在 X、 Υ、 Ζ轴三个方向 上的加速度;  The three-axis acceleration sensor is configured to: acquire accelerations of the mobile terminal in three directions of X, Υ, and Ζ axes;
所述计算模块设置为: 根据 Ζ轴方向上的加速度获取所述移动终端屏幕 的朝向, 以及根据 X、 Υ轴方向上的加速度计算出所述移动终端的倾角。  The calculation module is configured to: obtain an orientation of the screen of the mobile terminal according to an acceleration in a direction of a x-axis, and calculate an inclination of the mobile terminal according to an acceleration in a direction of the X and the x-axis.
13、 如权利要求 9-12任一项所述的告警装置, 还包括: 第二检测模块、 第二判断模块和第二告警模块; 所述第二检测模块设置为: 在移动终端使用的过程中, 检测用户眼睛与 所述移动终端的屏幕之间的距离;  The alarm device according to any one of claims 9 to 12, further comprising: a second detection module, a second determination module, and a second alarm module; wherein the second detection module is configured as: a process used by the mobile terminal Detecting a distance between a user's eyes and a screen of the mobile terminal;
所述第二判断模块设置为: 判断所述第二检测模块检测的距离是否小于 距离阔值;  The second determining module is configured to: determine whether the distance detected by the second detecting module is less than a distance threshold;
所述第二告警模块设置为: 在所述第二判断模块判断为是的情况下进行 第二告警。  The second alarm module is configured to: perform a second alarm if the second determining module determines to be YES.
14、 如权利要求 13所述的告警装置, 其中, 所述第二检测模块包括摄像 头和图像处理模块;  The alarm device according to claim 13, wherein the second detecting module comprises a camera and an image processing module;
所述摄像头设置为: 釆集用户的图像;  The camera is configured to: collect an image of a user;
所述图像处理模块设置为: 对釆集的用户的图像进行处理得出用户眼睛 与所述移动终端的屏幕之间的距离。  The image processing module is configured to: process the image of the user of the collection to derive a distance between the user's eyes and the screen of the mobile terminal.
15、 如权利要求 13所述的告警装置, 还包括计时模块;  15. The alarm device of claim 13, further comprising a timing module;
所述计时模块设置为: 在判断所述移动终端当前的位置信息是否与设置 的位置信息相匹配之前开始计时;  The timing module is configured to: start timing after determining whether the current location information of the mobile terminal matches the set location information;
所述第一告警模块是设置为: 在所述第一判断模块判断为是的情况下, 判断所述计时模块此时的时间值是否大于预设时间阔值, 若大于, 则告警; 所述第二告警模块是设置为: 在所述第二判断模块判断为是的情况下, 判断所述计时模块此时的时间值是否大于预设时间阔值, 若大于, 则告警。 The first alarm module is configured to: if the first determining module determines that the value is YES, determine whether the time value of the timing module is greater than a preset time threshold, and if yes, the alarm; The second alarm module is configured to: if the second determination module determines that the value is YES, determine whether the time value of the timekeeping module is greater than a preset time threshold, and if the alarm is greater than, the alarm is generated.
16、如权利要求 15所述的告警装置,其中, 所述计时模块包括: 计时器、 传感器和计时控制模块; The alarm device of claim 15, wherein the timing module comprises: a timer, a sensor, and a timing control module;
所述计时器设置为: 清零、 开始计时;  The timer is set to: clear, start timing;
所述计时控制模块设置为: 通过传感器检测用户当前使用移动终端的姿 势是否发生变化, 若是, 通知所述计时器清零重新开始计时, 若否, 则通知 所述计时器继续计时。  The timing control module is configured to: detect, by the sensor, whether the posture of the user currently using the mobile terminal changes, and if so, notify the timer to clear the restart timing, and if not, notify the timer to continue counting.
PCT/CN2013/087822 2013-09-10 2013-11-26 Alarm method and device WO2014169658A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310410986.5A CN104424771B (en) 2013-09-10 2013-09-10 A kind of alarm method and device
CN201310410986.5 2013-09-10

Publications (1)

Publication Number Publication Date
WO2014169658A1 true WO2014169658A1 (en) 2014-10-23

Family

ID=51730774

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087822 WO2014169658A1 (en) 2013-09-10 2013-11-26 Alarm method and device

Country Status (2)

Country Link
CN (1) CN104424771B (en)
WO (1) WO2014169658A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812140B (en) * 2022-04-01 2023-08-11 劉千鳳 Ultrasonic Sitting Reminder

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729981B (en) * 2014-01-03 2015-10-14 东南大学 A kind of child sitting gesture monitoring intelligent terminal
CN105654661B (en) * 2015-07-31 2018-11-06 宇龙计算机通信科技(深圳)有限公司 A kind of alarm control method, device and mobile terminal
KR101782086B1 (en) * 2015-10-01 2017-09-26 장헌영 Apparatus and method for controlling mobile terminal
CN105389960B (en) * 2015-11-16 2018-01-16 上海斐讯数据通信技术有限公司 A kind of sitting posture detection device, system and method
CN105516463B (en) * 2015-11-27 2019-06-04 惠州Tcl移动通信有限公司 A kind of mobile terminal based reminding method and system
CN105278692A (en) * 2015-12-03 2016-01-27 中山市读书郎电子有限公司 Eyesight protecting system of tablet personal computer
CN106095093B (en) * 2016-06-08 2019-06-04 北京安云世纪科技有限公司 A kind of data processing method and device
CN106302026A (en) * 2016-08-23 2017-01-04 上海创景计算机系统有限公司 Terminal health statistics system
CN106534546A (en) * 2016-11-17 2017-03-22 唐宇翔 Cellphone App-based method for controlling cervical spondylosis and protecting eyesight
CN108089729A (en) * 2016-11-23 2018-05-29 中兴通讯股份有限公司 Terminal and its method for realizing reading posture detection
CN107181861A (en) * 2017-05-15 2017-09-19 广东艾檬电子科技有限公司 A kind of message prompt method and mobile terminal applied to mobile terminal
CN108196767A (en) * 2017-12-28 2018-06-22 广东小天才科技有限公司 The use control method and electronic equipment of a kind of electronic equipment
CN109043944B (en) * 2018-06-28 2022-04-29 佛山市豪洋电子有限公司 Intelligent headboard
CN115240385A (en) * 2022-07-12 2022-10-25 深圳闪回科技有限公司 Method and device for detecting placement position of mobile phone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009156714A1 (en) * 2008-06-25 2009-12-30 Postureminder Ltd System and method for improving posture
CN202004844U (en) * 2011-03-14 2011-10-05 北京播思软件技术有限公司 Mobile terminal utilizing gravity sensor to identify user's use habits
CN103021140A (en) * 2011-09-20 2013-04-03 三星电子株式会社 Apparatus and method for assisting user to maintain correct posture

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202801617U (en) * 2012-08-09 2013-03-20 联想(北京)有限公司 Position detecting device and electric equipment
CN103049178B (en) * 2012-11-27 2015-12-02 小米科技有限责任公司 A kind of control method of mobile terminal, device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009156714A1 (en) * 2008-06-25 2009-12-30 Postureminder Ltd System and method for improving posture
CN202004844U (en) * 2011-03-14 2011-10-05 北京播思软件技术有限公司 Mobile terminal utilizing gravity sensor to identify user's use habits
CN103021140A (en) * 2011-09-20 2013-04-03 三星电子株式会社 Apparatus and method for assisting user to maintain correct posture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812140B (en) * 2022-04-01 2023-08-11 劉千鳳 Ultrasonic Sitting Reminder

Also Published As

Publication number Publication date
CN104424771A (en) 2015-03-18
CN104424771B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
WO2014169658A1 (en) Alarm method and device
US10417496B2 (en) Visibility enhancement devices, systems, and methods
JP6434144B2 (en) Raise gesture detection on devices
CN104239860B (en) A kind of sitting posture detection and based reminding method and device using during intelligent terminal
JP5857257B2 (en) Display device and display direction switching method
CN103118168B (en) The display control method and terminal of a kind of unprocessed information
KR20190057284A (en) Method and apparatus for preventing wrong contact with terminal
WO2018046015A1 (en) Alarm method, device and terminal for vehicle
EP2816450B1 (en) Information processing apparatus, and information processing method
WO2014134930A1 (en) Method and system for unlocking touch screen and electronic device
TW201137795A (en) System and method for detecting baby sleeping
US10536852B2 (en) Electronic apparatus, method for authenticating the same, and recording medium
JP6334601B2 (en) Portable information terminal, wearing arm judgment method, wearing direction judgment method, and program
EP3732871B1 (en) Detecting patterns and behavior to prevent a mobile terminal drop event
US9696811B2 (en) Electronic apparatus and method
JP6011052B2 (en) Electronics
TWI492193B (en) Method for triggering signal and electronic apparatus for vehicle
WO2017005070A1 (en) Display control method and device
US20160320850A1 (en) User interface control using impact gestures
US20160132993A1 (en) Screen control method and communication device
WO2021093543A1 (en) Scanner and operation method, apparatus and system therefor, and storage medium and processor
KR20150069856A (en) Method for controlling wearable computing device and system thereof
CN105511614A (en) Anti-collision method and anti-collision device for mobile terminal
WO2016065746A1 (en) Terminal device wakeup method and apparatus and storage medium
JP6366094B2 (en) Portable information device, program, and method for detecting careless walking state using only acceleration sensor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13882570

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13882570

Country of ref document: EP

Kind code of ref document: A1